@salesgenterp/ui-components 0.4.306 → 0.4.308

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 CHANGED
@@ -29,9 +29,9 @@ var tfi = require('react-icons/tfi');
29
29
  var go = require('react-icons/go');
30
30
  var ri = require('react-icons/ri');
31
31
  var bi = require('react-icons/bi');
32
+ var FormControl = _interopDefault(require('@mui/material/FormControl'));
32
33
  var InputLabel = _interopDefault(require('@mui/material/InputLabel'));
33
34
  var MenuItem = _interopDefault(require('@mui/material/MenuItem'));
34
- var FormControl = _interopDefault(require('@mui/material/FormControl'));
35
35
  var Select$1 = _interopDefault(require('@mui/material/Select'));
36
36
  var Slider = _interopDefault(require('react-slick'));
37
37
  var Paper = _interopDefault(require('@mui/material/Paper'));
@@ -1258,7 +1258,7 @@ var Loader = function Loader(_ref) {
1258
1258
  var LoaderContainer = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n & > div {\n margin: auto;\n width: 50px;\n height: 50px;\n }\n"])));
1259
1259
 
1260
1260
  var _templateObject$7, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
1261
- var _excluded = ["apiData", "columns", "listUpdate", "onDataLoad", "expandedRowRender", "onDataLoadError", "pagination", "extraFilterParams", "setExtraFilterParams", "cacheFilters", "tableId", "asyncService", "tableDataList", "filterData"];
1261
+ var _excluded = ["apiData", "columns", "listUpdate", "onDataLoad", "expandedRowRender", "onDataLoadError", "pagination", "extraFilterParams", "setExtraFilterParams", "cacheFilters", "tableId", "asyncService", "tableDataList", "filterData", "loading"];
1262
1262
  var APITable = React.forwardRef(function (_ref, ref) {
1263
1263
  var _tableData$data, _tableData$data2, _tableData$pagination, _tableData$data3, _tableData$pagination2, _tableData$pagination3;
1264
1264
  var apiData = _ref.apiData,
@@ -1273,6 +1273,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
1273
1273
  tableId = _ref.tableId,
1274
1274
  asyncService = _ref.asyncService,
1275
1275
  tableDataList = _ref.tableDataList,
1276
+ loading = _ref.loading,
1276
1277
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
1277
1278
  var getJSONItem = erLocalStorage.getJSONItem;
1278
1279
  var tableCache = getJSONItem(STORAGE_KEYS.TABLE_DATA);
@@ -1447,7 +1448,11 @@ var APITable = React.forwardRef(function (_ref, ref) {
1447
1448
  key: column.id,
1448
1449
  align: column.align
1449
1450
  }, props), column.label);
1450
- }))), (tableData.apiStatus !== API_STATUSES.PENDING || tableData.apiStatus !== API_STATUSES.LOADING) && (tableData === null || tableData === void 0 ? void 0 : (_tableData$data = tableData.data) === null || _tableData$data === void 0 ? void 0 : _tableData$data.length) > 0 ? /*#__PURE__*/React__default.createElement(TableBodyContainer, null, tableData === null || tableData === void 0 ? void 0 : (_tableData$data2 = tableData.data) === null || _tableData$data2 === void 0 ? void 0 : _tableData$data2.map(function (row) {
1451
+ }))), (tableData.apiStatus === API_STATUSES.PENDING || tableData.apiStatus === API_STATUSES.LOADING || loading) && /*#__PURE__*/React__default.createElement("div", {
1452
+ style: {
1453
+ display: 'block'
1454
+ }
1455
+ }, /*#__PURE__*/React__default.createElement(Loader, null)), !(tableData.apiStatus === API_STATUSES.PENDING || tableData.apiStatus === API_STATUSES.LOADING || loading) && (tableData === null || tableData === void 0 ? void 0 : (_tableData$data = tableData.data) === null || _tableData$data === void 0 ? void 0 : _tableData$data.length) > 0 && /*#__PURE__*/React__default.createElement(TableBodyContainer, null, tableData === null || tableData === void 0 ? void 0 : (_tableData$data2 = tableData.data) === null || _tableData$data2 === void 0 ? void 0 : _tableData$data2.map(function (row) {
1451
1456
  return /*#__PURE__*/React__default.createElement(TableRowContainer, {
1452
1457
  hover: true,
1453
1458
  key: row === null || row === void 0 ? void 0 : row[(props === null || props === void 0 ? void 0 : props.rowKey) || 'id']
@@ -1458,11 +1463,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
1458
1463
  align: column.align
1459
1464
  }, props), /*#__PURE__*/React__default.createElement("span", null, column.format ? column.format(value, row) : value));
1460
1465
  }));
