@bookipi/htmlgenerator 1.1.35-alpha5 → 1.1.35-alpha6

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
@@ -12323,6 +12323,10 @@ var getObjectInject = function getObjectInject(arr, objectDefine) {
12323
12323
  var SECTION_DEFINE = [{
12324
12324
  termHeading: '',
12325
12325
  termContent: 'The following terms and conditions form the Terms of Services between <b>{companyName} (Supplier)</b> and <b>{customerName} (Customer)</b>. Please review the following terms carefully before accepting this Proposal.',
12326
+ termContent_1: 'The following terms and conditions form the Terms of Services between',
12327
+ termContent_2: 'Supplier',
12328
+ termContent_3: 'Customer',
12329
+ termContent_4: 'Please review the following terms carefully before accepting this Proposal',
12326
12330
  isTermHidden: false,
12327
12331
  replace: ['customerName', 'companyName']
12328
12332
  }];
@@ -12421,7 +12425,7 @@ var contractHtml = (function (props) {
12421
12425
  sectionServices += '<table class="table-service"><tbody>';
12422
12426
  if (items && items.length > 0) {
12423
12427
  items.forEach(function (it) {
12424
- var taxTitle = getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax'));
12428
+ var taxTitle = t ? getTaxTitle(it, true).replace('including', t('including')).replace('excluding', t('excluding')).replace('Add Tax', t('Add Tax')) : getTaxTitle(it, true);
12425
12429
  sectionServices += "<tr><td>";
12426
12430
  if (it.billingType !== "none") {
12427
12431
  sectionServices += "<b>" + FormatCurrency$4(((it === null || it === void 0 ? void 0 : it.price) || 0) * ((it === null || it === void 0 ? void 0 : it.quantity) || 0), (company === null || company === void 0 ? void 0 : company.currency) || "USD", (company === null || company === void 0 ? void 0 : company.language) || "en", (company === null || company === void 0 ? void 0 : company.currencyFormat) || "") + "</b>";
@@ -12445,7 +12449,7 @@ var contractHtml = (function (props) {
12445
12449
  sectionServices += "</div>";
12446
12450
  }
12447
12451
  sectionServices += '</td><td align="right">';
12448
- sectionServices += "<p>" + getBilling(it, proposal, company).replace('Billed today', t('Billed today')).replace('Billed on completion', t('Billed on completion')).replace('Billed on', t('Billed on')) + "</p>";
12452
+ sectionServices += "<p>" + t ? getBilling(it, proposal, company).replace('Billed today', t('Billed today')).replace('Billed on completion', t('Billed on completion')).replace('Billed on', t('Billed on')) : getBilling(it, proposal, company) + "</p>";
12449
12453
  sectionServices += "</td></tr>";
12450
12454
  });
12451
12455
  } else {
@@ -12466,7 +12470,7 @@ var contractHtml = (function (props) {
12466
12470
  if (s !== null && s !== void 0 && s.termContent) {
12467
12471
  var _s$replace;
12468
12472
  sectionAgreement += '<p style="marginBottom: 10px">';
12469
- sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(s.termContent, getObjectInject(s.replace, objectDefine)));
12473
+ sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(t ? t(s.termContent_1) + " <b>{companyName} (" + t(s.termContent_2) + ")</b> and <b>{customerName} (" + t(s.termContent_3) + ")</b>. " + t(s.termContent_4) + "." : s.termContent, getObjectInject(s.replace, objectDefine)));
12470
12474
  sectionAgreement += "</p>";
12471
12475
  }
12472
12476
  sectionAgreement += "</td></tr>";