@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 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 border: 2px solid #f0f3f4;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-price .invoice-price-right span {\n display: block;\n font-weight: 400;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .btn-url:hover {\n 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 " : '');
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 : "", 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>"]))) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)");
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>"]))) : '( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)');
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 ? "https://s3.amazonaws.com/bookipi.com/assets/img/app/bookipi-brand-logo.png" : _ref$logoUrl,
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 ? "Generated by Free invoice app" : _ref$title,
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: "Download Bookipi App",
11955
- url: "https://bookipiinvoice.app.link/uBAtQZtPLMb"
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:fixed;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>"])), 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>" : "");
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 : "", 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>"]))) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)");
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>"]))) : '( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)');
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 : "", 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
+ 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;
@@ -13569,7 +13571,6 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
13569
13571
  invoice = _ref.invoice,
13570
13572
  companyLogoBase = _ref.companyLogoBase,
13571
13573
  defaultLang = _ref.defaultLang,
13572
- sentDate = _ref.sentDate,
13573
13574
  isQIS = _ref.isQIS;
13574
13575
  if (!company || !invoice) return '';
13575
13576
  var document = (_invoice$document = invoice.document) != null ? _invoice$document : {};
@@ -13588,7 +13589,7 @@ var InvoiceHeading = function InvoiceHeading(_ref) {
13588
13589
  company: company,
13589
13590
  logoPath: logoPath,
13590
13591
  logoBase64: logoBase64
13591
- }), documentName, defaultLang['issued'], formatDateJapan(document.d, company.tz), sentDate ? "\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(sentDate, 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 " : '');
13592
+ }), 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 " : '');
13592
13593
  };
13593
13594
 
13594
13595
  var _templateObject$z, _templateObject2$g;
@@ -13757,7 +13758,7 @@ var ClientSignatureContainer$2 = function ClientSignatureContainer(_ref) {
13757
13758
  document = _ref.document,
13758
13759
  signItIntegration = _ref.signItIntegration;
13759
13760
  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>"]))) : '( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)');
13761
+ 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>"]))) : '( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)');
13761
13762
  };
13762
13763
 
13763
13764
  var _templateObject$H, _templateObject2$k;
@@ -13767,7 +13768,7 @@ var SignatureContainer$2 = function SignatureContainer(_ref) {
13767
13768
  document = _ref.document,
13768
13769
  signatureBase64 = _ref.signatureBase64;
13769
13770
  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) : '');
13771
+ 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
13772
  };
13772
13773
 
13773
13774
  var _templateObject$I;
@@ -13824,11 +13825,13 @@ var BookipayBrandFooter$1 = function BookipayBrandFooter(_ref) {
13824
13825
  label: 'Download Bookipi App',
13825
13826
  url: 'https://bookipiinvoice.app.link/uBAtQZtPLMb'
13826
13827
  } : _ref$cta,
13828
+ _ref$position = _ref.position,
13829
+ position = _ref$position === void 0 ? 'fixed' : _ref$position,
13827
13830
  defaultLang = _ref.defaultLang;
13828
13831
  if (!title) {
13829
13832
  return '';
13830
13833
  }
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:fixed;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>"])), 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>" : '');
13834
+ 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
13835
  };
13833
13836
 
13834
13837
  var _templateObject$L, _templateObject2$m, _templateObject3$9;
@@ -13890,8 +13893,6 @@ var renderLayout = (function (_ref) {
13890
13893
  showActions = _ref$showActions === void 0 ? false : _ref$showActions,
13891
13894
  _ref$isFullScreen = _ref.isFullScreen,
13892
13895
  isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
13893
- _ref$sentDate = _ref.sentDate,
13894
- sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
13895
13896
  _ref$isQIS = _ref.isQIS,
13896
13897
  isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
13897
13898
  var defaultLang = langJP;
@@ -13931,7 +13932,6 @@ var renderLayout = (function (_ref) {
13931
13932
  invoice: invoice,
13932
13933
  companyLogoBase: companyLogoBase,
13933
13934
  defaultLang: defaultLang,
13934
- sentDate: sentDate,
13935
13935
  isQIS: isQIS
13936
13936
  }), InvoiceCompany$2({
13937
13937
  document: document,
@@ -13970,8 +13970,10 @@ var renderLayout = (function (_ref) {
13970
13970
  attachments: attachments
13971
13971
  }), showFooterBrand ? BookipayBrandFooter$1(_extends({
13972
13972
  title: footerBrandText
13973
- }, footerBrandProps)) : '', !removeHtmlStandardDom ? '</body></html>' : '');
13974
- var html = htmlRaw$2(_templateObject2$o || (_templateObject2$o = _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);
13973
+ }, footerBrandProps, {
13974
+ defaultLang: defaultLang
13975
+ })) : '', !removeHtmlStandardDom ? '</body></html>' : '');
13976
+ 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
13977
  return {
13976
13978
  html: html,
13977
13979
  timeZone: timeZone,
@@ -14007,8 +14009,6 @@ var invoiceHtml$1 = (function (_ref) {
14007
14009
  showActions = _ref$showActions === void 0 ? false : _ref$showActions,
14008
14010
  _ref$isFullScreen = _ref.isFullScreen,
14009
14011
  isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
14010
- _ref$sentDate = _ref.sentDate,
14011
- sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
14012
14012
  _ref$isQIS = _ref.isQIS,
14013
14013
  isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
14014
14014
  return renderLayout({
@@ -14029,7 +14029,6 @@ var invoiceHtml$1 = (function (_ref) {
14029
14029
  showWatermark: showWatermark,
14030
14030
  showActions: showActions,
14031
14031
  isFullScreen: isFullScreen,
14032
- sentDate: sentDate,
14033
14032
  isQIS: isQIS
14034
14033
  }).html;
14035
14034
  });
@@ -14057,8 +14056,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
14057
14056
  showActions = _ref$showActions === void 0 ? false : _ref$showActions,
14058
14057
  _ref$isFullScreen = _ref.isFullScreen,
14059
14058
  isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen,
14060
- _ref$sentDate = _ref.sentDate,
14061
- sentDate = _ref$sentDate === void 0 ? null : _ref$sentDate,
14062
14059
  _ref$isQIS = _ref.isQIS,
14063
14060
  isQIS = _ref$isQIS === void 0 ? false : _ref$isQIS;
14064
14061
  return invoiceHtml$1({
@@ -14077,7 +14074,6 @@ var InvoiceCompatHtml$1 = function InvoiceCompatHtml(_ref) {
14077
14074
  showWatermark: showWatermark,
14078
14075
  showActions: showActions,
14079
14076
  isFullScreen: isFullScreen,
14080
- sentDate: sentDate,
14081
14077
  isQIS: isQIS
14082
14078
  });
14083
14079
  };