@salesgenterp/ui-components 0.4.563 → 0.4.564
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 +222 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +239 -25
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Skeleton as Skeleton$1, CircularProgress, TextField, Button, IconButton, Stack, Typography, Grid, InputAdornment, Popover, TableHead, TableRow, TableSortLabel, Paper, TableContainer as TableContainer$4, Table, TableBody, TableCell, TablePagination, Dialog, DialogTitle as DialogTitle$1, DialogContent, DialogActions, RadioGroup, Radio, FormControlLabel, FormLabel, FormControl, FormHelperText, Select as Select$1, InputLabel, MenuItem, CardMedia, Divider, Tabs, Box, Tab, CardContent, ListItemIcon, ListItem, Collapse, List, ListItemText,
|
|
1
|
+
import { Skeleton as Skeleton$1, CircularProgress, TextField, Button, IconButton, Stack, Typography, Grid, InputAdornment, Popover, TableHead, TableRow, TableSortLabel, Paper, TableContainer as TableContainer$4, Table, TableBody, TableCell, TablePagination, Dialog, DialogTitle as DialogTitle$1, DialogContent, DialogActions, RadioGroup, Radio, FormControlLabel, FormLabel, FormControl, FormHelperText, Select as Select$1, InputLabel, MenuItem, Checkbox, CardMedia, Divider, Tabs, Box, Tab, CardContent, ListItemIcon, ListItem, Collapse, List, ListItemText, Card as Card$1, CardHeader as CardHeader$1, CssBaseline, Toolbar, Drawer, useMediaQuery as useMediaQuery$1, Tooltip, Pagination, CardActionArea, Avatar as Avatar$1, alpha, Stepper, Step, StepLabel, StepContent, Container as Container$4 } from '@mui/material';
|
|
2
2
|
import { styled as styled$1 } from '@mui/material/styles';
|
|
3
3
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
4
4
|
import React__default, { useState, useEffect, forwardRef, useRef, memo, useMemo, createElement, useCallback, Fragment as Fragment$1 } from 'react';
|
|
5
5
|
import { MdVisibilityOff, MdVisibility, MdPrint, MdClose, MdMonetizationOn, MdOutlineStorefront, MdRemoveRedEye, MdOutlineFileDownload, MdPersonOutline, MdOutlineCall, MdMailOutline, MdExpandMore, MdExpandLess, MdStore, MdOutlineMenuOpen, MdMenu, MdDarkMode, MdOutlineDarkMode, MdLocalOffer, MdDelete, MdCheckCircle, MdArrowBack, MdOutlineCircle, MdOutlineStickyNote2, MdOutlineNumbers, MdDateRange, MdOutlineWarehouse } from 'react-icons/md';
|
|
6
6
|
import styled, { css, ThemeProvider, keyframes } from 'styled-components';
|
|
7
|
-
import { isEmpty, isString, toNumber, reduce, concat, omit, replace, template, isArray, some, toLower, isPlainObject,
|
|
7
|
+
import { isEmpty, isString, toNumber, includes, reduce, concat, omit, replace, template, isArray, some, toLower, isPlainObject, values, cloneDeep, filter, sortBy, isObject, sumBy, get, isNumber, remove } from 'lodash';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import qs from 'qs';
|
|
@@ -31,7 +31,7 @@ import { BsFileEarmarkImage, BsFileEarmarkPdf, BsCartX } from 'react-icons/bs';
|
|
|
31
31
|
import { TfiMenuAlt } from 'react-icons/tfi';
|
|
32
32
|
import { GoNumber } from 'react-icons/go';
|
|
33
33
|
import { RiAccountBoxLine, RiHome7Line, RiFileTextLine, RiDiscountPercentLine, RiDeleteBin5Line } from 'react-icons/ri';
|
|
34
|
-
import Checkbox from '@mui/material/Checkbox';
|
|
34
|
+
import Checkbox$1 from '@mui/material/Checkbox';
|
|
35
35
|
import FormControl$1 from '@mui/material/FormControl';
|
|
36
36
|
import InputLabel$1 from '@mui/material/InputLabel';
|
|
37
37
|
import MenuItem$1 from '@mui/material/MenuItem';
|
|
@@ -469,6 +469,11 @@ var jsonParse = function jsonParse(value) {
|
|
|
469
469
|
var convertToBoolean = function convertToBoolean(value) {
|
|
470
470
|
return toNumber(value) === 1;
|
|
471
471
|
};
|
|
472
|
+
var inDevelopment = function inDevelopment() {
|
|
473
|
+
if (typeof window === 'undefined') return false;
|
|
474
|
+
var list = ['localhost', 'calikulture-git-develop-salesgent-techgrow.vercel.app', 'calikulture-git-staging-salesgent-techgrow.vercel.app', 'aa-cell-sc-git-develop-salesgent-techgrow.vercel.app', 'aa-cell-sc-git-staging-salesgent-techgrow.vercel.app'];
|
|
475
|
+
return includes(list, window.location.hostname);
|
|
476
|
+
};
|
|
472
477
|
|
|
473
478
|
function useSystemFeatureList(_ref) {
|
|
474
479
|
var apiEndPoint = _ref.apiEndPoint,
|
|
@@ -3258,6 +3263,123 @@ var ExcessPaymentDialog = function ExcessPaymentDialog(_ref2) {
|
|
|
3258
3263
|
})));
|
|
3259
3264
|
};
|
|
3260
3265
|
|
|
3266
|
+
var CloneOrderDialog = function CloneOrderDialog(_ref) {
|
|
3267
|
+
var visible = _ref.visible,
|
|
3268
|
+
onClose = _ref.onClose,
|
|
3269
|
+
onSubmit = _ref.onSubmit,
|
|
3270
|
+
loading = _ref.loading,
|
|
3271
|
+
styles = _ref.styles;
|
|
3272
|
+
var _useState = useState(null),
|
|
3273
|
+
combineProduct = _useState[0],
|
|
3274
|
+
setCombineProduct = _useState[1];
|
|
3275
|
+
useEffect(function () {
|
|
3276
|
+
if (!visible) {
|
|
3277
|
+
setCombineProduct(null);
|
|
3278
|
+
}
|
|
3279
|
+
}, [visible]);
|
|
3280
|
+
var checkboxSx = {
|
|
3281
|
+
'&.Mui-checked': {
|
|
3282
|
+
color: styles === null || styles === void 0 ? void 0 : styles.primaryColor
|
|
3283
|
+
}
|
|
3284
|
+
};
|
|
3285
|
+
return /*#__PURE__*/React__default.createElement(Dialog, {
|
|
3286
|
+
open: !!visible,
|
|
3287
|
+
onClose: loading ? undefined : function () {
|
|
3288
|
+
return onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
3289
|
+
},
|
|
3290
|
+
fullWidth: true,
|
|
3291
|
+
maxWidth: "xs"
|
|
3292
|
+
}, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, "Clone Order"), /*#__PURE__*/React__default.createElement(DialogContent, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
3293
|
+
sx: {
|
|
3294
|
+
fontWeight: 600,
|
|
3295
|
+
mb: 1
|
|
3296
|
+
}
|
|
3297
|
+
}, "Do you want to combine the products?"), /*#__PURE__*/React__default.createElement(Typography, {
|
|
3298
|
+
variant: "body2",
|
|
3299
|
+
sx: {
|
|
3300
|
+
mb: 1
|
|
3301
|
+
}
|
|
3302
|
+
}, "Some products in this order may already be in your cart. Choose how their quantities should be handled:"), /*#__PURE__*/React__default.createElement(Typography, {
|
|
3303
|
+
component: "ul",
|
|
3304
|
+
variant: "body2",
|
|
3305
|
+
sx: {
|
|
3306
|
+
pl: 2.5,
|
|
3307
|
+
mb: 1
|
|
3308
|
+
}
|
|
3309
|
+
}, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement("b", null, "Yes"), " - add the order quantity to what is already in your cart."), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement("b", null, "No"), " - replace the cart quantity with the order quantity.")), /*#__PURE__*/React__default.createElement(Typography, {
|
|
3310
|
+
variant: "body2",
|
|
3311
|
+
sx: {
|
|
3312
|
+
mb: 1,
|
|
3313
|
+
p: 1.5,
|
|
3314
|
+
borderRadius: 1,
|
|
3315
|
+
bgcolor: 'action.hover'
|
|
3316
|
+
}
|
|
3317
|
+
}, /*#__PURE__*/React__default.createElement("b", null, "Example:"), " Your cart has 5 of Product X and this order has 10 of Product X.", /*#__PURE__*/React__default.createElement("br", null), "Yes \u2192 your cart will have ", /*#__PURE__*/React__default.createElement("b", null, "15"), " (5 + 10).", /*#__PURE__*/React__default.createElement("br", null), "No \u2192 your cart will have ", /*#__PURE__*/React__default.createElement("b", null, "10"), "."), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3318
|
+
container: true,
|
|
3319
|
+
spacing: 2
|
|
3320
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3321
|
+
item: true
|
|
3322
|
+
}, /*#__PURE__*/React__default.createElement(FormControlLabel, {
|
|
3323
|
+
label: "Yes",
|
|
3324
|
+
control: /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
3325
|
+
checked: combineProduct === true,
|
|
3326
|
+
onChange: function onChange() {
|
|
3327
|
+
return setCombineProduct(true);
|
|
3328
|
+
},
|
|
3329
|
+
disabled: loading,
|
|
3330
|
+
sx: checkboxSx
|
|
3331
|
+
})
|
|
3332
|
+
})), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3333
|
+
item: true
|
|
3334
|
+
}, /*#__PURE__*/React__default.createElement(FormControlLabel, {
|
|
3335
|
+
label: "No",
|
|
3336
|
+
control: /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
3337
|
+
checked: combineProduct === false,
|
|
3338
|
+
onChange: function onChange() {
|
|
3339
|
+
return setCombineProduct(false);
|
|
3340
|
+
},
|
|
3341
|
+
disabled: loading,
|
|
3342
|
+
sx: checkboxSx
|
|
3343
|
+
})
|
|
3344
|
+
}))), /*#__PURE__*/React__default.createElement(DialogActions, {
|
|
3345
|
+
sx: {
|
|
3346
|
+
justifyContent: 'center',
|
|
3347
|
+
px: 0,
|
|
3348
|
+
pt: 2
|
|
3349
|
+
}
|
|
3350
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3351
|
+
container: true,
|
|
3352
|
+
spacing: 4,
|
|
3353
|
+
alignItems: "center",
|
|
3354
|
+
justifyContent: "center"
|
|
3355
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3356
|
+
item: true
|
|
3357
|
+
}, /*#__PURE__*/React__default.createElement(MuiButton, {
|
|
3358
|
+
primaryColor: combineProduct !== null && (styles === null || styles === void 0 ? void 0 : styles.primaryColor),
|
|
3359
|
+
sx: {
|
|
3360
|
+
fontSize: '1.3rem'
|
|
3361
|
+
},
|
|
3362
|
+
onClick: function onClick() {
|
|
3363
|
+
return onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(combineProduct);
|
|
3364
|
+
},
|
|
3365
|
+
loading: loading,
|
|
3366
|
+
disabled: combineProduct === null,
|
|
3367
|
+
size: "small"
|
|
3368
|
+
}, "Submit")), /*#__PURE__*/React__default.createElement(Grid, {
|
|
3369
|
+
item: true
|
|
3370
|
+
}, /*#__PURE__*/React__default.createElement(MuiButton, {
|
|
3371
|
+
primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
|
|
3372
|
+
sx: {
|
|
3373
|
+
fontSize: '1.3rem'
|
|
3374
|
+
},
|
|
3375
|
+
onClick: function onClick() {
|
|
3376
|
+
return onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
3377
|
+
},
|
|
3378
|
+
disabled: loading,
|
|
3379
|
+
size: "small"
|
|
3380
|
+
}, "Cancel"))))));
|
|
3381
|
+
};
|
|
3382
|
+
|
|
3261
3383
|
var _templateObject$b, _templateObject2$6, _templateObject3$4, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
3262
3384
|
var totalIcons = [{
|
|
3263
3385
|
name: '',
|
|
@@ -3337,6 +3459,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3337
3459
|
showOnlyRecentOrder = _ref$showOnlyRecentOr === void 0 ? false : _ref$showOnlyRecentOr,
|
|
3338
3460
|
hidePayActionButton = _ref.hidePayActionButton,
|
|
3339
3461
|
paymentProvider = _ref.paymentProvider;
|
|
3462
|
+
var showCloneOrderButton = inDevelopment();
|
|
3340
3463
|
var _useState = useState({}),
|
|
3341
3464
|
customerData = _useState[0],
|
|
3342
3465
|
setCustomerData = _useState[1];
|
|
@@ -3385,6 +3508,14 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3385
3508
|
}),
|
|
3386
3509
|
invoicePreview = _useState8[0],
|
|
3387
3510
|
setInvoicePreview = _useState8[1];
|
|
3511
|
+
var _useState9 = useState({
|
|
3512
|
+
open: false
|
|
3513
|
+
}),
|
|
3514
|
+
cloneOrderDialog = _useState9[0],
|
|
3515
|
+
setCloneOrderDialog = _useState9[1];
|
|
3516
|
+
var _useState10 = useState(false),
|
|
3517
|
+
cloneOrderLoading = _useState10[0],
|
|
3518
|
+
setCloneOrderLoading = _useState10[1];
|
|
3388
3519
|
var _ref2 = useSystemFeatureByFieldName({
|
|
3389
3520
|
apiEndPoint: apiEndPoint,
|
|
3390
3521
|
token: token,
|
|
@@ -3412,9 +3543,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3412
3543
|
return featureName ? DASHBOARD_ORDER_LIST_BY_NAME === null || DASHBOARD_ORDER_LIST_BY_NAME === void 0 ? void 0 : DASHBOARD_ORDER_LIST_BY_NAME[featureName] : null;
|
|
3413
3544
|
}).filter(Boolean);
|
|
3414
3545
|
}, [selectedDashboardOrderIds, featureValueListById]);
|
|
3415
|
-
var
|
|
3416
|
-
value =
|
|
3417
|
-
setValue =
|
|
3546
|
+
var _useState11 = useState(null),
|
|
3547
|
+
value = _useState11[0],
|
|
3548
|
+
setValue = _useState11[1];
|
|
3418
3549
|
useEffect(function () {
|
|
3419
3550
|
if (!(visibleTabs !== null && visibleTabs !== void 0 && visibleTabs.length)) return;
|
|
3420
3551
|
var isCurrentVisible = value != null && visibleTabs.some(function (tab) {
|
|
@@ -3497,6 +3628,74 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3497
3628
|
return Promise.reject(e);
|
|
3498
3629
|
}
|
|
3499
3630
|
};
|
|
3631
|
+
var closeCloneOrderDialog = function closeCloneOrderDialog() {
|
|
3632
|
+
if (cloneOrderLoading) return;
|
|
3633
|
+
setCloneOrderDialog({
|
|
3634
|
+
open: false
|
|
3635
|
+
});
|
|
3636
|
+
};
|
|
3637
|
+
var handleCloneOrder = function handleCloneOrder(combineProduct) {
|
|
3638
|
+
try {
|
|
3639
|
+
var documentType = cloneOrderDialog.documentType,
|
|
3640
|
+
documentId = cloneOrderDialog.documentId;
|
|
3641
|
+
if (documentId == null || cloneOrderLoading) return Promise.resolve();
|
|
3642
|
+
setCloneOrderLoading(true);
|
|
3643
|
+
var _temp = _finallyRethrows(function () {
|
|
3644
|
+
return _catch(function () {
|
|
3645
|
+
return Promise.resolve(API({
|
|
3646
|
+
url: "/ecommerce/addToCart",
|
|
3647
|
+
method: 'post',
|
|
3648
|
+
apiEndPoint: apiEndPoint,
|
|
3649
|
+
token: token,
|
|
3650
|
+
body: {
|
|
3651
|
+
documentType: documentType,
|
|
3652
|
+
combineProduct: !!combineProduct,
|
|
3653
|
+
documentId: String(documentId),
|
|
3654
|
+
storeId: defaultStoreId != null ? String(defaultStoreId) : undefined
|
|
3655
|
+
}
|
|
3656
|
+
})).then(function () {
|
|
3657
|
+
setCloneOrderDialog({
|
|
3658
|
+
open: false
|
|
3659
|
+
});
|
|
3660
|
+
alert('Order items added to cart successfully.');
|
|
3661
|
+
window.location.reload();
|
|
3662
|
+
});
|
|
3663
|
+
}, function () {});
|
|
3664
|
+
}, function (_wasThrown, _result) {
|
|
3665
|
+
setCloneOrderLoading(false);
|
|
3666
|
+
if (_wasThrown) throw _result;
|
|
3667
|
+
return _result;
|
|
3668
|
+
});
|
|
3669
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
3670
|
+
} catch (e) {
|
|
3671
|
+
return Promise.reject(e);
|
|
3672
|
+
}
|
|
3673
|
+
};
|
|
3674
|
+
var getCloneOrderColumn = function getCloneOrderColumn(_ref3) {
|
|
3675
|
+
var documentType = _ref3.documentType,
|
|
3676
|
+
idKey = _ref3.idKey;
|
|
3677
|
+
return {
|
|
3678
|
+
id: 'cloneOrder',
|
|
3679
|
+
label: 'Clone Order',
|
|
3680
|
+
align: 'center',
|
|
3681
|
+
format: function format(_value, record) {
|
|
3682
|
+
return /*#__PURE__*/React__default.createElement(MuiButton, {
|
|
3683
|
+
primaryColor: (record === null || record === void 0 ? void 0 : record[idKey]) != null && primaryColor,
|
|
3684
|
+
disabled: (record === null || record === void 0 ? void 0 : record[idKey]) == null,
|
|
3685
|
+
onClick: function onClick() {
|
|
3686
|
+
return setCloneOrderDialog({
|
|
3687
|
+
open: true,
|
|
3688
|
+
documentType: documentType,
|
|
3689
|
+
documentId: record === null || record === void 0 ? void 0 : record[idKey]
|
|
3690
|
+
});
|
|
3691
|
+
},
|
|
3692
|
+
style: {
|
|
3693
|
+
whiteSpace: 'nowrap'
|
|
3694
|
+
}
|
|
3695
|
+
}, "Clone Order");
|
|
3696
|
+
}
|
|
3697
|
+
};
|
|
3698
|
+
};
|
|
3500
3699
|
var columns = [{
|
|
3501
3700
|
id: 'orderId',
|
|
3502
3701
|
label: 'Invoice #'
|
|
@@ -3586,7 +3785,10 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3586
3785
|
disabled: (record === null || record === void 0 ? void 0 : record.dueBalance) <= 0
|
|
3587
3786
|
}, "Pay"));
|
|
3588
3787
|
}
|
|
3589
|
-
}]
|
|
3788
|
+
}].concat(showCloneOrderButton ? [getCloneOrderColumn({
|
|
3789
|
+
documentType: 'ORDER',
|
|
3790
|
+
idKey: 'orderId'
|
|
3791
|
+
})] : []);
|
|
3590
3792
|
var salesOrderColumns = [{
|
|
3591
3793
|
id: 'salesOrderId',
|
|
3592
3794
|
label: 'SO #'
|
|
@@ -3640,7 +3842,10 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3640
3842
|
}
|
|
3641
3843
|
})));
|
|
3642
3844
|
}
|
|
3643
|
-
}]
|
|
3845
|
+
}].concat(showCloneOrderButton ? [getCloneOrderColumn({
|
|
3846
|
+
documentType: 'SALES_ORDER',
|
|
3847
|
+
idKey: 'salesOrderId'
|
|
3848
|
+
})] : []);
|
|
3644
3849
|
var quotaionColumns = [{
|
|
3645
3850
|
id: 'quotationId',
|
|
3646
3851
|
label: 'ID'
|
|
@@ -3688,7 +3893,10 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3688
3893
|
}
|
|
3689
3894
|
})));
|
|
3690
3895
|
}
|
|
3691
|
-
}]
|
|
3896
|
+
}].concat(showCloneOrderButton ? [getCloneOrderColumn({
|
|
3897
|
+
documentType: 'QUOTATION',
|
|
3898
|
+
idKey: 'quotationId'
|
|
3899
|
+
})] : []);
|
|
3692
3900
|
var returnOrderColumns = [{
|
|
3693
3901
|
id: 'returnOrderId',
|
|
3694
3902
|
label: 'ID'
|
|
@@ -3739,7 +3947,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3739
3947
|
useEffect(function () {
|
|
3740
3948
|
(function () {
|
|
3741
3949
|
try {
|
|
3742
|
-
var
|
|
3950
|
+
var _temp2 = _catch(function () {
|
|
3743
3951
|
return Promise.resolve(API({
|
|
3744
3952
|
url: "/ecommerce/customer",
|
|
3745
3953
|
apiEndPoint: apiEndPoint,
|
|
@@ -3756,7 +3964,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3756
3964
|
});
|
|
3757
3965
|
});
|
|
3758
3966
|
}, function () {});
|
|
3759
|
-
return
|
|
3967
|
+
return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
|
|
3760
3968
|
} catch (e) {
|
|
3761
3969
|
Promise.reject(e);
|
|
3762
3970
|
}
|
|
@@ -3841,6 +4049,12 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3841
4049
|
orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId,
|
|
3842
4050
|
setTriggerTableData: setTriggerTableData,
|
|
3843
4051
|
styles: styles
|
|
4052
|
+
}), /*#__PURE__*/React__default.createElement(CloneOrderDialog, {
|
|
4053
|
+
visible: !!(cloneOrderDialog !== null && cloneOrderDialog !== void 0 && cloneOrderDialog.open),
|
|
4054
|
+
onClose: closeCloneOrderDialog,
|
|
4055
|
+
onSubmit: handleCloneOrder,
|
|
4056
|
+
loading: cloneOrderLoading,
|
|
4057
|
+
styles: styles
|
|
3844
4058
|
}), (isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open) && /*#__PURE__*/React__default.createElement(ExcessPaymentDialog, {
|
|
3845
4059
|
excessPaymentToken: (_queryParams$excessPa = queryParams === null || queryParams === void 0 ? void 0 : queryParams.excessPayment) != null ? _queryParams$excessPa : '',
|
|
3846
4060
|
customerData: customerData,
|
|
@@ -4776,14 +4990,14 @@ function MuiSelect(_ref) {
|
|
|
4776
4990
|
value: ""
|
|
4777
4991
|
}, /*#__PURE__*/createElement("em", null, "None")), checkAllOption && multiple && /*#__PURE__*/createElement(MenuItem$1, {
|
|
4778
4992
|
value: 'all'
|
|
4779
|
-
}, /*#__PURE__*/createElement(Checkbox, {
|
|
4993
|
+
}, /*#__PURE__*/createElement(Checkbox$1, {
|
|
4780
4994
|
checked: checkAll,
|
|
4781
4995
|
indeterminate: indeterminate
|
|
4782
4996
|
}), "All"), options === null || options === void 0 ? void 0 : options.map(function (data) {
|
|
4783
4997
|
return /*#__PURE__*/createElement(MenuItem$1, {
|
|
4784
4998
|
value: valueKey ? data[valueKey] : data,
|
|
4785
4999
|
disabled: data === null || data === void 0 ? void 0 : data.disabled
|
|
4786
|
-
}, checkAllOption && multiple && /*#__PURE__*/createElement(Checkbox, {
|
|
5000
|
+
}, checkAllOption && multiple && /*#__PURE__*/createElement(Checkbox$1, {
|
|
4787
5001
|
checked: value.indexOf(valueKey ? data[valueKey] : data) > -1
|
|
4788
5002
|
}), getLabelValue({
|
|
4789
5003
|
labelKey: labelKey,
|
|
@@ -5086,7 +5300,7 @@ var FormCheckbox = function FormCheckbox(props) {
|
|
|
5086
5300
|
}
|
|
5087
5301
|
});
|
|
5088
5302
|
};
|
|
5089
|
-
var CheckboxField = styled(Checkbox
|
|
5303
|
+
var CheckboxField = styled(Checkbox)(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["\n svg {\n color: ", " !important;\n }\n"])), function (props) {
|
|
5090
5304
|
return props.primaryColor;
|
|
5091
5305
|
});
|
|
5092
5306
|
var FormControlLabelContainer$1 = styled(FormControlLabel)(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n .MuiTypography-root {\n color: ", " !important;\n }\n"])), function (props) {
|
|
@@ -9714,7 +9928,7 @@ var CardRow = function CardRow(_ref3) {
|
|
|
9714
9928
|
}
|
|
9715
9929
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
9716
9930
|
className: "borderLeft"
|
|
9717
|
-
}), /*#__PURE__*/React__default.createElement(Checkbox
|
|
9931
|
+
}), /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
9718
9932
|
size: "small",
|
|
9719
9933
|
color: "primary",
|
|
9720
9934
|
checked: isItemSelected,
|
|
@@ -9920,7 +10134,7 @@ function EnhancedTableHead(props) {
|
|
|
9920
10134
|
},
|
|
9921
10135
|
padding: "checkbox",
|
|
9922
10136
|
bg: styles === null || styles === void 0 ? void 0 : styles.bg
|
|
9923
|
-
}, /*#__PURE__*/createElement(Checkbox
|
|
10137
|
+
}, /*#__PURE__*/createElement(Checkbox, {
|
|
9924
10138
|
size: "small",
|
|
9925
10139
|
color: "primary",
|
|
9926
10140
|
indeterminate: numSelected > 0 && numSelected < rowCount,
|
|
@@ -11431,7 +11645,7 @@ var OutOfStock = function OutOfStock(_ref) {
|
|
|
11431
11645
|
}), /*#__PURE__*/React__default.createElement("span", null, subscribed ? 'Subscribed Successfully' : 'Subscribe')))))));
|
|
11432
11646
|
};
|
|
11433
11647
|
var VariantsContainer = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(178, 169, 169, 1);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n"])));
|
|
11434
|
-
var MainCheckbox = styled(Checkbox)(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
|
|
11648
|
+
var MainCheckbox = styled(Checkbox$1)(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
|
|
11435
11649
|
return props.theme.primaryColor;
|
|
11436
11650
|
});
|
|
11437
11651
|
var EmailInput = styled(InputBase)(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n border: 1px solid #a9a9a9;\n padding: 3px 10px;\n fontsize: 12px;\n width: 100%;\n border-radius: 3px;\n"])));
|
|
@@ -11998,7 +12212,7 @@ var CardRow$1 = function CardRow(_ref) {
|
|
|
11998
12212
|
}
|
|
11999
12213
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
12000
12214
|
className: "borderLeft"
|
|
12001
|
-
}), /*#__PURE__*/React__default.createElement(Checkbox
|
|
12215
|
+
}), /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
12002
12216
|
size: "small",
|
|
12003
12217
|
color: "primary",
|
|
12004
12218
|
checked: isItemSelected,
|
|
@@ -12191,7 +12405,7 @@ function EnhancedTableHead$1(props) {
|
|
|
12191
12405
|
},
|
|
12192
12406
|
padding: "checkbox",
|
|
12193
12407
|
bg: styles === null || styles === void 0 ? void 0 : styles.bg
|
|
12194
|
-
}, /*#__PURE__*/createElement(Checkbox
|
|
12408
|
+
}, /*#__PURE__*/createElement(Checkbox, {
|
|
12195
12409
|
size: "small",
|
|
12196
12410
|
color: "primary",
|
|
12197
12411
|
indeterminate: numSelected > 0 && numSelected < rowCount,
|
|
@@ -13809,7 +14023,7 @@ var Step0 = function Step0(_ref) {
|
|
|
13809
14023
|
sm: 4
|
|
13810
14024
|
}), /*#__PURE__*/React__default.createElement(CheckBoxRow, {
|
|
13811
14025
|
padding: ".8em 0 0 0"
|
|
13812
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox
|
|
14026
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
13813
14027
|
size: "small"
|
|
13814
14028
|
}), /*#__PURE__*/React__default.createElement("p", null, "Remember me")), /*#__PURE__*/React__default.createElement(Grid, {
|
|
13815
14029
|
item: true,
|
|
@@ -14076,7 +14290,7 @@ var Step1 = function Step1(_ref) {
|
|
|
14076
14290
|
setShowShipping(false);
|
|
14077
14291
|
},
|
|
14078
14292
|
bg: styles === null || styles === void 0 ? void 0 : (_styles$button2 = styles.button) === null || _styles$button2 === void 0 ? void 0 : _styles$button2.bg
|
|
14079
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox
|
|
14293
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
14080
14294
|
checked: !showShipping,
|
|
14081
14295
|
icon: /*#__PURE__*/React__default.createElement(MdOutlineCircle, null),
|
|
14082
14296
|
checkedIcon: /*#__PURE__*/React__default.createElement(GrRadialSelected, null)
|
|
@@ -14086,7 +14300,7 @@ var Step1 = function Step1(_ref) {
|
|
|
14086
14300
|
setShowShipping(true);
|
|
14087
14301
|
},
|
|
14088
14302
|
bg: styles === null || styles === void 0 ? void 0 : (_styles$button3 = styles.button) === null || _styles$button3 === void 0 ? void 0 : _styles$button3.bg
|
|
14089
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox
|
|
14303
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
14090
14304
|
checked: showShipping,
|
|
14091
14305
|
icon: /*#__PURE__*/React__default.createElement(MdOutlineCircle, null),
|
|
14092
14306
|
checkedIcon: /*#__PURE__*/React__default.createElement(GrRadialSelected, null)
|
|
@@ -14927,7 +15141,7 @@ var Step3 = function Step3(_ref) {
|
|
|
14927
15141
|
paddingBottom: '1.5em',
|
|
14928
15142
|
marginTop: '-1em'
|
|
14929
15143
|
}
|
|
14930
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox
|
|
15144
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
14931
15145
|
size: "small",
|
|
14932
15146
|
onChange: function onChange(e) {
|
|
14933
15147
|
setUseStoreCr(e.target.checked);
|
|
@@ -15021,7 +15235,7 @@ var Step3 = function Step3(_ref) {
|
|
|
15021
15235
|
states: states,
|
|
15022
15236
|
countries: countries,
|
|
15023
15237
|
setSelectedCountry: setSelectedCountry
|
|
15024
|
-
}), addNewCard && beforeAddNewCardText && /*#__PURE__*/React__default.createElement(CheckBoxRow, null, /*#__PURE__*/React__default.createElement(Checkbox
|
|
15238
|
+
}), addNewCard && beforeAddNewCardText && /*#__PURE__*/React__default.createElement(CheckBoxRow, null, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
15025
15239
|
size: "small",
|
|
15026
15240
|
onChange: function onChange(e) {
|
|
15027
15241
|
return setBeforeCreditCardChecked(e.target.checked);
|
|
@@ -15681,7 +15895,7 @@ var Step4 = function Step4(_ref) {
|
|
|
15681
15895
|
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
15682
15896
|
item: true,
|
|
15683
15897
|
xs: 12
|
|
15684
|
-
}, /*#__PURE__*/React__default.createElement(CheckBoxRow, null, /*#__PURE__*/React__default.createElement(Checkbox
|
|
15898
|
+
}, /*#__PURE__*/React__default.createElement(CheckBoxRow, null, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
15685
15899
|
size: "small",
|
|
15686
15900
|
value: checked,
|
|
15687
15901
|
onChange: function onChange() {
|