@bookipi/htmlgenerator 1.5.26 → 1.6.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/dist/index.js +27 -56
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -56
- package/dist/index.modern.js.map +1 -1
- package/dist/watermark~rKbOnEXj.svg +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9007,7 +9007,7 @@ var invoiceStyle = function invoiceStyle(_ref) {
|
|
|
9007
9007
|
signItIntegration = _ref.signItIntegration,
|
|
9008
9008
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
9009
9009
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
9010
|
-
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n
|
|
9010
|
+
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", ";\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n zoom: 0.8;\n ", "\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:28cm; box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);', signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
9011
9011
|
};
|
|
9012
9012
|
|
|
9013
9013
|
var _templateObject$1, _templateObject2;
|
|
@@ -11931,13 +11931,13 @@ var _templateObject$f, _templateObject2$6;
|
|
|
11931
11931
|
var html$f = String.raw;
|
|
11932
11932
|
var InvoiceAttachments = function InvoiceAttachments(_ref) {
|
|
11933
11933
|
var attachments = _ref.attachments;
|
|
11934
|
-
var attachmentContainer =
|
|
11934
|
+
var attachmentContainer = '';
|
|
11935
11935
|
if (attachments && attachments.length > 0) {
|
|
11936
11936
|
for (var i = 0; i < attachments.length; i++) {
|
|
11937
|
-
attachmentContainer = attachmentContainer + html$f(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t ||
|
|
11937
|
+
attachmentContainer = attachmentContainer + html$f(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n class=\"attachment-image\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t || '', attachments[i].description || attachments[i].d || '');
|
|
11938
11938
|
}
|
|
11939
11939
|
} else {
|
|
11940
|
-
return
|
|
11940
|
+
return '';
|
|
11941
11941
|
}
|
|
11942
11942
|
return html$f(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["<!-- begin invoice-attachments -->\n <div style=\"text-align: center\">", "</div>\n <!-- end invoice-attachments -->"])), attachmentContainer);
|
|
11943
11943
|
};
|
|
@@ -11981,7 +11981,7 @@ var PaymentInstructions = function PaymentInstructions(_ref) {
|
|
|
11981
11981
|
|
|
11982
11982
|
var COMPANY_KEYS = ['_id', 'fax', 'contactName', 'c', 'e', 'ph', 'tfn', 'la', 'cr', 'cf', 'tz', 'ls', 'doc', 'bn', 'tn', 'tn2', 'tp', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pi', 'p1', 'p2', 'p3', 'sg', 'a1', 'a2', 'a3', 'address', 'language', 'la', 'sc', 'sr', 'ai', 'ct', 'de', 'r_bs', 'r_tc', 'r_nt', 'r_deposit_due', 'r_ad', 'r_gt', 'r_po', 'r_bt', 'r_st', 'r_d', 'r_a', 'r_dc', 'r_ic', 'r_it', 'r_n', 'r_p', 'r_q', 'r_sb', 'r_sp', 'r_tt', 'r_pi', 'r_inv', 'r_est', 'r_crd', 'r_dd', 'df', 'lg', 'hasPaymentInstructionQRCode', 'updatedAt', 'payment_in_progress'];
|
|
11983
11983
|
|
|
11984
|
-
var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tp2', 'tn', 'tn2', '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'];
|
|
11984
|
+
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'];
|
|
11985
11985
|
|
|
11986
11986
|
var escapeHtml = function escapeHtml(str) {
|
|
11987
11987
|
if (str === void 0) {
|
|
@@ -12319,7 +12319,7 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
|
12319
12319
|
var watermarkText = defaultLang['upgradeRequired'] || 'Upgrade required';
|
|
12320
12320
|
var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='Inter, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
|
|
12321
12321
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
12322
|
-
return html$i(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 12px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n min-height: 100vh;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n min-height: 100vh;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n min-height: 100vh;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n padding-bottom: 60px;\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n page-break-before: always!important;\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 80px;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), subFontSize, contentFontSize, contentFontSize, contentFontSize, heading2FontSize, heading2FontSize, fontSize === 'medium' ? '17px' : '21px', subFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
12322
|
+
return html$i(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 12px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), subFontSize, contentFontSize, contentFontSize, contentFontSize, heading2FontSize, heading2FontSize, fontSize === 'medium' ? '17px' : '21px', subFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
12323
12323
|
};
|
|
12324
12324
|
|
|
12325
12325
|
var _templateObject$k, _templateObject2$9;
|
|
@@ -13465,7 +13465,7 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13465
13465
|
var color = isDiscount ? '#C81E1E' : 'inherit';
|
|
13466
13466
|
var label = isDiscount ? defaultLang.discount + " (" + title + ")" : title;
|
|
13467
13467
|
if (isDiscount && total === 0) return '';
|
|
13468
|
-
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 + ";\">" + label + "</div>\n </div>\n <div style=\"font-size:16px;color:" + color + ";\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13468
|
+
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 + ";\">" + label + "</div>\n " + (item.description && item.description !== item.name && item.description.trim() !== '' ? "<div class=\"invoice-item-details\">" + item.description + "</div>" : '') + "\n </div>\n <div style=\"font-size:16px;color:" + color + ";\">\n " + formatPrice(total, currency) + "\n </div>\n </div>\n </div>\n ";
|
|
13469
13469
|
};
|
|
13470
13470
|
var renderItems = function renderItems(items) {
|
|
13471
13471
|
var rendered = '';
|
|
@@ -13484,7 +13484,7 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13484
13484
|
};
|
|
13485
13485
|
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);
|
|
13486
13486
|
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);
|
|
13487
|
-
var html = "\n " + (includeHtmlWrapper ? '<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>Invoice</title>' : '') + "\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Lato:wght@400;700&display=swap');\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 .invoice-content {\n padding: 40px 30px;\n }\n .invoice-header {\n display: flex;\n padding: 10px;\n margin-bottom: 40px;\n justify-content: space-between;\n }\n .invoice-footer {\n padding: 30px 38px 40px;\n background-color: rgb(245, 246, 250);\n }\n .invoice-footer p {\n display: block;\n margin: 0;\n }\n .invoice-footer-logo {\n height: 20px;\n margin-bottom: 12px;\n }\n .invoice-logo {\n object-fit: contain;\n max-height: 52px;\n width: auto;\n height: auto;\n }\n .invoice-body {\n color: color: rgb(15, 23, 42);\n font-size: 16px;\n }\n .invoice-company {\n text-align: right;\n }\n .invoice-spacing {\n margin-bottom: 4px;\n }\n .invoice-semi-bold {\n color: rgb(15, 23, 42);\n font-weight: 600;\n font-size: 16px;\n }\n .invoice-bold {\n font-family: 'Lato', sans-serif;\n color: black;\n font-weight: 700;\n font-size: 20px;\n }\n .invoice-subtitle {\n color: rgba(0, 0, 0, 0.6);\n font-size: 14px;\n }\n .invoice-subtitle2 {\n color: rgb(147, 154, 172);\n font-size: 14px;\n }\n .invoice-subtitle3 {\n color: rgb(100, 116, 139);\n font-size: 14px;\n }\n .invoice-subtitle4 {\n font-size: 10px;\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 .invoice-summary-total {\n display: flex;\n margin-top: 24px;\n flex-direction: column;\n }\n .invoice-summary-customer {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n text-align: left;\n }\n .invoice-customer-email {\n margin-left: 8px;\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 .invoice-order-container {\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-item {\n padding: 12px 0px 5px;\n }\n .invoice-order-details {\n display: flex;\n justify-content: space-between;\n }\n .invoice-tax {\n display: flex;\n justify-content:space-between;\n margin-top: 8px;\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 .invoice-card {\n display: flex;\n padding: 8px 0px;\n }\n .invoice-card img {\n height: 24px;\n margin-right: 6px;\n }\n .invoice-bill-to {\n display: none;\n }\n @media (max-width: 600px) {\n .bookipay-invoice {\n border-radius: 0;\n }\n }\n @media (max-width: 799px) {\n .invoice-header {\n flex-direction: column;\n padding: 10px 0;\n }\n .invoice-company {\n text-align: left;\n }\n .invoice-logo {\n max-width: 100px;\n margin-bottom: 16px;\n }\n .invoice-header, .invoice-summary {\n margin-bottom: 20px;\n }\n .invoice-summary {\n margin-left: -30px;\n margin-right: -30px;\n border-radius: 0;\n padding: 32px 30px;\n }\n .invoice-content {\n padding: 20px 30px;\n }\n .invoice-bill-to {\n display: flex;\n }\n }\n @media (max-width: 399px) {\n .footer-actions {\n flex-direction: column;\n }\n .footer-action {\n margin-bottom: 12px;\n }\n footer {\n margin: 30px 0;\n }\n footer p {\n margin-top: 0;\n }\n }\n @media print {\n * {\n color-adjust: exact;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n .invoice-footer {\n width: 100%;\n max-width: 100%;\n margin: 0;\n }\n .bookipay-invoice {\n max-width: 100%;\n }\n @page { margin: 0; }\n body { margin: 1.6cm; }\n }\n </style>\n <div class=\"bookipay-invoice\">\n <div class=\"invoice-content\">\n <div class=\"invoice-header\">\n <img class=\"invoice-logo\" src=\"" + vendorLogoUrl + "\" />\n <div class=\"invoice-company\">\n <div class=\"invoice-company-name invoice-semi-bold invoice-spacing\">" + vendorName + "</div>\n <div class=\"invoice-number invoice-subtitle invoice-spacing\">" + defaultLang.invoiceNo + "</div>\n <div class=\"invoice-date invoice-subtitle invoice-spacing\">" + date + "</div>\n </div>\n </div>\n <div class=\"invoice-summary\">\n <div class=\"invoice-summary-customer\">\n <div>\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\">" + email + "</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 <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(invoiceItems) + "\n <div class=\"invoice-payment\">\n <div class=\"invoice-bold\" style=\"font-size: 16px;\">\n " + defaultLang.totalCharged + "</div>\n <div class=\"invoice-body3\">\n <div class=\"invoice-bold invoice-spacing\" style=\"font-size: 18px;text-align: right;\">\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-semi-bold\" style=\"font-weight: 400;\">\n " + (cardBrand.charAt(0).toUpperCase() + cardBrand.slice(1)) + " \u2022\u2022\u2022\u2022 " + cardNumber + "\n </div>\n </div>\n " : '') + "\n </div>\n </div>\n </div>\n <div class=\"invoice-footer invoice-subtitle2\" style=\"font-size: 12px;\">\n <img class=\"invoice-footer-logo\" src=\"" + vendorLogoUrl + "\" />\n <!-- TODO: Dynamic company info -->\n <p>\xA92023 Bookipi Pty Ltd.</p>\n <p>9 George St, North Strathfield NSW 2137, Australia</p>\n <p>ABN: 91617668185</p>\n </div>\n </div>\n " + (includeHtmlWrapper ? '</body></html>' : '') + "\n ";
|
|
13487
|
+
var html = "\n " + (includeHtmlWrapper ? '<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>Invoice</title>' : '') + "\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Lato:wght@400;700&display=swap');\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 .invoice-content {\n padding: 40px 30px;\n }\n .invoice-header {\n display: flex;\n padding: 10px;\n margin-bottom: 40px;\n justify-content: space-between;\n }\n .invoice-footer {\n padding: 30px 38px 40px;\n background-color: rgb(245, 246, 250);\n }\n .invoice-footer p {\n display: block;\n margin: 0;\n }\n .invoice-footer-logo {\n height: 20px;\n margin-bottom: 12px;\n }\n .invoice-logo {\n object-fit: contain;\n max-height: 52px;\n width: auto;\n height: auto;\n }\n .invoice-body {\n color: color: rgb(15, 23, 42);\n font-size: 16px;\n }\n .invoice-company {\n text-align: right;\n }\n .invoice-spacing {\n margin-bottom: 4px;\n }\n .invoice-semi-bold {\n color: rgb(15, 23, 42);\n font-weight: 600;\n font-size: 16px;\n }\n .invoice-bold {\n font-family: 'Lato', sans-serif;\n color: black;\n font-weight: 700;\n font-size: 20px;\n }\n .invoice-subtitle {\n color: rgba(0, 0, 0, 0.6);\n font-size: 14px;\n }\n .invoice-subtitle2 {\n color: rgb(147, 154, 172);\n font-size: 14px;\n }\n .invoice-subtitle3 {\n color: rgb(100, 116, 139);\n font-size: 14px;\n }\n .invoice-subtitle4 {\n font-size: 10px;\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 .invoice-summary-total {\n display: flex;\n margin-top: 24px;\n flex-direction: column;\n }\n .invoice-summary-customer {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n text-align: left;\n }\n .invoice-customer-email {\n margin-left: 8px;\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 .invoice-order-container {\n display: flex;\n justify-content: space-between;\n }\n .invoice-order-item {\n padding: 12px 0px 5px;\n }\n .invoice-order-details {\n display: flex;\n justify-content: space-between;\n }\n .invoice-item-details {\n color: rgb(100, 116, 139);\n font-size: 14px;\n margin-top: 4px;\n }\n .invoice-tax {\n display: flex;\n justify-content:space-between;\n margin-top: 8px;\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 .invoice-card {\n display: flex;\n padding: 8px 0px;\n }\n .invoice-card img {\n height: 24px;\n margin-right: 6px;\n }\n .invoice-bill-to {\n display: none;\n }\n @media (max-width: 600px) {\n .bookipay-invoice {\n border-radius: 0;\n }\n }\n @media (max-width: 799px) {\n .invoice-header {\n flex-direction: column;\n padding: 10px 0;\n }\n .invoice-company {\n text-align: left;\n }\n .invoice-logo {\n max-width: 100px;\n margin-bottom: 16px;\n }\n .invoice-header, .invoice-summary {\n margin-bottom: 20px;\n }\n .invoice-summary {\n margin-left: -30px;\n margin-right: -30px;\n border-radius: 0;\n padding: 32px 30px;\n }\n .invoice-content {\n padding: 20px 30px;\n }\n .invoice-bill-to {\n display: flex;\n }\n }\n @media (max-width: 399px) {\n .footer-actions {\n flex-direction: column;\n }\n .footer-action {\n margin-bottom: 12px;\n }\n footer {\n margin: 30px 0;\n }\n footer p {\n margin-top: 0;\n }\n }\n @media print {\n * {\n color-adjust: exact;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n .invoice-footer {\n width: 100%;\n max-width: 100%;\n margin: 0;\n }\n .bookipay-invoice {\n max-width: 100%;\n }\n @page { margin: 0; }\n body { margin: 1.6cm; }\n }\n </style>\n <div class=\"bookipay-invoice\">\n <div class=\"invoice-content\">\n <div class=\"invoice-header\">\n <img class=\"invoice-logo\" src=\"" + vendorLogoUrl + "\" />\n <div class=\"invoice-company\">\n <div class=\"invoice-company-name invoice-semi-bold invoice-spacing\">" + vendorName + "</div>\n <div class=\"invoice-number invoice-subtitle invoice-spacing\">" + defaultLang.invoiceNo + "</div>\n <div class=\"invoice-date invoice-subtitle invoice-spacing\">" + date + "</div>\n </div>\n </div>\n <div class=\"invoice-summary\">\n <div class=\"invoice-summary-customer\">\n <div>\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\">" + email + "</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 <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(invoiceItems) + "\n <div class=\"invoice-payment\">\n <div class=\"invoice-bold\" style=\"font-size: 16px;\">\n " + defaultLang.totalCharged + "</div>\n <div class=\"invoice-body3\">\n <div class=\"invoice-bold invoice-spacing\" style=\"font-size: 18px;text-align: right;\">\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-semi-bold\" style=\"font-weight: 400;\">\n " + (cardBrand.charAt(0).toUpperCase() + cardBrand.slice(1)) + " \u2022\u2022\u2022\u2022 " + cardNumber + "\n </div>\n </div>\n " : '') + "\n </div>\n </div>\n </div>\n <div class=\"invoice-footer invoice-subtitle2\" style=\"font-size: 12px;\">\n <img class=\"invoice-footer-logo\" src=\"" + vendorLogoUrl + "\" />\n <!-- TODO: Dynamic company info -->\n <p>\xA92023 Bookipi Pty Ltd.</p>\n <p>9 George St, North Strathfield NSW 2137, Australia</p>\n <p>ABN: 91617668185</p>\n </div>\n </div>\n " + (includeHtmlWrapper ? '</body></html>' : '') + "\n ";
|
|
13488
13488
|
return {
|
|
13489
13489
|
html: html
|
|
13490
13490
|
};
|
|
@@ -13550,7 +13550,7 @@ var invoiceStyle$2 = function invoiceStyle(_ref) {
|
|
|
13550
13550
|
var watermarkText = defaultLang['upgradeRequired'] || 'Upgrade required';
|
|
13551
13551
|
var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='BIZ UDGothic, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
|
|
13552
13552
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
13553
|
-
return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n min-height: 100vh;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n min-height: 100vh;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n min-height: 100vh;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n padding-bottom: 60px;\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n page-break-before: always!important;\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 80px;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
13553
|
+
return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
13554
13554
|
};
|
|
13555
13555
|
|
|
13556
13556
|
var _templateObject$x, _templateObject2$f;
|
|
@@ -13700,22 +13700,7 @@ var TaxTable = function TaxTable(_ref) {
|
|
|
13700
13700
|
return '';
|
|
13701
13701
|
}
|
|
13702
13702
|
var taxName1 = document.tn;
|
|
13703
|
-
var
|
|
13704
|
-
var amountOf10Tax = items.reduce(function (acc, item) {
|
|
13705
|
-
if (item.tx) {
|
|
13706
|
-
return acc + item.t;
|
|
13707
|
-
} else {
|
|
13708
|
-
return acc;
|
|
13709
|
-
}
|
|
13710
|
-
}, 0);
|
|
13711
|
-
var amountOf8Tax = items.reduce(function (acc, item) {
|
|
13712
|
-
if (item.tx2) {
|
|
13713
|
-
return acc + item.t;
|
|
13714
|
-
} else {
|
|
13715
|
-
return acc;
|
|
13716
|
-
}
|
|
13717
|
-
}, 0);
|
|
13718
|
-
var taxTable = html$B(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n <div>", "</div>\n <div class=\"tax-table-wrapper mt-2 mb-5\">\n <table class=\"tax-table table table-sm\">\n <thead>\n <tr>\n <th>", "</th>\n <th>", "</th>\n <th>", "</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"border-top: none;\">\n ", "%", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n </tr>\n <tr>\n <td>\n ", "", "%", "\n </td>\n <td>\n ", "\n </td>\n <td>\n ", "\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n "])), defaultLang['reduced_tax_description'], defaultLang['tax_rate_category'], taxName1 || defaultLang['consumption_tax'], defaultLang['amount_of_tax'], document.tp, defaultLang['tax_subject'], FormatCurrencyJP(document.tx, company.cr, company.la, company.cf), FormatCurrencyJP(amountOf10Tax, company.cr, company.la, company.cf), defaultLang['reduced'], document.tp2, defaultLang['tax_subject'], FormatCurrencyJP(document.tx2, company.cr, company.la, company.cf), FormatCurrencyJP(amountOf8Tax, company.cr, company.la, company.cf));
|
|
13703
|
+
var taxTable = html$B(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n <div>", "</div>\n <div class=\"tax-table-wrapper mt-2 mb-5\">\n <table class=\"tax-table table table-sm\">\n <thead>\n <tr>\n <th>", "</th>\n <th>", "</th>\n <th>", "</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"border-top: none;\">\n ", "%", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n <td style=\"border-top: none;\">\n ", "\n </td>\n </tr>\n <tr>\n <td>\n ", "", "%", "\n </td>\n <td>\n ", "\n </td>\n <td>\n ", "\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n "])), defaultLang['reduced_tax_description'], defaultLang['tax_rate_category'], taxName1 || defaultLang['consumption_tax'], defaultLang['amount_of_tax'], document.tp, defaultLang['tax_subject'], FormatCurrencyJP(document.tx, company.cr, company.la, company.cf), FormatCurrencyJP(document.tax1BaseAmount || 0, company.cr, company.la, company.cf), defaultLang['reduced'], document.tp2, defaultLang['tax_subject'], FormatCurrencyJP(document.tx2, company.cr, company.la, company.cf), FormatCurrencyJP(document.tax2BaseAmount || 0, company.cr, company.la, company.cf));
|
|
13719
13704
|
return taxTable;
|
|
13720
13705
|
};
|
|
13721
13706
|
|
|
@@ -13812,13 +13797,13 @@ var _templateObject$J, _templateObject2$l;
|
|
|
13812
13797
|
var html$H = String.raw;
|
|
13813
13798
|
var InvoiceAttachments$1 = function InvoiceAttachments(_ref) {
|
|
13814
13799
|
var attachments = _ref.attachments;
|
|
13815
|
-
var attachmentContainer =
|
|
13800
|
+
var attachmentContainer = '';
|
|
13816
13801
|
if (attachments && attachments.length > 0) {
|
|
13817
13802
|
for (var i = 0; i < attachments.length; i++) {
|
|
13818
|
-
attachmentContainer = attachmentContainer + html$H(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t ||
|
|
13803
|
+
attachmentContainer = attachmentContainer + html$H(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n class=\"attachment-image\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t || '', attachments[i].description || attachments[i].d || '');
|
|
13819
13804
|
}
|
|
13820
13805
|
} else {
|
|
13821
|
-
return
|
|
13806
|
+
return '';
|
|
13822
13807
|
}
|
|
13823
13808
|
return html$H(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["<!-- begin invoice-attachments -->\n <div style=\"text-align: center\">", "</div>\n <!-- end invoice-attachments -->"])), attachmentContainer);
|
|
13824
13809
|
};
|
|
@@ -14162,7 +14147,7 @@ var increaseHexColorIntensity = function increaseHexColorIntensity(hex, amount)
|
|
|
14162
14147
|
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
14163
14148
|
};
|
|
14164
14149
|
|
|
14165
|
-
var _templateObject$O, _templateObject2$p, _templateObject3$b, _templateObject4$1, _templateObject5$1
|
|
14150
|
+
var _templateObject$O, _templateObject2$p, _templateObject3$b, _templateObject4$1, _templateObject5$1;
|
|
14166
14151
|
var html$L = String.raw;
|
|
14167
14152
|
var coverHtml = function coverHtml(_ref) {
|
|
14168
14153
|
var slide = _ref.slide,
|
|
@@ -14178,28 +14163,17 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14178
14163
|
var subtitleAlignment = subtitle.alignment,
|
|
14179
14164
|
subtitleName = subtitle.name,
|
|
14180
14165
|
subtitlePosition = subtitle.position;
|
|
14181
|
-
var titleHtml = html$L(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n <h1\n class=\"cover-title\"\n style=\"
|
|
14182
|
-
var subtitleHtml = slide.subtitle ? html$L(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n <p\n class=\"cover-subtitle\"\n style=\"
|
|
14166
|
+
var titleHtml = html$L(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n <h1\n class=\"cover-title\"\n style=\"text-align: ", ";\"\n >\n ", "\n </h1>\n "])), titleAlignment || 'left', (slide === null || slide === void 0 ? void 0 : slide.title) || titleName);
|
|
14167
|
+
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) : '';
|
|
14183
14168
|
var topContent = "\n " + (titlePosition === 'top' ? titleHtml : '') + "\n " + (subtitlePosition === 'top' ? subtitleHtml : '') + "\n ";
|
|
14184
14169
|
var centerContent = "\n " + (titlePosition === 'center' ? titleHtml : '') + "\n " + (subtitlePosition === 'center' ? subtitleHtml : '') + "\n ";
|
|
14185
14170
|
var bottomContent = "\n " + (titlePosition === 'bottom' ? titleHtml : '') + "\n " + (subtitlePosition === 'bottom' ? subtitleHtml : '') + "\n ";
|
|
14186
14171
|
if (layout === 'split') {
|
|
14187
|
-
var _background$
|
|
14188
|
-
var leftIsImage = ((_background$left = background.left) === null || _background$left === void 0 ? void 0 : _background$left.type) === 'image';
|
|
14172
|
+
var _background$right;
|
|
14189
14173
|
var rightIsImage = ((_background$right = background.right) === null || _background$right === void 0 ? void 0 : _background$right.type) === 'image';
|
|
14190
|
-
var
|
|
14191
|
-
var
|
|
14192
|
-
|
|
14193
|
-
if (leftIsImage) {
|
|
14194
|
-
outerSplitStyle = "background-image:url(" + escapeHtml(background.left.url) + ")";
|
|
14195
|
-
} else if (rightIsImage) {
|
|
14196
|
-
outerSplitStyle = "background-image:url(" + escapeHtml(background.right.url) + ")";
|
|
14197
|
-
} else if ((_background$right3 = background.right) !== null && _background$right3 !== void 0 && _background$right3.value) {
|
|
14198
|
-
outerSplitStyle = "background:" + escapeHtml(background.right.value);
|
|
14199
|
-
} else {
|
|
14200
|
-
outerSplitStyle = "background:" + escapeHtml(themeColors.background);
|
|
14201
|
-
}
|
|
14202
|
-
return html$L(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n <div class=\"slide split\" style=\"", "\">\n <!-- ensure theme background color sits behind split-inner as a reliable fallback -->\n <div\n class=\"slide-bg\"\n style=\"background-color:", "\"\n ></div>\n <div class=\"split-inner\">\n <div class=\"left-content\" style=\"", "\">\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 ", "\n </div>\n </div>\n "])), outerSplitStyle, escapeHtml(themeColors.background), leftBgStyle, topContent, centerContent, bottomContent, rightIsImage ? html$L(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["<div class=\"right-image\">\n <img src=\"", "\" alt=\"\" />\n </div>"])), escapeHtml(background.right.url)) : html$L(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["<div class=\"right-image\" style=\"", "\"></div>"])), rightBgStyle));
|
|
14174
|
+
var rightBgStyle = rightIsImage ? "background-image:url(" + escapeHtml(background.right.value) + ")" : "background:" + escapeHtml(background.right.value);
|
|
14175
|
+
var outerSplitStyle = "background:" + escapeHtml(themeColors.background);
|
|
14176
|
+
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);
|
|
14203
14177
|
}
|
|
14204
14178
|
var isImage = background.type === 'image';
|
|
14205
14179
|
var hasOverlay = isImage && background.overlay;
|
|
@@ -14211,10 +14185,10 @@ var coverHtml = function coverHtml(_ref) {
|
|
|
14211
14185
|
} else {
|
|
14212
14186
|
bgStyle = '';
|
|
14213
14187
|
}
|
|
14214
|
-
return html$L(
|
|
14188
|
+
return html$L(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\" style=\"", "\">\n ", "\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, isImage ? html$L(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["<img\n class=\"slide-bg\"\n src=\"", "\"\n />"])), escapeHtml(background.value || '')) : '', topContent, centerContent, bottomContent);
|
|
14215
14189
|
};
|
|
14216
14190
|
|
|
14217
|
-
var _templateObject$P, _templateObject2$q, _templateObject3$c, _templateObject4$2, _templateObject5$2, _templateObject6$
|
|
14191
|
+
var _templateObject$P, _templateObject2$q, _templateObject3$c, _templateObject4$2, _templateObject5$2, _templateObject6$1;
|
|
14218
14192
|
var html$M = String.raw;
|
|
14219
14193
|
var bulletHtml = function bulletHtml(_ref) {
|
|
14220
14194
|
var slide = _ref.slide,
|
|
@@ -14232,8 +14206,8 @@ var bulletHtml = function bulletHtml(_ref) {
|
|
|
14232
14206
|
var desc = (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14233
14207
|
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)) : '');
|
|
14234
14208
|
}).join('');
|
|
14235
|
-
var ulHtml = html$M(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["<ul\n class=\"bullets-ul\"\n style=\"display:flex;gap:24px;list-style:none;padding:0;
|
|
14236
|
-
return html$M(_templateObject6$
|
|
14209
|
+
var ulHtml = html$M(_templateObject5$2 || (_templateObject5$2 = _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);
|
|
14210
|
+
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);
|
|
14237
14211
|
};
|
|
14238
14212
|
|
|
14239
14213
|
var _templateObject$Q, _templateObject2$r;
|
|
@@ -14244,10 +14218,7 @@ var highlightTextHtml = function highlightTextHtml(_ref) {
|
|
|
14244
14218
|
var paragraphs = String(slide.text || '').split('\n').map(function (p) {
|
|
14245
14219
|
return "<p>" + escapeHtml(p) + "</p>";
|
|
14246
14220
|
}).join('');
|
|
14247
|
-
|
|
14248
|
-
var titleStyle = 'font-size:48px;margin:0 0 12px;text-align:center;';
|
|
14249
|
-
var textWrapStyle = 'margin-top:16px;font-size:20px;text-align:center;';
|
|
14250
|
-
return html$N(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\" style=\"", "\">\n <h1 class=\"title\" style=\"", "\">", "</h1>\n ", "\n </div>\n </div>\n "])), contentStyle, titleStyle, escapeHtml(slide.title), paragraphs ? html$N(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["<div class=\"text\" style=\"", "\">", "</div>"])), textWrapStyle, paragraphs) : '');
|
|
14221
|
+
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) : '');
|
|
14251
14222
|
};
|
|
14252
14223
|
|
|
14253
14224
|
var _templateObject$R, _templateObject2$s, _templateObject3$d, _templateObject4$3;
|
|
@@ -14294,7 +14265,7 @@ var processHtml = function processHtml(_ref) {
|
|
|
14294
14265
|
var desc = typeof item === 'string' ? item : (item === null || item === void 0 ? void 0 : item.description) || '';
|
|
14295
14266
|
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)) : '');
|
|
14296
14267
|
}).join('');
|
|
14297
|
-
return html$P(_templateObject5$3 || (_templateObject5$3 = _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;
|
|
14268
|
+
return html$P(_templateObject5$3 || (_templateObject5$3 = _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);
|
|
14298
14269
|
};
|
|
14299
14270
|
|
|
14300
14271
|
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5;
|
|
@@ -14346,7 +14317,7 @@ var presentationStyle = function presentationStyle(_ref) {
|
|
|
14346
14317
|
subtitle: '#111827',
|
|
14347
14318
|
text: '#111827'
|
|
14348
14319
|
} : _ref$theme;
|
|
14349
|
-
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
|
|
14320
|
+
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);
|
|
14350
14321
|
};
|
|
14351
14322
|
|
|
14352
14323
|
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$5;
|