ordering-ui-external 10.4.0 → 10.5.0

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.
Files changed (80) hide show
  1. package/_bundles/{0.ordering-ui.487a31b3537d90f69a9d.js → 0.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  2. package/_bundles/{1.ordering-ui.487a31b3537d90f69a9d.js → 1.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  3. package/_bundles/{2.ordering-ui.487a31b3537d90f69a9d.js → 2.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  4. package/_bundles/{4.ordering-ui.487a31b3537d90f69a9d.js → 4.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  5. package/_bundles/{5.ordering-ui.487a31b3537d90f69a9d.js → 5.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  6. package/_bundles/{6.ordering-ui.487a31b3537d90f69a9d.js → 6.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  7. package/_bundles/{7.ordering-ui.487a31b3537d90f69a9d.js → 7.ordering-ui.cc1d13aa04732fde3671.js} +2 -2
  8. package/_bundles/{8.ordering-ui.487a31b3537d90f69a9d.js → 8.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  9. package/_bundles/{9.ordering-ui.487a31b3537d90f69a9d.js → 9.ordering-ui.cc1d13aa04732fde3671.js} +1 -1
  10. package/_bundles/ordering-ui.cc1d13aa04732fde3671.js +2 -0
  11. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +4 -2
  12. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +3 -1
  13. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +2 -0
  14. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +5 -2
  15. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +25 -19
  16. package/_modules/themes/five/src/components/BusinessProductsList/index.js +35 -13
  17. package/_modules/themes/five/src/components/BusinessProductsList/styles.js +7 -3
  18. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +2 -0
  19. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +133 -31
  20. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +37 -3
  21. package/_modules/themes/five/src/components/Cart/index.js +10 -6
  22. package/_modules/themes/five/src/components/Checkout/index.js +67 -22
  23. package/_modules/themes/five/src/components/GiftCard/GiftCardOrdersList/index.js +53 -0
  24. package/_modules/themes/five/src/components/GiftCard/GiftCardOrdersList/styles.js +16 -0
  25. package/_modules/themes/five/src/components/GiftCard/HorizontalGiftCardOrdersLayout/index.js +69 -0
  26. package/_modules/themes/five/src/components/GiftCard/HorizontalGiftCardOrdersLayout/styles.js +16 -0
  27. package/_modules/themes/five/src/components/GiftCard/SingleGiftCard/index.js +90 -0
  28. package/_modules/themes/five/src/components/GiftCard/SingleGiftCard/styles.js +43 -0
  29. package/_modules/themes/five/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.js +75 -0
  30. package/_modules/themes/five/src/components/GiftCard/VerticalGiftCardOrdersLayout/styles.js +19 -0
  31. package/_modules/themes/five/src/components/MyOrders/index.js +6 -1
  32. package/_modules/themes/five/src/components/OrderProgress/index.js +1 -1
  33. package/_modules/themes/five/src/components/OrdersOption/index.js +1 -0
  34. package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +165 -31
  35. package/_modules/themes/five/src/components/PhoneAutocomplete/styles.js +53 -9
  36. package/_modules/themes/five/src/components/ProductForm/index.js +1 -0
  37. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +3 -2
  38. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +1 -1
  39. package/_modules/themes/five/src/components/UserFormDetails/index.js +5 -17
  40. package/_modules/themes/five/src/components/UserFormDetails/styles.js +3 -7
  41. package/index-template.js +9 -1
  42. package/package.json +2 -2
  43. package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +3 -1
  44. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +5 -1
  45. package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +2 -0
  46. package/src/themes/five/src/components/BusinessItemAccordion/index.js +2 -2
  47. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +8 -7
  48. package/src/themes/five/src/components/BusinessProductsList/index.js +36 -3
  49. package/src/themes/five/src/components/BusinessProductsList/styles.js +20 -0
  50. package/src/themes/five/src/components/BusinessProductsListing/index.js +2 -0
  51. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +156 -36
  52. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +66 -0
  53. package/src/themes/five/src/components/Cart/index.js +7 -4
  54. package/src/themes/five/src/components/Checkout/index.js +61 -35
  55. package/src/themes/five/src/components/GiftCard/GiftCardOrdersList/index.js +50 -0
  56. package/src/themes/five/src/components/GiftCard/GiftCardOrdersList/styles.js +34 -0
  57. package/src/themes/five/src/components/GiftCard/HorizontalGiftCardOrdersLayout/index.js +75 -0
  58. package/src/themes/five/src/components/GiftCard/HorizontalGiftCardOrdersLayout/styles.js +29 -0
  59. package/src/themes/five/src/components/GiftCard/SingleGiftCard/index.js +79 -0
  60. package/src/themes/five/src/components/GiftCard/SingleGiftCard/styles.js +79 -0
  61. package/src/themes/five/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.js +72 -0
  62. package/src/themes/five/src/components/GiftCard/VerticalGiftCardOrdersLayout/styles.js +31 -0
  63. package/src/themes/five/src/components/MyOrders/index.js +6 -1
  64. package/src/themes/five/src/components/OrderProgress/index.js +1 -1
  65. package/src/themes/five/src/components/OrdersOption/index.js +1 -0
  66. package/src/themes/five/src/components/PhoneAutocomplete/index.js +195 -46
  67. package/src/themes/five/src/components/PhoneAutocomplete/styles.js +106 -10
  68. package/src/themes/five/src/components/ProductForm/index.js +1 -0
  69. package/src/themes/five/src/components/RenderProductsLayout/index.js +1 -0
  70. package/src/themes/five/src/components/SingleProductCard/layouts/original/styles.js +1 -1
  71. package/src/themes/five/src/components/UserFormDetails/index.js +6 -27
  72. package/src/themes/five/src/components/UserFormDetails/styles.js +0 -16
  73. package/template/assets/images/delivery.svg +11 -0
  74. package/template/assets/images/phone-hero-callcenter.png +0 -0
  75. package/template/assets/images/phone.svg +11 -0
  76. package/template/assets/images/pickup.svg +17 -0
  77. package/template/pages/BusinessProductsList/index.js +2 -1
  78. package/_bundles/ordering-ui.487a31b3537d90f69a9d.js +0 -2
  79. /package/_bundles/{7.ordering-ui.487a31b3537d90f69a9d.js.LICENSE.txt → 7.ordering-ui.cc1d13aa04732fde3671.js.LICENSE.txt} +0 -0
  80. /package/_bundles/{ordering-ui.487a31b3537d90f69a9d.js.LICENSE.txt → ordering-ui.cc1d13aa04732fde3671.js.LICENSE.txt} +0 -0
@@ -44,7 +44,8 @@ var DeliveriesManagerUI = function DeliveriesManagerUI(props) {
44
44
  handleSelectedSubOrderStatus = props.handleSelectedSubOrderStatus,
45
45
  onOrderRedirect = props.onOrderRedirect,
46
46
  numberOfOrdersByStatus = props.numberOfOrdersByStatus,
47
- numberOfOrdersBySubstatus = props.numberOfOrdersBySubstatus;
47
+ numberOfOrdersBySubstatus = props.numberOfOrdersBySubstatus,
48
+ franchiseId = props.franchiseId;
48
49
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
49
50
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
50
51
  t = _useLanguage2[1];
@@ -128,7 +129,8 @@ var DeliveriesManagerUI = function DeliveriesManagerUI(props) {
128
129
  slaSettingTime: slaSettingTime,
129
130
  timeStatus: timeStatus,
130
131
  numberOfOrdersByStatus: numberOfOrdersByStatus,
131
- numberOfOrdersBySubstatus: numberOfOrdersBySubstatus
132
+ numberOfOrdersBySubstatus: numberOfOrdersBySubstatus,
133
+ franchiseId: franchiseId
132
134
  })))), isOpenOrderDetail && /*#__PURE__*/_react.default.createElement(_OrderDetails.OrderDetails, {
133
135
  open: isOpenOrderDetail,
134
136
  order: detailsOrder,
@@ -21,6 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
  var OrdersDashboardControls = function OrdersDashboardControls(props) {
22
22
  var selectedOrderNumber = props.selectedOrderNumber,
23
23
  filterValues = props.filterValues,
24
+ franchiseId = props.franchiseId,
24
25
  handleDeleteMultiOrders = props.handleDeleteMultiOrders,
25
26
  handleChangeMultiOrdersStatus = props.handleChangeMultiOrdersStatus,
26
27
  handleOpenCustomOrderDetail = props.handleOpenCustomOrderDetail;
@@ -30,7 +31,8 @@ var OrdersDashboardControls = function OrdersDashboardControls(props) {
30
31
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.OrderDashboardControlsContainer, null, /*#__PURE__*/_react.default.createElement(_styles.InnerContnet, null, /*#__PURE__*/_react.default.createElement(_CreateCustomOrder.CreateCustomOrder, {
31
32
  handleOpenCustomOrderDetail: handleOpenCustomOrderDetail
32
33
  }), /*#__PURE__*/_react.default.createElement(_OrdersExportCSV.OrdersExportCSV, {
33
- filterValues: filterValues
34
+ filterValues: filterValues,
35
+ franchiseId: franchiseId
34
36
  }), selectedOrderNumber > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (user === null || user === void 0 ? void 0 : user.level) !== 5 && /*#__PURE__*/_react.default.createElement(_OrderDelete.OrderDelete, {
35
37
  handleDeleteMultiOrders: handleDeleteMultiOrders
36
38
  }), /*#__PURE__*/_react.default.createElement(_styles.WrapOrderStatusTypeSelector, null, /*#__PURE__*/_react.default.createElement(_OrderStatusTypeSelector.OrderStatusTypeSelector, {
@@ -232,6 +232,7 @@ var OrdersManagerUI = function OrdersManagerUI(props) {
232
232
  })), !isSelectedOrders && /*#__PURE__*/_react.default.createElement(_OrdersDashboardControls.OrdersDashboardControls, {
233
233
  selectedOrderNumber: selectedOrderIds === null || selectedOrderIds === void 0 ? void 0 : selectedOrderIds.length,
234
234
  filterValues: filterValues,
235
+ franchiseId: props.franchiseId,
235
236
  handleChangeMultiOrdersStatus: handleChangeMultiOrdersStatus,
236
237
  handleDeleteMultiOrders: handleDeleteMultiOrders,
237
238
  handleOpenCustomOrderDetail: function handleOpenCustomOrderDetail(id) {
@@ -245,6 +246,7 @@ var OrdersManagerUI = function OrdersManagerUI(props) {
245
246
  driverId: props.driverId,
246
247
  customerId: props.customerId,
247
248
  businessId: props.businessId,
249
+ franchiseId: props.franchiseId,
248
250
  searchValue: searchValue,
249
251
  filterValues: filterValues,
250
252
  selectedOrderIds: selectedOrderIds,
@@ -162,11 +162,14 @@ var BusinessItemAccordion = function BusinessItemAccordion(props) {
162
162
  onClick: function onClick(e) {
163
163
  return toggleAccordion(e);
164
164
  }
165
- }, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, null, !hideBusinessLogo && /*#__PURE__*/_react.default.createElement(_styles.WrapperBusinessLogo, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
165
+ }, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, {
166
+ isOtherInfo: isClosed && !isStore || !isClosed && !isProducts && !isStore
167
+ }, !hideBusinessLogo && /*#__PURE__*/_react.default.createElement(_styles.WrapperBusinessLogo, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
166
168
  bgimage: !isGiftCart ? (business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo) : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.logos) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.isotype
167
169
  })), /*#__PURE__*/_react.default.createElement(_styles.ContentInfo, {
168
170
  className: "info",
169
- isStore: isStore
171
+ isStore: isStore,
172
+ isLogo: !hideBusinessLogo
170
173
  }, /*#__PURE__*/_react.default.createElement("h2", null, business === null || business === void 0 ? void 0 : business.name), !hideBusinessTime && /*#__PURE__*/_react.default.createElement(_styles.TimeContainer, null, (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 ? /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)) : /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time))), /*#__PURE__*/_react.default.createElement("div", null, handleStoreRedirect && !isCartOnProductsList && !isStore && !isGiftCart && /*#__PURE__*/_react.default.createElement("span", {
171
174
  ref: businessStore,
172
175
  onClick: function onClick() {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.WrapperBusinessLogo = exports.TimeContainer = exports.PriceContainer = exports.ContentInfo = exports.BusinessTotal = exports.BusinessLogo = exports.BusinessInfo = exports.BusinessActions = exports.AccordionText = exports.AccordionSection = exports.AccordionContent = exports.Accordion = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -25,45 +25,51 @@ var Accordion = _styledComponents.default.div(_templateObject3 || (_templateObje
25
25
  return props.isClosed && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));\n padding: 10px 5px;\n "])));
26
26
  });
27
27
  exports.Accordion = Accordion;
28
- var ContentInfo = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n\n > div {\n display: flex;\n align-items: center;\n\n .go-store {\n user-select: none;\n color: ", ";\n margin-right: 5px;\n ", "\n &:hover {\n text-decoration: underline;\n }\n }\n\n .clear-cart {\n user-select: none;\n color: #d81212;\n margin-left: 5px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n\n ", "\n }\n .change-store {\n cursor: pointer;\n color: ", ";\n font-size: 12px;\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n ", "\n\n span {\n cursor: pointer;\n }\n\n h2, span {\n margin: 0px;\n }\n\n h2 {\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n }\n\n @media (min-width: 576px) {\n h2 {\n font-size: 18px;\n }\n span {\n font-size: 13px;\n }\n }\n"])), function (props) {
28
+ var ContentInfo = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n ", "\n\n > div {\n display: flex;\n align-items: center;\n\n .go-store {\n user-select: none;\n color: ", ";\n margin-right: 5px;\n ", "\n &:hover {\n text-decoration: underline;\n }\n }\n\n .clear-cart {\n user-select: none;\n color: #d81212;\n margin-left: 5px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n\n ", "\n }\n .change-store {\n cursor: pointer;\n color: ", ";\n font-size: 12px;\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n ", "\n\n span {\n cursor: pointer;\n }\n\n h2, span {\n margin: 0px;\n }\n\n h2 {\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n }\n\n @media (min-width: 576px) {\n h2 {\n font-size: 18px;\n }\n span {\n font-size: 13px;\n }\n }\n"])), function (_ref3) {
29
+ var isLogo = _ref3.isLogo;
30
+ return isLogo && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 80px);\n "])));
31
+ }, function (props) {
29
32
  return props.theme.colors.primary;
30
33
  }, function (props) {
31
34
  var _props$theme;
32
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
35
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
33
36
  }, function (props) {
34
37
  var _props$theme2;
35
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0;\n "])));
36
- }, function (_ref3) {
37
- var isStore = _ref3.isStore;
38
- return isStore && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n .clear-cart {\n margin: 0px;\n }\n "])));
38
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0;\n "])));
39
+ }, function (_ref4) {
40
+ var isStore = _ref4.isStore;
41
+ return isStore && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n .clear-cart {\n margin: 0px;\n }\n "])));
39
42
  }, function (props) {
40
43
  return props.theme.colors.primary;
41
44
  }, function (props) {
42
45
  var _props$theme3;
43
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
46
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
44
47
  }, function (props) {
45
48
  return props.theme.colors.darkTextColor;
46
49
  });
47
50
  exports.ContentInfo = ContentInfo;
48
- var AccordionContent = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n overflow: hidden;\n transition: min-height 0.6s ease;\n"])));
51
+ var AccordionContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n overflow: hidden;\n transition: min-height 0.6s ease;\n"])));
49
52
  exports.AccordionContent = AccordionContent;
50
- var AccordionText = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 14px;\n padding: 18px;\n"])));
53
+ var AccordionText = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 14px;\n padding: 18px;\n"])));
51
54
  exports.AccordionText = AccordionText;
52
- var BusinessInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: 80%;\n\n h2 {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n @media (min-width: 576px) {\n width: 75%;\n }\n\n"])));
55
+ var BusinessInfo = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: calc(100% - 30px);\n ", "\n\n h2 {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"])), function (_ref5) {
56
+ var isOtherInfo = _ref5.isOtherInfo;
57
+ return isOtherInfo && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: calc(100% - 100px);\n "])));
58
+ });
53
59
  exports.BusinessInfo = BusinessInfo;
54
- var BusinessTotal = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: ", ";\n display: none;\n flex-direction: column;\n align-items: center;\n\n p {\n font-size: 13px;\n margin: 0px 5px;\n font-weight: 300;\n\n &:nth-child(1) {\n font-weight: 500;\n }\n }\n\n &.closed {\n flex: 1;\n p {\n text-align: center;\n margin: 0px 20px;\n font-size: 13px;\n }\n }\n\n @media (min-width: 481px) {\n display: flex;\n }\n"])), function (_ref4) {
55
- var isCartOnProductsList = _ref4.isCartOnProductsList;
60
+ var BusinessTotal = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: ", ";\n display: none;\n flex-direction: column;\n align-items: center;\n\n p {\n font-size: 13px;\n margin: 0px 5px;\n font-weight: 300;\n\n &:nth-child(1) {\n font-weight: 500;\n }\n }\n\n &.closed {\n flex: 1;\n p {\n text-align: center;\n margin: 0px 20px;\n font-size: 13px;\n }\n }\n\n @media (min-width: 481px) {\n display: flex;\n }\n"])), function (_ref6) {
61
+ var isCartOnProductsList = _ref6.isCartOnProductsList;
56
62
  return isCartOnProductsList ? '30%' : '25%';
57
63
  });
58
64
  exports.BusinessTotal = BusinessTotal;
59
- var BusinessActions = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n max-width: 30%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n span {\n height: 22px;\n svg {\n font-size: 22px;\n }\n\n &:not(:last-child) {\n margin-right: 5px;\n ", "\n }\n }\n\n @media (min-width: 768px) {\n span {\n height: 27px;\n svg {\n font-size: 27px;\n }\n }\n }\n"])), function (props) {
65
+ var BusinessActions = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n max-width: 30px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n span {\n height: 22px;\n svg {\n font-size: 22px;\n }\n\n &:not(:last-child) {\n margin-right: 5px;\n ", "\n }\n }\n\n @media (min-width: 768px) {\n span {\n height: 27px;\n svg {\n font-size: 27px;\n }\n }\n }\n"])), function (props) {
60
66
  var _props$theme4;
61
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
67
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
62
68
  });
63
69
  exports.BusinessActions = BusinessActions;
64
- var PriceContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n h4 {\n font-size: 16px;\n }\n button{ \n padding: 10px 30px;\n min-width: 150px;\n width: 50%;\n height: 50px;\n }\n"])));
70
+ var PriceContainer = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n h4 {\n font-size: 16px;\n }\n button{ \n padding: 10px 30px;\n min-width: 150px;\n width: 50%;\n height: 50px;\n }\n"])));
65
71
  exports.PriceContainer = PriceContainer;
66
- var BusinessLogoStyled = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n width: 75px;\n height: 75px;\n min-height: 75px;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: contain;\n object-fit: contain;\n background-position: center;\n border-radius: 10px;\n"])));
72
+ var BusinessLogoStyled = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n width: 75px;\n height: 75px;\n min-height: 75px;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: contain;\n object-fit: contain;\n background-position: center;\n border-radius: 10px;\n"])));
67
73
  var BusinessLogo = function BusinessLogo(props) {
68
74
  return /*#__PURE__*/_react.default.createElement(BusinessLogoStyled, _extends({}, props, {
69
75
  style: {
@@ -72,7 +78,7 @@ var BusinessLogo = function BusinessLogo(props) {
72
78
  }), props.children);
73
79
  };
74
80
  exports.BusinessLogo = BusinessLogo;
75
- var WrapperBusinessLogo = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n max-width: 75px;\n max-height: 75px;\n height: 75px;\n width: 75px;\n margin-right: 10px;\n"])));
81
+ var WrapperBusinessLogo = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n max-width: 75px;\n max-height: 75px;\n height: 75px;\n width: 75px;\n margin-right: 10px;\n"])));
76
82
  exports.WrapperBusinessLogo = WrapperBusinessLogo;
77
- var TimeContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n svg{\n position: relative;\n top: 1px;\n margin-right: 5px;\n }\n"])));
83
+ var TimeContainer = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n svg{\n position: relative;\n top: 1px;\n margin-right: 5px;\n }\n"])));
78
84
  exports.TimeContainer = TimeContainer;
@@ -34,7 +34,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
34
34
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
35
35
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
36
36
  var BusinessProductsListUI = function BusinessProductsListUI(props) {
37
- var _configs$use_parent_c, _configs$use_parent_c2, _categoryState$produc, _props$beforeElements, _props$beforeComponen, _category$subcategori2, _category$subcategori3, _category$subcategori4, _categoryState$produc2, _categoryState$produc3, _categoryState$produc4, _categoryState$produc9, _props$afterComponent, _props$afterElements;
37
+ var _configs$use_parent_c, _configs$use_parent_c2, _categoryState$produc, _props$beforeElements, _props$beforeComponen, _category$subcategori2, _category$subcategori3, _category$subcategori4, _headerRef$current, _categoryState$produc2, _categoryState$produc3, _categoryState$produc4, _categoryState$produc9, _props$afterComponent, _props$afterElements;
38
38
  var errors = props.errors,
39
39
  businessId = props.businessId,
40
40
  isLazy = props.isLazy,
@@ -56,7 +56,8 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
56
56
  onClickCategory = props.onClickCategory,
57
57
  handleUpdateProducts = props.handleUpdateProducts,
58
58
  isSearchMode = props.isSearchMode,
59
- business = props.business;
59
+ business = props.business,
60
+ previouslyProducts = props.previouslyProducts;
60
61
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
61
62
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
62
63
  t = _useLanguage2[1];
@@ -180,12 +181,33 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
180
181
  }, 0)
181
182
  });
182
183
  })));
183
- }))), !(category !== null && category !== void 0 && category.id) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, featured && (categoryState === null || categoryState === void 0 || (_categoryState$produc2 = categoryState.products) === null || _categoryState$produc2 === void 0 ? void 0 : _categoryState$produc2.find(function (product) {
184
+ }))), !(category !== null && category !== void 0 && category.id) && (previouslyProducts === null || previouslyProducts === void 0 ? void 0 : previouslyProducts.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.WrapAllCategories, {
185
+ id: "previously_block"
186
+ }, /*#__PURE__*/_react.default.createElement("h3", null, t('ORDER_IT_AGAIN', 'Order it again')), /*#__PURE__*/_react.default.createElement(_styles.CategoryDescription, {
187
+ maxWidth: headerRef === null || headerRef === void 0 || (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.clientWidth
188
+ }, /*#__PURE__*/_react.default.createElement("p", null, t('ORDER_IT_AGAIN_DESC', 'Quickly add items from your past orders.'))), /*#__PURE__*/_react.default.createElement(_styles.PreviouslyOrderedContainer, null, /*#__PURE__*/_react.default.createElement(_styles.PreviouslyOrderedWrapper, null, /*#__PURE__*/_react.default.createElement(_AutoScroll.AutoScroll, {
189
+ scrollId: "previously_ordered"
190
+ }, previouslyProducts === null || previouslyProducts === void 0 ? void 0 : previouslyProducts.map(function (product, i) {
191
+ var _currentCart$products3;
192
+ return /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
193
+ key: i,
194
+ isSoldOut: product.inventoried && !product.quantity,
195
+ product: product,
196
+ useKioskApp: useKioskApp,
197
+ businessId: businessId,
198
+ onProductClick: onProductClick,
199
+ isCartOnProductsList: isCartOnProductsList,
200
+ handleUpdateProducts: handleUpdateProducts,
201
+ productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.reduce(function (productsLength, Cproduct) {
202
+ return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
203
+ }, 0)
204
+ });
205
+ }))))), !(category !== null && category !== void 0 && category.id) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, featured && (categoryState === null || categoryState === void 0 || (_categoryState$produc2 = categoryState.products) === null || _categoryState$produc2 === void 0 ? void 0 : _categoryState$produc2.find(function (product) {
184
206
  return product.featured;
185
207
  })) && /*#__PURE__*/_react.default.createElement(_styles.WrapAllCategories, {
186
208
  id: "categoryfeatured"
187
209
  }, /*#__PURE__*/_react.default.createElement("h3", null, t('FEATURED', 'Featured')), /*#__PURE__*/_react.default.createElement(_styles.ProductsListing, null, (_categoryState$produc3 = categoryState.products) === null || _categoryState$produc3 === void 0 ? void 0 : _categoryState$produc3.map(function (product, i) {
188
- var _currentCart$products3;
210
+ var _currentCart$products4;
189
211
  return product.featured && /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
190
212
  key: i,
191
213
  isSoldOut: product.inventoried && !product.quantity,
@@ -195,7 +217,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
195
217
  onProductClick: onProductClick,
196
218
  isCartOnProductsList: isCartOnProductsList,
197
219
  handleUpdateProducts: handleUpdateProducts,
198
- productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.reduce(function (productsLength, Cproduct) {
220
+ productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products4 = currentCart.products) === null || _currentCart$products4 === void 0 ? void 0 : _currentCart$products4.reduce(function (productsLength, Cproduct) {
199
221
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
200
222
  }, 0)
201
223
  });
@@ -214,7 +236,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
214
236
  })))), !(category !== null && category !== void 0 && category.id) && categories.filter(function (category) {
215
237
  return (category === null || category === void 0 ? void 0 : category.id) !== null;
216
238
  }).map(function (category, i, _categories) {
217
- var _categoryState$produc5, _categoryState$produc6, _categoryState$produc7, _categoryState$produc8, _category$description, _category$description2, _category$subcategori5, _category$subcategori6, _category$ribbon, _category$ribbon2, _category$ribbon3, _category$ribbon4, _category$ribbon5, _headerRef$current, _category$description3, _category$subcategori7, _category$subcategori8, _products$filter, _category$subcategori9, _category$subcategori10;
239
+ var _categoryState$produc5, _categoryState$produc6, _categoryState$produc7, _categoryState$produc8, _category$description, _category$description2, _category$subcategori5, _category$subcategori6, _category$ribbon, _category$ribbon2, _category$ribbon3, _category$ribbon4, _category$ribbon5, _headerRef$current2, _category$description3, _category$subcategori7, _category$subcategori8, _products$filter, _category$subcategori9, _category$subcategori10;
218
240
  var _products = !isUseParentCategory ? (_categoryState$produc5 = categoryState === null || categoryState === void 0 || (_categoryState$produc6 = categoryState.products) === null || _categoryState$produc6 === void 0 ? void 0 : _categoryState$produc6.filter(function (product) {
219
241
  return (product === null || product === void 0 ? void 0 : product.category_id) === (category === null || category === void 0 ? void 0 : category.id);
220
242
  })) !== null && _categoryState$produc5 !== void 0 ? _categoryState$produc5 : [] : (_categoryState$produc7 = categoryState === null || categoryState === void 0 || (_categoryState$produc8 = categoryState.products) === null || _categoryState$produc8 === void 0 ? void 0 : _categoryState$produc8.filter(function (product) {
@@ -254,7 +276,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
254
276
  isRoundRect: (category === null || category === void 0 || (_category$ribbon3 = category.ribbon) === null || _category$ribbon3 === void 0 ? void 0 : _category$ribbon3.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
255
277
  isCapsule: (category === null || category === void 0 || (_category$ribbon4 = category.ribbon) === null || _category$ribbon4 === void 0 ? void 0 : _category$ribbon4.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape)
256
278
  }, category === null || category === void 0 || (_category$ribbon5 = category.ribbon) === null || _category$ribbon5 === void 0 ? void 0 : _category$ribbon5.text)), (category === null || category === void 0 ? void 0 : category.description) && /*#__PURE__*/_react.default.createElement(_styles.CategoryDescription, {
257
- maxWidth: headerRef === null || headerRef === void 0 || (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.clientWidth
279
+ maxWidth: headerRef === null || headerRef === void 0 || (_headerRef$current2 = headerRef.current) === null || _headerRef$current2 === void 0 ? void 0 : _headerRef$current2.clientWidth
258
280
  }, /*#__PURE__*/_react.default.createElement("p", null, shortCategoryDescription), (category === null || category === void 0 || (_category$description3 = category.description) === null || _category$description3 === void 0 ? void 0 : _category$description3.length) > 200 && /*#__PURE__*/_react.default.createElement("span", {
259
281
  onClick: function onClick() {
260
282
  return setOpenDescription(category);
@@ -266,7 +288,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
266
288
  }, isSearchMode && (category === null || category === void 0 || (_category$subcategori8 = category.subcategories) === null || _category$subcategori8 === void 0 ? void 0 : _category$subcategori8.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, products === null || products === void 0 || (_products$filter = products.filter(function (product, i) {
267
289
  return i < 9 && (product === null || product === void 0 ? void 0 : product.category_id) === (category === null || category === void 0 ? void 0 : category.id) || (business === null || business === void 0 ? void 0 : business.food);
268
290
  })) === null || _products$filter === void 0 ? void 0 : _products$filter.map(function (product, i) {
269
- var _currentCart$products4;
291
+ var _currentCart$products5;
270
292
  return /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
271
293
  key: i,
272
294
  isSoldOut: product.inventoried && !product.quantity,
@@ -276,7 +298,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
276
298
  useKioskApp: useKioskApp,
277
299
  isCartOnProductsList: isCartOnProductsList,
278
300
  handleUpdateProducts: handleUpdateProducts,
279
- productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products4 = currentCart.products) === null || _currentCart$products4 === void 0 ? void 0 : _currentCart$products4.reduce(function (productsLength, Cproduct) {
301
+ productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products5 = currentCart.products) === null || _currentCart$products5 === void 0 ? void 0 : _currentCart$products5.reduce(function (productsLength, Cproduct) {
280
302
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
281
303
  }, 0)
282
304
  });
@@ -295,7 +317,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
295
317
  })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, products.filter(function (_, i) {
296
318
  return i < 9 || (business === null || business === void 0 ? void 0 : business.food);
297
319
  }).map(function (product, i) {
298
- var _currentCart$products5;
320
+ var _currentCart$products6;
299
321
  return /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
300
322
  key: i,
301
323
  isSoldOut: product.inventoried && !product.quantity,
@@ -305,7 +327,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
305
327
  useKioskApp: useKioskApp,
306
328
  isCartOnProductsList: isCartOnProductsList,
307
329
  handleUpdateProducts: handleUpdateProducts,
308
- productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products5 = currentCart.products) === null || _currentCart$products5 === void 0 ? void 0 : _currentCart$products5.reduce(function (productsLength, Cproduct) {
330
+ productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products6 = currentCart.products) === null || _currentCart$products6 === void 0 ? void 0 : _currentCart$products6.reduce(function (productsLength, Cproduct) {
309
331
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
310
332
  }, 0)
311
333
  });
@@ -339,7 +361,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
339
361
  }, products === null || products === void 0 || (_products$filter2 = products.filter(function (product) {
340
362
  return (product === null || product === void 0 ? void 0 : product.category_id) === (subcategory === null || subcategory === void 0 ? void 0 : subcategory.id);
341
363
  })) === null || _products$filter2 === void 0 ? void 0 : _products$filter2.map(function (product, i) {
342
- var _currentCart$products6;
364
+ var _currentCart$products7;
343
365
  return /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
344
366
  key: i,
345
367
  isSoldOut: product.inventoried && !product.quantity,
@@ -349,7 +371,7 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
349
371
  isCartOnProductsList: isCartOnProductsList,
350
372
  handleUpdateProducts: handleUpdateProducts,
351
373
  useKioskApp: useKioskApp,
352
- productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products6 = currentCart.products) === null || _currentCart$products6 === void 0 ? void 0 : _currentCart$products6.reduce(function (productsLength, Cproduct) {
374
+ productAddedToCartLength: currentCart === null || currentCart === void 0 || (_currentCart$products7 = currentCart.products) === null || _currentCart$products7 === void 0 ? void 0 : _currentCart$products7.reduce(function (productsLength, Cproduct) {
353
375
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
354
376
  }, 0)
355
377
  });
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapperNotFound = exports.WrapAllCategories = exports.SubcategorySearchContainer = exports.SubCategoriesInnerContainer = exports.SubCategoriesContainer = exports.RibbonBox = exports.ProductsListing = exports.ProductsContainer = exports.HeaderWrapper = exports.ErrorMessage = exports.DescriptionModalContainer = exports.DescriptionContainer = exports.ContainerButton = exports.CategoryDescription = void 0;
7
+ exports.WrapperNotFound = exports.WrapAllCategories = exports.SubcategorySearchContainer = exports.SubCategoriesInnerContainer = exports.SubCategoriesContainer = exports.RibbonBox = exports.ProductsListing = exports.ProductsContainer = exports.PreviouslyOrderedWrapper = exports.PreviouslyOrderedContainer = exports.HeaderWrapper = exports.ErrorMessage = exports.DescriptionModalContainer = exports.DescriptionContainer = exports.ContainerButton = exports.CategoryDescription = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -76,4 +76,8 @@ var ContainerButton = _styledComponents.default.div(_templateObject20 || (_templ
76
76
  });
77
77
  exports.ContainerButton = ContainerButton;
78
78
  var SubcategorySearchContainer = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: 30px;\n"])));
79
- exports.SubcategorySearchContainer = SubcategorySearchContainer;
79
+ exports.SubcategorySearchContainer = SubcategorySearchContainer;
80
+ var PreviouslyOrderedContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n overflow: scroll hidden;\n ::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n }\n"])));
81
+ exports.PreviouslyOrderedContainer = PreviouslyOrderedContainer;
82
+ var PreviouslyOrderedWrapper = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n\n .product-card {\n width: 270px;\n max-width: 270px;\n }\n\n"])));
83
+ exports.PreviouslyOrderedWrapper = PreviouslyOrderedWrapper;
@@ -408,6 +408,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
408
408
  onChangeMetaTag && onChangeMetaTag(curProduct === null || curProduct === void 0 ? void 0 : curProduct.seo_title, curProduct === null || curProduct === void 0 ? void 0 : curProduct.seo_description, curProduct === null || curProduct === void 0 ? void 0 : curProduct.seo_keywords);
409
409
  } else {
410
410
  onChangeMetaTag && onChangeMetaTag(business === null || business === void 0 ? void 0 : business.slug, business === null || business === void 0 ? void 0 : business.description, business === null || business === void 0 ? void 0 : business.name);
411
+ updateProductModal(null);
412
+ setCurProduct(null);
411
413
  }
412
414
  }, [openProduct, loading, business, curProduct]);
413
415
  (0, _react.useEffect)(function () {