@bookipi/htmlgenerator 1.5.25-alpha2 → 1.5.25-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +27 -31
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -31
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9005,7 +9005,7 @@ var invoiceStyle = function invoiceStyle(_ref) {
|
|
|
9005
9005
|
signItIntegration = _ref.signItIntegration,
|
|
9006
9006
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
9007
9007
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
|
|
9008
|
-
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
|
|
9008
|
+
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 " : '');
|
|
9009
9009
|
};
|
|
9010
9010
|
|
|
9011
9011
|
var _templateObject$1, _templateObject2;
|
|
@@ -11875,8 +11875,8 @@ var ClientSignatureContainer = function ClientSignatureContainer(_ref) {
|
|
|
11875
11875
|
document = _ref.document,
|
|
11876
11876
|
formatDate = _ref.formatDate,
|
|
11877
11877
|
signItIntegration = _ref.signItIntegration;
|
|
11878
|
-
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return
|
|
11879
|
-
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 :
|
|
11878
|
+
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
11879
|
+
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>"]))) : '(   /  /  )');
|
|
11880
11880
|
};
|
|
11881
11881
|
|
|
11882
11882
|
var _templateObject$d, _templateObject2$5;
|
|
@@ -11887,7 +11887,7 @@ var SignatureContainer = function SignatureContainer(_ref) {
|
|
|
11887
11887
|
formatDate = _ref.formatDate,
|
|
11888
11888
|
signatureBase64 = _ref.signatureBase64;
|
|
11889
11889
|
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
11890
|
-
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) : '');
|
|
11890
|
+
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) : '');
|
|
11891
11891
|
};
|
|
11892
11892
|
|
|
11893
11893
|
var _templateObject$e;
|
|
@@ -11945,19 +11945,21 @@ var _templateObject$g;
|
|
|
11945
11945
|
var html$g = String.raw;
|
|
11946
11946
|
var BookipayBrandFooter = function BookipayBrandFooter(_ref) {
|
|
11947
11947
|
var _ref$logoUrl = _ref.logoUrl,
|
|
11948
|
-
logoUrl = _ref$logoUrl === void 0 ?
|
|
11948
|
+
logoUrl = _ref$logoUrl === void 0 ? 'https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi-brand-logo.png' : _ref$logoUrl,
|
|
11949
11949
|
_ref$title = _ref.title,
|
|
11950
|
-
title = _ref$title === void 0 ?
|
|
11950
|
+
title = _ref$title === void 0 ? 'Generated by Free invoice app' : _ref$title,
|
|
11951
11951
|
_ref$cta = _ref.cta,
|
|
11952
11952
|
cta = _ref$cta === void 0 ? {
|
|
11953
|
-
label:
|
|
11954
|
-
url:
|
|
11953
|
+
label: 'Download Bookipi App',
|
|
11954
|
+
url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
|
|
11955
11955
|
} : _ref$cta,
|
|
11956
|
+
_ref$position = _ref.position,
|
|
11957
|
+
position = _ref$position === void 0 ? 'fixed' : _ref$position,
|
|
11956
11958
|
t = _ref.t;
|
|
11957
11959
|
if (!title) {
|
|
11958
|
-
return
|
|
11960
|
+
return '';
|
|
11959
11961
|
}
|
|
11960
|
-
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:
|
|
11962
|
+
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>" : '');
|
|
11961
11963
|
};
|
|
11962
11964
|
|
|
11963
11965
|
var _templateObject$h, _templateObject2$7, _templateObject3$3;
|
|
@@ -12256,7 +12258,7 @@ var renderOldLayout = (function (_ref) {
|
|
|
12256
12258
|
t: t,
|
|
12257
12259
|
title: footerBrandText
|
|
12258
12260
|
}, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
12259
|
-
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);
|
|
12261
|
+
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);
|
|
12260
12262
|
return {
|
|
12261
12263
|
html: html,
|
|
12262
12264
|
timeZone: timeZone,
|
|
@@ -12558,8 +12560,8 @@ var ClientSignatureContainer$1 = function ClientSignatureContainer(_ref) {
|
|
|
12558
12560
|
document = _ref.document,
|
|
12559
12561
|
formatDate = _ref.formatDate,
|
|
12560
12562
|
signItIntegration = _ref.signItIntegration;
|
|
12561
|
-
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return
|
|
12562
|
-
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 :
|
|
12563
|
+
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
12564
|
+
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>"]))) : '(   /  /  )');
|
|
12563
12565
|
};
|
|
12564
12566
|
|
|
12565
12567
|
var _templateObject$t, _templateObject2$d;
|
|
@@ -12569,8 +12571,8 @@ var SignatureContainer$1 = function SignatureContainer(_ref) {
|
|
|
12569
12571
|
document = _ref.document,
|
|
12570
12572
|
formatDate = _ref.formatDate,
|
|
12571
12573
|
signatureBase64 = _ref.signatureBase64;
|
|
12572
|
-
if (!(document !== null && document !== void 0 && document.sd)) return
|
|
12573
|
-
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 :
|
|
12574
|
+
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
12575
|
+
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) : '');
|
|
12574
12576
|
};
|
|
12575
12577
|
|
|
12576
12578
|
var _templateObject$u;
|
|
@@ -13568,7 +13570,6 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
|
|
|
13568
13570
|
invoice = _ref.invoice,
|
|
13569
13571
|
companyLogoBase = _ref.companyLogoBase,
|
|
13570
13572
|
defaultLang = _ref.defaultLang,
|
|
13571
|
-
sentDate = _ref.sentDate,
|
|
13572
13573
|
isQIS = _ref.isQIS;
|
|
13573
13574
|
if (!company || !invoice) return '';
|
|
13574
13575
|
var document = (_invoice$document = invoice.document) != null ? _invoice$document : {};
|
|
@@ -13587,7 +13588,7 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
|
|
|
13587
13588
|
company: company,
|
|
13588
13589
|
logoPath: logoPath,
|
|
13589
13590
|
logoBase64: logoBase64
|
|
13590
|
-
}), documentName, defaultLang['issued'], formatDateJapan(document.d, company.tz),
|
|
13591
|
+
}), documentName, defaultLang['issued'], formatDateJapan(document.d, company.tz), document.sent ? "\n <div class=\"date-and-number\" style=\"margin-bottom: 8px;\">\n <span class=\"date-and-number-label\"\n >" + defaultLang['sent_date'] + ":\n </span>\n <span>" + formatDateJapan(document.sent, company.tz) + "</span>\n </div>" : '', defaultLang['document_no'], document.no ? document.no : '', isQIS && company.tfn ? "\n <div class=\"date-and-number\" style=\"margin-bottom: 8px;\">\n <span class=\"date-and-number-label\"\n >" + (company.bn ? company.bn : defaultLang['tax_regulation_number']) + ":\n </span>\n <span>" + (company.tfn ? company.tfn : '') + "</span>\n </div>\n " : '', document.pon ? "\n <div class=\"date-and-number\">\n <span class=\"date-and-number-label\">" + defaultLang['po_number'] + ": </span>\n <span>" + document.pon + "</span>\n </div>\n " : '');
|
|
13591
13592
|
};
|
|
13592
13593
|
|
|
13593
13594
|
var _templateObject$z, _templateObject2$g;
|
|
@@ -13756,7 +13757,7 @@ var ClientSignatureContainer$2 = function ClientSignatureContainer(_ref) {
|
|
|
13756
13757
|
document = _ref.document,
|
|
13757
13758
|
signItIntegration = _ref.signItIntegration;
|
|
13758
13759
|
if (!(document !== null && document !== void 0 && document.cs) && !customerSignBase64) return '';
|
|
13759
|
-
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>"]))) : '(   /  /  )');
|
|
13760
|
+
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>"]))) : '(   /  /  )');
|
|
13760
13761
|
};
|
|
13761
13762
|
|
|
13762
13763
|
var _templateObject$H, _templateObject2$k;
|
|
@@ -13766,7 +13767,7 @@ var SignatureContainer$2 = function SignatureContainer(_ref) {
|
|
|
13766
13767
|
document = _ref.document,
|
|
13767
13768
|
signatureBase64 = _ref.signatureBase64;
|
|
13768
13769
|
if (!(document !== null && document !== void 0 && document.sd)) return '';
|
|
13769
|
-
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) : '');
|
|
13770
|
+
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) : '');
|
|
13770
13771
|
};
|
|
13771
13772
|
|
|
13772
13773
|
var _templateObject$I;
|
|
@@ -13823,11 +13824,13 @@ var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
|
|
|
13823
13824
|
label: 'Download Bookipi App',
|
|
13824
13825
|
url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
|
|
13825
13826
|
} : _ref$cta,
|
|
13827
|
+
_ref$position = _ref.position,
|
|
13828
|
+
position = _ref$position === void 0 ? 'fixed' : _ref$position,
|
|
13826
13829
|
defaultLang = _ref.defaultLang;
|
|
13827
13830
|
if (!title) {
|
|
13828
13831
|
return '';
|
|
13829
13832
|
}
|
|
13830
|
-
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:
|
|
13833
|
+
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>" : '');
|
|
13831
13834
|
};
|
|
13832
13835
|
|
|
13833
13836
|
var _templateObject$L, _templateObject2$m, _templateObject3$9;
|
|
@@ -13889,8 +13892,6 @@ var renderLayout = (function (_ref) {
|
|
|
13889
13892
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
13890
13893
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
13891
13894
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
13892
|
-
_ref$sentDate = _ref.sentDate,
|
|
13893
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
13894
13895
|
_ref$isQIS = _ref.isQIS,
|
|
13895
13896
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
13896
13897
|
var defaultLang = langJP;
|
|
@@ -13930,7 +13931,6 @@ var renderLayout = (function (_ref) {
|
|
|
13930
13931
|
invoice: invoice,
|
|
13931
13932
|
companyLogoBase: companyLogoBase,
|
|
13932
13933
|
defaultLang: defaultLang,
|
|
13933
|
-
sentDate: sentDate,
|
|
13934
13934
|
isQIS: isQIS
|
|
13935
13935
|
}), InvoiceCompany$2({
|
|
13936
13936
|
document: document,
|
|
@@ -13969,8 +13969,10 @@ var renderLayout = (function (_ref) {
|
|
|
13969
13969
|
attachments: attachments
|
|
13970
13970
|
}), showFooterBrand ? BookipayBrandFooter$1(_extends({
|
|
13971
13971
|
title: footerBrandText
|
|
13972
|
-
}, footerBrandProps
|
|
13973
|
-
|
|
13972
|
+
}, footerBrandProps, {
|
|
13973
|
+
defaultLang: defaultLang
|
|
13974
|
+
})) : '', !removeHtmlStandardDom ? '</body></html>' : '');
|
|
13975
|
+
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);
|
|
13974
13976
|
return {
|
|
13975
13977
|
html: html,
|
|
13976
13978
|
timeZone: timeZone,
|
|
@@ -14006,8 +14008,6 @@ var invoiceHtml$1 = (function (_ref) {
|
|
|
14006
14008
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
14007
14009
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
14008
14010
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
14009
|
-
_ref$sentDate = _ref.sentDate,
|
|
14010
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
14011
14011
|
_ref$isQIS = _ref.isQIS,
|
|
14012
14012
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
14013
14013
|
return renderLayout({
|
|
@@ -14028,7 +14028,6 @@ var invoiceHtml$1 = (function (_ref) {
|
|
|
14028
14028
|
showWatermark: showWatermark,
|
|
14029
14029
|
showActions: showActions,
|
|
14030
14030
|
isFullScreen: isFullScreen,
|
|
14031
|
-
sentDate: sentDate,
|
|
14032
14031
|
isQIS: isQIS
|
|
14033
14032
|
}).html;
|
|
14034
14033
|
});
|
|
@@ -14056,8 +14055,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
|
|
|
14056
14055
|
showActions = _ref$showActions === void 0 ? false : _ref$showActions,
|
|
14057
14056
|
_ref$isFullScreen = _ref.isFullScreen,
|
|
14058
14057
|
isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
|
|
14059
|
-
_ref$sentDate = _ref.sentDate,
|
|
14060
|
-
sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
|
|
14061
14058
|
_ref$isQIS = _ref.isQIS,
|
|
14062
14059
|
isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
|
|
14063
14060
|
return invoiceHtml$1({
|
|
@@ -14076,7 +14073,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
|
|
|
14076
14073
|
showWatermark: showWatermark,
|
|
14077
14074
|
showActions: showActions,
|
|
14078
14075
|
isFullScreen: isFullScreen,
|
|
14079
|
-
sentDate: sentDate,
|
|
14080
14076
|
isQIS: isQIS
|
|
14081
14077
|
});
|
|
14082
14078
|
};
|