1461
- })) : (tableData.apiStatus === API_STATUSES.PENDING || tableData.apiStatus === API_STATUSES.LOADING) && /*#__PURE__*/React__default.createElement("div", {
1462
- style: {
1463
- display: 'block'
1464
- }
1465
- }, /*#__PURE__*/React__default.createElement(Loader, null)))), /*#__PURE__*/React__default.createElement(TablePaginationContainer, _extends({
1466
+ })))), /*#__PURE__*/React__default.createElement(TablePaginationContainer, _extends({
1466
1467
  rowsPerPageOptions: [10, 20, 50, 100],
1467
1468
  component: "div",
1468
1469
  count: (tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination = tableData.pagination) === null || _tableData$pagination === void 0 ? void 0 : _tableData$pagination.total) || (tableData === null || tableData === void 0 ? void 0 : (_tableData$data3 = tableData.data) === null || _tableData$data3 === void 0 ? void 0 : _tableData$data3.length),
@@ -2603,16 +2604,19 @@ var SideMenu = function SideMenu(props) {
2603
2604
  };
2604
2605
 
2605
2606
  var _templateObject$c, _templateObject2$6;
2607
+ var _excluded$1 = ["label", "onChange", "defaultValue", "options", "valueKey", "labelKey", "addNone", "fontColor"];
2606
2608
  function MuiSelect(_ref) {
2607
2609
  var label = _ref.label,
2608
2610
  onChange = _ref.onChange,
2609
2611
  defaultValue = _ref.defaultValue,
2610
- options = _ref.options,
2612
+ _ref$options = _ref.options,
2613
+ options = _ref$options === void 0 ? [] : _ref$options,
2611
2614
  valueKey = _ref.valueKey,
2612
2615
  _ref$labelKey = _ref.labelKey,
2613
2616
  labelKey = _ref$labelKey === void 0 ? 'name' : _ref$labelKey,
2614
2617
  addNone = _ref.addNone,
2615
- fontColor = _ref.fontColor;
2618
+ fontColor = _ref.fontColor,
2619
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2616
2620
  var _React$useState = React.useState(defaultValue),
2617
2621
  value = _React$useState[0],
2618
2622
  setValue = _React$useState[1];
@@ -2629,19 +2633,22 @@ function MuiSelect(_ref) {
2629
2633
  }, /*#__PURE__*/React.createElement(InputContainer, {
2630
2634
  id: "demo-select-small",
2631
2635
  fontColor: fontColor
2632
- }, label), /*#__PURE__*/React.createElement(SelectContainer, {
2636
+ }, label), /*#__PURE__*/React.createElement(SelectContainer, _extends({
2633
2637
  labelId: "demo-select-small",
2634
2638
  id: "demo-select-small",
2635
2639
  value: value,
2636
2640
  label: label,
2637
2641
  onChange: handleChange,
2638
2642
  fontColor: fontColor
2639
- }, addNone && /*#__PURE__*/React.createElement(MenuItem, {
2643
+ }, props), addNone && /*#__PURE__*/React.createElement(MenuItem, {
2640
2644
  value: ""
2641
2645
  }, /*#__PURE__*/React.createElement("em", null, "None")), options === null || options === void 0 ? void 0 : options.map(function (data) {
2642
2646
  return /*#__PURE__*/React.createElement(MenuItem, {
2643
2647
  value: valueKey ? data[valueKey] : data
2644
- }, data[labelKey]);
2648
+ }, getLabelValue({
2649
+ labelKey: labelKey,
2650
+ option: data
2651
+ }));
2645
2652
  })));
2646
2653
  }
