@bookipi/htmlgenerator 1.8.0 → 1.8.1-alpha1
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/.vscode/common.settings.json +38 -0
- package/dist/index.js +54 -32
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +54 -32
- package/dist/index.modern.js.map +1 -1
- package/dist/watermark~rKbOnEXj.svg +11 -0
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -8855,9 +8855,9 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8855
8855
|
document = _ref$document === void 0 ? {} : _ref$document,
|
|
8856
8856
|
_ref$defaultLang = _ref.defaultLang,
|
|
8857
8857
|
defaultLang = _ref$defaultLang === void 0 ? {
|
|
8858
|
-
document:
|
|
8859
|
-
creditNote:
|
|
8860
|
-
estimate:
|
|
8858
|
+
document: 'Document',
|
|
8859
|
+
creditNote: 'Credit Note',
|
|
8860
|
+
estimate: 'Estimate'
|
|
8861
8861
|
} : _ref$defaultLang,
|
|
8862
8862
|
t = _ref.t;
|
|
8863
8863
|
var documentName = null;
|
|
@@ -8866,11 +8866,11 @@ var getDocumentName = function getDocumentName(_ref) {
|
|
|
8866
8866
|
documentName = (_company$doc$document2 = company.doc[document.ty]) === null || _company$doc$document2 === void 0 ? void 0 : _company$doc$document2.n;
|
|
8867
8867
|
} else {
|
|
8868
8868
|
if (document.ty === 1) {
|
|
8869
|
-
documentName = company.r_inv ? company.r_inv : defaultLang[
|
|
8869
|
+
documentName = company.r_inv ? company.r_inv : defaultLang['document'];
|
|
8870
8870
|
} else if (document.ty === 2) {
|
|
8871
|
-
documentName = company.r_crd ? company.r_crd : defaultLang[
|
|
8871
|
+
documentName = company.r_crd ? company.r_crd : defaultLang['creditNote'];
|
|
8872
8872
|
} else {
|
|
8873
|
-
documentName = company.r_est ? company.r_est : defaultLang[
|
|
8873
|
+
documentName = company.r_est ? company.r_est : defaultLang['estimate'];
|
|
8874
8874
|
}
|
|
8875
8875
|
}
|
|
8876
8876
|
return t ? t(documentName) : documentName;
|
|
@@ -8895,14 +8895,14 @@ var getFormatDate = function getFormatDate(_ref3) {
|
|
|
8895
8895
|
var company = _ref3.company,
|
|
8896
8896
|
date = _ref3.date,
|
|
8897
8897
|
timeZone = _ref3.timeZone;
|
|
8898
|
-
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) ||
|
|
8899
|
-
if (momentLocale ===
|
|
8900
|
-
if (momentLocale ===
|
|
8898
|
+
var momentLocale = ((company === null || company === void 0 ? void 0 : company.language) || (company === null || company === void 0 ? void 0 : company.la) || 'en').toLowerCase();
|
|
8899
|
+
if (momentLocale === 'zh-hans') momentLocale = 'zh-cn';
|
|
8900
|
+
if (momentLocale === 'zh-hant') momentLocale = 'zh-tw';
|
|
8901
8901
|
var d = momentTimezone$1(date).locale(momentLocale);
|
|
8902
8902
|
if (timeZone) {
|
|
8903
8903
|
d = d.tz(timeZone);
|
|
8904
8904
|
}
|
|
8905
|
-
return d.format(company.df === 0 ?
|
|
8905
|
+
return d.format(company.df === 0 ? 'D MMM YYYY' : company.df === 1 ? 'DD/MM/YYYY' : company.df === 3 ? 'MM/D/YYYY' : company.df === 4 ? 'YYYY/MM/DD' : 'MMM D, YYYY');
|
|
8906
8906
|
};
|
|
8907
8907
|
var getCompanyAddress = function getCompanyAddress(company) {
|
|
8908
8908
|
return {
|
|
@@ -8931,6 +8931,22 @@ var getCustomerShippingAddress = function getCustomerShippingAddress(customer) {
|
|
|
8931
8931
|
address3: customer && (customer.shippingAddress && customer.shippingAddress.address3 != null ? customer.shippingAddress.address3 : customer.sa3) || null
|
|
8932
8932
|
});
|
|
8933
8933
|
};
|
|
8934
|
+
var getCustomerName = function getCustomerName(customer) {
|
|
8935
|
+
if (!customer) return {
|
|
8936
|
+
customerPrimaryName: '',
|
|
8937
|
+
customerSecondaryName: ''
|
|
8938
|
+
};
|
|
8939
|
+
if (customer.c && customer.individualCompanyName) {
|
|
8940
|
+
return {
|
|
8941
|
+
customerPrimaryName: customer.c,
|
|
8942
|
+
customerSecondaryName: customer.individualCompanyName
|
|
8943
|
+
};
|
|
8944
|
+
}
|
|
8945
|
+
return {
|
|
8946
|
+
customerPrimaryName: customer.c || customer.individualCompanyName,
|
|
8947
|
+
customerSecondaryName: ''
|
|
8948
|
+
};
|
|
8949
|
+
};
|
|
8934
8950
|
var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
8935
8951
|
var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
|
|
8936
8952
|
var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
|
|
@@ -8941,12 +8957,12 @@ var getTaxDetails = function getTaxDetails(document, company, defaultLang) {
|
|
|
8941
8957
|
var discountOnItem = false;
|
|
8942
8958
|
var hasNonTaxableItem = false;
|
|
8943
8959
|
if (document.tx != 0) {
|
|
8944
|
-
taxName1 = document.tn ? document.tn :
|
|
8945
|
-
taxIncluded1 = document.ti ?
|
|
8960
|
+
taxName1 = document.tn ? document.tn : 'Tax';
|
|
8961
|
+
taxIncluded1 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8946
8962
|
}
|
|
8947
8963
|
if (document.ttx && document.tx2 != 0) {
|
|
8948
|
-
taxName2 = document.tn2 ? document.tn2 :
|
|
8949
|
-
taxIncluded2 = document.ti ?
|
|
8964
|
+
taxName2 = document.tn2 ? document.tn2 : 'Tax 2';
|
|
8965
|
+
taxIncluded2 = document.ti ? ' ' + (company.r_ic ? company.r_ic : defaultLang['included']) : ' ';
|
|
8950
8966
|
}
|
|
8951
8967
|
if (document.it) {
|
|
8952
8968
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
@@ -9082,6 +9098,9 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9082
9098
|
var customer = document.cu;
|
|
9083
9099
|
var customerAddress = getCustomerAddress(customer);
|
|
9084
9100
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
9101
|
+
var _getCustomerName = getCustomerName(customer),
|
|
9102
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
9103
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
9085
9104
|
var documentName = getDocumentName({
|
|
9086
9105
|
document: document,
|
|
9087
9106
|
company: company,
|
|
@@ -9101,7 +9120,7 @@ var InvoiceHeader = function InvoiceHeader(_ref) {
|
|
|
9101
9120
|
timeZone: timeZone
|
|
9102
9121
|
});
|
|
9103
9122
|
};
|
|
9104
|
-
return html$4(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <strong\n >", "</strong\n >\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\"
|
|
9123
|
+
return html$4(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <strong\n >", "</strong\n >\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">", "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>", " #</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong\n >", "</strong\n >\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n ", "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), company.r_bt ? company.r_bt : defaultLang['bill_to'], customerPrimaryName, customerSecondaryName ? "<div>" + customerSecondaryName + "</div>" : '', customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + ' ' : '') + (customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.zip ? customerAddress.zip + ' ' : '')) + "</div>" : '', customerAddress.country ? "<div>" + customerAddress.country + "</div>" : '', customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || 'Tax no.') + ' : ' + customer.tfn : '') + "</div>" : '', customer && customer.e ? "<div>" + customer.e + "</div>" : '', customer && customer.ph ? "<div>" + customer.ph + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : defaultLang.ship_to) + "</strong>" : '', shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : '') + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + ' ' : '') + (customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.zip ? customerShippingAddress.zip + ' ' : '')) + "</div>" : '') + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </address>\n " : '', documentName, document.no ? document.no : '', document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>Proposal #</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + document.proposal.no + "\n </div>\n </div>" : '', company.r_d ? company.r_d : defaultLang['date'], formatDate(document.d), document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_dd ? company.r_dd : defaultLang['due_date']) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : '', document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : defaultLang['po_number']) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : '');
|
|
9105
9124
|
};
|
|
9106
9125
|
|
|
9107
9126
|
var currencies = {
|
|
@@ -12393,6 +12412,9 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12393
12412
|
var customer = document.cu;
|
|
12394
12413
|
var customerAddress = getCustomerAddress(customer);
|
|
12395
12414
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
12415
|
+
var _getCustomerName = getCustomerName(customer),
|
|
12416
|
+
customerPrimaryName = _getCustomerName.customerPrimaryName,
|
|
12417
|
+
customerSecondaryName = _getCustomerName.customerSecondaryName;
|
|
12396
12418
|
var documentName = getDocumentName({
|
|
12397
12419
|
document: document,
|
|
12398
12420
|
company: company,
|
|
@@ -12412,7 +12434,7 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12412
12434
|
timeZone: timeZone
|
|
12413
12435
|
});
|
|
12414
12436
|
};
|
|
12415
|
-
return html$m(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <span class=\"heading heading-title\">\n ", "</span\n >\n <div class=\"text-inverse customer-name\"
|
|
12437
|
+
return html$m(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <span class=\"heading heading-title\">\n ", "</span\n >\n <div class=\"text-inverse customer-name\">", "</div>\n <address class=\"address-text\" style=\"margin-bottom: 40px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">", " NUMBER</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\"\n >", "</span\n >\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n ", "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), company.r_bt ? company.r_bt : defaultLang['bill_to'], customerPrimaryName, customerSecondaryName ? "<div>" + customerSecondaryName + "</div>" : '', customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + ' ' : '') + (customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.zip ? customerAddress.zip + ' ' : '')) + "</div>" : '', customerAddress.country ? "<div>" + customerAddress.country + "</div>" : '', customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || 'Tax no.') + ' : ' + customer.tfn : '') + "</div>" : '', customer && customer.e ? "<div>" + customer.e + "</div>" : '', customer && customer.ph ? "<div>" + customer.ph + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<span class=\"heading\" >" + (company.r_st ? company.r_st : defaultLang.ship_to) + "</span>" : '', shippingAddressExists ? "\n <address class=\"address-text\" style=\"margin-bottom: 8px;\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : '') + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + ' ' : '') + (customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.zip ? customerShippingAddress.zip + ' ' : '')) + "</div>" : '') + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </address>\n " : '', documentName, document.no ? document.no : '', document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">Proposal #</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + document.proposal.no + "\n </div>\n </div>" : '', company.r_d ? company.r_d : defaultLang['issued'], formatDate(document.d), document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">" + (company.r_dd ? company.r_dd : defaultLang['due']) + "</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : '', document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : defaultLang['po_number']) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : '');
|
|
12416
12438
|
};
|
|
12417
12439
|
|
|
12418
12440
|
var _templateObject$o, _templateObject2$b, _templateObject3$4;
|
|
@@ -13623,9 +13645,9 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
|
|
|
13623
13645
|
var customerShippingAddress = getCustomerShippingAddress(customer);
|
|
13624
13646
|
var companyAddress = getCompanyAddress(company);
|
|
13625
13647
|
var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
|
|
13626
|
-
var customerCompanyName = (customer.
|
|
13627
|
-
var
|
|
13628
|
-
return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">", "</h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (
|
|
13648
|
+
var customerCompanyName = (customer.individualCompanyName ? customer.individualCompanyName : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
|
|
13649
|
+
var customerPersonName = customer.c;
|
|
13650
|
+
return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">", "</h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (customerPersonName ? '<br />' : ' ' + defaultLang['gochuu']) + '</span>' : '', customerPersonName ? '<span>' + customerPersonName + ' ' + defaultLang['san'] + '</span>' : '', customerAddress.zip ? '〒 ' + customerAddress.zip + ' ' : '', customerAddress.city || customerAddress.state ? "" + ((customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.city ? customerAddress.city + ' ' : '')) : '', customerAddress.address1 ? "" + customerAddress.address1 : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customer && customer.tfn ? "<div><span style=\"font-weight: 600;\">" + (customer.tfn ? defaultLang['business_number'] + ':</span> ' + customer.tfn : '') + "</div>" : '', customer && customer.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + customer.ph + "</div>" : '', customer && customer.e ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + customer.e + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<div class=\"company-address\" style=\"padding-top:8px; font-weight: 600;\" >" + defaultLang['ship_to'] + ":</div>" : '', shippingAddressExists ? "\n <div class=\"company-address\">\n <div>\n <div>\n " + (customerShippingAddress.zip ? '〒 ' + customerShippingAddress.zip + ' ' : '') + "\n </div>\n <div>\n " + (customerShippingAddress.city || customerShippingAddress.state ? "" + ((customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.city ? customerShippingAddress.city + ' ' : '')) : '') + "\n " + (customerShippingAddress.address1 ? "" + customerShippingAddress.address1 : '') + "\n </div>\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </div>\n </div>\n " : '', defaultLang['invoice_details'], defaultLang['issue_from'], company.c, companyAddress.zip ? '〒 ' + companyAddress.zip + ' ' : '', companyAddress.city || companyAddress.state ? "" + ((companyAddress.state ? companyAddress.state + ' ' : '') + (companyAddress.city ? companyAddress.city + ' ' : '')) : '', companyAddress.address1 ? "" + companyAddress.address1 : '', companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : '', companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : '', company.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + company.ph + "</div>" : '', company.fax ? "<div><span style=\"font-weight: 600;\">FAX:</span> " + company.fax + "</div>" : '', company.de ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + company.de + "</div>" : '', company.contactName ? "<div><span style=\"font-weight: 600;\">" + defaultLang['contact_person'] + ":</span> " + company.contactName + "</div>" : '', company.ai ? "<div style=\"padding-top: 8px;\">" + company.ai + "</div>" : '');
|
|
13629
13651
|
};
|
|
13630
13652
|
|
|
13631
13653
|
var FormatCurrency$a = util.FormatCurrency;
|
|
@@ -14146,7 +14168,7 @@ var increaseHexColorIntensity = function increaseHexColorIntensity(hex, amount)
|
|
|
14146
14168
|
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
14147
14169
|
};
|
|
14148
14170
|
|
|
14149
|
-
var _templateObject$O, _templateObject2$p, _templateObject3$b, _templateObject4$1
|
|
14171
|
+
var _templateObject$O, _templateObject2$p, _templateObject3$b, _templateObject4$1;
|
|
14150
14172
|
var html$L = String.raw;
|
|
14151
14173
|
var coverHtml = function coverHtml(_ref) {
|
|
14152
14174
|
var slide = _ref.slide,
|
|
@@ -14162,7 +14184,7 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14162
14184
|
var subtitleAlignment = subtitle.alignment,
|
|
14163
14185
|
subtitleName = subtitle.name,
|
|
14164
14186
|
subtitlePosition = subtitle.position;
|
|
14165
|
-
var titleHtml = html$L(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n <h1
|
|
14187
|
+
var titleHtml = html$L(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n <h1 class=\"cover-title\" style=\"text-align: ", ";\">\n ", "\n </h1>\n "])), titleAlignment || 'left', (slide === null || slide === void 0 ? void 0 : slide.title) || titleName);
|
|
14166
14188
|
var subtitleHtml = slide.subtitle ? html$L(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n <p\n class=\"cover-subtitle\"\n style=\"text-align: ", ";\"\n >\n ", "\n </p>\n "])), subtitleAlignment || 'left', slide.subtitle || subtitleName) : '';
|
|
14167
14189
|
var topContent = "\n " + (titlePosition === 'top' ? titleHtml : '') + "\n " + (subtitlePosition === 'top' ? subtitleHtml : '') + "\n ";
|
|
14168
14190
|
var centerContent = "\n " + (titlePosition === 'center' ? titleHtml : '') + "\n " + (subtitlePosition === 'center' ? subtitleHtml : '') + "\n ";
|
|
@@ -14178,16 +14200,16 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14178
14200
|
var hasOverlay = isImage && background.overlay;
|
|
14179
14201
|
var bgStyle = '';
|
|
14180
14202
|
if (isImage) {
|
|
14181
|
-
bgStyle = "background-image:" + (hasOverlay ? "linear-gradient(" + escapeHtml(background.overlay) + "," + escapeHtml(background.overlay) + "), "
|
|
14203
|
+
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;";
|
|
14182
14204
|
} else if (background.type === 'color') {
|
|
14183
14205
|
bgStyle = "background:" + escapeHtml(background.value || '');
|
|
14184
14206
|
} else {
|
|
14185
14207
|
bgStyle = '';
|
|
14186
14208
|
}
|
|
14187
|
-
return html$L(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\" style=\"", "\">\n
|
|
14209
|
+
return html$L(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\" style=\"", "\">\n <div class=\"cover-inner\">\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>\n "])), bgStyle, topContent, centerContent, bottomContent);
|
|
14188
14210
|
};
|
|
14189
14211
|
|
|
14190
|
-
var _templateObject$P, _templateObject2$q, _templateObject3$c, _templateObject4$2, _templateObject5$
|
|
14212
|
+
var _templateObject$P, _templateObject2$q, _templateObject3$c, _templateObject4$2, _templateObject5$1, _templateObject6$1;
|
|
14191
14213
|
var html$M = String.raw;
|
|
14192
14214
|
var bulletHtml = function bulletHtml(_ref) {
|
|
14193
14215
|
var slide = _ref.slide,
|
|
@@ -14205,7 +14227,7 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14205
14227
|
var desc = (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14206
14228
|
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)) : '');
|
|
14207
14229
|
}).join('');
|
|
14208
|
-
var ulHtml = html$M(_templateObject5$
|
|
14230
|
+
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);
|
|
14209
14231
|
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);
|
|
14210
14232
|
};
|
|
14211
14233
|
|
|
@@ -14244,7 +14266,7 @@ var imagesHtml = function imagesHtml(_ref) {
|
|
|
14244
14266
|
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);
|
|
14245
14267
|
};
|
|
14246
14268
|
|
|
14247
|
-
var _templateObject$S, _templateObject2$t, _templateObject3$e, _templateObject4$4, _templateObject5$
|
|
14269
|
+
var _templateObject$S, _templateObject2$t, _templateObject3$e, _templateObject4$4, _templateObject5$2;
|
|
14248
14270
|
var html$P = String.raw;
|
|
14249
14271
|
var processHtml = function processHtml(_ref) {
|
|
14250
14272
|
var slide = _ref.slide,
|
|
@@ -14264,7 +14286,7 @@ var processHtml = function processHtml(_ref) {
|
|
|
14264
14286
|
var desc = typeof item === 'string' ? item : (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14265
14287
|
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)) : '');
|
|
14266
14288
|
}).join('');
|
|
14267
|
-
return html$P(_templateObject5$
|
|
14289
|
+
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);
|
|
14268
14290
|
};
|
|
14269
14291
|
|
|
14270
14292
|
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5;
|
|
@@ -14288,7 +14310,7 @@ var teamMemberHtml = function teamMemberHtml(_ref) {
|
|
|
14288
14310
|
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);
|
|
14289
14311
|
};
|
|
14290
14312
|
|
|
14291
|
-
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$
|
|
14313
|
+
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$3;
|
|
14292
14314
|
var html$R = String.raw;
|
|
14293
14315
|
var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
14294
14316
|
var _ref$slide = _ref.slide,
|
|
@@ -14301,7 +14323,7 @@ var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
|
14301
14323
|
var img = getImage(rawImg);
|
|
14302
14324
|
var imgUrl = escapeHtml(img);
|
|
14303
14325
|
var bg = escapeHtml(themeColors);
|
|
14304
|
-
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$
|
|
14326
|
+
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)) : '');
|
|
14305
14327
|
};
|
|
14306
14328
|
|
|
14307
14329
|
var _templateObject$V;
|
|
@@ -14316,10 +14338,10 @@ var presentationStyle = function presentationStyle(_ref) {
|
|
|
14316
14338
|
subtitle: '#111827',
|
|
14317
14339
|
text: '#111827'
|
|
14318
14340
|
} : _ref$theme;
|
|
14319
|
-
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 }\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);
|
|
14341
|
+
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);
|
|
14320
14342
|
};
|
|
14321
14343
|
|
|
14322
|
-
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$
|
|
14344
|
+
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$4;
|
|
14323
14345
|
var htmlRaw$3 = String.raw;
|
|
14324
14346
|
var presentationHtml = function presentationHtml(_ref) {
|
|
14325
14347
|
var _ref$customizationSty = _ref.customizationStyle,
|
|
@@ -14374,7 +14396,7 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14374
14396
|
var fontLinkTags = fontLinks.map(function (href) {
|
|
14375
14397
|
return htmlRaw$3(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["<link rel=\"stylesheet\" href=\"", "\" />"])), href);
|
|
14376
14398
|
}).join('');
|
|
14377
|
-
return htmlRaw$3(_templateObject5$
|
|
14399
|
+
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);
|
|
14378
14400
|
};
|
|
14379
14401
|
|
|
14380
14402
|
export { contractHtml as ContractHtml, InvoiceCompatHtml, InvoiceCompatHtml$1 as InvoiceCompatJapanHtml, invoiceHtml as InvoiceHtml, invoiceHtml$1 as InvoiceJapanHtml, presentationHtml as PresentationHtml, subscriptionInvoiceHtml as SubscriptionInvoiceHtml, renderOldLayout as invoiceHtmlWithDetails, renderNewLayout as invoiceHtmlWithDetailsNew, renderLayout as invoiceJapanHtmlWithDetails, renderLayout as renderJapanInvoice, renderNewLayout as renderNewInvoice, renderOldLayout as renderOldInvoice };
|