@bookipi/htmlgenerator 1.4.1 → 1.4.3-alpha
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 +79 -45
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +79 -46
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9153,7 +9153,7 @@ var html = String.raw;
|
|
|
9153
9153
|
var invoiceStyle = function invoiceStyle(_ref) {
|
|
9154
9154
|
var isFromReactnative = _ref.isFromReactnative,
|
|
9155
9155
|
signItIntegration = _ref.signItIntegration;
|
|
9156
|
-
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 .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 border: 2px solid #f0f3f4;\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\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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\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: 21cm; */\n /*margin: 0; */\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 /* .invoice-body {\n padding:10;\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 }\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 margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\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-cal(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;" : "", 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 " : "");
|
|
9156
|
+
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 .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 border: 2px solid #f0f3f4;\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 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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\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: 21cm; */\n /*margin: 0; */\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 /* .invoice-body {\n padding:10;\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 }\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 margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\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-cal(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;" : "", 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 " : "");
|
|
9157
9157
|
};
|
|
9158
9158
|
|
|
9159
9159
|
var _templateObject$1, _templateObject2;
|
|
@@ -12101,6 +12101,25 @@ var InvoiceAttachments = function InvoiceAttachments(_ref) {
|
|
|
12101
12101
|
};
|
|
12102
12102
|
|
|
12103
12103
|
var _templateObject$g;
|
|
12104
|
+
var html$g = String.raw;
|
|
12105
|
+
var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
12106
|
+
var _ref$logoUrl = _ref.logoUrl,
|
|
12107
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi-brand-logo.png' : _ref$logoUrl,
|
|
12108
|
+
_ref$title = _ref.title,
|
|
12109
|
+
title = _ref$title === void 0 ? 'Generated by Bookipi' : _ref$title,
|
|
12110
|
+
_ref$cta = _ref.cta,
|
|
12111
|
+
cta = _ref$cta === void 0 ? {
|
|
12112
|
+
label: 'Download Bookipi App',
|
|
12113
|
+
url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
|
|
12114
|
+
} : _ref$cta,
|
|
12115
|
+
t = _ref.t;
|
|
12116
|
+
if (!title) {
|
|
12117
|
+
return '';
|
|
12118
|
+
}
|
|
12119
|
+
return html$g(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["<div style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;\">\n <div style=\"color:black;\">\n ", "\n ", "\n </div>\n ", "\n </div>"])), logoUrl ? "<img alt=\"brand logo\" style=\"max-height:40px;margin-right:8px;\" src=\"" + logoUrl + "\" />" : '', t ? t(title) : title, cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.url ? "<a class=\"btn-url\" href=\"" + cta.url + "\" style=\"color:#1C64F2;line-height:2;\" target=\"blank\">" + (t ? t(cta.label) : cta.label) + "</a>" : '');
|
|
12120
|
+
};
|
|
12121
|
+
|
|
12122
|
+
var _templateObject$h;
|
|
12104
12123
|
var htmlRaw = String.raw;
|
|
12105
12124
|
var invoiceHtmlWithDetails = (function (_ref) {
|
|
12106
12125
|
var invoice = _ref.invoice,
|
|
@@ -12126,6 +12145,8 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12126
12145
|
forceItemUnitPriceDecimal = _ref$forceItemUnitPri === void 0 ? undefined : _ref$forceItemUnitPri,
|
|
12127
12146
|
_ref$signItIntegratio = _ref.signItIntegration,
|
|
12128
12147
|
signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
|
|
12148
|
+
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12149
|
+
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12129
12150
|
t = _ref.t;
|
|
12130
12151
|
invoice = sanitize(invoice);
|
|
12131
12152
|
var defaultLang = {
|
|
@@ -12184,7 +12205,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12184
12205
|
timeZone: timeZone
|
|
12185
12206
|
});
|
|
12186
12207
|
};
|
|
12187
|
-
var html = htmlRaw(_templateObject$
|
|
12208
|
+
var html = htmlRaw(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n <div id=\"invoice\" class=\"print\">\n ", "\n ", "\n ", "\n ", "\n ", "\n <div class=\"invoice-body\">\n ", "\n ", "\n ", "\n </div>\n ", "\n </div>\n\n ", "\n "])), Head({
|
|
12188
12209
|
removeHtmlStandardDom: removeHtmlStandardDom,
|
|
12189
12210
|
isOffline: isOffline
|
|
12190
12211
|
}), invoiceStyle({
|
|
@@ -12235,7 +12256,9 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12235
12256
|
signItIntegration: signItIntegration
|
|
12236
12257
|
}), InvoiceAttachments({
|
|
12237
12258
|
attachments: attachments
|
|
12238
|
-
}),
|
|
12259
|
+
}), showFooterBrand ? BookipayBrandFooter({
|
|
12260
|
+
t: t
|
|
12261
|
+
}) : "", !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12239
12262
|
return {
|
|
12240
12263
|
html: html,
|
|
12241
12264
|
timeZone: timeZone,
|
|
@@ -12259,8 +12282,8 @@ var getBrightness = function getBrightness(rgb) {
|
|
|
12259
12282
|
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
12260
12283
|
};
|
|
12261
12284
|
|
|
12262
|
-
var _templateObject$
|
|
12263
|
-
var html$
|
|
12285
|
+
var _templateObject$i;
|
|
12286
|
+
var html$h = String.raw;
|
|
12264
12287
|
var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
12265
12288
|
var isFromReactnative = _ref.isFromReactnative,
|
|
12266
12289
|
signItIntegration = _ref.signItIntegration,
|
|
@@ -12286,11 +12309,11 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
|
12286
12309
|
var watermarkText = defaultLang["upgradeRequired"] || "Upgrade required";
|
|
12287
12310
|
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>";
|
|
12288
12311
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
12289
|
-
return html$g(_templateObject$h || (_templateObject$h = _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 -webkit-box-shadow: inset 0px 7px 0px 0px ", ";\n -moz-box-shadow: inset 0px 7px 0px 0px ", ";\n box-shadow: inset 0px 7px 0px 0px ", ";\n\n position: relative;\n z-index: 1;\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 font-size: ", ";\n font-weight: 600;\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 }\n\n .invoice-detail-right {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\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-content td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .item-name {\n font-weight: 500;\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-weight: 400;\n color: #4B5563;\n }\n\n .item-detail-cell {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .payment-instruction {\n margin-top: 0;\n font-size: 16px;\n font-weight: 600;\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.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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\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 }\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 margin-top:10px;\n max-width:28cm;\n border: 1px solid #E5E7EB;\n border-radius: 4px;\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-cal(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, color, color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === "#ffffff" ? "1px solid #E5E7EB;" : "none;", color === "#ffffff" ? "none" : color + "1A", heading2FontSize, bodyFontSize, subFontSize, bodyFontSize, color === "#ffffff" ? "#f3f4f6" : color, getHeaderTextColor(color), 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;" : "", 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 " : "");
|
|
12312
|
+
return html$h(_templateObject$i || (_templateObject$i = _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 -webkit-box-shadow: inset 0px 7px 0px 0px ", ";\n -moz-box-shadow: inset 0px 7px 0px 0px ", ";\n box-shadow: inset 0px 7px 0px 0px ", ";\n\n position: relative;\n z-index: 1;\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 font-size: ", ";\n font-weight: 600;\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 }\n\n .invoice-detail-right {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\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-content td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .item-name {\n font-weight: 500;\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-weight: 400;\n color: #4B5563;\n }\n\n .item-detail-cell {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .payment-instruction {\n margin-top: 0;\n font-size: 16px;\n font-weight: 600;\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.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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\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 }\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 margin-top:10px;\n max-width:22.5cm;\n border: 1px solid #E5E7EB;\n border-radius: 4px;\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-cal(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, color, color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === "#ffffff" ? "1px solid #E5E7EB;" : "none;", color === "#ffffff" ? "none" : color + "1A", heading2FontSize, bodyFontSize, subFontSize, bodyFontSize, color === "#ffffff" ? "#f3f4f6" : color, getHeaderTextColor(color), 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;" : "", 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 " : "");
|
|
12290
12313
|
};
|
|
12291
12314
|
|
|
12292
|
-
var _templateObject$
|
|
12293
|
-
var html$
|
|
12315
|
+
var _templateObject$j, _templateObject2$9;
|
|
12316
|
+
var html$i = String.raw;
|
|
12294
12317
|
var LogoContainer$1 = function LogoContainer(_ref) {
|
|
12295
12318
|
var _ref$company = _ref.company,
|
|
12296
12319
|
company = _ref$company === void 0 ? {} : _ref$company,
|
|
@@ -12298,15 +12321,15 @@ var LogoContainer$1 = function LogoContainer(_ref) {
|
|
|
12298
12321
|
logoBase64 = _ref.logoBase64;
|
|
12299
12322
|
var logoContainer = null;
|
|
12300
12323
|
if (logoPath || logoBase64) {
|
|
12301
|
-
logoContainer = html$
|
|
12324
|
+
logoContainer = html$i(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n id=\"invoice-logo\"\n class=\"img-fluid float-md-right mb-2 mb-md-0\"\n style=\"border-radius: 10px; width:", "px; height:auto;\"\n />"])), logoPath || logoBase64, company.ls * 2 || 200);
|
|
12302
12325
|
} else if (company.c) {
|
|
12303
|
-
logoContainer = html$
|
|
12326
|
+
logoContainer = html$i(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose([" <h1 class=\"float-md-right logo-text-alternative\">\n ", "\n </h1>"])), company.c);
|
|
12304
12327
|
}
|
|
12305
12328
|
return logoContainer;
|
|
12306
12329
|
};
|
|
12307
12330
|
|
|
12308
|
-
var _templateObject$
|
|
12309
|
-
var html$
|
|
12331
|
+
var _templateObject$k;
|
|
12332
|
+
var html$j = String.raw;
|
|
12310
12333
|
var InvoiceCompany$1 = function InvoiceCompany(_ref) {
|
|
12311
12334
|
var _invoice$document;
|
|
12312
12335
|
var company = _ref.company,
|
|
@@ -12333,27 +12356,27 @@ var InvoiceCompany$1 = function InvoiceCompany(_ref) {
|
|
|
12333
12356
|
t: t
|
|
12334
12357
|
});
|
|
12335
12358
|
var companyAddress = getCompanyAddress(company);
|
|
12336
|
-
return html$
|
|
12359
|
+
return html$j(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose([" <!-- begin invoice-company -->\n <div class=\"invoice-body\">\n <div class=\"row\">\n <div\n class=\"logo-wrapper col-sm-12 col-md-6 order-sm-1 order-md-2\"\n style=\"padding-top:10px\"\n >\n ", "\n </div>\n <div\n class=\"document-name-wrapper col-sm-12 col-md-6 order-sm-2 order-md-1\"\n >\n <h1 class=\"document-name\">", "</h1>\n <div class=\"company-name text-inverse\" style=\"\">\n <span>", "</span>\n </div>\n <address class=\"company-address\">\n <div>\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n ", "\n ", "\n ", "\n ", "\n </address>\n </div>\n </div>\n </div>\n <!-- end invoice-company -->"])), LogoContainer$1({
|
|
12337
12360
|
company: company,
|
|
12338
12361
|
logoPath: logoPath,
|
|
12339
12362
|
logoBase64: logoBase64
|
|
12340
12363
|
}), documentName, company.c, companyAddress.address1 ? "<div>" + companyAddress.address1 + "</div>" : "", companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : "", companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : "", companyAddress.city || companyAddress.state || companyAddress.zip ? "<div>" + ((companyAddress.city ? companyAddress.city + " " : "") + (companyAddress.state ? companyAddress.state + " " : "") + (companyAddress.zip ? companyAddress.zip + " " : "")) + "</div>" : "", companyAddress.country ? "<div>" + companyAddress.country + "</div>" : "", company.ai ? "<div>" + company.ai + "</div>" : "", company.ph ? "<div>" + company.ph + "</div>" : "", company.de ? "<div>" + company.de + "</div>" : "", company.tfn ? "<div>" + ((company.bn ? company.bn : "Tax no.") + " : " + company.tfn) + "</div>" : "");
|
|
12341
12364
|
};
|
|
12342
12365
|
|
|
12343
|
-
var _templateObject$
|
|
12344
|
-
var html$
|
|
12366
|
+
var _templateObject$l, _templateObject2$a, _templateObject3$4;
|
|
12367
|
+
var html$k = String.raw;
|
|
12345
12368
|
var Head$1 = function Head(_ref) {
|
|
12346
12369
|
var isOffline = _ref.isOffline,
|
|
12347
12370
|
removeHtmlStandardDom = _ref.removeHtmlStandardDom;
|
|
12348
|
-
var stylesheet = isOffline ? html$
|
|
12371
|
+
var stylesheet = isOffline ? html$k(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["<style>\n ", "</style\n ><style>\n ", "\n </style>\n <link\n href=\"https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+TC:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif+TC:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap\"\n rel=\"stylesheet\"\n /> "])), bootstrapCss, fontawesomeCss) : html$k(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["<link\n rel=\"stylesheet\"\n href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\"\n integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\"\n crossorigin=\"anonymous\"\n />\n <link\n href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+TC:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif+TC:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap\"\n rel=\"stylesheet\"\n /> "])));
|
|
12349
12372
|
if (removeHtmlStandardDom) {
|
|
12350
12373
|
return stylesheet;
|
|
12351
12374
|
}
|
|
12352
|
-
return html$
|
|
12375
|
+
return html$k(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["<!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"utf-8\" />\n <title>Invoice</title>\n ", "\n </head>\n </html>"])), stylesheet);
|
|
12353
12376
|
};
|
|
12354
12377
|
|
|
12355
|
-
var _templateObject$
|
|
12356
|
-
var html$
|
|
12378
|
+
var _templateObject$m;
|
|
12379
|
+
var html$l = String.raw;
|
|
12357
12380
|
var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
12358
12381
|
var company = _ref.company,
|
|
12359
12382
|
defaultLang = _ref.defaultLang,
|
|
@@ -12381,12 +12404,12 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12381
12404
|
timeZone: timeZone
|
|
12382
12405
|
});
|
|
12383
12406
|
};
|
|
12384
|
-
return html$
|
|
12407
|
+
return html$l(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"col-12\">\n <span class=\"heading\"\n >", "</span\n >\n </div>\n </div>\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <div class=\"text-inverse customer-name\">\n ", "\n </div>\n <address class=\"address-text\" style=\"margin-bottom: 12px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </address>\n\n ", "\n ", "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">", " #</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\"\n >", "</span\n >\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n ", "\n </div>\n </div>\n ", "\n ", "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), company.r_bt ? company.r_bt : defaultLang["bill_to"], customer ? customer.c : "", customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : "", customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : "", customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : "", customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + " " : "") + (customerAddress.state ? customerAddress.state + " " : "") + (customerAddress.zip ? customerAddress.zip + " " : "")) + "</div>" : "", customerAddress.country ? "<div>" + customerAddress.country + "</div>" : "", customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || "Tax no.") + " : " + customer.tfn : "") + "</div>" : "", customer && customer.e ? "<div>" + customer.e + "</div>" : "", customer && customer.ph ? "<div>" + customer.ph + "</div>" : "", customer && customer.ai ? "<div>" + customer.ai + "</div>" : "", shippingAddressExists ? "<span class=\"heading\" >" + (company.r_st ? company.r_st : defaultLang.ship_to) + "</span>" : "", shippingAddressExists ? "\n <address class=\"address-text\" style=\"margin-bottom: 8px;\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : "") + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : "") + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : "") + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + " " : "") + (customerShippingAddress.state ? customerShippingAddress.state + " " : "") + (customerShippingAddress.zip ? customerShippingAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : "") + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : "") + "\n </address>\n " : "", documentName, document.no ? document.no : "", document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">Proposal #</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + document.proposal.no + "\n </div>\n </div>" : "", company.r_d ? company.r_d : defaultLang["date"], formatDate(document.d), document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <span class=\"label\">" + (company.r_dd ? company.r_dd : defaultLang["due_date"]) + "</span>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : "", document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : defaultLang["po_number"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : "");
|
|
12385
12408
|
};
|
|
12386
12409
|
|
|
12387
|
-
var _templateObject$
|
|
12410
|
+
var _templateObject$n, _templateObject2$b, _templateObject3$5;
|
|
12388
12411
|
var FormatCurrency$5 = util.FormatCurrency;
|
|
12389
|
-
var html$
|
|
12412
|
+
var html$m = String.raw;
|
|
12390
12413
|
var ItemsContainer$1 = function ItemsContainer(_ref) {
|
|
12391
12414
|
var company = _ref.company,
|
|
12392
12415
|
discountOnItem = _ref.discountOnItem,
|
|
@@ -12401,20 +12424,20 @@ var ItemsContainer$1 = function ItemsContainer(_ref) {
|
|
|
12401
12424
|
var _item$photos;
|
|
12402
12425
|
var item = _step.value;
|
|
12403
12426
|
var photoUrl = (_item$photos = item.photos) !== null && _item$photos !== void 0 && _item$photos[0] ? item.photos[0].url || "https://s3.amazonaws.com/bookipi/" + company._id + "/item/images/" + item.photos[0].filename + ".jpg" : "";
|
|
12404
|
-
itemsContainer = itemsContainer + html$
|
|
12427
|
+
itemsContainer = itemsContainer + html$m(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["<tr>\n <td>\n ", "\n <div style=\"display: inline-block\">\n <span class=\"text-inverse\"\n ><span class=\"item-name\">", "</span></span\n >\n ", "\n <div class=\"item-description mt-2\">", "</div>\n <div class=\"d-block d-md-none mt-1\">\n ", "\n ", "\n </div>\n </div>\n </td>\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n ", "\n </td>\n <td class=\"item-detail-cell text-right d-none d-md-table-cell\">\n ", "\n </td>\n ", "\n <td class=\"item-detail-cell t text-right\" style=\"font-weight: 600;\">\n ", "\n </td>\n </tr>"])), photoUrl ? "<img style=\"width:56px;height:56px;display:inline-block;margin-right:12px;border-radius:4px;vertical-align:top;\" src=\"" + photoUrl + "\" />" : "", item.n || "", item.productCode ? html$m(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["<div class=\"item-productcode text-inverse\">\n ", "\n </div>"])), item.productCode) : "", nl2br(item.dsc) || "", (item.p || item.p == 0) && (item.q || item.q == 0) ? FormatCurrency$5(item.p, company.cr, company.la, company.cf, {
|
|
12405
12428
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12406
12429
|
}) + " ✕ " + (item.q || "0") : "", discountOnItem && (item.p || item.p == 0) && item.dc ? "" + (item.dc > 0 ? " - " : " + ") + FormatCurrency$5(Math.abs(item.dc), company.cr, company.la, company.cf, {
|
|
12407
12430
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12408
12431
|
}) + " (" + (company.r_dc ? company.r_dc : defaultLang.discount) + ")" : "", (item.p || item.p == 0) && (item.q || item.q == 0) ? item.q : "", item.p || item.p == 0 ? FormatCurrency$5(item.p, company.cr, company.la, company.cf, {
|
|
12409
12432
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12410
|
-
}) : "", discountOnItem ? html$
|
|
12433
|
+
}) : "", discountOnItem ? html$m(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["<td class=\"item-detail-cell text-right d-none d-md-table-cell\">\n ", "\n </td>"])), (item.p || item.p == 0) && item.dc ? FormatCurrency$5(item.dc, company.cr, company.la, company.cf) : "") : "", item.p || item.p == 0 ? FormatCurrency$5(item.t, company.cr, company.la, company.cf) : "");
|
|
12411
12434
|
}
|
|
12412
12435
|
return itemsContainer;
|
|
12413
12436
|
};
|
|
12414
12437
|
|
|
12415
|
-
var _templateObject$
|
|
12438
|
+
var _templateObject$o;
|
|
12416
12439
|
var FormatCurrency$6 = util.FormatCurrency;
|
|
12417
|
-
var html$
|
|
12440
|
+
var html$n = String.raw;
|
|
12418
12441
|
var paymentOnDetails$1 = function paymentOnDetails(date, brand, endNumber) {
|
|
12419
12442
|
brand = formatCardBrand(brand);
|
|
12420
12443
|
if (brand && endNumber) {
|
|
@@ -12445,15 +12468,15 @@ var PaymentContainer$1 = function PaymentContainer(_ref) {
|
|
|
12445
12468
|
if (document.pm) {
|
|
12446
12469
|
for (var _iterator = _createForOfIteratorHelperLoose(document.pm), _step; !(_step = _iterator()).done;) {
|
|
12447
12470
|
var payment = _step.value;
|
|
12448
|
-
paymentContainer = paymentContainer + html$
|
|
12471
|
+
paymentContainer = paymentContainer + html$n(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["<tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">\n ", "\n </td>\n <td\n class=\"text-right\"\n width=\"22%\"\n style=\"border-top: 1px solid #E5E7EB\"\n >\n ", "\n </td>\n </tr>"])), paymentOn(payment), FormatCurrency$6(payment.a, company.cr, company.la, company.cf));
|
|
12449
12472
|
}
|
|
12450
12473
|
}
|
|
12451
12474
|
return paymentContainer;
|
|
12452
12475
|
};
|
|
12453
12476
|
|
|
12454
|
-
var _templateObject$
|
|
12477
|
+
var _templateObject$p;
|
|
12455
12478
|
var FormatCurrency$7 = util.FormatCurrency;
|
|
12456
|
-
var html$
|
|
12479
|
+
var html$o = String.raw;
|
|
12457
12480
|
var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
12458
12481
|
var company = _ref.company,
|
|
12459
12482
|
defaultLang = _ref.defaultLang,
|
|
@@ -12501,12 +12524,12 @@ var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
|
12501
12524
|
});
|
|
12502
12525
|
var paymentOn = company.pi && document.ty === 1 && (company.p1 || company.p2 || company.p3);
|
|
12503
12526
|
var paymentInstructionDetails = "\n " + (paymentOn ? "<h2 class=\"payment-instruction\">" + (company.r_pi ? company.r_pi : defaultLang["payment_instruction"]) + "</h2>" : "") + "\n " + (paymentOn && company.p1 ? company.p1 + "<br>" : "") + "\n " + (paymentOn && company.p2 ? company.p2 + "<br>" : "") + "\n " + (paymentOn && company.p3 ? company.p3 + "<br>" : "") + "\n ";
|
|
12504
|
-
return html$
|
|
12527
|
+
return html$o(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["<!-- begin invoice-content -->\n <div class=\"invoice-content\">\n <div class=\"table-responsive\">\n <table\n class=\"table table-borderless table-invoice\"\n style=\"margin-bottom: 40px;\"\n >\n <thead class=\"invoice-table-header\">\n <tr class=\"table table-invoice\">\n <th\n class=\"text-left\"\n style=\"border-top-left-radius: 8px; border-bottom-left-radius: 8px;\"\n ", "\n >\n ", "\n </th>\n <th\n class=\"text-center d-none d-md-table-cell\"\n ", "\n >\n ", "\n </th>\n <th\n class=\"text-right d-none d-md-table-cell\"\n ", "\n >\n ", "\n </th>\n ", "\n <th\n class=\"text-right item-last\"\n style=\"border-top-right-radius: 8px; border-bottom-right-radius: 8px;\"\n ", "\n >\n ", "\n </th>\n </tr>\n </thead>\n <tbody>\n ", "\n </tbody>\n </table>\n </div>\n <div class=\"row\">\n <div class=\"col-12\">\n <table class=\"price-table table table-borderless table-small\">\n <tbody>\n <tr>\n <td\n class=\"d-none d-md-table-cell\"\n rowspan=\"", "\"\n >\n ", "\n </td>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">\n ", "\n </td>\n <td\n class=\"text-right\"\n width=\"22%\"\n style=\"border-top: 1px solid #E5E7EB\"\n >\n ", "\n </td>\n </tr>\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n </tbody>\n </table>\n </div>\n </div>\n\n <!-- end invoice-content -->\n </div>"])), itemWidth[0] ? "width='" + itemWidth[0] + "'" : "", company.r_it ? company.r_it : defaultLang["item"], itemWidth[1] ? "width='" + itemWidth[1] + "'" : "", document.um ? document.um : company.r_q ? company.r_q : defaultLang["quantity"], itemWidth[2] ? "width='" + itemWidth[2] + "'" : "", company.r_p ? company.r_p : defaultLang["price"], discountOnItem ? "<th class=\"text-right d-none d-md-table-cell\" " + (itemWidth[3] ? "width='" + itemWidth[3] + "'" : "") + ">" + (company.r_dc ? company.r_dc : defaultLang["discount"]) + "</th>" : "", itemWidth[4] ? "width='" + itemWidth[4] + "'" : "", company.r_a ? company.r_a : defaultLang["amount"], itemsContainer, numOfRowsPaymentInstruction, paymentOn ? paymentInstructionDetails : "", company.r_sb ? company.r_sb : defaultLang["subtotal"], FormatCurrency$7(document.st, company.cr, company.la, company.cf), document.dc ? "<tr>\n <td width=\"22%\">" + ((company.r_dc ? company.r_dc : defaultLang["discount"]) + (document.dcpo && document.dcp ? " (" + document.dcp + "%)" : "")) + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("(" + FormatCurrency$7(document.dc, company.cr, company.la, company.cf) + ")") + "</td>\n </tr>" : "", document.sp && !document.sntx ? "<tr>\n <td width=\"22%\">" + (company.r_sp ? company.r_sp : defaultLang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.tx != 0 ? "<tr>\n <td width=\"22%\">" + (taxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t1d ? "(" : "") + FormatCurrency$7(document.tx, company.cr, company.la, company.cf) + (document.t1d ? ")" : "")) + "</td>\n </tr>" : "", document.ttx && document.tx2 != 0 ? "<tr>\n <td width=\"22%\">" + (taxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t2d ? "(" : "") + FormatCurrency$7(document.tx2, company.cr, company.la, company.cf) + (document.t2d ? ")" : "")) + "</td>\n </tr>" : "", document.sp && document.sntx ? "<tr>\n <td width=\"22%\">" + (company.r_sp ? company.r_sp : defaultLang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.ti && !document.t1d && !document.t2d ? "<tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + (company.r_n ? company.r_n : defaultLang["net"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + FormatCurrency$7(document.tt - (document.tx || 0) - (document.tx2 || 0), company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? "<tr>\n <td width=\"22%\">" + (company.r_tt ? company.r_tt : defaultLang["total"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(document.tt ? document.tt : 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.sca ? "<tr>\n <td width=\"22%\">" + defaultLang["credit_card_surcharge"] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$7(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.hangingAmount && document.hangingAmount > 0 ? "<tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + (company.payment_in_progress ? company.payment_in_progress : defaultLang.payment_in_progress) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + FormatCurrency$7(document.hangingAmount || 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "", document.ty == 1 && document.pma && document.pm ? paymentContainer : "", document.ty == 1 && isDeposit && document.depositAmount > 0 ? "\n <tr>\n <td width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + (document.ty == 1 ? company.r_ad ? company.r_ad : defaultLang["amount_due"] : company.r_gt ? company.r_gt : defaultLang["grand_total"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #E5E7EB\">" + FormatCurrency$7(document.ad - (document.hangingAmount || 0), company.cr, company.la, company.cf) + "</td>\n </tr>" : "");
|
|
12505
12528
|
};
|
|
12506
12529
|
|
|
12507
|
-
var _templateObject$
|
|
12530
|
+
var _templateObject$q;
|
|
12508
12531
|
var FormatCurrency$8 = util.FormatCurrency;
|
|
12509
|
-
var html$
|
|
12532
|
+
var html$p = String.raw;
|
|
12510
12533
|
var InvoicePrice$1 = function InvoicePrice(_ref) {
|
|
12511
12534
|
var bookipayLink = _ref.bookipayLink,
|
|
12512
12535
|
company = _ref.company,
|
|
@@ -12530,11 +12553,11 @@ var InvoicePrice$1 = function InvoicePrice(_ref) {
|
|
|
12530
12553
|
surcharge: surcharge,
|
|
12531
12554
|
defaultLang: defaultLang
|
|
12532
12555
|
});
|
|
12533
|
-
return html$
|
|
12556
|
+
return html$p(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n <!-- begin invoice-price -->\n <table\n class=\"table table-borderless table-small invoice-price page-not-break\"\n style=\"margin-bottom: 40px;\"\n >\n <tbody>\n <tr>\n <td class=\"d-none d-md-table-cell invoice-price-left text-right\">\n <!-- begin bookipay payment -->\n <div class=\"d-none d-md-block\">", "</div>\n <!-- end bookipay payment -->\n </td>\n <td width=\"22%\" class=\"invoice-price-right\">\n <span class=\"price-title\"\n >", "\n ", "</span\n >\n <span class=\"price-amount\"\n >", "</span\n >\n </td>\n </tr>\n </tbody>\n </table>\n <!-- end invoice-price -->\n "])), bookipayLinkComponent, document.ty == 1 && isDeposit && document.depositAmount > 0 ? company.r_deposit_due ? company.r_deposit_due : defaultLang["deposit_due"] : document.ty == 1 ? company.r_ad ? company.r_ad : defaultLang["amount_due"] : company.r_gt ? company.r_gt : defaultLang["grand_total"], document.ty == 1 && isDeposit && document.depositAmount > 0 && document.depositDue !== null ? "| " + formatDate(document.depositDue) : "", document.ty == 1 && isDeposit && document.depositAmount > 0 ? FormatCurrency$8(document.depositAmount, company.cr, company.la, company.cf) : FormatCurrency$8(document.ad - (document.hangingAmount || 0), company.cr, company.la, company.cf));
|
|
12534
12557
|
};
|
|
12535
12558
|
|
|
12536
|
-
var _templateObject$
|
|
12537
|
-
var html$
|
|
12559
|
+
var _templateObject$r, _templateObject2$c, _templateObject3$6;
|
|
12560
|
+
var html$q = String.raw;
|
|
12538
12561
|
var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
12539
12562
|
var customer = _ref.customer,
|
|
12540
12563
|
customerSignBase64 = _ref.customerSignBase64,
|
|
@@ -12542,22 +12565,22 @@ var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
|
12542
12565
|
formatDate = _ref.formatDate,
|
|
12543
12566
|
signItIntegration = _ref.signItIntegration;
|
|
12544
12567
|
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return "";
|
|
12545
|
-
return html$
|
|
12568
|
+
return html$q(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([" <div class=\"col-6\" style=\"text-align: center\">\n <strong class=\"signature-name\">", "</strong>\n <div\n id=\"client_signature_parent\"\n style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\"\n >\n ", "\n </div>\n <div id=\"client_date_signature\" class=\"signature-date\">\n ", "\n </div>\n </div>"])), customer ? customer.c : "", customerSignBase64 ? html$q(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), customerSignBase64) : '<div id="signature_link"></div>', customerSignBase64 ? formatDate(new Date()) : signItIntegration ? html$q(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : "(   /  /  )");
|
|
12546
12569
|
};
|
|
12547
12570
|
|
|
12548
|
-
var _templateObject$
|
|
12549
|
-
var html$
|
|
12571
|
+
var _templateObject$s, _templateObject2$d;
|
|
12572
|
+
var html$r = String.raw;
|
|
12550
12573
|
var SignatureContainer$1 = function SignatureContainer(_ref) {
|
|
12551
12574
|
var company = _ref.company,
|
|
12552
12575
|
document = _ref.document,
|
|
12553
12576
|
formatDate = _ref.formatDate,
|
|
12554
12577
|
signatureBase64 = _ref.signatureBase64;
|
|
12555
12578
|
if (!(document !== null && document !== void 0 && document.sd)) return "";
|
|
12556
|
-
return html$
|
|
12579
|
+
return html$r(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose([" <div class=\"col-6\" style=\"text-align: center\">\n <strong class=\"signature-name\">", "</strong>\n <div\n style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\"\n >\n ", "\n </div>\n <div class=\"signature-date\">\n ", "\n </div>\n </div>"])), company ? company.c : "", signatureBase64 ? html$r(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), signatureBase64) : "", document.sd ? formatDate(document.sd) : "");
|
|
12557
12580
|
};
|
|
12558
12581
|
|
|
12559
|
-
var _templateObject$
|
|
12560
|
-
var html$
|
|
12582
|
+
var _templateObject$t;
|
|
12583
|
+
var html$s = String.raw;
|
|
12561
12584
|
var InvoiceSignature$1 = function InvoiceSignature(_ref) {
|
|
12562
12585
|
var company = _ref.company,
|
|
12563
12586
|
document = _ref.document,
|
|
@@ -12589,10 +12612,10 @@ var InvoiceSignature$1 = function InvoiceSignature(_ref) {
|
|
|
12589
12612
|
formatDate: formatDate,
|
|
12590
12613
|
signItIntegration: signItIntegration
|
|
12591
12614
|
});
|
|
12592
|
-
return html$
|
|
12615
|
+
return html$s(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["<!-- begin invoice-signature -->\n <div class=\"seperate-line\"></div>\n <div>", "</div>\n <div class=\"row mt-1\">\n ", " ", "\n </div>\n <!-- end invoice-signature -->"])), company.r_bs || defaultLang["by_signing"] || "", signatureContainer || "", clientSignature || "");
|
|
12593
12616
|
};
|
|
12594
12617
|
|
|
12595
|
-
var _templateObject$
|
|
12618
|
+
var _templateObject$u;
|
|
12596
12619
|
var htmlRaw$1 = String.raw;
|
|
12597
12620
|
var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
12598
12621
|
var invoice = _ref.invoice,
|
|
@@ -12618,6 +12641,8 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12618
12641
|
forceItemUnitPriceDecimal = _ref$forceItemUnitPri === void 0 ? undefined : _ref$forceItemUnitPri,
|
|
12619
12642
|
_ref$signItIntegratio = _ref.signItIntegration,
|
|
12620
12643
|
signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
|
|
12644
|
+
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12645
|
+
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12621
12646
|
t = _ref.t,
|
|
12622
12647
|
_ref$showWatermark = _ref.showWatermark,
|
|
12623
12648
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
@@ -12682,7 +12707,7 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12682
12707
|
var fontName = document.customization ? document.customization.font.name : "normal";
|
|
12683
12708
|
var fontSize = document.customization ? document.customization.font.size : "medium";
|
|
12684
12709
|
var color = document.customization ? document.customization.color : "#ffffff";
|
|
12685
|
-
var html = htmlRaw$1(_templateObject$
|
|
12710
|
+
var html = htmlRaw$1(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n <div id=\"invoice\" class=\"print\">\n ", "\n ", "\n ", "\n ", "\n ", "\n <div class=\"note-and-sign invoice-body\">\n ", "\n ", "\n ", "\n </div>\n ", "\n </div>\n\n ", "\n "])), Head$1({
|
|
12686
12711
|
removeHtmlStandardDom: removeHtmlStandardDom,
|
|
12687
12712
|
isOffline: isOffline
|
|
12688
12713
|
}), invoiceStyle$1({
|
|
@@ -12738,7 +12763,9 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12738
12763
|
signItIntegration: signItIntegration
|
|
12739
12764
|
}), InvoiceAttachments({
|
|
12740
12765
|
attachments: attachments
|
|
12741
|
-
}),
|
|
12766
|
+
}), showFooterBrand ? BookipayBrandFooter({
|
|
12767
|
+
t: t
|
|
12768
|
+
}) : "", !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12742
12769
|
return {
|
|
12743
12770
|
html: html,
|
|
12744
12771
|
timeZone: timeZone,
|
|
@@ -12775,6 +12802,8 @@ var invoiceHtml = (function (_ref) {
|
|
|
12775
12802
|
t = _ref.t,
|
|
12776
12803
|
_ref$isNewLayout = _ref.isNewLayout,
|
|
12777
12804
|
isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
|
|
12805
|
+
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12806
|
+
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12778
12807
|
_ref$showWatermark = _ref.showWatermark,
|
|
12779
12808
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
12780
12809
|
var renderInvoice = isNewLayout ? invoiceHtmlWithDetailsNew : invoiceHtmlWithDetails;
|
|
@@ -12791,6 +12820,7 @@ var invoiceHtml = (function (_ref) {
|
|
|
12791
12820
|
hidePayBtnInScreen: hidePayBtnInScreen,
|
|
12792
12821
|
itemWidth: itemWidth,
|
|
12793
12822
|
forceItemUnitPriceDecimal: forceItemUnitPriceDecimal,
|
|
12823
|
+
showFooterBrand: showFooterBrand,
|
|
12794
12824
|
signItIntegration: signItIntegration,
|
|
12795
12825
|
t: t,
|
|
12796
12826
|
showWatermark: showWatermark
|
|
@@ -12966,6 +12996,8 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
|
|
|
12966
12996
|
t = _ref.t,
|
|
12967
12997
|
_ref$isNewLayout = _ref.isNewLayout,
|
|
12968
12998
|
isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
|
|
12999
|
+
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
13000
|
+
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12969
13001
|
_ref$showWatermark = _ref.showWatermark,
|
|
12970
13002
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
12971
13003
|
return invoiceHtml({
|
|
@@ -12982,6 +13014,7 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
|
|
|
12982
13014
|
hidePayBtnInScreen: hidePayBtnInScreen,
|
|
12983
13015
|
t: t,
|
|
12984
13016
|
isNewLayout: isNewLayout,
|
|
13017
|
+
showFooterBrand: showFooterBrand,
|
|
12985
13018
|
showWatermark: showWatermark
|
|
12986
13019
|
});
|
|
12987
13020
|
};
|
|
@@ -13472,5 +13505,5 @@ var subscriptionInvoiceHtml = (function (_ref) {
|
|
|
13472
13505
|
};
|
|
13473
13506
|
});
|
|
13474
13507
|
|
|
13475
|
-
export { contractHtml as ContractHtml, InvoiceCompatHtml, invoiceHtml as InvoiceHtml, subscriptionInvoiceHtml as SubscriptionInvoiceHtml, invoiceHtmlWithDetails };
|
|
13508
|
+
export { contractHtml as ContractHtml, InvoiceCompatHtml, invoiceHtml as InvoiceHtml, subscriptionInvoiceHtml as SubscriptionInvoiceHtml, invoiceHtmlWithDetails, invoiceHtmlWithDetailsNew };
|
|
13476
13509
|
//# sourceMappingURL=index.modern.js.map
|