@salesgenterp/ui-components 0.4.480 → 0.4.482

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
@@ -7338,7 +7338,8 @@ var CardRow = function CardRow(_ref) {
7338
7338
  imgSize = _ref.imgSize,
7339
7339
  styles = _ref.styles,
7340
7340
  clickRedirect = _ref.clickRedirect,
7341
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce;
7341
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7342
+ doNotShowPrice = _ref.doNotShowPrice;
7342
7343
  var imgnotfoundUrlcommon = noImgAvailable$1;
7343
7344
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
7344
7345
  var timer = React.useRef();
@@ -7426,7 +7427,7 @@ var CardRow = function CardRow(_ref) {
7426
7427
  color: 'red',
7427
7428
  fontWeight: 500
7428
7429
  }
7429
- }, "Quantity can not be less than 0")), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7430
+ }, "Quantity can not be less than 0")), !doNotShowPrice && /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7430
7431
  align: "center",
7431
7432
  className: "CartnoBelowSm"
7432
7433
  }, /*#__PURE__*/React__default.createElement("p", {
@@ -7486,7 +7487,7 @@ var CardRow = function CardRow(_ref) {
7486
7487
  style: {
7487
7488
  fontSize: 'inherit'
7488
7489
  }
7489
- })))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7490
+ })))), !doNotShowPrice && /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7490
7491
  alig: "center",
7491
7492
  className: "CartnoPaddingSm"
7492
7493
  }, /*#__PURE__*/React__default.createElement("p", {
@@ -7508,47 +7509,50 @@ var CardRow = function CardRow(_ref) {
7508
7509
  }))));
7509
7510
  };
7510
7511
 
