@itilite/iui-user-management 1.4.7731 → 1.4.7733
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 +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2817,7 +2817,6 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2817
2817
|
var companyCards = cards === null || cards === void 0 ? void 0 : cards.filter(function (card) {
|
|
2818
2818
|
return (card === null || card === void 0 ? void 0 : card.category) === 'Company';
|
|
2819
2819
|
});
|
|
2820
|
-
console.log('test mudu');
|
|
2821
2820
|
var cardsCount = (personalCards === null || personalCards === void 0 ? void 0 : personalCards.length) + (corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.length);
|
|
2822
2821
|
var _url = env$3.getPaymentUrl() + ("/api/v1/auth/" + IUILocalStorageService$4.getAccessToken() + "/1/" + pg.entity_id + "/0/" + pg.vendor_id + "/1");
|
|
2823
2822
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2845,14 +2844,14 @@ var CardsManagement = function CardsManagement(_ref) {
|
|
|
2845
2844
|
container: true,
|
|
2846
2845
|
className: styles$1.formFieldsWrapper
|
|
2847
2846
|
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, paymentMethod === 2 && /*#__PURE__*/React__default.createElement("div", {
|
|
2848
|
-
|
|
2847
|
+
className: classes.disabledNotice
|
|
2849
2848
|
}, "Company has disabled usage of your personal cards, please reach out to your admin"), /*#__PURE__*/React__default.createElement("div", {
|
|
2850
2849
|
className: classes.cardsGrid
|
|
2851
2850
|
}, personalCards.length !== 0 ? personalCards === null || personalCards === void 0 ? void 0 : personalCards.map(function (card) {
|
|
2852
2851
|
return renderCard(card);
|
|
2853
2852
|
}) : null, corporateCards.length !== 0 ? corporateCards === null || corporateCards === void 0 ? void 0 : corporateCards.map(function (card) {
|
|
2854
2853
|
return renderCard(card);
|
|
2855
|
-
}) : null), console.log('cards', cards, 'cardsCount', cardsCount), (!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", {
|
|
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", {
|
|
2856
2855
|
className: classes.addCardButton,
|
|
2857
2856
|
onClick: function onClick() {
|
|
2858
2857
|
return window.location.assign(_url);
|
|
@@ -7352,7 +7351,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7352
7351
|
React.useEffect(function () {
|
|
7353
7352
|
if (isRendered === true) {
|
|
7354
7353
|
renderFields === null || renderFields === void 0 ? void 0 : renderFields.products.forEach(function (prod) {
|
|
7355
|
-
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card') {
|
|
7354
|
+
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card' && (isProfile || editUserId)) {
|
|
7356
7355
|
fetchEditUserCardsDetails(isProfile ? id : editUserId);
|
|
7357
7356
|
}
|
|
7358
7357
|
});
|