2647
2654
  var SelectContainer = styled__default(Select$1)(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n color: ", " !important;\n svg,\n input {\n color: ", " !important;\n }\n fieldset {\n border-color: ", " !important;\n }\n"])), function (props) {
@@ -2657,7 +2664,6 @@ var InputContainer = styled__default(InputLabel)(_templateObject2$6 || (_templat
2657
2664
 
2658
2665
  var _templateObject$d, _templateObject2$7, _templateObject3$4, _templateObject4$3;
2659
2666
  var Statement = function Statement(_ref) {
2660
- var _customerData$custome3, _customerData$custome4, _customerData$custome5;
2661
2667
  var apiEndPoint = _ref.apiEndPoint,
2662
2668
  serviceApiEndPoint = _ref.serviceApiEndPoint,
2663
2669
  token = _ref.token,
@@ -2667,10 +2673,16 @@ var Statement = function Statement(_ref) {
2667
2673
  fontColor = _ref.fontColor,
2668
2674
  defaultStoreId = _ref.defaultStoreId,
2669
2675
  storeIdList = _ref.storeIdList;
2670
- var _useState = React.useState({}),
2671
- customerData = _useState[0],
2672
- setCustomerData = _useState[1];
2673
- var _useState2 = React.useState({
2676
+ var _useState = React.useState(false),
2677
+ loading = _useState[0],
2678
+ setLoading = _useState[1];
2679
+ var _useState2 = React.useState({}),
2680
+ customerData = _useState2[0],
2681
+ setCustomerData = _useState2[1];
2682
+ var _useState3 = React.useState([]),
2683
+ childCustomers = _useState3[0],
2684
+ setChildCustomers = _useState3[1];
2685
+ var _useState4 = React.useState({
2674
2686
  startDate: getUTCTime({
2675
2687
  time: moment$1().startOf('month')
2676
2688
  }),
@@ -2678,25 +2690,25 @@ var Statement = function Statement(_ref) {
2678
2690
  time: moment$1().endOf('month')
2679
2691
  })
2680
2692
  }),
2681
- queryParams = _useState2[0],
2682
- setQueryParams = _useState2[1];
2683
- var _useState3 = React.useState(getRandomString()),
2684
- triggerTableData = _useState3[0],
2685
- setTriggerTableData = _useState3[1];
2693
+ queryParams = _useState4[0],
2694
+ setQueryParams = _useState4[1];
2695
+ var _useState5 = React.useState(getRandomString()),
2696
+ triggerTableData = _useState5[0],
2697
+ setTriggerTableData = _useState5[1];
2686
2698
  var onDateChange = function onDateChange(data) {
2687
- setQueryParams({
2699
+ setQueryParams(_extends({}, queryParams, {
2688
2700
  startDate: getUTCTime({
2689
2701
  time: data === null || data === void 0 ? void 0 : data.startDate
2690
2702
  }),
2691
2703
  endDate: getUTCTime({
2692
2704
  time: data === null || data === void 0 ? void 0 : data.endDate
2693
2705
  })
2694
- });
2706
+ }));
2695
2707
  setTriggerTableData(getRandomString());
2696
2708
  };
2697
- var onChangeStore = function onChangeStore(data) {
2709
+ var onChangeCustomer = function onChangeCustomer(data) {
2698
2710
  setQueryParams(_extends({}, queryParams, {
2699
- customerIds: data
2711
+ customerIds: data === null || data === void 0 ? void 0 : data.join(',')
2700
2712
  }));
2701
2713
  setTriggerTableData(getRandomString());
2702
2714
  };
@@ -2745,24 +2757,36 @@ var Statement = function Statement(_ref) {
2745
2757
  React.useEffect(function () {
2746
2758
  (function () {
2747
2759
  try {
2748
- var _temp = _catch(function () {
2749
- return Promise.resolve(API$1({
2750
- url: "/ecommerce/customer",
2751
- apiEndPoint: apiEndPoint,
2752
- token: token
2753
- })).then(function (customerDataResponse) {
2754
- setCustomerData(customerDataResponse);
2755
- });
2756
- }, function () {});
2757
- return _temp && _temp.then ? _temp.then(function () {}) : void 0;
2760
+ var _temp2 = function () {
2761
+ if (token && apiEndPoint) {
2762
+ var _temp = _catch(function () {
2763
+ return Promise.resolve(API$1({
2764
+ url: "/ecommerce/customer",
2765
+ apiEndPoint: apiEndPoint,
2766
+ token: token
2767
+ })).then(function (customerDataResponse) {
2768
+ setCustomerData(customerDataResponse);
2769
+ return Promise.resolve(API$1({
2770
+ apiEndPoint: apiEndPoint,
2771
+ token: token,
2772
+ url: "/ecommerce/customer/child"
2773
+ })).then(function (response) {
2774
+ setChildCustomers(response);
2775
+ });
2776
+ });
2777
+ }, function () {});
2778
+ if (_temp && _temp.then) return _temp.then(function () {});
2779
+ }
2780
+ }();
2781
+ return _temp2 && _temp2.then ? _temp2.then(function () {}) : void 0;
2758
2782
  } catch (e) {
2759
2783
  Promise.reject(e);
2760
2784
  }
2761
2785
  })();
2762
- }, []);
2786
+ }, [token]);
2763
2787
  var print = function print() {
2764
- var _customerData$custome;
2765
- var location = "/cusomter/statement?token=" + token + "&startDate=" + queryParams.startDate + "&endDate=" + queryParams.endDate + "&customerIds=" + (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.id) + "&storeIdList=" + storeIdList + "&defaultStoreId=" + defaultStoreId;
2788
+ var _customerData$custome, _customerData$custome2;
2789
+ var location = "/cusomter/statement?token=" + token + "&startDate=" + queryParams.startDate + "&endDate=" + queryParams.endDate + "&customerIds=" + (queryParams !== null && queryParams !== void 0 && queryParams.customerIds ? (queryParams === null || queryParams === void 0 ? void 0 : queryParams.customerIds) + "," + (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.id) : customerData === null || customerData === void 0 ? void 0 : (_customerData$custome2 = customerData.customerDto) === null || _customerData$custome2 === void 0 ? void 0 : _customerData$custome2.id) + "&storeIdList=" + storeIdList + "&defaultStoreId=" + defaultStoreId;
2766
2790
  var pdfUrl = "" + serviceApiEndPoint + location;
2767
2791
  var w = window.open(pdfUrl);
2768
2792
  w.print();
@@ -2770,13 +2794,18 @@ var Statement = function Statement(_ref) {
2770
2794
  var getStatementAPIData = function getStatementAPIData(_ref2) {
2771
2795
  var params = _ref2.params;
2772
2796
  try {
2773
- var _customerData$custome2;
2797
+ var _customerData$custome3, _customerData$custome4;
2798
+ setLoading(true);
2799
+ var customerIds = queryParams !== null && queryParams !== void 0 && queryParams.customerIds ? (queryParams === null || queryParams === void 0 ? void 0 : queryParams.customerIds) + "," + (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome3 = customerData.customerDto) === null || _customerData$custome3 === void 0 ? void 0 : _customerData$custome3.id) : customerData === null || customerData === void 0 ? void 0 : (_customerData$custome4 = customerData.customerDto) === null || _customerData$custome4 === void 0 ? void 0 : _customerData$custome4.id;
2774
2800
  return Promise.resolve(API$1({
2775
- url: "/ecommerce/customer/report/statement?customerIds=" + (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome2 = customerData.customerDto) === null || _customerData$custome2 === void 0 ? void 0 : _customerData$custome2.id) + "&storeIds=" + storeIdList + "&page=0&size=20",
2801
+ url: "/ecommerce/customer/report/statement?storeIds=" + storeIdList + "&page=0&size=20",
2776
2802
  apiEndPoint: apiEndPoint,
2777
2803
  token: token,
2778
- queryParams: _extends({}, params, queryParams)
2804
+ queryParams: _extends({}, params, queryParams, {
2805
+ customerIds: customerIds
2806
+ })
2779
2807
  })).then(function (data) {
2808
+ setLoading(false);
2780
2809
  return data === null || data === void 0 ? void 0 : data.customerDetailedStatementReportDtoList;
2781
2810
  });
2782
2811
  } catch (e) {
@@ -2818,15 +2847,16 @@ var Statement = function Statement(_ref) {
2818
2847
  container: true,
2819
2848
  justifyContent: "flex-end",
2820
2849
  alignItems: "center"
2821
- }, (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome3 = customerData.customerList) === null || _customerData$custome3 === void 0 ? void 0 : _customerData$custome3[0]) && /*#__PURE__*/React__default.createElement(material.Grid, {
2850
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
2822
2851
  item: true
2823
2852
  }, /*#__PURE__*/React__default.createElement(MuiSelect, {
2824
2853
  label: "Select Customer",
2825
- defaultValue: customerData === null || customerData === void 0 ? void 0 : (_customerData$custome4 = customerData.customerList) === null || _customerData$custome4 === void 0 ? void 0 : (_customerData$custome5 = _customerData$custome4[0]) === null || _customerData$custome5 === void 0 ? void 0 : _customerData$custome5.id,
2826
- onChange: onChangeStore,
2827
- options: (customerData === null || customerData === void 0 ? void 0 : customerData.customerList) || [],
2854
+ defaultValue: [],
2855
+ onChange: onChangeCustomer,
2856
+ options: childCustomers || [],
2828
2857
  valueKey: "id",
2829
- labelKey: "customerName",
2858
+ labelKey: "${firstName} ${lastName} (${company})",
2859
+ multiple: true,
2830
2860
  fontColor: fontColor,
2831
2861
  primaryColor: primaryColor
2832
2862
  })), /*#__PURE__*/React__default.createElement(material.Grid, {
@@ -2838,6 +2868,7 @@ var Statement = function Statement(_ref) {
2838
2868
  initialStartDate: moment$1().startOf('month'),
2839
2869
  initialEndDate: moment$1().endOf('month')
2840
2870
  })))),
2871
+ loading: loading,
2841
2872
  listUpdate: triggerTableData,
2842
2873
  pagination: false,
2843
2874
  scroll: {
@@ -3226,7 +3257,7 @@ var HeaderContainer = styled__default.h2(_templateObject$g || (_templateObject$g
3226
3257
  });
3227
3258
 
3228
3259
  var _templateObject$h;
3229
- var _excluded$1 = ["children", "onClose", "fontColor"];
3260
+ var _excluded$2 = ["children", "onClose", "fontColor"];
3230
3261
  var MuiModal = function MuiModal(props) {
3231
3262
  var fontColor = props.fontColor,
3232
3263
  children = props.children,
@@ -3251,7 +3282,7 @@ function BootstrapDialogTitle(props) {
3251
3282
  var children = props.children,
3252
3283
  onClose = props.onClose,
3253
3284
  fontColor = props.fontColor,
3254
- other = _objectWithoutPropertiesLoose(props, _excluded$1);
3285
+ other = _objectWithoutPropertiesLoose(props, _excluded$2);
3255
3286
  return /*#__PURE__*/React__default.createElement(material.DialogTitle, _extends({
3256
3287
  sx: {
3257
3288
  m: 0,
@@ -3404,12 +3435,12 @@ var AddressCardContainer = styled__default.div(_templateObject6$2 || (_templateO
3404
3435
  });
3405
3436
 
3406
3437
  var _templateObject$j;
3407
- var _excluded$2 = ["children", "value", "index"];
3438
+ var _excluded$3 = ["children", "value", "index"];
3408
3439
  function TabPanel(props) {
3409
3440
  var children = props.children,
3410
3441
  value = props.value,
3411
3442
  index = props.index,
3412
- other = _objectWithoutPropertiesLoose(props, _excluded$2);
3443
+ other = _objectWithoutPropertiesLoose(props, _excluded$3);
3413
3444
  return /*#__PURE__*/React__default.createElement("div", _extends({
3414
3445
  role: "tabpanel",
3415
3446
  hidden: value !== index,
@@ -6993,7 +7024,7 @@ var SelectStyle = function SelectStyle(hasError) {
6993
7024
  };
6994
7025
  };
6995
7026
 
6996
- var _excluded$3 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
7027
+ var _excluded$4 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
6997
7028
  var AsyncSelectField = function AsyncSelectField(_ref) {
6998
7029
  var value = _ref.value,
6999
7030
  onChange = _ref.onChange,
@@ -7014,7 +7045,7 @@ var AsyncSelectField = function AsyncSelectField(_ref) {
7014
7045
  addItemLabel = _ref.addItemLabel,
7015
7046
  onAddItem = _ref.onAddItem,
7016
7047
  searchResultSize = _ref.searchResultSize,
7017
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
7048
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
7018
7049
  var DEFAULT_SEARCH_RESULT_SIZE = searchResultSize || 20;
7019
7050
  var labelKey = apiData.labelKey || 'name';
7020
7051
  var queryParam = apiData.queryParam || 'name';
@@ -8016,7 +8047,7 @@ var StaticPage = function StaticPage(_ref) {
8016
8047
  };
8017
8048
  var Root$c = styled__default(material.Box)(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose([""])));
8018
8049
 
8019
- var _excluded$4 = ["userName", "children", "style"];
8050
+ var _excluded$5 = ["userName", "children", "style"];
8020
8051
  var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
8021
8052
  var getRandomColor = function getRandomColor(userName) {
8022
8053
  return colors$1[(userName === null || userName === void 0 ? void 0 : userName.length) % (colors$1 === null || colors$1 === void 0 ? void 0 : colors$1.length)];
@@ -8035,7 +8066,7 @@ var Avatar = function Avatar(_ref) {
8035
8066
  var userName = _ref.userName,
8036
8067
  children = _ref.children,
8037
8068
  style = _ref.style,
8038
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
8069
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
8039
8070
  var backgroundColor = '#1f62ff';
8040
8071
  if (userName) {
8041
8072
  backgroundColor = getRandomColor(userName);
@@ -10038,7 +10069,7 @@ var Step4 = function Step4(_ref) {
10038
10069
  colSpan: 1
10039
10070
  }, /*#__PURE__*/React__default.createElement("p", {
10040
10071
  className: "max sm"
10041
- }, "Total(", orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalCartQuantity, " items)")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
10072
+ }, "Total(", orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalQuantity, " items)")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
10042
10073
  align: "right"
10043
10074
  }, /*#__PURE__*/React__default.createElement("p", {
10044
10075
  className: "max sm price"
@@ -10460,7 +10491,7 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
10460
10491
  };
10461
10492
  var taxAmount = 0;
10462
10493
  var _temp8 = function (_cartData$cartLineIte) {
10463
- if (shippingAddressId && (cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.length) > 0) {
10494
+ if (taxExempt && shippingAddressId && (cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.length) > 0) {
10464
10495
  return Promise.resolve(API$1({
10465
10496
  apiEndPoint: apiEndPoint,
10466
10497
  token: token,