7511
- var headCells = [{
7512
- id: 'image',
7513
- numeric: false,
7514
- disablePadding: false,
7515
- label: 'Image',
7516
- filter: false
7517
- }, {
7518
- id: 'name',
7519
- numeric: false,
7520
- disablePadding: false,
7521
- label: 'Name',
7522
- filter: false
7523
- }, {
7524
- id: 'standardPrice',
7525
- numeric: true,
7526
- disablePadding: false,
7527
- label: 'price',
7528
- filter: true,
7529
- noBelowSm: true
7530
- }, {
7531
- id: 'quantity',
7532
- numeric: true,
7533
- disablePadding: false,
7534
- label: 'qty',
7535
- filter: true
7536
- }, {
7537
- id: 'subtotal',
7538
- numeric: false,
7539
- disablePadding: false,
7540
- label: 'subtotal',
7541
- filter: true
7542
- }, {
7543
- id: 'delete',
7544
- numeric: false,
7545
- disablePadding: true,
7546
- label: ' ',
7547
- filter: false,
7548
- noBelowSm: true
7549
- }];
7512
+ var headCells = function headCells(_ref) {
7513
+ var doNotShowPrice = _ref.doNotShowPrice;
7514
+ return [{
7515
+ id: 'image',
7516
+ numeric: false,
7517
+ disablePadding: false,
7518
+ label: 'Image',
7519
+ filter: false
7520
+ }, {
7521
+ id: 'name',
7522
+ numeric: false,
7523
+ disablePadding: false,
7524
+ label: 'Name',
7525
+ filter: false
7526
+ }, !doNotShowPrice && {
7527
+ id: 'standardPrice',
7528
+ numeric: true,
7529
+ disablePadding: false,
7530
+ label: 'price',
7531
+ filter: true,
7532
+ noBelowSm: true
7533
+ }, {
7534
+ id: 'quantity',
7535
+ numeric: true,
7536
+ disablePadding: false,
7537
+ label: 'qty',
7538
+ filter: true
7539
+ }, !doNotShowPrice && {
7540
+ id: 'subtotal',
7541
+ numeric: false,
7542
+ disablePadding: false,
7543
+ label: 'subtotal',
7544
+ filter: true
7545
+ }, {
7546
+ id: 'delete',
7547
+ numeric: false,
7548
+ disablePadding: true,
7549
+ label: ' ',
7550
+ filter: false,
7551
+ noBelowSm: true
7552
+ }];
7553
+ };
7550
7554
  function EnhancedTableHead(props) {
7551
- var _styles$cartSummary, _styles$cartSummary2;
7555
+ var _styles$cartSummary, _styles$cartSummary2, _headCells, _headCells$filter;
7552
7556
  var onSelectAllClick = props.onSelectAllClick,
7553
7557
  disabledSelectAllProductCheckbox = props.disabledSelectAllProductCheckbox,
7554
7558
  order = props.order,
@@ -7556,7 +7560,8 @@ function EnhancedTableHead(props) {
7556
7560
  numSelected = props.numSelected,
7557
7561
  rowCount = props.rowCount,
7558
7562
  onRequestSort = props.onRequestSort,
7559
- styles = props.styles;
7563
+ styles = props.styles,
7564
+ doNotShowPrice = props.doNotShowPrice;
7560
7565
  var createSortHandler = function createSortHandler(property) {
7561
7566
  return function (event) {
7562
7567
  onRequestSort(event, property);
@@ -7585,7 +7590,11 @@ function EnhancedTableHead(props) {
7585
7590
  color: styles === null || styles === void 0 ? void 0 : (_styles$cartSummary2 = styles.cartSummary) === null || _styles$cartSummary2 === void 0 ? void 0 : _styles$cartSummary2.color
7586
7591
  }
7587
7592
  })
7588
- })), headCells.map(function (headCell) {
7593
+ })), (_headCells = headCells({
7594
+ doNotShowPrice: doNotShowPrice
7595
+ })) === null || _headCells === void 0 ? void 0 : (_headCells$filter = _headCells.filter(function (item) {
7596
+ return item;
7597
+ })) === null || _headCells$filter === void 0 ? void 0 : _headCells$filter.map(function (headCell) {
7589
7598
  var _styles$cartSummary3;
7590
7599
  return /*#__PURE__*/React.createElement(CartTableCell, {
7591
7600
  key: headCell.id,
@@ -7614,18 +7623,19 @@ EnhancedTableHead.propTypes = {
7614
7623
  orderBy: propTypes.string.isRequired,
7615
7624
  rowCount: propTypes.number.isRequired
7616
7625
  };
7617
- function EnhancedTable(_ref) {
7626
+ function EnhancedTable(_ref2) {
7618
7627
  var _cartData$cartLineIte, _styles$Btn, _styles$scroll, _styles$scroll2, _sortBy, _styles$Btn2, _styles$Btn3;
7619
- var cartData = _ref.cartData,
7620
- loading = _ref.loading,
7621
- imgnotfoundUrl = _ref.imgnotfoundUrl,
7622
- handleIncrementDecrement = _ref.handleIncrementDecrement,
7623
- handleRemoveProduct = _ref.handleRemoveProduct,
7624
- handleRemoveAll = _ref.handleRemoveAll,
7625
- styles = _ref.styles,
7626
- disabledSelectAllProductCheckbox = _ref.disabledSelectAllProductCheckbox,
7627
- clickRedirect = _ref.clickRedirect,
7628
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce;
7628
+ var cartData = _ref2.cartData,
7629
+ loading = _ref2.loading,
7630
+ imgnotfoundUrl = _ref2.imgnotfoundUrl,
7631
+ handleIncrementDecrement = _ref2.handleIncrementDecrement,
7632
+ handleRemoveProduct = _ref2.handleRemoveProduct,
7633
+ handleRemoveAll = _ref2.handleRemoveAll,
7634
+ styles = _ref2.styles,
7635
+ disabledSelectAllProductCheckbox = _ref2.disabledSelectAllProductCheckbox,
7636
+ clickRedirect = _ref2.clickRedirect,
7637
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref2.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7638
+ doNotShowPrice = _ref2.doNotShowPrice;
7629
7639
  var cartList = cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.map(function (li) {
7630
7640
  return _extends({}, li, {
7631
7641
  subtotal: li.standardPrice * li.quantity
@@ -7718,7 +7728,8 @@ function EnhancedTable(_ref) {
7718
7728
  rowCount: cartArray === null || cartArray === void 0 ? void 0 : cartArray.length,
7719
7729
  styles: styles,
7720
7730
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
7721
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
7731
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
7732
+ doNotShowPrice: doNotShowPrice
7722
7733
  }), /*#__PURE__*/React.createElement(TableBody, null, (_sortBy = lodash.sortBy(cartArray, function (o) {
7723
7734
  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));
7724
7735
  })) === null || _sortBy === void 0 ? void 0 : _sortBy.map(function (row, index) {
@@ -7733,7 +7744,8 @@ function EnhancedTable(_ref) {
7733
7744
  handleIncrementDecrement: handleIncrementDecrement,
7734
7745
  handleRemoveProduct: handleRemoveProduct,
7735
7746
  clickRedirect: clickRedirect,
7736
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
7747
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
7748
+ doNotShowPrice: doNotShowPrice
7737
7749
  });
7738
7750
  }))))), (cartArray === null || cartArray === void 0 ? void 0 : cartArray.length) > 0 && /*#__PURE__*/React.createElement(CartButtonsRow, {
7739
7751
  bg: styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.background,
@@ -7773,7 +7785,8 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
7773
7785
  loading = _ref.loading,
7774
7786
  imgSize = _ref.imgSize,
7775
7787
  clickRedirect = _ref.clickRedirect,
7776
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce;
7788
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7789
+ doNotShowPrice = _ref.doNotShowPrice;
7777
7790
  var imgnotfoundUrlcommon = noImgAvailable$1;
7778
7791
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
7779
7792
  var timer = React.useRef();
@@ -7821,7 +7834,7 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
7821
7834
  onClick: function onClick() {
7822
7835
  return clickRedirect(item);
7823
7836
  }
7824
- }, item.productName)), /*#__PURE__*/React__default.createElement("p", null, renderMoney(item.standardPrice))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
7837
+ }, item.productName)), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, renderMoney(item.standardPrice))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
7825
7838
  className: "icon",
