@itilite/iui-user-management 1.4.7725 → 1.4.7726

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.
@@ -3,6 +3,7 @@ import React, { useState, Fragment as Fragment$1, useEffect, memo, useRef } from
3
3
  import { configs, services, utilUrls } from '@itilite/utils';
4
4
  import axios from 'axios';
5
5
  import { IconButton, Menu, MenuItem, Popper, Grow, Paper, ClickAwayListener, MenuList, Typography, Box } from '@material-ui/core';
6
+ import { PaymentIcon } from 'react-svg-credit-card-payment-icons';
6
7
  import { useDispatch, useSelector, Provider } from 'react-redux';
7
8
  import { combineReducers, createStore, applyMiddleware } from 'redux';
8
9
  import thunk from 'redux-thunk';
@@ -2232,18 +2233,6 @@ var editCustomFieldLabel = function editCustomFieldLabel(payload) {
2232
2233
  };
2233
2234
  };
2234
2235
 
2235
- var masterCardNew = "masterCard~eGXbErPW.png";
2236
-
2237
- var visaCard = "visa~BjGiZFyo.png";
2238
-
2239
- var diners = "diners~ppWhzqPw.png";
2240
-
2241
- var discover = "discover~bnLdjLIy.png";
2242
-
2243
- var amexCard = "amex~KhiVVORY.png";
2244
-
2245
- var union = "unionPay~boILkyzh.png";
2246
-
2247
2236
  var IUILocalStorageService$4 = services.IUILocalStorageService;
2248
2237
  var env$3 = configs.env;
2249
2238
  var CardsManagement = function CardsManagement(_ref) {
@@ -2289,17 +2278,12 @@ var CardsManagement = function CardsManagement(_ref) {
2289
2278
  handleMenuClose();
2290
2279
  };
2291
2280
  var getBrandLogo = function getBrandLogo(brand) {
2292
- var logos = {
2293
- mastercard: masterCardNew,
2294
- jcb: visaCard,
2295
- diners: diners,
2296
- discover: discover,
2297
- amex: amexCard,
2298
- unionpay: union,
2299
- visa: visaCard,
2300
- virtual: masterCardNew
2301
- };
2302
- return logos[brand.toLowerCase()] || '';
2281
+ return /*#__PURE__*/React.createElement(PaymentIcon, {
2282
+ type: brand === null || brand === void 0 ? void 0 : brand.toLowerCase(),
2283
+ format: "flatRounded",
2284
+ width: 40,
2285
+ height: 24
2286
+ });
2303
2287
  };
2304
2288
  var getCardTypeClass = function getCardTypeClass(category) {
2305
2289
  return category === 'Corporate' ? 'corporate' : category === 'Company' ? 'company' : 'personal';