@bookipi/htmlgenerator 1.4.3-alpha2 → 1.4.3
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 +47 -79
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +47 -79
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -220,6 +220,7 @@ var en = (_deposit_due$terms$pr = {
|
|
|
220
220
|
credit_card_surcharge: "Credit Card Surcharge",
|
|
221
221
|
click_to_pay: "Please click the following link if you would like to pay with a credit card.",
|
|
222
222
|
imposing_surcharge_available: "Imposing surcharge to your customers available",
|
|
223
|
+
pay_online_now: "PAY ONLINE NOW",
|
|
223
224
|
surcharge_rate: "Surcharge Rate",
|
|
224
225
|
surcharge: "Surcharge",
|
|
225
226
|
see_transaction_fees: "See available countries and fees",
|
|
@@ -9153,7 +9154,7 @@ var html = String.raw;
|
|
|
9153
9154
|
var invoiceStyle = function invoiceStyle(_ref) {
|
|
9154
9155
|
var isFromReactnative = _ref.isFromReactnative,
|
|
9155
9156
|
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
|
|
9157
|
+
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 " : "");
|
|
9157
9158
|
};
|
|
9158
9159
|
|
|
9159
9160
|
var _templateObject$1, _templateObject2;
|
|
@@ -12101,25 +12102,6 @@ var InvoiceAttachments = function InvoiceAttachments(_ref) {
|
|
|
12101
12102
|
};
|
|
12102
12103
|
|
|
12103
12104
|
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;flex:1;\">\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;
|
|
12123
12105
|
var htmlRaw = String.raw;
|
|
12124
12106
|
var invoiceHtmlWithDetails = (function (_ref) {
|
|
12125
12107
|
var invoice = _ref.invoice,
|
|
@@ -12145,8 +12127,6 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12145
12127
|
forceItemUnitPriceDecimal = _ref$forceItemUnitPri === void 0 ? undefined : _ref$forceItemUnitPri,
|
|
12146
12128
|
_ref$signItIntegratio = _ref.signItIntegration,
|
|
12147
12129
|
signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
|
|
12148
|
-
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12149
|
-
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12150
12130
|
t = _ref.t;
|
|
12151
12131
|
invoice = sanitize(invoice);
|
|
12152
12132
|
var defaultLang = {
|
|
@@ -12205,7 +12185,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12205
12185
|
timeZone: timeZone
|
|
12206
12186
|
});
|
|
12207
12187
|
};
|
|
12208
|
-
var html = htmlRaw(_templateObject$
|
|
12188
|
+
var html = htmlRaw(_templateObject$g || (_templateObject$g = _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 </div>\n\n ", "\n "])), Head({
|
|
12209
12189
|
removeHtmlStandardDom: removeHtmlStandardDom,
|
|
12210
12190
|
isOffline: isOffline
|
|
12211
12191
|
}), invoiceStyle({
|
|
@@ -12256,9 +12236,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
12256
12236
|
signItIntegration: signItIntegration
|
|
12257
12237
|
}), InvoiceAttachments({
|
|
12258
12238
|
attachments: attachments
|
|
12259
|
-
}),
|
|
12260
|
-
t: t
|
|
12261
|
-
}) : "", !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12239
|
+
}), !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12262
12240
|
return {
|
|
12263
12241
|
html: html,
|
|
12264
12242
|
timeZone: timeZone,
|
|
@@ -12282,8 +12260,8 @@ var getBrightness = function getBrightness(rgb) {
|
|
|
12282
12260
|
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
12283
12261
|
};
|
|
12284
12262
|
|
|
12285
|
-
var _templateObject$
|
|
12286
|
-
var html$
|
|
12263
|
+
var _templateObject$h;
|
|
12264
|
+
var html$g = String.raw;
|
|
12287
12265
|
var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
12288
12266
|
var isFromReactnative = _ref.isFromReactnative,
|
|
12289
12267
|
signItIntegration = _ref.signItIntegration,
|
|
@@ -12300,7 +12278,7 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
|
12300
12278
|
var bodyFontSize = fontSize === "medium" ? "14px" : "16px";
|
|
12301
12279
|
var heading2FontSize = fontSize === "medium" ? "20px" : "24px";
|
|
12302
12280
|
var headingFontSize = fontSize === "medium" ? "24px" : "36px";
|
|
12303
|
-
var titleFontSize = fontSize === "medium" ? "36px" : "
|
|
12281
|
+
var titleFontSize = fontSize === "medium" ? "36px" : "48px";
|
|
12304
12282
|
function getHeaderTextColor(hexColor) {
|
|
12305
12283
|
var rgb = hexToRGB(hexColor);
|
|
12306
12284
|
var brightness = getBrightness(rgb);
|
|
@@ -12309,11 +12287,11 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
|
12309
12287
|
var watermarkText = defaultLang["upgradeRequired"] || "Upgrade required";
|
|
12310
12288
|
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>";
|
|
12311
12289
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
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
|
+
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: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 " : "");
|
|
12313
12291
|
};
|
|
12314
12292
|
|
|
12315
|
-
var _templateObject$
|
|
12316
|
-
var html$
|
|
12293
|
+
var _templateObject$i, _templateObject2$9;
|
|
12294
|
+
var html$h = String.raw;
|
|
12317
12295
|
var LogoContainer$1 = function LogoContainer(_ref) {
|
|
12318
12296
|
var _ref$company = _ref.company,
|
|
12319
12297
|
company = _ref$company === void 0 ? {} : _ref$company,
|
|
@@ -12321,15 +12299,15 @@ var LogoContainer$1 = function LogoContainer(_ref) {
|
|
|
12321
12299
|
logoBase64 = _ref.logoBase64;
|
|
12322
12300
|
var logoContainer = null;
|
|
12323
12301
|
if (logoPath || logoBase64) {
|
|
12324
|
-
logoContainer = html$
|
|
12302
|
+
logoContainer = html$h(_templateObject$i || (_templateObject$i = _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);
|
|
12325
12303
|
} else if (company.c) {
|
|
12326
|
-
logoContainer = html$
|
|
12304
|
+
logoContainer = html$h(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose([" <h1 class=\"float-md-right logo-text-alternative\">\n ", "\n </h1>"])), company.c);
|
|
12327
12305
|
}
|
|
12328
12306
|
return logoContainer;
|
|
12329
12307
|
};
|
|
12330
12308
|
|
|
12331
|
-
var _templateObject$
|
|
12332
|
-
var html$
|
|
12309
|
+
var _templateObject$j;
|
|
12310
|
+
var html$i = String.raw;
|
|
12333
12311
|
var InvoiceCompany$1 = function InvoiceCompany(_ref) {
|
|
12334
12312
|
var _invoice$document;
|
|
12335
12313
|
var company = _ref.company,
|
|
@@ -12356,27 +12334,27 @@ var InvoiceCompany$1 = function InvoiceCompany(_ref) {
|
|
|
12356
12334
|
t: t
|
|
12357
12335
|
});
|
|
12358
12336
|
var companyAddress = getCompanyAddress(company);
|
|
12359
|
-
return html$
|
|
12337
|
+
return html$i(_templateObject$j || (_templateObject$j = _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({
|
|
12360
12338
|
company: company,
|
|
12361
12339
|
logoPath: logoPath,
|
|
12362
12340
|
logoBase64: logoBase64
|
|
12363
12341
|
}), 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>" : "");
|
|
12364
12342
|
};
|
|
12365
12343
|
|
|
12366
|
-
var _templateObject$
|
|
12367
|
-
var html$
|
|
12344
|
+
var _templateObject$k, _templateObject2$a, _templateObject3$4;
|
|
12345
|
+
var html$j = String.raw;
|
|
12368
12346
|
var Head$1 = function Head(_ref) {
|
|
12369
12347
|
var isOffline = _ref.isOffline,
|
|
12370
12348
|
removeHtmlStandardDom = _ref.removeHtmlStandardDom;
|
|
12371
|
-
var stylesheet = isOffline ? html$
|
|
12349
|
+
var stylesheet = isOffline ? html$j(_templateObject$k || (_templateObject$k = _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$j(_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 /> "])));
|
|
12372
12350
|
if (removeHtmlStandardDom) {
|
|
12373
12351
|
return stylesheet;
|
|
12374
12352
|
}
|
|
12375
|
-
return html$
|
|
12353
|
+
return html$j(_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);
|
|
12376
12354
|
};
|
|
12377
12355
|
|
|
12378
|
-
var _templateObject$
|
|
12379
|
-
var html$
|
|
12356
|
+
var _templateObject$l;
|
|
12357
|
+
var html$k = String.raw;
|
|
12380
12358
|
var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
12381
12359
|
var company = _ref.company,
|
|
12382
12360
|
defaultLang = _ref.defaultLang,
|
|
@@ -12404,12 +12382,12 @@ var InvoiceHeader$1 = function InvoiceHeader(_ref) {
|
|
|
12404
12382
|
timeZone: timeZone
|
|
12405
12383
|
});
|
|
12406
12384
|
};
|
|
12407
|
-
return html$
|
|
12385
|
+
return html$k(_templateObject$l || (_templateObject$l = _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 " : "");
|
|
12408
12386
|
};
|
|
12409
12387
|
|
|
12410
|
-
var _templateObject$
|
|
12388
|
+
var _templateObject$m, _templateObject2$b, _templateObject3$5;
|
|
12411
12389
|
var FormatCurrency$5 = util.FormatCurrency;
|
|
12412
|
-
var html$
|
|
12390
|
+
var html$l = String.raw;
|
|
12413
12391
|
var ItemsContainer$1 = function ItemsContainer(_ref) {
|
|
12414
12392
|
var company = _ref.company,
|
|
12415
12393
|
discountOnItem = _ref.discountOnItem,
|
|
@@ -12424,20 +12402,20 @@ var ItemsContainer$1 = function ItemsContainer(_ref) {
|
|
|
12424
12402
|
var _item$photos;
|
|
12425
12403
|
var item = _step.value;
|
|
12426
12404
|
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" : "";
|
|
12427
|
-
itemsContainer = itemsContainer + html$
|
|
12405
|
+
itemsContainer = itemsContainer + html$l(_templateObject$m || (_templateObject$m = _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$l(_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, {
|
|
12428
12406
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12429
12407
|
}) + " ✕ " + (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, {
|
|
12430
12408
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12431
12409
|
}) + " (" + (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, {
|
|
12432
12410
|
forceDecimal: forceItemUnitPriceDecimal
|
|
12433
|
-
}) : "", discountOnItem ? html$
|
|
12411
|
+
}) : "", discountOnItem ? html$l(_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) : "");
|
|
12434
12412
|
}
|
|
12435
12413
|
return itemsContainer;
|
|
12436
12414
|
};
|
|
12437
12415
|
|
|
12438
|
-
var _templateObject$
|
|
12416
|
+
var _templateObject$n;
|
|
12439
12417
|
var FormatCurrency$6 = util.FormatCurrency;
|
|
12440
|
-
var html$
|
|
12418
|
+
var html$m = String.raw;
|
|
12441
12419
|
var paymentOnDetails$1 = function paymentOnDetails(date, brand, endNumber) {
|
|
12442
12420
|
brand = formatCardBrand(brand);
|
|
12443
12421
|
if (brand && endNumber) {
|
|
@@ -12468,15 +12446,15 @@ var PaymentContainer$1 = function PaymentContainer(_ref) {
|
|
|
12468
12446
|
if (document.pm) {
|
|
12469
12447
|
for (var _iterator = _createForOfIteratorHelperLoose(document.pm), _step; !(_step = _iterator()).done;) {
|
|
12470
12448
|
var payment = _step.value;
|
|
12471
|
-
paymentContainer = paymentContainer + html$
|
|
12449
|
+
paymentContainer = paymentContainer + html$m(_templateObject$n || (_templateObject$n = _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));
|
|
12472
12450
|
}
|
|
12473
12451
|
}
|
|
12474
12452
|
return paymentContainer;
|
|
12475
12453
|
};
|
|
12476
12454
|
|
|
12477
|
-
var _templateObject$
|
|
12455
|
+
var _templateObject$o;
|
|
12478
12456
|
var FormatCurrency$7 = util.FormatCurrency;
|
|
12479
|
-
var html$
|
|
12457
|
+
var html$n = String.raw;
|
|
12480
12458
|
var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
12481
12459
|
var company = _ref.company,
|
|
12482
12460
|
defaultLang = _ref.defaultLang,
|
|
@@ -12524,12 +12502,12 @@ var InvoiceContent$1 = function InvoiceContent(_ref) {
|
|
|
12524
12502
|
});
|
|
12525
12503
|
var paymentOn = company.pi && document.ty === 1 && (company.p1 || company.p2 || company.p3);
|
|
12526
12504
|
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 ";
|
|
12527
|
-
return html$
|
|
12505
|
+
return html$n(_templateObject$o || (_templateObject$o = _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>" : "");
|
|
12528
12506
|
};
|
|
12529
12507
|
|
|
12530
|
-
var _templateObject$
|
|
12508
|
+
var _templateObject$p;
|
|
12531
12509
|
var FormatCurrency$8 = util.FormatCurrency;
|
|
12532
|
-
var html$
|
|
12510
|
+
var html$o = String.raw;
|
|
12533
12511
|
var InvoicePrice$1 = function InvoicePrice(_ref) {
|
|
12534
12512
|
var bookipayLink = _ref.bookipayLink,
|
|
12535
12513
|
company = _ref.company,
|
|
@@ -12553,11 +12531,11 @@ var InvoicePrice$1 = function InvoicePrice(_ref) {
|
|
|
12553
12531
|
surcharge: surcharge,
|
|
12554
12532
|
defaultLang: defaultLang
|
|
12555
12533
|
});
|
|
12556
|
-
return html$
|
|
12534
|
+
return html$o(_templateObject$p || (_templateObject$p = _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));
|
|
12557
12535
|
};
|
|
12558
12536
|
|
|
12559
|
-
var _templateObject$
|
|
12560
|
-
var html$
|
|
12537
|
+
var _templateObject$q, _templateObject2$c, _templateObject3$6;
|
|
12538
|
+
var html$p = String.raw;
|
|
12561
12539
|
var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
12562
12540
|
var customer = _ref.customer,
|
|
12563
12541
|
customerSignBase64 = _ref.customerSignBase64,
|
|
@@ -12565,22 +12543,22 @@ var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
|
12565
12543
|
formatDate = _ref.formatDate,
|
|
12566
12544
|
signItIntegration = _ref.signItIntegration;
|
|
12567
12545
|
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return "";
|
|
12568
|
-
return html$
|
|
12546
|
+
return html$p(_templateObject$q || (_templateObject$q = _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$p(_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$p(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : "(   /  /  )");
|
|
12569
12547
|
};
|
|
12570
12548
|
|
|
12571
|
-
var _templateObject$
|
|
12572
|
-
var html$
|
|
12549
|
+
var _templateObject$r, _templateObject2$d;
|
|
12550
|
+
var html$q = String.raw;
|
|
12573
12551
|
var SignatureContainer$1 = function SignatureContainer(_ref) {
|
|
12574
12552
|
var company = _ref.company,
|
|
12575
12553
|
document = _ref.document,
|
|
12576
12554
|
formatDate = _ref.formatDate,
|
|
12577
12555
|
signatureBase64 = _ref.signatureBase64;
|
|
12578
12556
|
if (!(document !== null && document !== void 0 && document.sd)) return "";
|
|
12579
|
-
return html$
|
|
12557
|
+
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 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$q(_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) : "");
|
|
12580
12558
|
};
|
|
12581
12559
|
|
|
12582
|
-
var _templateObject$
|
|
12583
|
-
var html$
|
|
12560
|
+
var _templateObject$s;
|
|
12561
|
+
var html$r = String.raw;
|
|
12584
12562
|
var InvoiceSignature$1 = function InvoiceSignature(_ref) {
|
|
12585
12563
|
var company = _ref.company,
|
|
12586
12564
|
document = _ref.document,
|
|
@@ -12612,10 +12590,10 @@ var InvoiceSignature$1 = function InvoiceSignature(_ref) {
|
|
|
12612
12590
|
formatDate: formatDate,
|
|
12613
12591
|
signItIntegration: signItIntegration
|
|
12614
12592
|
});
|
|
12615
|
-
return html$
|
|
12593
|
+
return html$r(_templateObject$s || (_templateObject$s = _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 || "");
|
|
12616
12594
|
};
|
|
12617
12595
|
|
|
12618
|
-
var _templateObject$
|
|
12596
|
+
var _templateObject$t;
|
|
12619
12597
|
var htmlRaw$1 = String.raw;
|
|
12620
12598
|
var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
12621
12599
|
var invoice = _ref.invoice,
|
|
@@ -12641,8 +12619,6 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12641
12619
|
forceItemUnitPriceDecimal = _ref$forceItemUnitPri === void 0 ? undefined : _ref$forceItemUnitPri,
|
|
12642
12620
|
_ref$signItIntegratio = _ref.signItIntegration,
|
|
12643
12621
|
signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
|
|
12644
|
-
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12645
|
-
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12646
12622
|
t = _ref.t,
|
|
12647
12623
|
_ref$showWatermark = _ref.showWatermark,
|
|
12648
12624
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
@@ -12707,7 +12683,7 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12707
12683
|
var fontName = document.customization ? document.customization.font.name : "normal";
|
|
12708
12684
|
var fontSize = document.customization ? document.customization.font.size : "medium";
|
|
12709
12685
|
var color = document.customization ? document.customization.color : "#ffffff";
|
|
12710
|
-
var html = htmlRaw$1(_templateObject$
|
|
12686
|
+
var html = htmlRaw$1(_templateObject$t || (_templateObject$t = _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 </div>\n\n ", "\n "])), Head$1({
|
|
12711
12687
|
removeHtmlStandardDom: removeHtmlStandardDom,
|
|
12712
12688
|
isOffline: isOffline
|
|
12713
12689
|
}), invoiceStyle$1({
|
|
@@ -12763,9 +12739,7 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
|
|
|
12763
12739
|
signItIntegration: signItIntegration
|
|
12764
12740
|
}), InvoiceAttachments({
|
|
12765
12741
|
attachments: attachments
|
|
12766
|
-
}),
|
|
12767
|
-
t: t
|
|
12768
|
-
}) : "", !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12742
|
+
}), !removeHtmlStandardDom ? "</body></html>" : "");
|
|
12769
12743
|
return {
|
|
12770
12744
|
html: html,
|
|
12771
12745
|
timeZone: timeZone,
|
|
@@ -12802,8 +12776,6 @@ var invoiceHtml = (function (_ref) {
|
|
|
12802
12776
|
t = _ref.t,
|
|
12803
12777
|
_ref$isNewLayout = _ref.isNewLayout,
|
|
12804
12778
|
isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
|
|
12805
|
-
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
12806
|
-
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
12807
12779
|
_ref$showWatermark = _ref.showWatermark,
|
|
12808
12780
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
12809
12781
|
var renderInvoice = isNewLayout ? invoiceHtmlWithDetailsNew : invoiceHtmlWithDetails;
|
|
@@ -12820,7 +12792,6 @@ var invoiceHtml = (function (_ref) {
|
|
|
12820
12792
|
hidePayBtnInScreen: hidePayBtnInScreen,
|
|
12821
12793
|
itemWidth: itemWidth,
|
|
12822
12794
|
forceItemUnitPriceDecimal: forceItemUnitPriceDecimal,
|
|
12823
|
-
showFooterBrand: showFooterBrand,
|
|
12824
12795
|
signItIntegration: signItIntegration,
|
|
12825
12796
|
t: t,
|
|
12826
12797
|
showWatermark: showWatermark
|
|
@@ -12996,8 +12967,6 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
|
|
|
12996
12967
|
t = _ref.t,
|
|
12997
12968
|
_ref$isNewLayout = _ref.isNewLayout,
|
|
12998
12969
|
isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
|
|
12999
|
-
_ref$showFooterBrand = _ref.showFooterBrand,
|
|
13000
|
-
showFooterBrand = _ref$showFooterBrand === void 0 ? false : _ref$showFooterBrand,
|
|
13001
12970
|
_ref$showWatermark = _ref.showWatermark,
|
|
13002
12971
|
showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
|
|
13003
12972
|
return invoiceHtml({
|
|
@@ -13014,7 +12983,6 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
|
|
|
13014
12983
|
hidePayBtnInScreen: hidePayBtnInScreen,
|
|
13015
12984
|
t: t,
|
|
13016
12985
|
isNewLayout: isNewLayout,
|
|
13017
|
-
showFooterBrand: showFooterBrand,
|
|
13018
12986
|
showWatermark: showWatermark
|
|
13019
12987
|
});
|
|
13020
12988
|
};
|