7826
7839
  onClick: function onClick() {
7827
7840
  if (loading) return;
@@ -7851,7 +7864,7 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
7851
7864
  })
7852
7865
  }));
7853
7866
  }
7854
- }, /*#__PURE__*/React__default.createElement(ai.AiOutlinePlus, null))), /*#__PURE__*/React__default.createElement("p", {
7867
+ }, /*#__PURE__*/React__default.createElement(ai.AiOutlinePlus, null))), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", {
7855
7868
  className: "subtotal"
7856
7869
  }, "subtotal: $", (item.standardPrice * item.quantity).toFixed(2))), ((item === null || item === void 0 ? void 0 : item.quantity) > (item === null || item === void 0 ? void 0 : item.availableQuantity) || (item === null || item === void 0 ? void 0 : item.availableQuantity) <= 0) && /*#__PURE__*/React__default.createElement("p", {
7857
7870
  style: {
@@ -7883,7 +7896,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
7883
7896
  handleRemoveProduct = _ref.handleRemoveProduct,
7884
7897
  styles = _ref.styles,
7885
7898
  clickRedirect = _ref.clickRedirect,
7886
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce;
7899
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7900
+ doNotShowPrice = _ref.doNotShowPrice;
7887
7901
  return /*#__PURE__*/React__default.createElement("div", {
7888
7902
  className: "scrollDiv"
7889
7903
  }, /*#__PURE__*/React__default.createElement(CardsBox, {
@@ -7903,7 +7917,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
7903
7917
  handleRemoveProduct: handleRemoveProduct,
7904
7918
  imgSize: styles === null || styles === void 0 ? void 0 : styles.imgSize,
7905
7919
  clickRedirect: clickRedirect,
7906
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
7920
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
7921
+ doNotShowPrice: doNotShowPrice
7907
7922
  });
7908
7923
  })));
7909
7924
  };
@@ -7969,7 +7984,8 @@ var CartSummary = function CartSummary(_ref) {
7969
7984
  _ref$discountCoupons = _ref.discountCoupons,
7970
7985
  discountCoupons = _ref$discountCoupons === void 0 ? [] : _ref$discountCoupons,
7971
7986
  cartDiscount = _ref.cartDiscount,
7972
- couponDiscountTotal = _ref.couponDiscountTotal;
7987
+ couponDiscountTotal = _ref.couponDiscountTotal,
7988
+ totalCartQuantity = _ref.totalCartQuantity;
7973
7989
  var storeIdList = (storeData === null || storeData === void 0 ? void 0 : (_storeData$map = storeData.map(function (data) {
7974
7990
  return data === null || data === void 0 ? void 0 : data.id;
7975
7991
  })) === null || _storeData$map === void 0 ? void 0 : _storeData$map.join(',')) || 2;
@@ -8019,7 +8035,9 @@ var CartSummary = function CartSummary(_ref) {
8019
8035
  color: cartSummary.color
8020
8036
  }, /*#__PURE__*/React__default.createElement("p", null, "Cart summary:"), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
8021
8037
  color: cartSummary.hr
8022
- }), /*#__PURE__*/React__default.createElement(CartSummaryRow, null, /*#__PURE__*/React__default.createElement("h6", null, "subtotal"), /*#__PURE__*/React__default.createElement("h5", null, renderMoney(subtotal))), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
8038
+ }), /*#__PURE__*/React__default.createElement(CartSummaryRow, null, /*#__PURE__*/React__default.createElement("h6", null, "Total Quantity"), /*#__PURE__*/React__default.createElement("h5", null, totalCartQuantity)), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
8039
+ color: cartSummary.hr
8040
+ }), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(CartSummaryRow, null, /*#__PURE__*/React__default.createElement("h6", null, "subtotal"), /*#__PURE__*/React__default.createElement("h5", null, renderMoney(subtotal))), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
8023
8041
  color: cartSummary.hr
