@itilite/iui-user-management 1.4.80-flexi-amplitude-test-1 → 1.4.80

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
@@ -2651,9 +2651,7 @@ var CardsManagement = function CardsManagement(_ref) {
2651
2651
  var _ref$paymentDetails = _ref.paymentDetails,
2652
2652
  paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails,
2653
2653
  _ref$paymentMethod = _ref.paymentMethod,
2654
- paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod,
2655
- _ref$sendLog = _ref.sendLog,
2656
- sendLog = _ref$sendLog === void 0 ? function () {} : _ref$sendLog;
2654
+ paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod;
2657
2655
  var dispatch = reactRedux.useDispatch();
2658
2656
  var _ref2 = paymentDetails || {},
2659
2657
  _ref2$pg = _ref2.pg,
@@ -2677,13 +2675,6 @@ var CardsManagement = function CardsManagement(_ref) {
2677
2675
  var handleMarkAsDefault = function handleMarkAsDefault() {
2678
2676
  console.log('Mark as default:', selectedCard);
2679
2677
  if (!pg || !selectedCard) return;
2680
- sendLog({
2681
- eventName: 'edit_card_clicked',
2682
- customProperties: {
2683
- action_type: 'Make default'
2684
- },
2685
- logImpression: true
2686
- });
2687
2678
  dispatch(setDefaultPaymentCard({
2688
2679
  user_id: +pg.user_id,
2689
2680
  method_id: selectedCard.id,
@@ -2693,13 +2684,6 @@ var CardsManagement = function CardsManagement(_ref) {
2693
2684
  handleMenuClose();
2694
2685
  };
2695
2686
  var handleDeleteCard = function handleDeleteCard() {
2696
- sendLog({
2697
- eventName: 'edit_card_clicked',
2698
- customProperties: {
2699
- action_type: 'Delete'
2700
- },
2701
- logImpression: true
2702
- });
2703
2687
  dispatch(deletePaymentCard({
2704
2688
  pmId: selectedCard.id,
2705
2689
  vendorId: pg.vendor_id
@@ -2870,11 +2854,7 @@ var CardsManagement = function CardsManagement(_ref) {
2870
2854
  }) : null), console.log('cards', cards, 'cardsCount', cardsCount, pg), (!cards || cardsCount < 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", {
2871
2855
  className: classes.addCardButton,
2872
2856
  onClick: function onClick() {
2873
- sendLog({
2874
- eventName: 'add_user_card_clicked',
2875
- logImpression: true
2876
- });
2877
- window.location.assign(_url);
2857
+ return window.location.assign(_url);
2878
2858
  }
2879
2859
  }, /*#__PURE__*/React__default.createElement("span", {
2880
2860
  className: classes.plusIcon
@@ -2931,9 +2911,7 @@ var PaymentCards = function PaymentCards(_ref) {
2931
2911
  var _ref$paymentDetails = _ref.paymentDetails,
2932
2912
  paymentDetails = _ref$paymentDetails === void 0 ? {} : _ref$paymentDetails,
2933
2913
  _ref$paymentMethod = _ref.paymentMethod,
2934
- paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod,
2935
- _ref$sendLog = _ref.sendLog,
2936
- sendLog = _ref$sendLog === void 0 ? function () {} : _ref$sendLog;
2914
+ paymentMethod = _ref$paymentMethod === void 0 ? null : _ref$paymentMethod;
2937
2915
  if (!paymentDetails || ((_Object$keys = Object.keys(paymentDetails)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0 || (!(paymentDetails !== null && paymentDetails !== void 0 && paymentDetails.cards) || (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$cards = paymentDetails.cards) === null || _paymentDetails$cards === void 0 ? void 0 : _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)) {
2938
2916
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
2939
2917
  }
@@ -2941,8 +2919,7 @@ var PaymentCards = function PaymentCards(_ref) {
2941
2919
  className: styles$1.dividerColor
2942
2920
  }), /*#__PURE__*/React__default.createElement(CardsManagement, {
2943
2921
  paymentDetails: paymentDetails,
2944
- paymentMethod: paymentMethod,
2945
- sendLog: sendLog
2922
+ paymentMethod: paymentMethod
2946
2923
  }));
2947
2924
  };
2948
2925
 
@@ -3018,9 +2995,7 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
3018
2995
  _props$roles = props.roles,
3019
2996
  roles = _props$roles === void 0 ? [] : _props$roles,
3020
2997
  _props$paymentMethod = props.paymentMethod,
3021
- paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod,
3022
- _props$sendLog = props.sendLog,
3023
- sendLog = _props$sendLog === void 0 ? function () {} : _props$sendLog;
2998
+ paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod;
3024
2999
  var _useState = React.useState({
3025
3000
  product: '',
3026
3001
  approvers: []
@@ -3318,8 +3293,7 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
3318
3293
  }));
3319
3294
  })))), type === 'travel' && paymentDetails && isProfile && /*#__PURE__*/React__default.createElement(PaymentCards, {
3320
3295
  paymentDetails: paymentDetails,
3321
- paymentMethod: paymentMethod,
3322
- sendLog: sendLog
3296
+ paymentMethod: paymentMethod
3323
3297
  }));
3324
3298
  };
3325
3299
 
@@ -6453,9 +6427,7 @@ var UserAddEdit = function UserAddEdit(props) {
6453
6427
  _props$isProfile = props.isProfile,
6454
6428
  isProfile = _props$isProfile === void 0 ? false : _props$isProfile,
6455
6429
  _props$paymentMethod = props.paymentMethod,
6456
- paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod,
6457
- _props$sendLog = props.sendLog,
6458
- sendLog = _props$sendLog === void 0 ? function () {} : _props$sendLog;
6430
+ paymentMethod = _props$paymentMethod === void 0 ? null : _props$paymentMethod;
6459
6431
  env$4.init(config, isProfile);
6460
6432
  var queryParams = new URLSearchParams(window.location.search);
6461
6433
  var verifyUserId = Number(queryParams.get(config.routes.users.add.queryParamKeys.verifyUserId));
@@ -8355,8 +8327,7 @@ var UserAddEdit = function UserAddEdit(props) {
8355
8327
  isProfile: isProfile,
8356
8328
  editUserId: editUserId,
8357
8329
  roles: renderFields.travelRoles,
8358
- paymentMethod: paymentMethod,
8359
- sendLog: sendLog
8330
+ paymentMethod: paymentMethod
8360
8331
  }), /*#__PURE__*/React__default.createElement(AdditionalInfo, {
8361
8332
  membershipInfoInput: membershipInfoInput,
8362
8333
  onMemInfoInputChange: onMemInfoInputChange,