@itilite/iui-user-management 1.4.7684 → 1.4.7711

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
@@ -2238,11 +2238,12 @@ var editCustomFieldLabel = function editCustomFieldLabel(payload) {
2238
2238
  var IUILocalStorageService$4 = utils.services.IUILocalStorageService;
2239
2239
  var env$3 = utils.configs.env;
2240
2240
  var CardsManagement = function CardsManagement(_ref) {
2241
- var _pg$gateway;
2241
+ var _pg$gateway, _pg$gateway2;
2242
2242
  var _ref$paymentDetails = _ref.paymentDetails,
2243
2243
  paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails,
2244
2244
  _ref$paymentMethod = _ref.paymentMethod,
2245
2245
  paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod;
2246
+ console.log(paymentMethod, 'paymentMethod in CardsManagement');
2246
2247
  var dispatch = reactRedux.useDispatch();
2247
2248
  var pg = paymentDetails.pg,
2248
2249
  _paymentDetails$cards = paymentDetails.cards,
@@ -2418,7 +2419,7 @@ var CardsManagement = function CardsManagement(_ref) {
2418
2419
  return renderCard(card);
2419
2420
  }), corporateCards.map(function (card) {
2420
2421
  return renderCard(card);
2421
- })), (!cards || (cards === null || cards === void 0 ? void 0 : cards.length) < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod === 1 && /*#__PURE__*/React__default.createElement("button", {
2422
+ })), console.log(paymentMethod, 'paymentMethod in card section', !cards, (cards === null || cards === void 0 ? void 0 : cards.length) < 10, pg, (pg === null || pg === void 0 ? void 0 : (_pg$gateway = pg.gateway) === null || _pg$gateway === void 0 ? void 0 : _pg$gateway.toLowerCase()) === 'stripe', (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1, paymentMethod === 1), (!cards || (cards === null || cards === void 0 ? void 0 : cards.length) < 10) && (pg === null || pg === void 0 ? void 0 : (_pg$gateway2 = pg.gateway) === null || _pg$gateway2 === void 0 ? void 0 : _pg$gateway2.toLowerCase()) === 'stripe' && (pg === null || pg === void 0 ? void 0 : pg.save_card_enable) === 1 && paymentMethod === 1 && /*#__PURE__*/React__default.createElement("button", {
2422
2423
  className: classes.addCardButton,
2423
2424
  onClick: function onClick() {
2424
2425
  return window.location.assign(_url);
@@ -2480,6 +2481,7 @@ var PaymentCards = function PaymentCards(_ref) {
2480
2481
  if (!paymentDetails || Object.keys(paymentDetails).length === 0 || (!paymentDetails.cards || paymentDetails.cards.length === 0) && ((paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$pg = paymentDetails.pg) === null || _paymentDetails$pg === void 0 ? void 0 : _paymentDetails$pg.gateway.toLowerCase()) !== 'stripe' || (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$pg2 = paymentDetails.pg) === null || _paymentDetails$pg2 === void 0 ? void 0 : _paymentDetails$pg2.save_card_enable) !== 1 || paymentMethod !== 1)) {
2481
2482
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
2482
2483
  }
2484
+ console.log(paymentMethod, 'paymentMethod in payment cards');
2483
2485
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
2484
2486
  className: styles$1.dividerColor
2485
2487
  }), /*#__PURE__*/React__default.createElement(CardsManagement, {