@bookipi/htmlgenerator 1.3.1-alpha3 → 1.3.1-alpha5

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.
@@ -474,8 +474,8 @@ var en = (_deposit_due$terms$pr = {
474
474
  details_line_3: function details_line_3(x, y, z) {
475
475
  return x + " (" + y + "). " + z;
476
476
  },
477
- details_line_3_1: 'This offer is valid from the date of issue and will expire at the close of business',
478
- details_line_3_2: 'Acceptance will be in the form of accepting and signing this proposal.',
477
+ details_line_3_1: "This offer is valid from the date of issue and will expire at the close of business",
478
+ details_line_3_2: "Acceptance will be in the form of accepting and signing this proposal.",
479
479
  details_line_4: "Please accept this proposal and terms of service. This creates a legally binding contract between us. At any time if you have any questions please contact us on the details above. These terms will be effective throughout the period of our engagement and may only be changed by the Parties' agreement in writing.",
480
480
  supplier_details: "Supplier Details",
481
481
  customer_details: "Customer Details",
@@ -484,7 +484,7 @@ var en = (_deposit_due$terms$pr = {
484
484
  customer_empty: "No customer added yet.",
485
485
  kind_regards: "Kind regards",
486
486
  services_title: "Billing Schedule"
487
- }, _deposit_due$terms$pr["total"] = "Total:", _deposit_due$terms$pr.items_empty = "No services added yet.", _deposit_due$terms$pr.agreement_title = "Terms and Conditions", _deposit_due$terms$pr["signature"] = "Signature", _deposit_due$terms$pr.proposal_id = "Proposal ID:", _deposit_due$terms$pr.client = "Client:", _deposit_due$terms$pr.email_addresses = "Email address:", _deposit_due$terms$pr.ip = "IP:", _deposit_due$terms$pr.time = "Time:", _deposit_due$terms$pr);
487
+ }, _deposit_due$terms$pr["total"] = "Total:", _deposit_due$terms$pr.items_empty = "No services added yet.", _deposit_due$terms$pr.agreement_title = "Terms and Conditions", _deposit_due$terms$pr["signature"] = "Signature", _deposit_due$terms$pr.proposal_id = "Proposal ID:", _deposit_due$terms$pr.client = "Client:", _deposit_due$terms$pr.email_addresses = "Email address:", _deposit_due$terms$pr.ip = "IP:", _deposit_due$terms$pr.time = "Time:", _deposit_due$terms$pr.upgradeRequired = "Upgrade required", _deposit_due$terms$pr);
488
488
 
489
489
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
490
490
 
@@ -12244,6 +12244,21 @@ var invoiceHtmlWithDetails = (function (_ref) {
12244
12244
  };
12245
12245
  });
12246
12246
 
