@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.cjs.js CHANGED
@@ -46529,12 +46529,10 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46529
46529
  var errorMessages = amountErrors;
46530
46530
 
46531
46531
  if (blockPartialPaymentOverpay) {
46532
- console.log("item amount in form is", itemAmount);
46533
46532
  var maxAmountError = "There is a maximum payment of ".concat(displayCurrency(itemAmount));
46534
46533
  return _objectSpread2(_objectSpread2({}, errorMessages), {}, _defineProperty({}, numberLessThanOrEqualTo.error, maxAmountError));
46535
46534
  }
46536
46535
 
46537
- console.log("error messages are", errorMessages);
46538
46536
  return errorMessages;
46539
46537
  };
46540
46538
 
@@ -46577,9 +46575,6 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46577
46575
  var minimum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
46578
46576
  var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
46579
46577
  var formConfig = lineItems.reduce(function (acc, item) {
46580
- console.log("maximum is", maximum);
46581
- console.log("item amount is", item.amount);
46582
- console.log("block payment overpay", blockPartialPaymentOverpay);
46583
46578
  var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46584
46579
  return lineItem != item;
46585
46580
  }).reduce(function (acc, curr) {