8024
8042
  }), /*#__PURE__*/React__default.createElement(CartSummaryRow, null, /*#__PURE__*/React__default.createElement("h6", null, "Order Discount"), /*#__PURE__*/React__default.createElement("h5", null, renderMoney(cartDiscount))), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
8025
8043
  color: cartSummary.hr
@@ -8069,7 +8087,7 @@ var CartSummary = function CartSummary(_ref) {
8069
8087
  color: cartSummary.hr
8070
8088
  }), /*#__PURE__*/React__default.createElement(CartSummaryRow, {
8071
8089
  h5: "1.64em"
8072
- }, /*#__PURE__*/React__default.createElement("h6", null, "order total"), /*#__PURE__*/React__default.createElement("h5", null, renderMoney(totalCartPrice + ((selectedShipping === null || selectedShipping === void 0 ? void 0 : selectedShipping.amount) || 0) - couponDiscountTotal))), /*#__PURE__*/React__default.createElement(CartSummaryRow, {
8090
+ }, /*#__PURE__*/React__default.createElement("h6", null, "order total"), /*#__PURE__*/React__default.createElement("h5", null, renderMoney(totalCartPrice + ((selectedShipping === null || selectedShipping === void 0 ? void 0 : selectedShipping.amount) || 0) - couponDiscountTotal)))), /*#__PURE__*/React__default.createElement(CartSummaryRow, {
8073
8091
  justify: "center"
8074
8092
  }, /*#__PURE__*/React__default.createElement(CartSummaryCheckoutBtn, {
8075
8093
  onClick: function onClick() {
@@ -8175,7 +8193,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
8175
8193
  loading = _ref.loading,
8176
8194
  imgnotfoundUrl = _ref.imgnotfoundUrl,
8177
8195
  styles = _ref.styles,
8178
- onChangeDiscountCoupon = _ref.onChangeDiscountCoupon;
8196
+ onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
8197
+ _ref$doNotShowPrice = _ref.doNotShowPrice,
8198
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
8179
8199
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
8180
8200
  apiEndPoint: apiEndPoint,
8181
8201
  token: token
@@ -8324,7 +8344,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8324
8344
  handleIncrementDecrement: onChangeQuantity,
8325
8345
  handleRemoveProduct: handleRemoveProduct,
8326
8346
  clickRedirect: clickRedirect,
8327
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
8347
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8348
+ doNotShowPrice: doNotShowPrice
8328
8349
  }) : /*#__PURE__*/React__default.createElement(EnhancedTable, {
8329
8350
  retail: retail,
8330
8351
  clickRedirect: clickRedirect,
@@ -8336,7 +8357,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8336
8357
  handleRemoveProduct: handleRemoveProduct,
8337
8358
  handleRemoveAll: handleRemoveAll,
8338
8359
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
8339
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
8360
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8361
+ doNotShowPrice: doNotShowPrice
8340
8362
  }), /*#__PURE__*/React__default.createElement(CartSummary, {
8341
8363
  apiEndPoint: apiEndPoint,
8342
8364
  token: token,
@@ -8348,6 +8370,7 @@ var CartPageComponent = function CartPageComponent(_ref) {
8348
8370
  clickRedirect: clickRedirect,
8349
8371
  subtotal: cartData === null || cartData === void 0 ? void 0 : cartData.cartSubTotal,
8350
8372
  totalCartPrice: cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice,
8373
+ totalCartQuantity: cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity,
8351
8374
  styles: styles,
8352
8375
  loading: loading,
8353
8376
  cartDiscount: cartData === null || cartData === void 0 ? void 0 : cartData.cartDiscount,
@@ -8391,7 +8414,8 @@ var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
8391
8414
  handleRedirect = _ref.handleRedirect,
8392
8415
  imgnotfoundUrl = _ref.imgnotfoundUrl,
8393
8416
  loading = _ref.loading,
8394
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce;
8417
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8418
+ doNotShowPrice = _ref.doNotShowPrice;
8395
8419
  var timer = React.useRef();
8396
8420
  var _useState = React.useState(product === null || product === void 0 ? void 0 : product.quantity),
8397
8421
  quantity = _useState[0],
@@ -8445,7 +8469,7 @@ var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
8445
8469
  onClick: function onClick() {
8446
8470
  return handleRedirect(product);
8447
8471
  }
8448
- }, product === null || product === void 0 ? void 0 : product.productName)), /*#__PURE__*/React__default.createElement("h6", null, !((product === null || product === void 0 ? void 0 : product.standardPrice) > (product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) ? "$" + ((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, renderMoney(product === null || product === void 0 ? void 0 : product.standardPrice)), renderMoney((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount))))), /*#__PURE__*/React__default.createElement(material.Stack, {
8472
+ }, product === null || product === void 0 ? void 0 : product.productName)), !doNotShowPrice && /*#__PURE__*/React__default.createElement("h6", null, !((product === null || product === void 0 ? void 0 : product.standardPrice) > (product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) ? "$" + ((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, renderMoney(product === null || product === void 0 ? void 0 : product.standardPrice)), renderMoney((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount))))), /*#__PURE__*/React__default.createElement(material.Stack, {
8449
8473
  flexDirection: "column",
8450
8474
  justifyContent: "space-between",
8451
8475
  alignItems: "flex-end",
@@ -8504,7 +8528,10 @@ var CartDrawer = function CartDrawer(_ref) {
8504
8528
  handleClose = _ref.handleClose,
8505
8529
  loading = _ref.loading,
8506
8530
  imgnotfoundUrl = _ref.imgnotfoundUrl,
8507
- cartHeadingText = _ref.cartHeadingText;
8531
+ cartHeadingText = _ref.cartHeadingText,
8532
+ _ref$doNotShowPrice = _ref.doNotShowPrice,
8533
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
8534
+ var allowToProcessInvoiceForOutOfStockProductsEcommerce = false;
8508
8535
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(CartDrawerContainer, {
8509
8536
  className: "cartDrawer-container",
8510
8537
  maxWidth: maxWidth
@@ -8527,7 +8554,8 @@ var CartDrawer = function CartDrawer(_ref) {
8527
8554
  key: i,
8528
8555
  imgnotfoundUrl: imgnotfoundUrl,
8529
8556
  loading: loading,
8530
- allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce
8557
+ allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8558
+ doNotShowPrice: doNotShowPrice
8531
8559
  }));
8532
8560
  })) : /*#__PURE__*/React__default.createElement(CartDrawerEmptyCart, {
8533
8561
  color: color
@@ -8538,7 +8566,7 @@ var CartDrawer = function CartDrawer(_ref) {
8538
8566
  justifyContent: "space-between",
8539
8567
  alignItems: "center",
8540
8568
  className: "row"
8541
- }, /*#__PURE__*/React__default.createElement("h5", null, "Total", /*#__PURE__*/React__default.createElement("span", null, "(", cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity, " items)")), /*#__PURE__*/React__default.createElement("h5", null, "$", cartData === null || cartData === void 0 ? void 0 : (_cartData$totalCartPr = cartData.totalCartPrice) === null || _cartData$totalCartPr === void 0 ? void 0 : _cartData$totalCartPr.toFixed(2))), /*#__PURE__*/React__default.createElement(CartDrawerOutlinedButton, {
8569
+ }, /*#__PURE__*/React__default.createElement("h5", null, "Total", /*#__PURE__*/React__default.createElement("span", null, "(", cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity, " items)")), !doNotShowPrice && /*#__PURE__*/React__default.createElement("h5", null, "$", cartData === null || cartData === void 0 ? void 0 : (_cartData$totalCartPr = cartData.totalCartPrice) === null || _cartData$totalCartPr === void 0 ? void 0 : _cartData$totalCartPr.toFixed(2))), /*#__PURE__*/React__default.createElement(CartDrawerOutlinedButton, {
8542
8570
  color: color,
8543
8571
  onClick: function onClick() {
8544
8572
  return handleRedirect('cart');
@@ -10814,12 +10842,17 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
10814
10842
  shippingMethod = _ref.shippingMethod,
10815
10843
  bg = _ref.bg,
10816
10844
  color = _ref.color,
10817
- orderTotal = _ref.orderTotal;
10845
+ orderTotal = _ref.orderTotal,
10846
+ doNotShowPrice = _ref.doNotShowPrice;
10818
10847
  return /*#__PURE__*/React__default.createElement(CheckoutSummaryContainer, {
10819
10848
  bg: bg,
10820
10849
  color: color
10821
10850
  }, /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
10822
10851
  className: "text"
10852
+ }, "Total Quantity:"), /*#__PURE__*/React__default.createElement("h6", {
10853
+ className: "total"
10854
+ }, orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalCartQuantity)), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
10855
+ className: "text"
10823
10856
  }, "Order Total:"), /*#__PURE__*/React__default.createElement("h6", {
10824
10857
  className: "total"
10825
10858
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount))), (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.taxAmount) > 0 ? /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
@@ -10843,7 +10876,7 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
10843
10876
  style: {
10844
10877
  fontSize: '1rem'
10845
10878
  }