12247
+ var hexToRGB = function hexToRGB(hex) {
12248
+ hex = hex.replace(/^#/, "");
12249
+ return {
12250
+ r: parseInt(hex.substring(0, 2), 16),
12251
+ g: parseInt(hex.substring(2, 4), 16),
12252
+ b: parseInt(hex.substring(4, 6), 16)
12253
+ };
12254
+ };
12255
+ var getBrightness = function getBrightness(rgb) {
12256
+ var r = rgb.r,
12257
+ g = rgb.g,
12258
+ b = rgb.b;
12259
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
12260
+ };
12261
+
12247
12262
  var _templateObject$h;
12248
12263
  var html$g = String.raw;
12249
12264
  var invoiceStyle$1 = function invoiceStyle(_ref) {
@@ -12252,13 +12267,26 @@ var invoiceStyle$1 = function invoiceStyle(_ref) {
12252
12267
  _ref$fontName = _ref.fontName,
12253
12268
  fontName = _ref$fontName === void 0 ? "normal" : _ref$fontName,
12254
12269
  _ref$fontSize = _ref.fontSize,
12255
- fontSize = _ref$fontSize === void 0 ? "medium" : _ref$fontSize;
12270
+ fontSize = _ref$fontSize === void 0 ? "medium" : _ref$fontSize,
12271
+ _ref$color = _ref.color,
12272
+ color = _ref$color === void 0 ? "#ffffff" : _ref$color,
12273
+ _ref$showWatermark = _ref.showWatermark,
12274
+ showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark,
12275
+ defaultLang = _ref.defaultLang;
12256
12276
  var subFontSize = fontSize === "medium" ? "12px" : "14px";
12257
12277
  var bodyFontSize = fontSize === "medium" ? "14px" : "16px";
12258
12278
  var heading2FontSize = fontSize === "medium" ? "20px" : "24px";
12259
12279
  var headingFontSize = fontSize === "medium" ? "24px" : "36px";
12260
12280
  var titleFontSize = fontSize === "medium" ? "36px" : "56px";
12261
- return html$g(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n }\n\n .invoice-body {\n background: #fff;\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: 1px solid #E5E7EB;\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n }\n\n .invoice-detail-right {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\n }\n\n /* InvoiceContent */\n\n .invoice-table-header{\n background: #F3F4F6;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .invoice-content td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .item-name {\n font-weight: 500;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-detail-cell {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .payment-instruction {\n margin-top: 0;\n font-size: 16px;\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn.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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\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: #f3f4f6 !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n //background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\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\n @media only screen {\n #invoice {\n margin-top:10px;\n max-width:28cm;\n // zoom: 0.8;\n border: 1px solid #E5E7EB;\n border-radius: 4px;\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-cal(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === "normal" ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : "", fontName === "classic" ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : "", fontName === "round" ? "font-family: \"Comfortaa\", sans-serif;" : "", heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, heading2FontSize, bodyFontSize, subFontSize, bodyFontSize, heading2FontSize, heading2FontSize, fontSize === "medium" ? "17px" : "21px", subFontSize, fontName === "normal" ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : "", fontName === "classic" ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : "", fontName === "round" ? "font-family: \"Comfortaa\", sans-serif;" : "", bodyFontSize, fontSize === "medium" ? "85%" : "95%", isFromReactnative ? "zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;" : "", 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 " : "");
12281
+ function getHeaderTextColor(hexColor) {
12282
+ var rgb = hexToRGB(hexColor);
12283
+ var brightness = getBrightness(rgb);
12284
+ return brightness < 128 ? "#ffffff" : "#000000";
12285
+ }
12286
+ var watermarkText = defaultLang["upgradeRequired"] || "Upgrade required";
12287
+ var watermarkSvg = "<svg style='width: 100%;' viewBox='0 0 692 405' fill='none' xmlns='http://www.w3.org/2000/svg'>\n<text opacity='0.03' fill='black' xml:space='preserve' style='white-space: pre' font-family='Inter, sans-serif' font-size='45' font-weight='bold' letter-spacing='0em' text-anchor='middle' alignment-baseline='middle'><tspan x='50%' y='50%'>" + watermarkText + "</tspan></text>\n</svg>";
12288
+ var watermark = "url(\"data:image/svg+xml;utf8, " + encodeURIComponent(watermarkSvg) + "\")";
12289
+ return html$g(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose([" <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n line-height: 1.5;\n font-size: ", ";\n font-weight: 400\n }\n\n table {\n font-size: ", ";\n }\n\n #bookipi-html-generator, #invoice {\n padding: 36px 32px 40px 32px;\n\n ", "\n ", "\n ", "\n\n -webkit-box-shadow: inset 0px 7px 0px 0px ", ";\n -moz-box-shadow: inset 0px 7px 0px 0px ", ";\n box-shadow: inset 0px 7px 0px 0px ", ";\n\n position: relative;\n z-index: 1;\n }\n\n #invoice::after {\n ", "\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n user-select: none;\n background-image: ", ";\n background-repeat: repeat-y;\n background-position: center;\n background-size: 90%;\n }\n\n .invoice-body {\n margin-bottom: 40px;\n }\n\n /* InvoiceCompany */\n\n .invoice-company {\n font-size: ", ";\n }\n\n .document-name {\n font-size:", ";\n font-weight:700;\n text-transform: uppercase;\n margin-bottom: 30px\n }\n\n .company-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .company-address {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n color: #6B7280;\n font-weight:400;\n font-size: ", ";\n }\n\n .logo-text-alternative {\n font-size: ", ";\n font-weight: 600;\n text-transformation: none;\n }\n\n /* InvoiceHeader */\n\n .invoice-header {\n border: ", "\n background: ", "; /* 10% opacity */\n\n border-radius: 8px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 40px;\n }\n\n .invoice-header .customer-name {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px\n }\n\n .invoice-header .heading {\n font-size: ", ";\n font-weight: 600;\n margin-bottom: 8px;\n }\n\n address {\n margin-bottom: 0;\n }\n\n .invoice-header .address-text {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n font-weight: 400;\n color: #6B7280;\n }\n\n .invoice-detail-right {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-date {\n line-height: 30px;\n }\n\n .invoice-date .label {\n font-size: ", ";\n font-weight: 600;\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-content td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .item-name {\n font-weight: 500;\n }\n\n .item-productcode {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-description {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-weight: 400;\n color: #4B5563;\n }\n\n .item-detail-cell {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .payment-instruction {\n margin-top: 0;\n font-size: 16px;\n font-weight: 600;\n }\n\n .invoice-price{\n display: table;\n width: 100%\n }\n\n .price-table {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n width: 56%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n border-radius: 8px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n padding: 12px;\n display: flex;\n width: 100%;\n }\n\n .invoice-price .price-title {\n font-size: ", ";\n font-weight: 600;\n float: left;\n text-align: left;\n flex: 1;\n }\n\n .invoice-price .price-amount {\n font-size: ", ";\n font-weight: 600;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: ", ";\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n\n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n font-size: ", ";\n margin-top: 13px;\n margin-bottom: 10px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .note-and-sign {\n font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;\n }\n\n .signature-name {\n ", "\n ", "\n ", "\n }\n\n .signature-date {\n font-size: ", ";\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: ", "\n }\n\n .btn.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 reak-before: auto;\n break-after: auto;\n break-inside: avoid;\n }\n\n @media print {\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n\n .table thead th {\n background-color: ", " !important;\n }\n\n .logo-wrapper {\n order: 2 !important;\n float: right;\n text-align: right;\n }\n\n .document-name-wrapper {\n order: 1 !important;\n }\n\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n width: 100%;\n box-shadow: 0;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n\n #invoice {\n ", "\n }\n\n .invoice-price .invoice-price-right {\n color: black;\n }\n\n }\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 margin-top:10px;\n max-width:28cm;\n border: 1px solid #E5E7EB;\n border-radius: 4px;\n margin-right:auto;margin-left:auto;\n background-color: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .item-last {\n width: 30%\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n\n .surcharge {\n margin-top: 3px;\n font-size: ", ";\n color: #999;\n }\n h2,h3,h4 {margin-top:15px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n\n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-cal(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n ", "\n </style>"])), bodyFontSize, bodyFontSize, fontName === "normal" ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : "", fontName === "classic" ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : "", fontName === "round" ? "font-family: \"Comfortaa\", sans-serif;" : "", color, color, color, showWatermark && 'content: " ";', watermark, heading2FontSize, titleFontSize, headingFontSize, bodyFontSize, heading2FontSize, color === "#ffffff" ? "1px solid #E5E7EB;" : "none;", color === "#ffffff" ? "none" : color + "1A", heading2FontSize, bodyFontSize, subFontSize, bodyFontSize, color === "#ffffff" ? "#f3f4f6" : color, getHeaderTextColor(color), heading2FontSize, heading2FontSize, fontSize === "medium" ? "17px" : "21px", subFontSize, fontName === "normal" ? "font-family: \"Inter\", \"Noto Sans\", \"Noto Sans TC\", sans-serif;" : "", fontName === "classic" ? "font-family: \"Noto Serif\", \"Noto Serif TC\", serif;" : "", fontName === "round" ? "font-family: \"Comfortaa\", sans-serif;" : "", bodyFontSize, fontSize === "medium" ? "85%" : "95%", color === "#ffffff" ? "#f3f4f6" : color, isFromReactnative ? "zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;" : "", 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 " : "");
12262
12290
  };
12263
12291
 
12264
12292
  var _templateObject$i, _templateObject2$9;
@@ -12590,7 +12618,9 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
12590
12618
  forceItemUnitPriceDecimal = _ref$forceItemUnitPri === void 0 ? undefined : _ref$forceItemUnitPri,
12591
12619
  _ref$signItIntegratio = _ref.signItIntegration,
12592
12620
  signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
12593
- t = _ref.t;
12621
+ t = _ref.t,
12622
+ _ref$showWatermark = _ref.showWatermark,
12623
+ showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
12594
12624
  invoice = sanitize(invoice);
12595
12625
  var defaultLang = {
12596
12626
  document: t ? t("Document") : lang["Invoice"],
@@ -12625,7 +12655,8 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
12625
12655
  });
12626
12656
  } : lang["impose_surcharge"],
12627
12657
  payment_instruction: t ? t("Payment Instruction") : lang["payment_instruction"],
12628
- included: t ? t("included") : lang["included"]
12658
+ included: t ? t("included") : lang["included"],
12659
+ upgradeRequired: t ? t("Upgrade required") : lang["upgradeRequired"]
12629
12660
  };
