@bookipi/htmlgenerator 1.1.35-alpha5 → 1.1.35-alpha7

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.
@@ -12322,6 +12322,11 @@ var getObjectInject = function getObjectInject(arr, objectDefine) {
12322
12322
  var SECTION_DEFINE = [{
12323
12323
  termHeading: '',
12324
12324
  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.',
12325
+ termContent_1: 'The following terms and conditions form the Terms of Services between',
12326
+ termContent_2: 'Supplier',
12327
+ termContent_3: 'Customer',
12328
+ termContent_4: 'Please review the following terms carefully before accepting this Proposal.',
12329
+ termContent_5: 'and',
12325
12330
  isTermHidden: false,
12326
12331
  replace: ['customerName', 'companyName']
12327
12332
  }];
@@ -12420,7 +12425,7 @@ var contractHtml = (function (props) {
12420
12425
  sectionServices += '<table class="table-service"><tbody>';
12421
12426
  if (items && items.length > 0) {
12422
12427
  items.forEach(function (it) {
12423
- 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);
12424
12429
  sectionServices += "<tr><td>";
12425
12430
  if (it.billingType !== "none") {
12426
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>";
@@ -12444,7 +12449,7 @@ var contractHtml = (function (props) {
12444
12449
  sectionServices += "</div>";
12445
12450
  }
12446
12451
  sectionServices += '</td><td align="right">';
12447
- 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>";
12448
12453
  sectionServices += "</td></tr>";
12449
12454
  });
12450
12455
  } else {
@@ -12465,7 +12470,7 @@ var contractHtml = (function (props) {
12465
12470
  if (s !== null && s !== void 0 && s.termContent) {
12466
12471
  var _s$replace;
12467
12472
  sectionAgreement += '<p style="marginBottom: 10px">';
12468
- 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> " + t(s.termContent_5) + " <b>{customerName} (" + t(s.termContent_3) + ")</b>. " + t(s.termContent_4) : s.termContent, getObjectInject(s.replace, objectDefine)));
12469
12474
  sectionAgreement += "</p>";
12470
12475
  }
12471
12476
  sectionAgreement += "</td></tr>";