@salesgenterp/ui-components 0.4.530 → 0.4.531

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
@@ -6234,7 +6234,7 @@ function useGridSize() {
6234
6234
  return layout;
6235
6235
  }
6236
6236
 
6237
- var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$3;
6237
+ var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2;
6238
6238
  var CartPageSection = styled__default.section(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 20px;\n max-width: 1600px;\n width: min(1600px, 100%);\n margin: auto;\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n"])), function (props) {
6239
6239
  return props.bg;
6240
6240
  }, function (props) {
@@ -6274,12 +6274,13 @@ var CartTableContainer = styled__default(material.TableContainer)(_templateObjec
6274
6274
  }, function (props) {
6275
6275
  return props.color;
6276
6276
  });
6277
- var CartButtonsRow = styled__default.div(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n padding-right: 1.85em;\n button {\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n transform: scale(0.9);\n }\n }\n"])), function (props) {
6277
+ var CartButtonsRow = styled__default.div(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n padding-right: 1.85em;\n button {\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n transform: scale(0.9);\n }\n }\n"])), function (props) {
6278
6278
  return props.bg || 'rgba(107, 106, 106, 1)';
6279
6279
  }, function (props) {
6280
6280
  return props.color || 'white';
6281
6281
  });
6282
- var CartPageBox = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n margin-right: 1rem;\n min-height: 30em;\n position: relative;\n @media only screen and (max-width: 768px) {\n margin-right: 0;\n .CartnoBelowSm {\n display: none;\n }\n }\n"])));
6282
+ var PaginationRow = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n padding: 1em 0;\n gap: 1em;\n flex-wrap: wrap;\n .MuiPagination-root {\n .MuiPagination-ul {\n flex-wrap: wrap;\n }\n }\n @media screen and (max-width: 768px) {\n justify-content: center;\n padding: 1em 0.5em;\n }\n"])));
6283
+ var CartPageBox = styled__default.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n margin-right: 1rem;\n min-height: 30em;\n position: relative;\n @media only screen and (max-width: 768px) {\n margin-right: 0;\n .CartnoBelowSm {\n display: none;\n }\n }\n"])));
6283
6284
 
6284
6285
  function createCommonjsModule(fn, module) {
6285
6286
  return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -7609,6 +7610,8 @@ var CardRow = function CardRow(_ref) {
7609
7610
  }))));
7610
7611
  };
7611
7612
 