12630
12661
  var company = invoice.company || {};
12631
12662
  var document = invoice.document || {};
@@ -12648,8 +12679,9 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
12648
12679
  timeZone: timeZone
12649
12680
  });
12650
12681
  };
12651
- var fontName = document.customization ? document.customization.font.name : "round";
12682
+ var fontName = document.customization ? document.customization.font.name : "normal";
12652
12683
  var fontSize = document.customization ? document.customization.font.size : "medium";
12684
+ var color = document.customization ? document.customization.color : "#ffffff";
12653
12685
  var html = htmlRaw$1(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n <div id=\"invoice\" class=\"print\">\n ", "\n ", "\n ", "\n ", "\n ", "\n <div class=\"note-and-sign invoice-body\">\n ", "\n ", "\n ", "\n </div>\n </div>\n\n ", "\n "])), Head$1({
12654
12686
  removeHtmlStandardDom: removeHtmlStandardDom,
12655
12687
  isOffline: isOffline
@@ -12657,7 +12689,10 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
12657
12689
  isFromReactnative: isFromReactnative,
12658
12690
  signItIntegration: signItIntegration,
12659
12691
  fontName: fontName,
12660
- fontSize: fontSize
12692
+ fontSize: fontSize,
12693
+ color: color,
12694
+ showWatermark: showWatermark,
12695
+ defaultLang: defaultLang
12661
12696
  }), !removeHtmlStandardDom ? "<body id=\"bookipi-html-generator\">" : "", InvoiceCompany$1({
12662
12697
  company: company,
12663
12698
  invoice: invoice,
@@ -12739,7 +12774,9 @@ var invoiceHtml = (function (_ref) {
12739
12774
  signItIntegration = _ref$signItIntegratio === void 0 ? false : _ref$signItIntegratio,
12740
12775
  t = _ref.t,
12741
12776
  _ref$isNewLayout = _ref.isNewLayout,
12742
- isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout;
12777
+ isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
12778
+ _ref$showWatermark = _ref.showWatermark,
12779
+ showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
12743
12780
  var renderInvoice = isNewLayout ? invoiceHtmlWithDetailsNew : invoiceHtmlWithDetails;
12744
12781
  return renderInvoice({
12745
12782
  invoice: invoice,
@@ -12755,7 +12792,8 @@ var invoiceHtml = (function (_ref) {
12755
12792
  itemWidth: itemWidth,
12756
12793
  forceItemUnitPriceDecimal: forceItemUnitPriceDecimal,
12757
12794
  signItIntegration: signItIntegration,
12758
- t: t
12795
+ t: t,
12796
+ showWatermark: showWatermark
12759
12797
  }).html;
12760
12798
  });
12761
12799
 
@@ -12927,7 +12965,9 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
12927
12965
  hidePayBtnInScreen = _ref$hidePayBtnInScre === void 0 ? false : _ref$hidePayBtnInScre,
12928
12966
  t = _ref.t,
12929
12967
  _ref$isNewLayout = _ref.isNewLayout,
12930
- isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout;
12968
+ isNewLayout = _ref$isNewLayout === void 0 ? false : _ref$isNewLayout,
12969
+ _ref$showWatermark = _ref.showWatermark,
12970
+ showWatermark = _ref$showWatermark === void 0 ? false : _ref$showWatermark;
12931
12971
  return invoiceHtml({
12932
12972
  invoice: _extends({}, invoice, {
12933
12973
  document: InvoiceCompat(invoice.document),
@@ -12941,7 +12981,8 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
12941
12981
  bookipayLink: bookipayLink,
12942
12982
  hidePayBtnInScreen: hidePayBtnInScreen,
12943
12983
  t: t,
12944
- isNewLayout: isNewLayout
12984
+ isNewLayout: isNewLayout,
12985
+ showWatermark: showWatermark
12945
12986
  });
12946
12987
  };
12947
12988