10846
- }, renderMoney((orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.couponDiscountTotal) || 0))) : null, /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
10879
+ }, renderMoney((orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.couponDiscountTotal) || 0))) : null), /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
10847
10880
  className: "heading"
10848
10881
  }, "Billing Information"), billingInformation ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
10849
10882
  className: "bold"
@@ -10865,7 +10898,7 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
10865
10898
  className: "heading"
10866
10899
  }, "Payment Method"), /*#__PURE__*/React__default.createElement("p", {
10867
10900
  className: "bold"
10868
- }, paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.name)), (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue) > 0 && /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
10901
+ }, paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.name)), !doNotShowPrice && (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue) > 0 && /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
10869
10902
  className: "heading"
10870
10903
  }, "CC Processing Fees"), /*#__PURE__*/React__default.createElement("p", {
10871
10904
  className: "bold"
@@ -10977,8 +11010,10 @@ var StyledTableRow = styled__default(material.TableRow)(_templateObject16$1 || (
10977
11010
  }, function (props) {
10978
11011
  return props.bg || 'red';
10979
11012
  });
10980
- var StyledTableCell = styled__default(material.TableCell)(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n && {\n border: none;\n font-size: 1em;\n .noAboveSm {\n display: none;\n }\n @media only screen and (max-width: 768px) {\n display: ", ";\n padding: 0.5em 0.3em;\n .noAboveSm {\n display: inline-block;\n margin-right: 6px;\n }\n }\n }\n"])), function (props) {
11013
+ var StyledTableCell = styled__default(material.TableCell)(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n && {\n border: none;\n font-size: 1em;\n .noAboveSm {\n display: none;\n }\n @media only screen and (max-width: 768px) {\n display: ", ";\n padding: 0.5em 0.3em;\n .noAboveSm {\n display: inline-block;\n margin-right: 6px;\n }\n }\n @media only screen and (min-width: 768px) {\n display: ", ";\n }\n }\n"])), function (props) {
10981
11014
  return props.noSmall ? 'none' : '';
11015
+ }, function (props) {
11016
+ return props.noAboveSmall ? 'none' : '';
10982
11017
  });
10983
11018
  var BottomGrid = styled__default(material.Grid)(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n .bold {\n font-weight: 600;\n text-transform: capitalize;\n margin: 1em 0;\n font-size: 1em;\n }\n .icon {\n font-size: 1.6em;\n color: ", ";\n }\n textarea {\n width: 100%;\n resize: none;\n border: 1px solid\n ", ";\n border-radius: 4px;\n margin-bottom: 2em;\n padding: 1em;\n background: ", ";\n }\n p {\n font-size: 12px;\n .ul {\n text-decoration: underline;\n font-size: inherit;\n }\n }\n .bottom {\n margin-left: 3em;\n font-style: italic;\n span {\n font-weight: 600;\n color: ", ";\n\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n"])), function (prop) {
10984
11019
  return prop.primaryColor || 'rgba(107, 106, 106, 1)';
@@ -12642,7 +12677,8 @@ var Step4 = function Step4(_ref) {
12642
12677
  taxExempt = _ref.taxExempt,
12643
12678
  orderTotal = _ref.orderTotal,
12644
12679
  paymentWithPaypal = _ref.paymentWithPaypal,
12645
- selectedPaymentMethod = _ref.selectedPaymentMethod;
12680
+ selectedPaymentMethod = _ref.selectedPaymentMethod,
12681
+ doNotShowPrice = _ref.doNotShowPrice;
12646
12682
  var _React$useState = React__default.useState(false),
12647
12683
  checked = _React$useState[0],
12648
12684
  setChecked = _React$useState[1];
@@ -12709,7 +12745,14 @@ var Step4 = function Step4(_ref) {
12709
12745
  align: "left",
12710
12746
  component: 'th',
12711
12747
  scope: "row"
12712
- }, /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, row.productName))), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12748
+ }, /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, row.productName))), doNotShowPrice ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledTableCell, null), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12749
+ align: "right",
12750
+ color: styles === null || styles === void 0 ? void 0 : styles.bg
12751
+ }, /*#__PURE__*/React__default.createElement("p", {
12752
+ className: "price max"
12753
+ }, /*#__PURE__*/React__default.createElement("span", {
12754
+ className: "red primaryColor"
12755
+ }, row.quantity)))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
12713
12756
  align: "left",