7613
+ var DEFAULT_PAGE_SIZE = 50;
7614
+ var PAGE_SIZE_OPTIONS = [50, 100, 300, 500];
7612
7615
  var headCells = function headCells(_ref) {
7613
7616
  var doNotShowPrice = _ref.doNotShowPrice;
7614
7617
  return [{
@@ -7724,7 +7727,7 @@ EnhancedTableHead.propTypes = {
7724
7727
  rowCount: propTypes.number.isRequired
7725
7728
  };
7726
7729
  function EnhancedTable(_ref2) {
7727
- var _cartData$cartLineIte, _styles$Btn, _styles$scroll, _styles$scroll2, _sortBy, _styles$Btn2, _styles$Btn3;
7730
+ var _cartData$cartLineIte, _styles$Btn, _styles$scroll, _styles$scroll2, _styles$Btn2, _styles$Btn3, _styles$Btn4, _styles$Btn5, _styles$Btn6, _styles$Btn7, _styles$Btn8, _styles$Btn9, _styles$Btn10;
7728
7731
  var cartData = _ref2.cartData,
7729
7732
  loading = _ref2.loading,
7730
7733
  imgnotfoundUrl = _ref2.imgnotfoundUrl,
@@ -7753,27 +7756,23 @@ function EnhancedTable(_ref2) {
7753
7756
  var _React$useState4 = React.useState(cartList),
7754
7757
  cartArray = _React$useState4[0],
7755
7758
  setCartArray = _React$useState4[1];
7756
- var Sort = function Sort() {
7757
- var newArray = cartArray || [];
7758
- var li = orderBy;
7759
- if (order === 'asc') {
7760
- newArray.sort(function (a, b) {
7761
- return a[li] - b[li];
7759
+ var _React$useState5 = React.useState(1),
7760
+ page = _React$useState5[0],
7761
+ setPage = _React$useState5[1];
7762
+ var _React$useState6 = React.useState(DEFAULT_PAGE_SIZE),
7763
+ rowsPerPage = _React$useState6[0],
7764
+ setRowsPerPage = _React$useState6[1];
7765
+ var NUMERIC_SORT_COLUMNS = ['quantity', 'standardPrice', 'subtotal'];
7766
+ var handleRequestSort = function handleRequestSort(event, property) {
7767
+ var isSameColumn = orderBy === property;
7768
+ if (isSameColumn) {
7769
+ setOrder(function (prev) {
7770
+ return prev === 'asc' ? 'desc' : 'asc';
7762
7771
  });
7763
- return setCartArray(newArray);
7772
+ } else {
7773
+ setOrderBy(property);
7774
+ setOrder(NUMERIC_SORT_COLUMNS.includes(property) ? 'desc' : 'asc');
7764
7775
  }
7765
- newArray.sort(function (a, b) {
7766
- return b[li] - a[li];
7767
- });
7768
- return setCartArray(newArray);
7769
- };
7770
- React.useEffect(function () {
7771
- Sort();
7772
- }, [order, orderBy]);
7773
- var handleRequestSort = function handleRequestSort(event, property) {
7774
- var isAsc = orderBy === property && order === 'asc';
7775
- setOrder(isAsc ? 'desc' : 'asc');
7776
- setOrderBy(property);
7777
7776
  };
7778
7777
  var handleSelectAllClick = function handleSelectAllClick(event) {
7779
7778
  if ((selected === null || selected === void 0 ? void 0 : selected.length) < (cartArray === null || cartArray === void 0 ? void 0 : cartArray.length)) {
@@ -7799,6 +7798,38 @@ function EnhancedTable(_ref2) {
7799
7798
  React.useEffect(function () {
7800
7799
  setCartArray(cartList);
7801
7800
  }, [cartData]);
7801
+ var getSortValue = function getSortValue(row, key) {
7802
+ var _row$key;
7803
+ if (key === 'subtotal') {
7804
+ var _row$discountAmount, _row$quantity, _row$couponDiscount;
7805
+ return ((row === null || row === void 0 ? void 0 : row.standardPrice) - ((_row$discountAmount = row === null || row === void 0 ? void 0 : row.discountAmount) != null ? _row$discountAmount : 0)) * ((_row$quantity = row === null || row === void 0 ? void 0 : row.quantity) != null ? _row$quantity : 0) - ((_row$couponDiscount = row === null || row === void 0 ? void 0 : row.couponDiscount) != null ? _row$couponDiscount : 0);
7806
+ }
7807
+ return (_row$key = row[key]) != null ? _row$key : 0;
7808
+ };
7809
+ var columnSortedArray = React.useMemo(function () {
7810
+ var arr = [].concat(cartArray || []);
7811
+ var key = orderBy;
7812
+ if (order === 'asc') {
7813
+ arr.sort(function (a, b) {
7814
+ return getSortValue(a, key) - getSortValue(b, key);
7815
+ });
7816
+ } else {
7817
+ arr.sort(function (a, b) {
7818
+ return getSortValue(b, key) - getSortValue(a, key);
7819
+ });
7820
+ }
7821
+ return arr;
7822
+ }, [cartArray, order, orderBy]);
7823
+ var sortedCartArray = lodash.sortBy(columnSortedArray, function (o) {
7824
+ return !((o === null || o === void 0 ? void 0 : o.quantity) <= 0 || (o === null || o === void 0 ? void 0 : o.availableQuantity) <= 0 || (o === null || o === void 0 ? void 0 : o.quantity) > (o === null || o === void 0 ? void 0 : o.availableQuantity));
7825
+ }) || [];
7826
+ var totalPages = Math.max(1, Math.ceil(sortedCartArray.length / rowsPerPage));
7827
+ var paginatedCartArray = sortedCartArray.slice((page - 1) * rowsPerPage, page * rowsPerPage);
7828
+ React.useEffect(function () {
7829
+ if (page > totalPages) {
7830
+ setPage(1);
7831
+ }
7832
+ }, [totalPages, page]);
7802
7833
  return /*#__PURE__*/React.createElement(CartPageBox, null, loading && /*#__PURE__*/React.createElement(Loader$1, null, /*#__PURE__*/React.createElement(reactSpinners.BounceLoader, {
7803
7834
  size: 40,
7804
7835
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
@@ -7806,8 +7837,7 @@ function EnhancedTable(_ref2) {
7806
7837
  })), /*#__PURE__*/React.createElement(Box, {
7807
7838
  sx: {
7808
7839
  width: '100%'
7809
- },
7810
- paddingBottom: "2em"
7840
+ }
7811
7841
  }, /*#__PURE__*/React.createElement(CartTableContainer, {
7812
7842
  bg: styles === null || styles === void 0 ? void 0 : (_styles$scroll = styles.scroll) === null || _styles$scroll === void 0 ? void 0 : _styles$scroll.bg,
7813
7843
  color: styles === null || styles === void 0 ? void 0 : (_styles$scroll2 = styles.scroll) === null || _styles$scroll2 === void 0 ? void 0 : _styles$scroll2.color
@@ -7826,9 +7856,7 @@ function EnhancedTable(_ref2) {
7826
7856
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
7827
7857
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
7828
7858
  doNotShowPrice: doNotShowPrice
7829
- }), /*#__PURE__*/React.createElement(TableBody, null, (_sortBy = lodash.sortBy(cartArray, function (o) {
7830
- return !((o === null || o === void 0 ? void 0 : o.quantity) <= 0 || (o === null || o === void 0 ? void 0 : o.availableQuantity) <= 0 || (o === null || o === void 0 ? void 0 : o.quantity) > (o === null || o === void 0 ? void 0 : o.availableQuantity));
7831
- })) === null || _sortBy === void 0 ? void 0 : _sortBy.map(function (row, index) {
7859
+ }), /*#__PURE__*/React.createElement(TableBody, null, paginatedCartArray.map(function (row, index) {
7832
7860
  var isItemSelected = isSelected(row);
7833
7861
  return /*#__PURE__*/React.createElement(CardRow, {
7834
7862
  row: row,
@@ -7843,7 +7871,14 @@ function EnhancedTable(_ref2) {
7843
7871
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
7844
7872
  doNotShowPrice: doNotShowPrice
7845
7873
  });
7846
- }))))), (cartArray === null || cartArray === void 0 ? void 0 : cartArray.length) > 0 && /*#__PURE__*/React.createElement(CartButtonsRow, {
7874
+ }))))), /*#__PURE__*/React.createElement("div", {
7875
+ style: {
7876
+ display: 'flex',
7877
+ justifyContent: 'space-between',
7878
+ flexWrap: 'wrap',
7879
+ width: '100%'
7880
+ }
7881
+ }, (cartArray === null || cartArray === void 0 ? void 0 : cartArray.length) > 0 && /*#__PURE__*/React.createElement(CartButtonsRow, {
7847
7882
  bg: styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.background,
7848
7883
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn3 = styles.Btn) === null || _styles$Btn3 === void 0 ? void 0 : _styles$Btn3.color
7849
7884
  }, /*#__PURE__*/React.createElement("button", {
@@ -7857,7 +7892,51 @@ function EnhancedTable(_ref2) {
7857
7892
  });
7858
7893
  setSelected([]);
7859
7894
  }
7860
- }, "remove selected")));
7895
+ }, "remove selected")), sortedCartArray.length > 0 && /*#__PURE__*/React.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React.createElement(material.Pagination, {
7896
+ count: totalPages,
7897
+ page: page,
7898
+ onChange: function onChange(_, value) {
7899
+ return setPage(value);
7900
+ },
7901
+ color: "primary",
7902
+ sx: {
7903
+ '& .MuiPaginationItem-root.Mui-selected': {
7904
+ backgroundColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn4 = styles.Btn) === null || _styles$Btn4 === void 0 ? void 0 : _styles$Btn4.background,
7905
+ color: (styles === null || styles === void 0 ? void 0 : (_styles$Btn5 = styles.Btn) === null || _styles$Btn5 === void 0 ? void 0 : _styles$Btn5.color) || '#fff',
7906
+ borderColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn6 = styles.Btn) === null || _styles$Btn6 === void 0 ? void 0 : _styles$Btn6.background
7907
+ },
7908
+ '& .MuiPaginationItem-root.Mui-selected:hover': {
7909
+ backgroundColor: (styles === null || styles === void 0 ? void 0 : (_styles$Btn7 = styles.Btn) === null || _styles$Btn7 === void 0 ? void 0 : _styles$Btn7.background) + '80',
7910
+ color: (styles === null || styles === void 0 ? void 0 : (_styles$Btn8 = styles.Btn) === null || _styles$Btn8 === void 0 ? void 0 : _styles$Btn8.color) || '#fff',
7911
+ borderColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn9 = styles.Btn) === null || _styles$Btn9 === void 0 ? void 0 : _styles$Btn9.background
7912
+ }
7913
+ },
7914
+ showFirstButton: true,
7915
+ showLastButton: true
7916
+ }), /*#__PURE__*/React.createElement(material.FormControl, {
7917
+ size: "small",
7918
+ sx: {
7919
+ minWidth: 120
7920
+ }
7921
+ }, /*#__PURE__*/React.createElement(material.Select, {
7922
+ value: rowsPerPage,
7923
+ onChange: function onChange(e) {
7924
+ setRowsPerPage(Number(e.target.value));
7925
+ setPage(1);
7926
+ },
7927
+ sx: {
7928
+ '& .MuiSelect-select': {
7929
+ backgroundColor: '#ffffff',
7930
+ borderRadius: '5px',
7931
+ borderColor: (styles === null || styles === void 0 ? void 0 : (_styles$Btn10 = styles.Btn) === null || _styles$Btn10 === void 0 ? void 0 : _styles$Btn10.background) || '#d3d3d3'
7932
+ }
7933
+ }
7934
+ }, PAGE_SIZE_OPTIONS.map(function (size) {
7935
+ return /*#__PURE__*/React.createElement(material.MenuItem, {
7936
+ key: size,
7937
+ value: size
7938
+ }, size, " per page");
7939
+ }))))));
7861
7940
  }
