@salesgenterp/ui-components 0.4.27 → 0.4.28

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
@@ -1975,6 +1975,8 @@ var TextRow = styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemp
1975
1975
  var FilledInfo = styled.div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 2em;\n .heading {\n font-size: 1.25em;\n font-weight: 800;\n margin-bottom: 0.8em;\n }\n\n p {\n font-size: 0.875em;\n font-weight: 300;\n text-transform: capitalize;\n max-width: 50%;\n }\n .bold {\n font-weight: 700;\n }\n .payment {\n width: 70px;\n height: 48px;\n background: #ffffff;\n border-radius: 15.875px;\n display: grid;\n place-items: center;\n overflow: hidden;\n }\n .blank {\n padding-bottom: 2em;\n }\n"])));
1976
1976
 
1977
1977
  var CheckoutSummary = function CheckoutSummary(_ref) {
1978
+ var _src;
1979
+
1978
1980
  var total = _ref.total,
1979
1981
  billingInformation = _ref.billingInformation,
1980
1982
  shippingInformation = _ref.shippingInformation,
@@ -1982,7 +1984,7 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
1982
1984
  var src = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.name;
1983
1985
  var Images = ['visa', 'mastercard', 'paypal', 'stripe'];
1984
1986
 
1985
- if (src.toLowerCase().includes('card')) {
1987
+ if ((_src = src) !== null && _src !== void 0 && _src.toLowerCase().includes('card')) {
1986
1988
  if (src !== 'masterCard') {
1987
1989
  src = 'visa';
1988
1990
  }
@@ -2520,9 +2522,11 @@ var Step3 = function Step3(_ref) {
2520
2522
  margin: '1.5em 0'
2521
2523
  }
2522
2524
  }, payments === null || payments === void 0 ? void 0 : payments.map(function (payment, i) {
2525
+ var _src;
2526
+
2523
2527
  var src = payment === null || payment === void 0 ? void 0 : payment.name;
2524
2528
 
2525
- if (src.toLowerCase().includes('card')) {
2529
+ if ((_src = src) !== null && _src !== void 0 && _src.toLowerCase().includes('card')) {
2526
2530
  if (src !== 'masterCard') {
2527
2531
  src = 'visa';
2528
2532
  }