@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.modern.js
CHANGED
|
@@ -12001,36 +12001,12 @@ var COMPANY_KEYS = ['_id', 'fax', 'contactName', 'c', 'e', 'ph', 'tfn', 'la', 'c
|
|
|
12001
12001
|
|
|
12002
12002
|
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'];
|
|
12003
12003
|
|
|
12004
|
-
var
|
|
12004
|
+
var escapeHtml = function escapeHtml(str) {
|
|
12005
12005
|
if (str === void 0) {
|
|
12006
12006
|
str = '';
|
|
12007
12007
|
}
|
|
12008
|
-
return String(str).replace(
|
|
12008
|
+
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
|
12009
12009
|
};
|
|
12010
|
-
function deepDecodeHtml(obj) {
|
|
12011
|
-
if (typeof obj === 'undefined' || obj === null) {
|
|
12012
|
-
return obj;
|
|
12013
|
-
}
|
|
12014
|
-
if (typeof obj === 'string') {
|
|
12015
|
-
return decodeHtml(obj);
|
|
12016
|
-
}
|
|
12017
|
-
if (Array.isArray(obj)) {
|
|
12018
|
-
return obj.map(function (item) {
|
|
12019
|
-
return deepDecodeHtml(item);
|
|
12020
|
-
});
|
|
12021
|
-
}
|
|
12022
|
-
if (typeof obj === 'object' && obj.constructor === Object) {
|
|
12023
|
-
var decoded = {};
|
|
12024
|
-
for (var _i = 0, _Object$entries = Object.entries(obj); _i < _Object$entries.length; _i++) {
|
|
12025
|
-
var _Object$entries$_i = _Object$entries[_i],
|
|
12026
|
-
key = _Object$entries$_i[0],
|
|
12027
|
-
value = _Object$entries$_i[1];
|
|
12028
|
-
decoded[key] = deepDecodeHtml(value);
|
|
12029
|
-
}
|
|
12030
|
-
return decoded;
|
|
12031
|
-
}
|
|
12032
|
-
return obj;
|
|
12033
|
-
}
|
|
12034
12010
|
Object.fromEntries = Object.fromEntries || function (arr) {
|
|
12035
12011
|
return arr.reduce(function (acc, curr) {
|
|
12036
12012
|
acc[curr[0]] = curr[1];
|
|
@@ -13445,61 +13421,59 @@ var contractHtml = (function (props) {
|
|
|
13445
13421
|
return html;
|
|
13446
13422
|
});
|
|
13447
13423
|
|
|
13448
|
-
var
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
var
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
var
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
discount: t ? t('Discount') : 'Discount'
|
|
13495
|
-
};
|
|
13424
|
+
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";
|
|
13425
|
+
|
|
13426
|
+
function formatPrice(price, currency) {
|
|
13427
|
+
if (price === void 0) {
|
|
13428
|
+
price = 0;
|
|
13429
|
+
}
|
|
13430
|
+
if (currency === void 0) {
|
|
13431
|
+
currency = 'USD';
|
|
13432
|
+
}
|
|
13433
|
+
return (price ? Number(price / 100).toFixed(2) : '0') + " " + currency;
|
|
13434
|
+
}
|
|
13435
|
+
function renderAddressItems(addressItems) {
|
|
13436
|
+
if (addressItems === void 0) {
|
|
13437
|
+
addressItems = [];
|
|
13438
|
+
}
|
|
13439
|
+
return addressItems.filter(function (item) {
|
|
13440
|
+
return !!item;
|
|
13441
|
+
}).join(', ');
|
|
13442
|
+
}
|
|
13443
|
+
function Header(_ref) {
|
|
13444
|
+
var logoUrl = _ref.logoUrl,
|
|
13445
|
+
companyName = _ref.companyName,
|
|
13446
|
+
invoiceNo = _ref.invoiceNo,
|
|
13447
|
+
invoiceDate = _ref.invoiceDate;
|
|
13448
|
+
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 ";
|
|
13449
|
+
}
|
|
13450
|
+
function InvoiceSummaryCard(params) {
|
|
13451
|
+
var email = params.email,
|
|
13452
|
+
companyName = params.companyName,
|
|
13453
|
+
businessNumber = params.businessNumber,
|
|
13454
|
+
address = params.address,
|
|
13455
|
+
total = params.total,
|
|
13456
|
+
currency = params.currency,
|
|
13457
|
+
defaultLang = params.defaultLang;
|
|
13458
|
+
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);
|
|
13459
|
+
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);
|
|
13460
|
+
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 ";
|
|
13461
|
+
}
|
|
13462
|
+
function OrderSummary(params) {
|
|
13463
|
+
var amountPaid = params.amountPaid,
|
|
13464
|
+
invoiceItems = params.invoiceItems,
|
|
13465
|
+
cardBrand = params.cardBrand,
|
|
13466
|
+
cardNumber = params.cardNumber,
|
|
13467
|
+
cardLogo = params.cardLogo,
|
|
13468
|
+
currency = params.currency,
|
|
13469
|
+
defaultLang = params.defaultLang;
|
|
13496
13470
|
var hasDiscount = invoiceItems.some(function (item) {
|
|
13497
13471
|
return item.type === 'discount' && item.total > 0;
|
|
13498
13472
|
});
|
|
13499
13473
|
var hasTax = invoiceItems.some(function (item) {
|
|
13500
13474
|
return item.type === 'tax' && item.total > 0;
|
|
13501
13475
|
});
|
|
13502
|
-
|
|
13476
|
+
function renderItem(item) {
|
|
13503
13477
|
var title = item.name || item.description;
|
|
13504
13478
|
var showSubtotal = hasTax && hasDiscount;
|
|
13505
13479
|
if (!showSubtotal && item.type === 'subtotal') {
|
|
@@ -13510,30 +13484,88 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13510
13484
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13511
13485
|
var label = isDiscount ? defaultLang.discount + " (" + title + ")" : title;
|
|
13512
13486
|
if (isDiscount && total === 0) return '';
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13487
|
+
var hasDescription = item.description && item.description !== item.name && item.description.trim() !== '';
|
|
13488
|
+
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 ";
|
|
13489
|
+
}
|
|
13490
|
+
function renderItems() {
|
|
13516
13491
|
var rendered = '';
|
|
13517
|
-
|
|
13492
|
+
invoiceItems.forEach(function (item) {
|
|
13518
13493
|
rendered += renderItem(item);
|
|
13519
13494
|
});
|
|
13520
13495
|
return rendered;
|
|
13496
|
+
}
|
|
13497
|
+
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 ";
|
|
13498
|
+
}
|
|
13499
|
+
function Footer(_ref2) {
|
|
13500
|
+
var logoUrl = _ref2.logoUrl;
|
|
13501
|
+
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>";
|
|
13502
|
+
}
|
|
13503
|
+
function SubscriptionInvoiceHtml(_ref3) {
|
|
13504
|
+
var vendor = _ref3.vendor,
|
|
13505
|
+
invoice = _ref3.invoice,
|
|
13506
|
+
customer = _ref3.customer,
|
|
13507
|
+
includeHtmlWrapper = _ref3.includeHtmlWrapper,
|
|
13508
|
+
t = _ref3.t;
|
|
13509
|
+
var _ref4 = vendor != null ? vendor : {},
|
|
13510
|
+
vendorName = _ref4.name,
|
|
13511
|
+
vendorLogoUrl = _ref4.logoUrl,
|
|
13512
|
+
businessNumber = _ref4.businessNumber,
|
|
13513
|
+
address = _ref4.address;
|
|
13514
|
+
var _ref5 = invoice != null ? invoice : {},
|
|
13515
|
+
invoiceNumber = _ref5.no,
|
|
13516
|
+
total = _ref5.total,
|
|
13517
|
+
amountPaid = _ref5.amountPaid,
|
|
13518
|
+
currency = _ref5.currency,
|
|
13519
|
+
transaction = _ref5.transaction,
|
|
13520
|
+
date = _ref5.date,
|
|
13521
|
+
invoiceItems = _ref5.items;
|
|
13522
|
+
var _ref6 = transaction != null ? transaction : {},
|
|
13523
|
+
cardNumber = _ref6.cardNumber,
|
|
13524
|
+
cardBrand = _ref6.cardBrand,
|
|
13525
|
+
cardLogo = _ref6.cardLogo;
|
|
13526
|
+
var _ref7 = customer != null ? customer : {},
|
|
13527
|
+
companyName = _ref7.name,
|
|
13528
|
+
email = _ref7.email;
|
|
13529
|
+
var logoUrl = vendorLogoUrl != null ? vendorLogoUrl : 'https://web.bookipi.com/images/logos/logo-bookipi.png';
|
|
13530
|
+
var defaultLang = {
|
|
13531
|
+
invoiceNo: t ? t('Invoice #', {
|
|
13532
|
+
no: invoiceNumber
|
|
13533
|
+
}) : "Invoice #" + invoiceNumber,
|
|
13534
|
+
total: t ? t('Total') : 'Total',
|
|
13535
|
+
billTo: t ? t('Bill to') : 'Bill to',
|
|
13536
|
+
item: t ? t('Item') : 'Item',
|
|
13537
|
+
amount: t ? t('Amount') : 'Amount',
|
|
13538
|
+
totalCharged: t ? t('Total charged') : 'Total charged',
|
|
13539
|
+
discount: t ? t('Discount') : 'Discount'
|
|
13521
13540
|
};
|
|
13522
|
-
var
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13541
|
+
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({
|
|
13542
|
+
logoUrl: logoUrl,
|
|
13543
|
+
companyName: vendorName,
|
|
13544
|
+
invoiceNo: defaultLang.invoiceNo,
|
|
13545
|
+
invoiceDate: date
|
|
13546
|
+
}) + "\n " + InvoiceSummaryCard({
|
|
13547
|
+
email: email,
|
|
13548
|
+
companyName: companyName,
|
|
13549
|
+
businessNumber: businessNumber,
|
|
13550
|
+
address: address,
|
|
13551
|
+
total: total,
|
|
13552
|
+
currency: currency,
|
|
13553
|
+
defaultLang: defaultLang
|
|
13554
|
+
}) + "\n " + OrderSummary({
|
|
13555
|
+
amountPaid: amountPaid,
|
|
13556
|
+
invoiceItems: invoiceItems,
|
|
13557
|
+
cardBrand: cardBrand,
|
|
13558
|
+
cardNumber: cardNumber,
|
|
13559
|
+
cardLogo: cardLogo,
|
|
13560
|
+
currency: currency,
|
|
13561
|
+
defaultLang: defaultLang
|
|
13562
|
+
}) + "\n </div>\n " + Footer({
|
|
13563
|
+
logoUrl: logoUrl
|
|
13564
|
+
}) + "\n </div>\n " + (includeHtmlWrapper ? '</body></html>' : '') + "\n ";
|
|
13533
13565
|
return {
|
|
13534
13566
|
html: html
|
|
13535
13567
|
};
|
|
13536
|
-
}
|
|
13568
|
+
}
|
|
13537
13569
|
|
|
13538
13570
|
var _document$invoice$est;
|
|
13539
13571
|
var langJP = (_document$invoice$est = {
|
|
@@ -14225,17 +14257,17 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14225
14257
|
if (layout === 'split') {
|
|
14226
14258
|
var _background$right;
|
|
14227
14259
|
var rightIsImage = ((_background$right = background.right) === null || _background$right === void 0 ? void 0 : _background$right.type) === 'image';
|
|
14228
|
-
var rightBgStyle = rightIsImage ? "background-image:url(" + background.right.value + ")" : "background:" + background.right.value;
|
|
14229
|
-
var outerSplitStyle = "background:" + themeColors.background;
|
|
14260
|
+
var rightBgStyle = rightIsImage ? "background-image:url(" + escapeHtml(background.right.value) + ")" : "background:" + escapeHtml(background.right.value);
|
|
14261
|
+
var outerSplitStyle = "background:" + escapeHtml(themeColors.background);
|
|
14230
14262
|
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);
|
|
14231
14263
|
}
|
|
14232
14264
|
var isImage = background.type === 'image';
|
|
14233
14265
|
var hasOverlay = isImage && background.overlay;
|
|
14234
14266
|
var bgStyle = '';
|
|
14235
14267
|
if (isImage) {
|
|
14236
|
-
bgStyle = "background-image: " + (hasOverlay ? "linear-gradient(" + background.overlay + ", " + background.overlay + "), url(" + (background.value || '') + ")" : "url(" + (background.value || '') + ")") + "; background-position: center; background-size: cover;";
|
|
14268
|
+
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;";
|
|
14237
14269
|
} else if (background.type === 'color') {
|
|
14238
|
-
bgStyle = "background:" + (background.value || '');
|
|
14270
|
+
bgStyle = "background:" + escapeHtml(background.value || '');
|
|
14239
14271
|
} else {
|
|
14240
14272
|
bgStyle = '';
|
|
14241
14273
|
}
|
|
@@ -14250,7 +14282,7 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14250
14282
|
customizationStyle = _ref$customizationSty === void 0 ? {} : _ref$customizationSty;
|
|
14251
14283
|
var items = (slide.bullets || []).slice(0, 3);
|
|
14252
14284
|
if (!items.length) {
|
|
14253
|
-
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);
|
|
14285
|
+
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));
|
|
14254
14286
|
}
|
|
14255
14287
|
var accentColor = customizationStyle.accentColor;
|
|
14256
14288
|
var markerBg = increaseHexColorIntensity(accentColor, 10);
|
|
@@ -14258,10 +14290,10 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14258
14290
|
var listItems = items.map(function (item) {
|
|
14259
14291
|
var title = (item === null || item === void 0 ? void 0 : item.title) || '';
|
|
14260
14292
|
var desc = (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14261
|
-
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) : '');
|
|
14293
|
+
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)) : '');
|
|
14262
14294
|
}).join('');
|
|
14263
14295
|
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);
|
|
14264
|
-
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);
|
|
14296
|
+
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);
|
|
14265
14297
|
};
|
|
14266
14298
|
|
|
14267
14299
|
var _templateObject$Q, _templateObject2$r;
|
|
@@ -14270,9 +14302,9 @@ var highlightTextHtml = function highlightTextHtml(_ref) {
|
|
|
14270
14302
|
var _ref$slide = _ref.slide,
|
|
14271
14303
|
slide = _ref$slide === void 0 ? {} : _ref$slide;
|
|
14272
14304
|
var paragraphs = String(slide.text || '').split('\n').map(function (p) {
|
|
14273
|
-
return "<p>" + p + "</p>";
|
|
14305
|
+
return "<p>" + escapeHtml(p) + "</p>";
|
|
14274
14306
|
}).join('');
|
|
14275
|
-
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) : '');
|
|
14307
|
+
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) : '');
|
|
14276
14308
|
};
|
|
14277
14309
|
|
|
14278
14310
|
var _templateObject$R, _templateObject2$s, _templateObject3$d, _templateObject4$3;
|
|
@@ -14285,15 +14317,15 @@ var imagesHtml = function imagesHtml(_ref) {
|
|
|
14285
14317
|
return getImage(source);
|
|
14286
14318
|
}).filter(Boolean);
|
|
14287
14319
|
if (!sources.length) {
|
|
14288
|
-
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 || '');
|
|
14320
|
+
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 || ''));
|
|
14289
14321
|
}
|
|
14290
14322
|
if (sources.length === 1) {
|
|
14291
|
-
var imgUrl = sources[0] || '';
|
|
14292
|
-
var alt = slide.title || '';
|
|
14323
|
+
var imgUrl = escapeHtml(sources[0] || '');
|
|
14324
|
+
var alt = escapeHtml(slide.title || '');
|
|
14293
14325
|
return html$O(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <img class=\"slide-bg\" src=\"", "\" alt=\"", "\" />\n </div>\n "])), imgUrl, alt);
|
|
14294
14326
|
}
|
|
14295
14327
|
var imagesRow = sources.map(function (src) {
|
|
14296
|
-
var s = src;
|
|
14328
|
+
var s = escapeHtml(src);
|
|
14297
14329
|
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);
|
|
14298
14330
|
}).join('');
|
|
14299
14331
|
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);
|
|
@@ -14308,7 +14340,7 @@ var processHtml = function processHtml(_ref) {
|
|
|
14308
14340
|
customizationTheme = _ref.customizationTheme;
|
|
14309
14341
|
var items = (slide.steps || []).slice(0, 3);
|
|
14310
14342
|
if (!items.length) {
|
|
14311
|
-
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 || '');
|
|
14343
|
+
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 || ''));
|
|
14312
14344
|
}
|
|
14313
14345
|
var accentColor = customizationStyle.accentColor;
|
|
14314
14346
|
var markerBg = increaseHexColorIntensity(accentColor, 100);
|
|
@@ -14317,33 +14349,33 @@ var processHtml = function processHtml(_ref) {
|
|
|
14317
14349
|
var listItems = items.map(function (item, index) {
|
|
14318
14350
|
var title = typeof item === 'string' ? '' : (item === null || item === void 0 ? void 0 : item.title) || '';
|
|
14319
14351
|
var desc = typeof item === 'string' ? item : (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14320
|
-
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=\"
|
|
14352
|
+
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)) : '');
|
|
14321
14353
|
}).join('');
|
|
14322
|
-
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=\"
|
|
14354
|
+
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);
|
|
14323
14355
|
};
|
|
14324
14356
|
|
|
14325
|
-
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5
|
|
14357
|
+
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5;
|
|
14326
14358
|
var html$Q = String.raw;
|
|
14327
14359
|
var teamMemberHtml = function teamMemberHtml(_ref) {
|
|
14328
14360
|
var _ref$slide = _ref.slide,
|
|
14329
14361
|
slide = _ref$slide === void 0 ? {} : _ref$slide;
|
|
14330
14362
|
var members = (slide.teamMembers || []).slice(0, 3);
|
|
14331
14363
|
if (!members.length) {
|
|
14332
|
-
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 || '');
|
|
14364
|
+
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 || ''));
|
|
14333
14365
|
}
|
|
14334
14366
|
var isRow = members.length > 1;
|
|
14335
|
-
var imageStyle = isRow ? '
|
|
14367
|
+
var imageStyle = isRow ? 'height:auto;' : 'max-height:30%;';
|
|
14336
14368
|
var memberHtml = members.map(function (member) {
|
|
14337
14369
|
var name = (member === null || member === void 0 ? void 0 : member.name) || '';
|
|
14338
14370
|
var role = (member === null || member === void 0 ? void 0 : member.role) || '';
|
|
14339
14371
|
var bio = (member === null || member === void 0 ? void 0 : member.bio) || '';
|
|
14340
14372
|
var img = getImage(member === null || member === void 0 ? void 0 : member.imageSource) || '';
|
|
14341
|
-
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
|
|
14373
|
+
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)) : '');
|
|
14342
14374
|
}).join('');
|
|
14343
|
-
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
|
|
14375
|
+
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);
|
|
14344
14376
|
};
|
|
14345
14377
|
|
|
14346
|
-
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$
|
|
14378
|
+
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$3;
|
|
14347
14379
|
var html$R = String.raw;
|
|
14348
14380
|
var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
14349
14381
|
var _ref$slide = _ref.slide,
|
|
@@ -14351,12 +14383,12 @@ var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
|
14351
14383
|
themeColors = _ref.themeColors;
|
|
14352
14384
|
var rawImg = slide.imageSources[0];
|
|
14353
14385
|
if (!rawImg) {
|
|
14354
|
-
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) : '');
|
|
14386
|
+
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)) : '');
|
|
14355
14387
|
}
|
|
14356
14388
|
var img = getImage(rawImg);
|
|
14357
|
-
var imgUrl = img;
|
|
14358
|
-
var bg = themeColors;
|
|
14359
|
-
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$
|
|
14389
|
+
var imgUrl = escapeHtml(img);
|
|
14390
|
+
var bg = escapeHtml(themeColors);
|
|
14391
|
+
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)) : '');
|
|
14360
14392
|
};
|
|
14361
14393
|
|
|
14362
14394
|
var _templateObject$V;
|
|
@@ -14374,7 +14406,7 @@ var presentationStyle = function presentationStyle(_ref) {
|
|
|
14374
14406
|
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);
|
|
14375
14407
|
};
|
|
14376
14408
|
|
|
14377
|
-
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$
|
|
14409
|
+
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$4;
|
|
14378
14410
|
var htmlRaw$3 = String.raw;
|
|
14379
14411
|
var presentationHtml = function presentationHtml(_ref) {
|
|
14380
14412
|
var _ref$customizationSty = _ref.customizationStyle,
|
|
@@ -14391,7 +14423,6 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14391
14423
|
if (!slides.length) {
|
|
14392
14424
|
return htmlRaw$3(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["<div>No slides available</div>"])));
|
|
14393
14425
|
}
|
|
14394
|
-
slides = deepDecodeHtml(slides);
|
|
14395
14426
|
slides = sanitize(slides);
|
|
14396
14427
|
var _getFontResources = getFontResources(font.family),
|
|
14397
14428
|
fontStack = _getFontResources.fontStack,
|
|
@@ -14430,8 +14461,8 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14430
14461
|
var fontLinkTags = fontLinks.map(function (href) {
|
|
14431
14462
|
return htmlRaw$3(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["<link rel=\"stylesheet\" href=\"", "\" />"])), href);
|
|
14432
14463
|
}).join('');
|
|
14433
|
-
return htmlRaw$3(_templateObject5$
|
|
14464
|
+
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);
|
|
14434
14465
|
};
|
|
14435
14466
|
|
|
14436
|
-
export { contractHtml as ContractHtml, InvoiceCompatHtml, InvoiceCompatHtml$1 as InvoiceCompatJapanHtml, invoiceHtml as InvoiceHtml, invoiceHtml$1 as InvoiceJapanHtml, presentationHtml as PresentationHtml,
|
|
14467
|
+
export { contractHtml as ContractHtml, InvoiceCompatHtml, InvoiceCompatHtml$1 as InvoiceCompatJapanHtml, invoiceHtml as InvoiceHtml, invoiceHtml$1 as InvoiceJapanHtml, presentationHtml as PresentationHtml, SubscriptionInvoiceHtml, renderOldLayout as invoiceHtmlWithDetails, renderNewLayout as invoiceHtmlWithDetailsNew, renderLayout as invoiceJapanHtmlWithDetails, renderLayout as renderJapanInvoice, renderNewLayout as renderNewInvoice, renderOldLayout as renderOldInvoice };
|
|
14437
14468
|
//# sourceMappingURL=index.modern.js.map
|