@itilite/iui-user-management 1.4.83 → 1.4.85
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.css +1 -1
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -187,17 +187,7 @@ function _finallyRethrows(body, finalizer) {
|
|
|
187
187
|
|
|
188
188
|
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82"};
|
|
189
189
|
|
|
190
|
-
function r(e) {
|
|
191
|
-
var t,
|
|
192
|
-
f,
|
|
193
|
-
n = "";
|
|
194
|
-
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
195
|
-
return n;
|
|
196
|
-
}
|
|
197
|
-
function clsx() {
|
|
198
|
-
for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
199
|
-
return n;
|
|
200
|
-
}
|
|
190
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
201
191
|
|
|
202
192
|
var GetInputType = React__default.forwardRef(function (props, ref) {
|
|
203
193
|
var _p = props._p,
|
|
@@ -6681,6 +6671,26 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6681
6671
|
console.log('errorrr', error);
|
|
6682
6672
|
});
|
|
6683
6673
|
};
|
|
6674
|
+
var fetchLoggedUserCardsDetails = function fetchLoggedUserCardsDetails() {
|
|
6675
|
+
fetch(userAddEditUrl.cardsAddUsersDetails(), {
|
|
6676
|
+
method: 'GET',
|
|
6677
|
+
headers: {
|
|
6678
|
+
'Content-Type': 'application/json',
|
|
6679
|
+
authorization: "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6680
|
+
}
|
|
6681
|
+
}).then(function (response) {
|
|
6682
|
+
return response.json();
|
|
6683
|
+
}).then(function (res) {
|
|
6684
|
+
var _res$roles2;
|
|
6685
|
+
if (res !== null && res !== void 0 && (_res$roles2 = res.roles) !== null && _res$roles2 !== void 0 && _res$roles2.length) {
|
|
6686
|
+
dispatch(setCardsDetails(res));
|
|
6687
|
+
} else {
|
|
6688
|
+
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6689
|
+
}
|
|
6690
|
+
})["catch"](function (error) {
|
|
6691
|
+
console.log('errorrr', error);
|
|
6692
|
+
});
|
|
6693
|
+
};
|
|
6684
6694
|
React.useEffect(function () {
|
|
6685
6695
|
var countryObject = countryContactCode.find(function (t) {
|
|
6686
6696
|
return t.dial_code === countryDialCode;
|
|
@@ -7382,8 +7392,12 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
7382
7392
|
if (isRendered === true) {
|
|
7383
7393
|
renderFields === null || renderFields === void 0 ? void 0 : renderFields.products.forEach(function (prod) {
|
|
7384
7394
|
console.log(prod, isProfile, editUserId, id, 'card check');
|
|
7385
|
-
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card'
|
|
7386
|
-
|
|
7395
|
+
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card') {
|
|
7396
|
+
if (isProfile || editUserId) {
|
|
7397
|
+
fetchEditUserCardsDetails(isProfile ? id : editUserId);
|
|
7398
|
+
} else {
|
|
7399
|
+
fetchLoggedUserCardsDetails();
|
|
7400
|
+
}
|
|
7387
7401
|
}
|
|
7388
7402
|
});
|
|
7389
7403
|
setPersonalInfoInput(_extends({}, personalInfoInput, {
|