12714
12757
  color: styles === null || styles === void 0 ? void 0 : styles.bg
12715
12758
  }, /*#__PURE__*/React__default.createElement("p", {
@@ -12720,17 +12763,17 @@ var Step4 = function Step4(_ref) {
12720
12763
  align: "right"
12721
12764
  }, /*#__PURE__*/React__default.createElement("p", {
12722
12765
  className: "price max"
12723
- }, "$", (_ref2 = row.quantity * (row === null || row === void 0 ? void 0 : row.standardPrice)) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2))));
12766
+ }, "$", (_ref2 = row.quantity * (row === null || row === void 0 ? void 0 : row.standardPrice)) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2)))));
12724
12767
  }), /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
12725
12768
  colSpan: 1,
12726
12769
  noSmall: true
12727
12770
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12728
12771
  colSpan: 1
12729
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12730
- colSpan: 1
12731
12772
  }, /*#__PURE__*/React__default.createElement("p", {
12732
12773
  className: "max sm"
12733
12774
  }, "Total(", orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalQuantity, " items)")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12775
+ noAboveSmall: true
12776
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12734
12777
  align: "right"
12735
12778
  }, /*#__PURE__*/React__default.createElement("p", {
12736
12779
  className: "max sm price"
@@ -12739,11 +12782,11 @@ var Step4 = function Step4(_ref) {
12739
12782
  noSmall: true
12740
12783
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12741
12784
  colSpan: 1
12742
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12743
- colSpan: 1
12744
12785
  }, /*#__PURE__*/React__default.createElement("p", {
12745
12786
  className: "max sm"
12746
12787
  }, "Shipping Charges")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12788
+ noAboveSmall: true
12789
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12747
12790
  align: "right"
12748
12791
  }, /*#__PURE__*/React__default.createElement("p", {
12749
12792
  className: "max sm primaryColor"
@@ -12752,11 +12795,11 @@ var Step4 = function Step4(_ref) {
12752
12795
  noSmall: true
12753
12796
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12754
12797
  colSpan: 1
12755
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12756
- colSpan: 1
12757
12798
  }, /*#__PURE__*/React__default.createElement("p", {
12758
12799
  className: "max sm"
12759
12800
  }, "Tax Charges")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12801
+ noAboveSmall: true
12802
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12760
12803
  align: "right"
12761
12804
  }, /*#__PURE__*/React__default.createElement("p", {
12762
12805
  className: "max sm primaryColor"
@@ -12765,11 +12808,11 @@ var Step4 = function Step4(_ref) {
12765
12808
  noSmall: true
12766
12809
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12767
12810
  colSpan: 1
12768
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12769
- colSpan: 1
12770
12811
  }, /*#__PURE__*/React__default.createElement("p", {
12771
12812
  className: "max sm"
12772
12813
  }, "Order Discount")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12814
+ noAboveSmall: true
12815
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12773
12816
  align: "right"
12774
12817
  }, /*#__PURE__*/React__default.createElement("p", {
12775
12818
  className: "max sm primaryColor"
@@ -12779,14 +12822,14 @@ var Step4 = function Step4(_ref) {
12779
12822
  noSmall: true
12780
12823
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12781
12824
  colSpan: 1
12782
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12783
- colSpan: 1
12784
12825
  }, /*#__PURE__*/React__default.createElement("p", {
12785
12826
  className: "max sm",
12786
12827
  style: {
12787
12828
  fontSize: '0.8rem'
12788
12829
  }
12789
12830
  }, coupon === null || coupon === void 0 ? void 0 : coupon.name)), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12831
+ noAboveSmall: true
12832
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12790
12833
  align: "right"
12791
12834
  }, /*#__PURE__*/React__default.createElement("p", {
12792
12835
  className: "max sm primaryColor",
@@ -12799,11 +12842,11 @@ var Step4 = function Step4(_ref) {
12799
12842
  noSmall: true
12800
12843
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12801
12844
  colSpan: 1
12802
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12803
- colSpan: 1
12804
12845
  }, /*#__PURE__*/React__default.createElement("p", {
12805
12846
  className: "max sm"
12806
12847
  }, "Total Coupon Discount")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12848
+ noAboveSmall: true
12849
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12807
12850
  align: "right"
12808
12851
  }, /*#__PURE__*/React__default.createElement("p", {
12809
12852
  className: "max sm primaryColor"
@@ -12812,11 +12855,11 @@ var Step4 = function Step4(_ref) {
12812
12855
  noSmall: true
12813
12856
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12814
12857
  colSpan: 1
12815
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12816
- colSpan: 1
12817
12858
  }, /*#__PURE__*/React__default.createElement("p", {
12818
12859
  className: "max sm"
12819
12860
  }, "Store Credits")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12861
+ noAboveSmall: true
12862
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12820
12863
  align: "right"
12821
12864
  }, /*#__PURE__*/React__default.createElement("p", {
12822
12865
  className: "max sm price"
@@ -12825,19 +12868,17 @@ var Step4 = function Step4(_ref) {
12825
12868
  noSmall: true
12826
12869
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12827
12870
  colSpan: 1
12828
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12829
- colSpan: 1
12830
12871
  }, /*#__PURE__*/React__default.createElement("p", {
12831
12872
  className: "max sm"
12832
12873
  }, "CC Processing Fees")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12874
+ noAboveSmall: true
12875
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12833
12876
  align: "right"
12834
12877
  }, /*#__PURE__*/React__default.createElement("p", {
12835
12878
  className: "max sm price"
12836
12879
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue)))) : null, /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
12837
12880
  colSpan: 1,
12838
12881
  noSmall: true
12839
- }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12840
- colSpan: 1
12841
12882
  }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12842
12883
  sx: {
12843
12884
  paddingTop: '1em'
@@ -12846,6 +12887,8 @@ var Step4 = function Step4(_ref) {
12846
12887
  }, /*#__PURE__*/React__default.createElement("p", {
12847
12888
  className: "max sm bolder primaryColor"
12848
12889
  }, "Grand Total")), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12890
+ noAboveSmall: true
12891
+ }), /*#__PURE__*/React__default.createElement(StyledTableCell, {
12849
12892
  sx: {
12850
12893
  paddingTop: '1em'
12851
12894
  },
@@ -13004,7 +13047,9 @@ var CheckoutPageComponentWrapper = function CheckoutPageComponentWrapper(_ref) {
13004
13047
  clickRedirect = _ref.clickRedirect,
13005
13048
  shippingText = _ref.shippingText,
13006
13049
  fetchCartData = _ref.fetchCartData,
13007
- storeId = _ref.storeId;
13050
+ storeId = _ref.storeId,
13051
+ _ref$doNotShowPrice = _ref.doNotShowPrice,
13052
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
13008
13053
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
13009
13054
  apiEndPoint: apiEndPoint,
13010
13055
  token: token
@@ -13748,7 +13793,8 @@ var CheckoutPageComponentWrapper = function CheckoutPageComponentWrapper(_ref) {
13748
13793
  taxExempt: taxExempt,
13749
13794
  orderTotal: orderTotal,
13750
13795
  paymentWithPaypal: paymentWithPaypal,
13751
- selectedPaymentMethod: selectedPaymentMethod
13796
+ selectedPaymentMethod: selectedPaymentMethod,
13797
+ doNotShowPrice: doNotShowPrice
13752
13798
  })));
13753
13799
  }))))), /*#__PURE__*/React__default.createElement(CheckoutSummary, {
13754
13800
  billingInformation: customer === null || customer === void 0 ? void 0 : (_customer$customerDto11 = customer.customerDto) === null || _customer$customerDto11 === void 0 ? void 0 : (_customer$customerDto12 = _customer$customerDto11.customerStoreAddressList) === null || _customer$customerDto12 === void 0 ? void 0 : _customer$customerDto12.find(function (item) {