7862
7941
 
7863
7942
  var _templateObject$u, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7, _templateObject7$5;
@@ -7989,8 +8068,10 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
7989
8068
  }, /*#__PURE__*/React__default.createElement(ri.RiDeleteBin5Line, null)));
7990
8069
  };
7991
8070
 
8071
+ var DEFAULT_PAGE_SIZE$1 = 50;
8072
+ var PAGE_SIZE_OPTIONS$1 = [50, 100, 300, 500];
7992
8073
  var CartPageMainRetail = function CartPageMainRetail(_ref) {
7993
- var _styles$Btn, _sortBy;
8074
+ var _styles$Btn, _styles$Btn2, _styles$Btn3, _styles$Btn4, _styles$Btn5, _styles$Btn6, _styles$Btn7, _styles$Btn8;
7994
8075
  var retail = _ref.retail,
7995
8076
  cartData = _ref.cartData,
7996
8077
  loading = _ref.loading,
@@ -8001,7 +8082,25 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8001
8082
  clickRedirect = _ref.clickRedirect,
8002
8083
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8003
8084
  doNotShowPrice = _ref.doNotShowPrice;
8085
+ var _useState = React.useState(1),
8086
+ page = _useState[0],
8087
+ setPage = _useState[1];
8088
+ var _useState2 = React.useState(DEFAULT_PAGE_SIZE$1),
8089
+ rowsPerPage = _useState2[0],
8090
+ setRowsPerPage = _useState2[1];
8091
+ var sortedCartArray = React.useMemo(function () {
8092
+ return lodash.sortBy((cartData === null || cartData === void 0 ? void 0 : cartData.cartLineItemDtoList) || [], function (o) {
8093
+ return !((o === null || o === void 0 ? void 0 : o.quantity) <= 0 || (o === null || o === void 0 ? void 0 : o.availableQuantity) <= 0 || (o === null || o === void 0 ? void 0 : o.quantity) > (o === null || o === void 0 ? void 0 : o.availableQuantity));
8094
+ });
8095
+ }, [cartData === null || cartData === void 0 ? void 0 : cartData.cartLineItemDtoList]);
8096
+ var totalPages = Math.max(1, Math.ceil(sortedCartArray.length / rowsPerPage));
8097
+ var paginatedCartArray = sortedCartArray.slice((page - 1) * rowsPerPage, page * rowsPerPage);
8098
+ React__default.useEffect(function () {
8099
+ if (page > totalPages) setPage(1);
8100
+ }, [totalPages, page]);
8004
8101
  return /*#__PURE__*/React__default.createElement("div", {
8102
+ className: ""
8103
+ }, /*#__PURE__*/React__default.createElement("div", {
8005
8104
  className: "scrollDiv"
8006
8105
  }, /*#__PURE__*/React__default.createElement(CardsBox, {
8007
8106
  retail: retail
@@ -8009,10 +8108,9 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8009
8108
  size: 40,
8010
8109
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
8011
8110
  loading: true
8012
- })), (_sortBy = lodash.sortBy(cartData === null || cartData === void 0 ? void 0 : cartData.cartLineItemDtoList, function (o) {
8013
- return !((o === null || o === void 0 ? void 0 : o.quantity) <= 0 || (o === null || o === void 0 ? void 0 : o.availableQuantity) <= 0 || (o === null || o === void 0 ? void 0 : o.quantity) > (o === null || o === void 0 ? void 0 : o.availableQuantity));
8014
- })) === null || _sortBy === void 0 ? void 0 : _sortBy.map(function (item) {
8111
+ })), paginatedCartArray.map(function (item) {
8015
8112
  return /*#__PURE__*/React__default.createElement(CartPageProductCard, {
8113
+ key: item === null || item === void 0 ? void 0 : item.productId,
8016
8114
  item: item,
8017
8115
  loading: loading,
8018
8116
  imgnotfoundUrl: imgnotfoundUrl,
@@ -8023,7 +8121,51 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8023
8121
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8024
8122
  doNotShowPrice: doNotShowPrice
8025
8123
  });
8026
- })));
8124
+ }))), sortedCartArray.length > 0 && /*#__PURE__*/React__default.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React__default.createElement(material.Pagination, {
8125
+ count: totalPages,
8126
+ page: page,
8127
+ onChange: function onChange(_, value) {
8128
+ return setPage(value);
8129
+ },
8130
+ color: "primary",
8131
+ sx: {
8132
+ '& .MuiPaginationItem-root.Mui-selected': {
8133
+ backgroundColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.background,
8134
+ color: (styles === null || styles === void 0 ? void 0 : (_styles$Btn3 = styles.Btn) === null || _styles$Btn3 === void 0 ? void 0 : _styles$Btn3.color) || '#fff',
8135
+ borderColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn4 = styles.Btn) === null || _styles$Btn4 === void 0 ? void 0 : _styles$Btn4.background
8136
+ },
8137
+ '& .MuiPaginationItem-root.Mui-selected:hover': {
8138
+ backgroundColor: (styles === null || styles === void 0 ? void 0 : (_styles$Btn5 = styles.Btn) === null || _styles$Btn5 === void 0 ? void 0 : _styles$Btn5.background) + '80',
8139
+ color: (styles === null || styles === void 0 ? void 0 : (_styles$Btn6 = styles.Btn) === null || _styles$Btn6 === void 0 ? void 0 : _styles$Btn6.color) || '#fff',
8140
+ borderColor: styles === null || styles === void 0 ? void 0 : (_styles$Btn7 = styles.Btn) === null || _styles$Btn7 === void 0 ? void 0 : _styles$Btn7.background
8141
+ }
8142
+ },
8143
+ showFirstButton: true,
8144
+ showLastButton: true
8145
+ }), /*#__PURE__*/React__default.createElement(material.FormControl, {
8146
+ size: "small",
8147
+ sx: {
8148
+ minWidth: 120
8149
+ }
8150
+ }, /*#__PURE__*/React__default.createElement(material.Select, {
8151
+ value: rowsPerPage,
8152
+ onChange: function onChange(e) {
8153
+ setRowsPerPage(Number(e.target.value));
8154
+ setPage(1);
8155
+ },
8156
+ sx: {
8157
+ '& .MuiSelect-select': {
8158
+ backgroundColor: '#ffffff',
8159
+ borderRadius: '5px',
8160
+ borderColor: (styles === null || styles === void 0 ? void 0 : (_styles$Btn8 = styles.Btn) === null || _styles$Btn8 === void 0 ? void 0 : _styles$Btn8.background) || '#d3d3d3'
8161
+ }
8162
+ }
8163
+ }, PAGE_SIZE_OPTIONS$1.map(function (size) {
8164
+ return /*#__PURE__*/React__default.createElement(material.MenuItem, {
8165
+ key: size,
8166
+ value: size
8167
+ }, size, " per page");
8168
+ })))));
8027
8169
  };
