@thecb/components 7.11.0-beta.7 → 7.11.0

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.esm.js CHANGED
@@ -46521,12 +46521,10 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46521
46521
  var errorMessages = amountErrors;
46522
46522
 
46523
46523
  if (blockPartialPaymentOverpay) {
46524
- console.log("item amount in form is", itemAmount);
46525
46524
  var maxAmountError = "There is a maximum payment of ".concat(displayCurrency(itemAmount));
46526
46525
  return _objectSpread2(_objectSpread2({}, errorMessages), {}, _defineProperty({}, numberLessThanOrEqualTo.error, maxAmountError));
46527
46526
  }
46528
46527
 
46529
- console.log("error messages are", errorMessages);
46530
46528
  return errorMessages;
46531
46529
  };
46532
46530
 
@@ -46569,9 +46567,6 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46569
46567
  var minimum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
46570
46568
  var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
46571
46569
  var formConfig = lineItems.reduce(function (acc, item) {
46572
- console.log("maximum is", maximum);
46573
- console.log("item amount is", item.amount);
46574
- console.log("block payment overpay", blockPartialPaymentOverpay);
46575
46570
  var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46576
46571
  return lineItem != item;
46577
46572
  }).reduce(function (acc, curr) {