@salesgenterp/ui-components 0.4.405 → 0.4.406
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 +90 -91
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +90 -91
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4384,89 +4384,90 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4384
4384
|
React.useEffect(function () {
|
|
4385
4385
|
isMobile ? setOpen(false) : setOpen(true);
|
|
4386
4386
|
}, [isMobile]);
|
|
4387
|
-
var
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4387
|
+
var renderListItemComponent = function renderListItemComponent(tabValue) {
|
|
4388
|
+
try {
|
|
4389
|
+
var key = tabValue;
|
|
4390
|
+
switch (key) {
|
|
4391
|
+
case 'dashboard':
|
|
4392
|
+
return /*#__PURE__*/React__default.createElement(Dashboard, {
|
|
4393
|
+
apiEndPoint: apiEndPoint,
|
|
4394
|
+
serviceApiEndPoint: serviceApiEndPoint,
|
|
4395
|
+
token: token,
|
|
4396
|
+
queryParams: queryParams,
|
|
4397
|
+
styles: colors,
|
|
4398
|
+
primaryColor: colors.primaryColor,
|
|
4399
|
+
secondaryColor: colors.secondaryColor,
|
|
4400
|
+
backgroundColor: colors.backgroundColor,
|
|
4401
|
+
fontColor: colors.fontColor,
|
|
4402
|
+
storeIdList: storeIdList,
|
|
4403
|
+
defaultStoreId: defaultStoreId,
|
|
4404
|
+
isNightMode: isNightMode,
|
|
4405
|
+
hideBannerSection: hideBannerSection,
|
|
4406
|
+
exploreCategoryImage: exploreCategoryImage,
|
|
4407
|
+
sectionLeftImageSection: sectionLeftImageSection,
|
|
4408
|
+
sectionRightImageSection: sectionRightImageSection,
|
|
4409
|
+
discountImageSection: discountImageSection,
|
|
4410
|
+
hideDiscountImage: hideDiscountImage,
|
|
4411
|
+
imgNotFoundUrl: imgNotFoundUrl,
|
|
4412
|
+
hideInvoiceAction: hideInvoiceAction,
|
|
4413
|
+
payInvoiceFromDashboard: authoriseDotNet,
|
|
4414
|
+
removeSocialLinks: removeSocialLinks
|
|
4415
|
+
});
|
|
4416
|
+
case 'myProfile':
|
|
4417
|
+
return /*#__PURE__*/React__default.createElement(MyProfile, {
|
|
4418
|
+
apiEndPoint: apiEndPoint,
|
|
4419
|
+
serviceApiEndPoint: serviceApiEndPoint,
|
|
4420
|
+
token: token,
|
|
4421
|
+
primaryColor: colors.primaryColor,
|
|
4422
|
+
secondaryColor: colors.secondaryColor,
|
|
4423
|
+
backgroundColor: colors.backgroundColor,
|
|
4424
|
+
fontColor: colors.fontColor,
|
|
4425
|
+
storeIdList: storeIdList,
|
|
4426
|
+
defaultStoreId: defaultStoreId,
|
|
4427
|
+
imgNotFoundUrl: imgNotFoundUrl
|
|
4428
|
+
});
|
|
4429
|
+
case 'addressList':
|
|
4430
|
+
return /*#__PURE__*/React__default.createElement(StoreList, {
|
|
4431
|
+
apiEndPoint: apiEndPoint,
|
|
4432
|
+
serviceApiEndPoint: serviceApiEndPoint,
|
|
4433
|
+
token: token,
|
|
4434
|
+
primaryColor: colors.primaryColor,
|
|
4435
|
+
secondaryColor: colors.secondaryColor,
|
|
4436
|
+
backgroundColor: colors.backgroundColor,
|
|
4437
|
+
fontColor: colors.fontColor,
|
|
4438
|
+
storeIdList: storeIdList,
|
|
4439
|
+
defaultStoreId: defaultStoreId
|
|
4440
|
+
});
|
|
4441
|
+
case 'statement':
|
|
4442
|
+
return /*#__PURE__*/React__default.createElement(Statement, {
|
|
4443
|
+
apiEndPoint: apiEndPoint,
|
|
4444
|
+
serviceApiEndPoint: serviceApiEndPoint,
|
|
4445
|
+
token: token,
|
|
4446
|
+
primaryColor: colors.primaryColor,
|
|
4447
|
+
secondaryColor: colors.secondaryColor,
|
|
4448
|
+
backgroundColor: colors.backgroundColor,
|
|
4449
|
+
fontColor: colors.fontColor,
|
|
4450
|
+
storeIdList: storeIdList,
|
|
4451
|
+
defaultStoreId: defaultStoreId
|
|
4452
|
+
});
|
|
4453
|
+
case 'changePassword':
|
|
4454
|
+
return /*#__PURE__*/React__default.createElement(ChangePassword, {
|
|
4455
|
+
apiEndPoint: apiEndPoint,
|
|
4456
|
+
serviceApiEndPoint: serviceApiEndPoint,
|
|
4457
|
+
token: token,
|
|
4458
|
+
primaryColor: colors.primaryColor,
|
|
4459
|
+
secondaryColor: colors.secondaryColor,
|
|
4460
|
+
backgroundColor: colors.backgroundColor,
|
|
4461
|
+
fontColor: colors.fontColor,
|
|
4462
|
+
storeIdList: storeIdList,
|
|
4463
|
+
defaultStoreId: defaultStoreId
|
|
4464
|
+
});
|
|
4465
|
+
default:
|
|
4466
|
+
return /*#__PURE__*/React__default.createElement(TypographyContainer$6, {
|
|
4467
|
+
fontColor: colors.fontColor
|
|
4468
|
+
}, "Empty");
|
|
4469
|
+
}
|
|
4470
|
+
} catch (error) {}
|
|
4470
4471
|
};
|
|
4471
4472
|
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
4472
4473
|
theme: colors
|
|
@@ -4553,9 +4554,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4553
4554
|
}, isNightMode ? /*#__PURE__*/React__default.createElement(md.MdDarkMode, null) : /*#__PURE__*/React__default.createElement(md.MdOutlineDarkMode, null)))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(DataLoader, {
|
|
4554
4555
|
loading: dataLoading,
|
|
4555
4556
|
skeleton: true
|
|
4556
|
-
}, apiEndPoint && token &&
|
|
4557
|
-
tabValue: tabValue
|
|
4558
|
-
}))))))));
|
|
4557
|
+
}, apiEndPoint && token && renderListItemComponent(tabValue))))))));
|
|
4559
4558
|
};
|
|
4560
4559
|
var Root$4 = styled__default(material.Box)(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
|
|
4561
4560
|
var _props$theme;
|
|
@@ -4573,11 +4572,11 @@ var Main = styles.styled('main', {
|
|
|
4573
4572
|
shouldForwardProp: function shouldForwardProp(props) {
|
|
4574
4573
|
return props !== 'open';
|
|
4575
4574
|
}
|
|
4576
|
-
})(function (
|
|
4577
|
-
var theme =
|
|
4578
|
-
open =
|
|
4579
|
-
backgroundColor =
|
|
4580
|
-
drawerWidth =
|
|
4575
|
+
})(function (_ref2) {
|
|
4576
|
+
var theme = _ref2.theme,
|
|
4577
|
+
open = _ref2.open,
|
|
4578
|
+
backgroundColor = _ref2.backgroundColor,
|
|
4579
|
+
drawerWidth = _ref2.drawerWidth;
|
|
4581
4580
|
return _extends({
|
|
4582
4581
|
flexGrow: 1,
|
|
4583
4582
|
padding: "" + theme.spacing(0),
|