8028
8170
 
8029
8171
  var _templateObject$v, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$4;
@@ -8665,7 +8807,7 @@ var CartDrawer = function CartDrawer(_ref) {
8665
8807
  width: '100%',
8666
8808
  boxSizing: 'border-box'
8667
8809
  }
8668
- }, (cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.length) > 0 ? /*#__PURE__*/React__default.createElement(CartDrawerProductContainer, {
8810
+ }, loading || (cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.length) > 0 ? /*#__PURE__*/React__default.createElement(CartDrawerProductContainer, {
8669
8811
  opacity: loading ? '.4' : '1'
8670
8812
  }, loading && /*#__PURE__*/React__default.createElement(CartDrawerLoader, null, /*#__PURE__*/React__default.createElement(reactSpinners.PuffLoader, {
8671
8813
  color: "black"
@@ -11033,7 +11175,7 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
11033
11175
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue))));
11034
11176
  };
11035
11177
 
11036
- var _templateObject$M, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7, _templateObject9$5, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1;
11178
+ var _templateObject$M, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7, _templateObject9$5, _templateObject10$3, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1;
11037
11179
  var StepContainer = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 60em;\n background: white;\n padding: 1em 2em;\n background: #ffffff;\n border-radius: 20px;\n margin-left: 2em;\n margin-top: -2em;\n margin-bottom: 1em;\n // @media screen and (max-width: 1200px) {\n // width: 80vw;\n // min-width: 0;\n // }\n @media screen and (max-width: 768px) {\n // width: 96%;\n margin-left: 1em;\n padding: 0.8em;\n }\n @media screen and (max-width: 600px) {\n // width: 94%;\n margin-left: 1.2em;\n }\n"])));
