@bookipi/htmlgenerator 1.5.25-alpha2 → 1.5.25-alpha3
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 +26 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +26 -20
- 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 .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
|
|
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 min-height: 100vh;\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 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 /* .invoice-body {\n padding:10;\n } */\n #invoice {\n padding-bottom: 60px;\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 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\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;
|
|
@@ -11876,8 +11876,8 @@ var ClientSignatureContainer = function ClientSignatureContainer(_ref) {
|
|
|
11876
11876
|
document = _ref.document,
|
|
11877
11877
|
formatDate = _ref.formatDate,
|
|
11878
11878
|
signItIntegration = _ref.signItIntegration;
|
|
11879
|
-
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return
|
|
11880
|
-
return html$c(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose([" <div class=\"col-6\" style=\"text-align: center\">\n <strong>", "</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\" style=\"font-size:16px\">\n ", "\n </div>\n </div>"])), customer ? customer.c :
|
|
11879
|
+
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
11880
|
+
return html$c(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-6\" style=\"text-align: center\">\n <strong>", "</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\" style=\"font-size:16px\">\n ", "\n </div>\n </div>"])), customer ? customer.c : '', customerSignBase64 ? html$c(_templateObject2$4 || (_templateObject2$4 = _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$c(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : '(   /  /  )');
|
|
11881
11881
|
};
|
|
11882
11882
|
|
|
11883
11883
|
var _templateObject$d, _templateObject2$5;
|
|
@@ -11888,7 +11888,7 @@ var SignatureContainer = function SignatureContainer(_ref) {
|
|
|
11888
11888
|
formatDate = _ref.formatDate,
|
|
11889
11889
|
signatureBase64 = _ref.signatureBase64;
|
|
11890
11890
|
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
11891
|
-
return html$d(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose([" <div class=\"col-6\" style=\"text-align: center\">\n <strong>", "</strong>\n <div\n style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\"\n >\n ", "\n </div>\n <div style=\"font-size:16px\">\n ", "\n </div>\n </div>"])), company ? company.c : '', signatureBase64 ? html$d(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), signatureBase64) : '', document.sd ? formatDate(document.sd) : '');
|
|
11891
|
+
return html$d(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-6\" style=\"text-align: center\">\n <strong>", "</strong>\n <div\n style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\"\n >\n ", "\n </div>\n <div style=\"font-size:16px\">\n ", "\n </div>\n </div>"])), company ? company.c : '', signatureBase64 ? html$d(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), signatureBase64) : '', document.sd ? formatDate(document.sd) : '');
|
|
11892
11892
|
};
|
|
11893
11893
|
|
|
11894
11894
|
var _templateObject$e;
|
|
@@ -11946,19 +11946,21 @@ var _templateObject$g;
|
|
|
11946
11946
|
var html$g = String.raw;
|
|
11947
11947
|
var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
11948
11948
|
var _ref$logoUrl = _ref.logoUrl,
|
|
11949
|
-
logoUrl = _ref$logoUrl === void 0 ?
|
|
11949
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi-brand-logo.png' : _ref$logoUrl,
|
|
11950
11950
|
_ref$title = _ref.title,
|
|
11951
|
-
title = _ref$title === void 0 ?
|
|
11951
|
+
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
11952
11952
|
_ref$cta = _ref.cta,
|
|
11953
11953
|
cta = _ref$cta === void 0 ? {
|
|
11954
|
-
label:
|
|
11955
|
-
url:
|
|
11954
|
+
label: 'Download Bookipi App',
|
|
11955
|
+
url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
|
|
11956
11956
|
} : _ref$cta,
|
|
11957
|
+
_ref$position = _ref.position,
|
|
11958
|
+
position = _ref$position === void 0 ? 'fixed' : _ref$position,
|
|
11957
11959
|
t = _ref.t;
|
|
11958
11960
|
if (!title) {
|
|
11959
|
-
return
|
|
11961
|
+
return '';
|
|
11960
11962
|
}
|
|
11961
|
-
return html$g(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:
|
|
11963
|
+
return html$g(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display: flex;color:black;flex:1;align-items:center;\">\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>"])), position, logoUrl ? "<img alt=\"brand logo\" style=\"max-height:24px;margin-right:16px;\" 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>" : '', cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.action ? "<span class=\"btn-url\" onclick=\"window.postMessage({ type: '" + (cta === null || cta === void 0 ? void 0 : cta.action) + "' }, '*')\" style=\"color:#1C64F2;line-height:2;font-weight:600;\">" + (t ? t(cta.label) : cta.label) + "</span>" : '');
|
|
11962
11964
|
};
|
|
11963
11965
|
|
|
11964
11966
|
var _templateObject$h, _templateObject2$7, _templateObject3$3;
|
|
@@ -12257,7 +12259,7 @@ var renderOldLayout = (function (_ref) {
|
|
|
12257
12259
|
t: t,
|
|
12258
12260
|
title: footerBrandText
|
|
12259
12261
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12260
|
-
var html = htmlRaw(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table>\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
12262
|
+
var html = htmlRaw(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100%;\">\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
12261
12263
|
return {
|
|
12262
12264
|
html: html,
|
|
12263
12265
|
timeZone: timeZone,
|
|
@@ -12559,8 +12561,8 @@ var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
|
12559
12561
|
document = _ref.document,
|
|
12560
12562
|
formatDate = _ref.formatDate,
|
|
12561
12563
|
signItIntegration = _ref.signItIntegration;
|
|
12562
|
-
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return
|
|
12563
|
-
return html$r(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose([" <div class=\"col-6\" style=\"text-align: center\">\n <strong class=\"signature-name\">", "</strong>\n <div\n 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 :
|
|
12564
|
+
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
12565
|
+
return html$r(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-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$r(_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$r(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : '(   /  /  )');
|
|
12564
12566
|
};
|
|
12565
12567
|
|
|
12566
12568
|
var _templateObject$t, _templateObject2$d;
|
|
@@ -12570,8 +12572,8 @@ var SignatureContainer$1 = function SignatureContainer(_ref) {
|
|
|
12570
12572
|
document = _ref.document,
|
|
12571
12573
|
formatDate = _ref.formatDate,
|
|
12572
12574
|
signatureBase64 = _ref.signatureBase64;
|
|
12573
|
-
if (!(document !== null && document !== void 0 && document.sd)) return
|
|
12574
|
-
return html$s(_templateObject$t || (_templateObject$t = _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 :
|
|
12575
|
+
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
12576
|
+
return html$s(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-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$s(_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) : '');
|
|
12575
12577
|
};
|
|
12576
12578
|
|
|
12577
12579
|
var _templateObject$u;
|
|
@@ -13757,7 +13759,7 @@ var ClientSignatureContainer$2 = function ClientSignatureContainer(_ref) {
|
|
|
13757
13759
|
document = _ref.document,
|
|
13758
13760
|
signItIntegration = _ref.signItIntegration;
|
|
13759
13761
|
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
13760
|
-
return html$E(_templateObject$G || (_templateObject$G = _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$E(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), customerSignBase64) : '<div id="signature_link"></div>', customerSignBase64 ? formatDateJapan(new Date(), company.tz) : signItIntegration ? html$E(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : '(   /  /  )');
|
|
13762
|
+
return html$E(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-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$E(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), customerSignBase64) : '<div id="signature_link"></div>', customerSignBase64 ? formatDateJapan(new Date(), company.tz) : signItIntegration ? html$E(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["<a href=\"#client_date_signature\"></a>"]))) : '(   /  /  )');
|
|
13761
13763
|
};
|
|
13762
13764
|
|
|
13763
13765
|
var _templateObject$H, _templateObject2$k;
|
|
@@ -13767,7 +13769,7 @@ var SignatureContainer$2 = function SignatureContainer(_ref) {
|
|
|
13767
13769
|
document = _ref.document,
|
|
13768
13770
|
signatureBase64 = _ref.signatureBase64;
|
|
13769
13771
|
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
13770
|
-
return html$F(_templateObject$H || (_templateObject$H = _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$F(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), signatureBase64) : '', document.sd ? formatDateJapan(document.sd, company.tz) : '');
|
|
13772
|
+
return html$F(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose([" <div class=\"col-12 col-md-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$F(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["<img\n src=\"", "\"\n class=\"signature-img\"\n onerror=\"this.style.display='none'\"\n />"])), signatureBase64) : '', document.sd ? formatDateJapan(document.sd, company.tz) : '');
|
|
13771
13773
|
};
|
|
13772
13774
|
|
|
13773
13775
|
var _templateObject$I;
|
|
@@ -13824,11 +13826,13 @@ var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
|
13824
13826
|
label: 'Download Bookipi App',
|
|
13825
13827
|
url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
|
|
13826
13828
|
} : _ref$cta,
|
|
13829
|
+
_ref$position = _ref.position,
|
|
13830
|
+
position = _ref$position === void 0 ? 'fixed' : _ref$position,
|
|
13827
13831
|
defaultLang = _ref.defaultLang;
|
|
13828
13832
|
if (!title) {
|
|
13829
13833
|
return '';
|
|
13830
13834
|
}
|
|
13831
|
-
return html$I(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:
|
|
13835
|
+
return html$I(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["<div\n class=\"print-footer\"\n style=\"background-color:#EBF5FF;padding:16px;display:flex;justify-content:space-between;align-items:center;position:", ";bottom:0;left:0;right:0;\"\n >\n <div style=\"display: flex;color:black;flex:1;align-items:center;\">\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>"])), position, logoUrl ? "<img alt=\"brand logo\" style=\"max-height:24px;margin-right:16px;\" src=\"" + logoUrl + "\" />" : '', defaultLang['brand_footer_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\">" + (defaultLang['download_app'] || cta.label) + "</a>" : '', cta !== null && cta !== void 0 && cta.label && cta !== null && cta !== void 0 && cta.action ? "<span class=\"btn-url\" onclick=\"window.postMessage({ type: '" + (cta === null || cta === void 0 ? void 0 : cta.action) + "' }, '*')\" style=\"color:#1C64F2;line-height:2;font-weight:600;\">" + (defaultLang['download_app'] || cta.label) + "</span>" : '');
|
|
13832
13836
|
};
|
|
13833
13837
|
|
|
13834
13838
|
var _templateObject$L, _templateObject2$m, _templateObject3$9;
|
|
@@ -13970,8 +13974,10 @@ var renderLayout = (function (_ref) {
|
|
|
13970
13974
|
attachments: attachments
|
|
13971
13975
|
}), showFooterBrand ? BookipayBrandFooter$1(_extends({
|
|
13972
13976
|
title: footerBrandText
|
|
13973
|
-
}, footerBrandProps
|
|
13974
|
-
|
|
13977
|
+
}, footerBrandProps, {
|
|
13978
|
+
defaultLang: defaultLang
|
|
13979
|
+
})) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
13980
|
+
var html = htmlRaw$2(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n "])), showFooterBrand ? "<table style=\"width: 100%;\">\n <tbody>\n <tr>\n <td>\n " + content + "\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td class=\"print-footer-spacer\">\n </td>\n </tr>\n </tfoot>\n </table>" : content);
|
|
13975
13981
|
return {
|
|
13976
13982
|
html: html,
|
|
13977
13983
|
timeZone: timeZone,
|