@bookipi/htmlgenerator 1.9.0-alpha1 → 1.9.0-alpha2

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.
@@ -11999,7 +11999,7 @@ var PaymentInstructions = function PaymentInstructions(_ref) {
11999
11999
 
12000
12000
  var COMPANY_KEYS = ['_id', 'fax', 'contactName', 'c', 'e', 'ph', 'tfn', 'la', 'cr', 'cf', 'tz', 'ls', 'doc', 'bn', 'tn', 'tn2', 'tp', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pi', 'p1', 'p2', 'p3', 'sg', 'a1', 'a2', 'a3', 'address', 'language', 'la', 'sc', 'sr', 'ai', 'ct', 'de', 'r_bs', 'r_tc', 'r_nt', 'r_deposit_due', 'r_ad', 'r_gt', 'r_po', 'r_bt', 'r_st', 'r_d', 'r_a', 'r_dc', 'r_ic', 'r_it', 'r_n', 'r_p', 'r_q', 'r_sb', 'r_sp', 'r_tt', 'r_pi', 'r_inv', 'r_est', 'r_crd', 'r_dd', 'df', 'lg', 'hasPaymentInstructionQRCode', 'updatedAt', 'payment_in_progress'];
12001
12001
 
12002
- var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tp2', 'tn', 'tn2', 'tax1BaseAmount', 'tax2BaseAmount', 'ti', 'ttx', 't1d', 't2d', 'pm', 'sca', 'hangingAmount', 'depositAmount', 'um', 'shouldShowPaymentInstructions', 'customization', 'asi', 'no', 'proposal', 'd', 'rd', 'di', 'pon', 'pma', 'depositDue', 'noteHtml', 'nt', 'tc', 'sd', 'cs', 'a1', 'a2', 'a3', 't2di', 'dco', 'csd', 'tz', 'sent'];
12002
+ var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tp2', 'tn', 'tn2', 'tax1BaseAmount', 'tax2BaseAmount', 'ti', 'ttx', 't1d', 't2d', 'pm', 'sca', 'hangingAmount', 'depositAmount', 'um', 'shouldShowPaymentInstructions', 'customization', 'asi', 'no', 'proposal', 'd', 'rd', 'di', 'pon', 'pma', 'depositDue', 'noteHtml', 'nt', 'tc', 'sd', 'cs', 'a1', 'a2', 'a3', 't2di', 'dco', 'csd', 'tz', 'sent', 'isSignatureOverlayed'];
12003
12003
 
12004
12004
  var decodeHtml = function decodeHtml(str) {
12005
12005
  if (str === void 0) {
@@ -13711,7 +13711,7 @@ var invoiceStyle$2 = function invoiceStyle(_ref) {
13711
13711
  var watermarkText = defaultLang['upgradeRequired'] || 'Upgrade required';
13712
13712
  var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='BIZ UDGothic, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
13713
13713
  var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
13714
- return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
13714
+ return html$u(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400;\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n position: relative;\n z-index: 1;\n }\n\n #invoice:before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 7px;\n background: ", ";\n }\n\n #invoice:after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceHeading */\n\n .invoice-heading {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"BIZ UDGothic\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n .date-and-number {\n font-size: ", ";\n color: #111928;\n font-weight: 400;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .date-and-number-label {\n font-weight: 600;\n color: #6B7280;\n text-transform: uppercase;\n }\n\n\n /* InvoiceCompany */\n\n .company-label {\n font-size: ", ";\n font-weight: 600;\n color: #111928;\n }\n\n .company-title-wrapper {\n position: relative;\n display: block; width:\n fit-content;\n min-width: 80px;\n }\n\n .company-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0;\n color: #111928;\n\n display: inline;\n line-break: strict;\n word-break: normal;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: manual;\n }\n\n .hanko-image {\n position: absolute;\n top: 50%;\n right: -24px;\n transform: translateY(-50%);\n max-width: 120px;\n max-height: 80px;\n width: auto;\n height: auto;\n object-fit: contain;\n mix-blend-mode: multiply;\n }\n\n .invoice-company {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"BIZ UDGothic\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n line-height: 1.5;\n }\n\n .invoice-detail-right {\n display: inline-block;\n font-family: \"BIZ UDGothic\", sans-serif;\n margin-bottom: 16px;\n min-width: 204px;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n line-height: 1.5;\n text-transform: uppercase;\n }\n\n /* Amount Due Container */\n\n .amount-due-title {\n font-size: ", ";\n font-weight: 600;\n margin-top: 0;\n margin-bottom: 0px;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-table-header > .table {\n color: ", ";\n }\n\n .invoice-items-head th {\n font-size: ", ";\n }\n\n .table-invoice {\n word-break: keep-all;\n }\n\n .table-invoice td, .table-invoice th {\n padding: .75rem .25rem;\n }\n\n .table-invoice thead th {\n vertical-align: middle;\n }\n\n .item-head-cell-qis {\n\n }\n\n .item-total-cell {\n }\n\n th.item-head-cell {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .item-delivery-date-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-tax-small-screen {\n font-size: ", ";\n color: #4B5563;\n }\n\n .item-name {\n color: #000000;\n font-weight: 400;\n font-size: ", ";\n line-height: 1.5;\n }\n\n .item-productcode {\n ", "\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n ", "\n font-size: ", ";\n font-weight: 400;\n color: #475467;\n line-height: 1.5;\n }\n\n .item-detail-cell {\n color: #111928;\n ", "\n font-size: ", ";\n line-height: 1.5;\n }\n\n .payment-instruction-container {\n ", "\n }\n\n .payment-instruction {\n margin-top: 0;\n margin-bottom: 16px;\n font-size: ", ";\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n ", "\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .price-total {\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n font-family: \"BIZ UDGothic\", sans-serif;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n ", "\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n /* tax table */\n\n .tax-table-wrapper {\n width: fit-content;\n border-radius: 8px;\n border: 1px solid #E5E7EB;\n overflow: hidden;\n }\n\n .tax-table {\n width: auto;\n border-collapse: collapse;\n border-style: hidden;\n margin-bottom: 0;\n table-layout: fixed;\n }\n\n .tax-table th, .tax-table td {\n padding: 8px 16px;\n text-align: center;\n }\n\n .tax-table thead {\n background: ", ";\n }\n\n .tax-table tbody {\n ", "\n }\n\n .tax-table th {\n color: ", ";\n font-weight: 600;\n font-size: ", ";\n border-bottom: none !important;\n }\n\n .tax-table td {\n border: 1px solid #E5E7EB;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n ", "\n }\n\n .signature-name {\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn-url:hover {\n cursor: pointer;\n text-decoration: none;\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n\n .table-inline-block{\n display: inline-block;\n }\n\n .page-not-break {\n page-break-before: auto;\n page-break-after: auto;\n page-break-inside: avoid;\n break-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n table {\n width: 100%;\n border-collapse: collapse;\n }\n tr, td {\n page-break-inside: auto!important;\n }\n td, th {\n word-wrap: break-word;\n white-space: normal;\n }\n .invoice-content {\n page-break-before: auto;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n .print-footer {\n position: fixed!important;\n }\n\n .print-footer-spacer {\n height: 60px;\n }\n\n .attachment-image {\n max-height: 90vh;\n page-break-inside: avoid;\n page-break-before: auto;\n page-break-after: auto;\n }\n\n }\n\n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n }\n .text-right{\n text-align: right;\n }\n .text-uppercase {\n text-transform: uppercase;\n }\n\n @media only screen {\n #invoice {\n ", "\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n }\n\n @media only screen and (max-width: 767.98px) {\n .item-last {\n width: 30%\n }\n\n th.item-head-cell-qis {\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n padding-left: .75rem;\n }\n\n .invoice-to {\n margin-bottom: 24px;\n }\n\n td.item-total-cell {\n vertical-align: bottom;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-calc(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', fontName === 'round' ? "font-family: \"M PLUS Rounded 1c\", sans-serif;" : '', color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, bodyFontSize, bodyFontSize, headingFontSize, color === '#ffffff' ? "1px solid #E5E7EB;" : "none;", color === '#ffffff' ? 'none' : color + '1A', heading2FontSize, bodyFontSize, subFontSize, headingFontSize, color === '#ffffff' ? '#f3f4f6' : color, getHeaderTextColor(color), bodyFontSize, bodyFontSize, bodyFontSize, contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', contentFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', heading2FontSize, fontSize === 'medium' ? '17px' : '21px', fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', subFontSize, color === '#ffffff' ? '#f3f4f6' : color, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', getHeaderTextColor(color), bodyFontSize, fontName === 'round' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'normal' ? "font-family: \"BIZ UDGothic\", sans-serif;" : '', fontName === 'classic' ? "font-family: \"BIZ UDMincho\", serif;" : '', bodyFontSize, fontSize === 'medium' ? '85%' : '95%', color === '#ffffff' ? '#f3f4f6' : color, isFromReactnative ? 'zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;' : '', isFullScreen ? 'border-radius: 32px !important; overflow: hidden !important; max-width: 100% !important;' : 'margin-top:10px; max-width:22.5cm; border: 1px solid #E5E7EB; border-radius: 4px;', subFontSize, signItIntegration ? "\n #client_signature_parent {\n padding-top: 22.5px\n }\n #signature_link {\n margin-left: 75px;\n margin-top: 0;\n }\n #client_date_signature {\n margin-left: 100px;\n }\n " : '');
13715
13715
  };
13716
13716
 
13717
13717
  var _templateObject$x, _templateObject2$f;
@@ -13779,6 +13779,7 @@ var html$y = String.raw;
13779
13779
  var InvoiceCompany$2 = function InvoiceCompany(_ref) {
13780
13780
  var company = _ref.company,
13781
13781
  document = _ref.document,
13782
+ invoice = _ref.invoice,
13782
13783
  defaultLang = _ref.defaultLang;
13783
13784
  var customer = document.cu;
13784
13785
  var customerAddress = getCustomerAddress(customer);
@@ -13787,7 +13788,8 @@ var InvoiceCompany$2 = function InvoiceCompany(_ref) {
13787
13788
  var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
13788
13789
  var customerCompanyName = (customer.individualCompanyName ? customer.individualCompanyName : '') + (customer.departmentName ? '<br />' + customer.departmentName : '');
13789
13790
  var customerPersonName = customer.c;
13790
- return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">", "</h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (customerPersonName ? '<br />' : ' ' + defaultLang['gochuu']) + '</span>' : '', customerPersonName ? '<span>' + customerPersonName + ' ' + defaultLang['san'] + '</span>' : '', customerAddress.zip ? '〒 ' + customerAddress.zip + ' ' : '', customerAddress.city || customerAddress.state ? "" + ((customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.city ? customerAddress.city + ' ' : '')) : '', customerAddress.address1 ? "" + customerAddress.address1 : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customer && customer.tfn ? "<div><span style=\"font-weight: 600;\">" + (customer.tfn ? defaultLang['business_number'] + ':</span> ' + customer.tfn : '') + "</div>" : '', customer && customer.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + customer.ph + "</div>" : '', customer && customer.e ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + customer.e + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<div class=\"company-address\" style=\"padding-top:8px; font-weight: 600;\" >" + defaultLang['ship_to'] + ":</div>" : '', shippingAddressExists ? "\n <div class=\"company-address\">\n <div>\n <div>\n " + (customerShippingAddress.zip ? '〒 ' + customerShippingAddress.zip + ' ' : '') + "\n </div>\n <div>\n " + (customerShippingAddress.city || customerShippingAddress.state ? "" + ((customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.city ? customerShippingAddress.city + ' ' : '')) : '') + "\n " + (customerShippingAddress.address1 ? "" + customerShippingAddress.address1 : '') + "\n </div>\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </div>\n </div>\n " : '', defaultLang['invoice_details'], defaultLang['issue_from'], company.c, companyAddress.zip ? '〒 ' + companyAddress.zip + ' ' : '', companyAddress.city || companyAddress.state ? "" + ((companyAddress.state ? companyAddress.state + ' ' : '') + (companyAddress.city ? companyAddress.city + ' ' : '')) : '', companyAddress.address1 ? "" + companyAddress.address1 : '', companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : '', companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : '', company.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + company.ph + "</div>" : '', company.fax ? "<div><span style=\"font-weight: 600;\">FAX:</span> " + company.fax + "</div>" : '', company.de ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + company.de + "</div>" : '', company.contactName ? "<div><span style=\"font-weight: 600;\">" + defaultLang['contact_person'] + ":</span> " + company.contactName + "</div>" : '', company.ai ? "<div style=\"padding-top: 8px;\">" + company.ai + "</div>" : '');
13791
+ var hankoBase64 = invoice.signatureBase64;
13792
+ return html$y(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["<!-- begin invoice-header -->\n <div class=\"invoice-company\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-7\">\n <span class=\"company-label\">", "</span>\n <h2 class=\"company-title\">\n ", "\n ", "\n </h2>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n </div>\n\n ", "\n ", "\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n </div>\n </div>\n\n <div class=\"col-sm-12 col-md-5\">\n <span class=\"company-label\">", "</span>\n <div>\n <div class=\"company-title-wrapper\">\n <h2 class=\"company-title\">", "</h2>\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n <div>\n <div>\n ", "\n </div>\n <div>\n ", "\n ", "\n </div>\n ", "\n ", "\n </div>\n </div>\n <div class=\"company-address\" style=\"padding-top: 8px;\">\n ", "\n ", "\n ", "\n ", "\n ", "\n </div>\n </div>\n </div>\n </div>\n <!-- end invoice-header -->"])), defaultLang['bill_to'], customerCompanyName ? '<span>' + customerCompanyName + (customerPersonName ? '<br />' : ' ' + defaultLang['gochuu']) + '</span>' : '', customerPersonName ? '<span>' + customerPersonName + ' ' + defaultLang['san'] + '</span>' : '', customerAddress.zip ? '〒 ' + customerAddress.zip + ' ' : '', customerAddress.city || customerAddress.state ? "" + ((customerAddress.state ? customerAddress.state + ' ' : '') + (customerAddress.city ? customerAddress.city + ' ' : '')) : '', customerAddress.address1 ? "" + customerAddress.address1 : '', customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : '', customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : '', customer && customer.tfn ? "<div><span style=\"font-weight: 600;\">" + (customer.tfn ? defaultLang['business_number'] + ':</span> ' + customer.tfn : '') + "</div>" : '', customer && customer.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + customer.ph + "</div>" : '', customer && customer.e ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + customer.e + "</div>" : '', customer && customer.ai ? "<div>" + customer.ai + "</div>" : '', shippingAddressExists ? "<div class=\"company-address\" style=\"padding-top:8px; font-weight: 600;\" >" + defaultLang['ship_to'] + ":</div>" : '', shippingAddressExists ? "\n <div class=\"company-address\">\n <div>\n <div>\n " + (customerShippingAddress.zip ? '〒 ' + customerShippingAddress.zip + ' ' : '') + "\n </div>\n <div>\n " + (customerShippingAddress.city || customerShippingAddress.state ? "" + ((customerShippingAddress.state ? customerShippingAddress.state + ' ' : '') + (customerShippingAddress.city ? customerShippingAddress.city + ' ' : '')) : '') + "\n " + (customerShippingAddress.address1 ? "" + customerShippingAddress.address1 : '') + "\n </div>\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : '') + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : '') + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : '') + "\n </div>\n </div>\n " : '', defaultLang['invoice_details'], defaultLang['issue_from'], company.c, hankoBase64 && document.isSignatureOverlayed ? "<img\n src=\"" + hankoBase64 + "\"\n class=\"hanko-image\"\n onerror=\"this.style.display='none'\"\n />" : '', companyAddress.zip ? '〒 ' + companyAddress.zip + ' ' : '', companyAddress.city || companyAddress.state ? "" + ((companyAddress.state ? companyAddress.state + ' ' : '') + (companyAddress.city ? companyAddress.city + ' ' : '')) : '', companyAddress.address1 ? "" + companyAddress.address1 : '', companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : '', companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : '', company.ph ? "<div><span style=\"font-weight: 600;\">TEL:</span> " + company.ph + "</div>" : '', company.fax ? "<div><span style=\"font-weight: 600;\">FAX:</span> " + company.fax + "</div>" : '', company.de ? "<div><span style=\"font-weight: 600;\">E-Mail:</span> " + company.de + "</div>" : '', company.contactName ? "<div><span style=\"font-weight: 600;\">" + defaultLang['contact_person'] + ":</span> " + company.contactName + "</div>" : '', company.ai ? "<div style=\"padding-top: 8px;\">" + company.ai + "</div>" : '');
13791
13793
  };
13792
13794
 
13793
13795
  var FormatCurrency$a = util.FormatCurrency;
@@ -14105,6 +14107,7 @@ var renderLayout = (function (_ref) {
14105
14107
  }), InvoiceCompany$2({
14106
14108
  document: document,
14107
14109
  company: company,
14110
+ invoice: invoice,
14108
14111
  defaultLang: defaultLang
14109
14112
  }), AmountDueContainer({
14110
14113
  company: company,