11038
11180
  var StepsContent = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n padding-left: 1.565em;\n min-height: max-content;\n .MuiOutlinedInput-root {\n background: ", ";\n }\n\n p {\n font-size: 0.75em;\n }\n .bold {\n text-transform: uppercase;\n word-spacing: 5px;\n margin-top: 0.95em;\n span {\n font-weight: 600;\n cursor: pointer;\n font-size: 0.94rem;\n }\n .red {\n color: ", ";\n }\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n width: 100%;\n }\n"])), function (props) {
11039
11181
  return 'transparent' + '!important';
@@ -11105,7 +11247,7 @@ var CheckBoxRow = styled__default.div(_templateObject9$5 || (_templateObject9$5
11105
11247
  }, function (prop) {
11106
11248
  return prop.colorText || 'red';
11107
11249
  });
11108
- var CreditCardFextField = styled__default.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n .MuiOutlinedInput-root {\n background: ", ";\n }\n .save-btn {\n background: ", ";\n }\n"])), function (prop) {
11250
+ var CreditCardFextField = styled__default.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n .MuiOutlinedInput-root {\n background: ", ";\n }\n .save-btn {\n background: ", ";\n }\n"])), function (prop) {
11109
11251
  return prop.bgInput + '!important' || '';
11110
11252
  }, function (prop) {
11111
11253
  return prop.btnBg + '!important' || '';