@bookipi/htmlgenerator 1.7.0 → 1.8.0
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 +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9007,7 +9007,7 @@ var invoiceStyle = function invoiceStyle(_ref) {
|
|
|
9007
9007
|
signItIntegration = _ref.signItIntegration,
|
|
9008
9008
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
9009
9009
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
9010
|
-
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n
|
|
9010
|
+
return html(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n\n #invoice {\n position: relative;\n }\n\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", ";\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n zoom: 0.8;\n ", "\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:28cm; box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);', signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
9011
9011
|
};
|
|
9012
9012
|
|
|
9013
9013
|
var _templateObject$1, _templateObject2;
|
|
@@ -11931,13 +11931,13 @@ var _templateObject$f, _templateObject2$6;
|
|
|
11931
11931
|
var html$f = String.raw;
|
|
11932
11932
|
var InvoiceAttachments = function InvoiceAttachments(_ref) {
|
|
11933
11933
|
var attachments = _ref.attachments;
|
|
11934
|
-
var attachmentContainer =
|
|
11934
|
+
var attachmentContainer = '';
|
|
11935
11935
|
if (attachments && attachments.length > 0) {
|
|
11936
11936
|
for (var i = 0; i < attachments.length; i++) {
|
|
11937
|
-
attachmentContainer = attachmentContainer + html$f(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t ||
|
|
11937
|
+
attachmentContainer = attachmentContainer + html$f(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n class=\"attachment-image\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t || '', attachments[i].description || attachments[i].d || '');
|
|
11938
11938
|
}
|
|
11939
11939
|
} else {
|
|
11940
|
-
return
|
|
11940
|
+
return '';
|
|
11941
11941
|
}
|
|
11942
11942
|
return html$f(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["<!-- begin invoice-attachments -->\n <div style=\"text-align: center\">", "</div>\n <!-- end invoice-attachments -->"])), attachmentContainer);
|
|
11943
11943
|
};
|
|
@@ -12319,7 +12319,7 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
|
|
|
12319
12319
|
var watermarkText = defaultLang['upgradeRequired'] || 'Upgrade required';
|
|
12320
12320
|
var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='Inter, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
|
|
12321
12321
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
12322
|
-
return html$i(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 12px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n min-height: 100vh;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n min-height: 100vh;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n min-height: 100vh;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n padding-bottom: 60px;\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n page-break-before: always!important;\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 80px;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), subFontSize, contentFontSize, contentFontSize, contentFontSize, heading2FontSize, heading2FontSize, fontSize === 'medium' ? '17px' : '21px', subFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
12322
|
+
return html$i(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 12px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh !important;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), subFontSize, contentFontSize, contentFontSize, contentFontSize, heading2FontSize, heading2FontSize, fontSize === 'medium' ? '17px' : '21px', subFontSize, fontName === 'normal' ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : '', fontName === 'round' ? "font-family: \"Quicksand\", sans-serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
12323
12323
|
};
|
|
12324
12324
|
|
|
12325
12325
|
var _templateObject$k, _templateObject2$9;
|
|
@@ -13550,7 +13550,7 @@ var invoiceStyle$2 = function invoiceStyle(_ref) {
|
|
|
13550
13550
|
var watermarkText = defaultLang['upgradeRequired'] || 'Upgrade required';
|
|
13551
13551
|
var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='BIZ UDGothic, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
|
|
13552
13552
|
var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
|
|
13553
|
-
return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n min-height: 100vh;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n min-height: 100vh;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n min-height: 100vh;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n padding-bottom: 60px;\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n page-break-before: always!important;\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 80px;\n }\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
13553
|
+
return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
|
|
13554
13554
|
};
|
|
13555
13555
|
|
|
13556
13556
|
var _templateObject$x, _templateObject2$f;
|
|
@@ -13797,13 +13797,13 @@ var _templateObject$J, _templateObject2$l;
|
|
|
13797
13797
|
var html$H = String.raw;
|
|
13798
13798
|
var InvoiceAttachments$1 = function InvoiceAttachments(_ref) {
|
|
13799
13799
|
var attachments = _ref.attachments;
|
|
13800
|
-
var attachmentContainer =
|
|
13800
|
+
var attachmentContainer = '';
|
|
13801
13801
|
if (attachments && attachments.length > 0) {
|
|
13802
13802
|
for (var i = 0; i < attachments.length; i++) {
|
|
13803
|
-
attachmentContainer = attachmentContainer + html$H(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t ||
|
|
13803
|
+
attachmentContainer = attachmentContainer + html$H(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["<div class=\"mt-5\">\n <img\n src=\"", "\"\n style=\"max-width:100%\"\n class=\"attachment-image\"\n />\n <div>\n <strong>", "</strong>\n </div>\n <div>", "</div>\n </div>"])), attachments[i].imageBase64 || attachments[i].imageUrl, attachments[i].text || attachments[i].t || '', attachments[i].description || attachments[i].d || '');
|
|
13804
13804
|
}
|
|
13805
13805
|
} else {
|
|
13806
|
-
return
|
|
13806
|
+
return '';
|
|
13807
13807
|
}
|
|
13808
13808
|
return html$H(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["<!-- begin invoice-attachments -->\n <div style=\"text-align: center\">", "</div>\n <!-- end invoice-attachments -->"])), attachmentContainer);
|
|
13809
13809
|
};
|