ordering-ui-external 1.9.2 → 1.9.4

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 (97) hide show
  1. package/_bundles/0.ordering-ui.9ce64e14904d222c0020.js +1 -0
  2. package/_bundles/{1.ordering-ui.8e20ae6af39ad738a29e.js → 1.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  3. package/_bundles/{2.ordering-ui.8e20ae6af39ad738a29e.js → 2.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  4. package/_bundles/{4.ordering-ui.8e20ae6af39ad738a29e.js → 4.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  5. package/_bundles/{5.ordering-ui.8e20ae6af39ad738a29e.js → 5.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  6. package/_bundles/{6.ordering-ui.8e20ae6af39ad738a29e.js → 6.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  7. package/_bundles/{7.ordering-ui.8e20ae6af39ad738a29e.js → 7.ordering-ui.9ce64e14904d222c0020.js} +2 -2
  8. package/_bundles/{7.ordering-ui.8e20ae6af39ad738a29e.js.LICENSE.txt → 7.ordering-ui.9ce64e14904d222c0020.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.8e20ae6af39ad738a29e.js → 8.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  10. package/_bundles/{9.ordering-ui.8e20ae6af39ad738a29e.js → 9.ordering-ui.9ce64e14904d222c0020.js} +1 -1
  11. package/_bundles/ordering-ui.9ce64e14904d222c0020.js +2 -0
  12. package/_bundles/{ordering-ui.8e20ae6af39ad738a29e.js.LICENSE.txt → ordering-ui.9ce64e14904d222c0020.js.LICENSE.txt} +0 -0
  13. package/_modules/components/BusinessesListing/index.js +1 -3
  14. package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +26 -12
  15. package/_modules/components/VerticalOrdersLayout/styles.js +1 -1
  16. package/_modules/themes/five/index.js +7 -0
  17. package/_modules/themes/five/src/components/AddressList/index.js +3 -2
  18. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +3 -2
  19. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +14 -6
  20. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +8 -3
  21. package/_modules/themes/five/src/components/BusinessProductsList/index.js +50 -14
  22. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +9 -2
  23. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +10 -6
  24. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +55 -186
  25. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +29 -40
  26. package/_modules/themes/five/src/components/Cart/index.js +56 -97
  27. package/_modules/themes/five/src/components/CartContent/index.js +50 -2
  28. package/_modules/themes/five/src/components/CartContent/styles.js +6 -4
  29. package/_modules/themes/five/src/components/Checkout/index.js +8 -2
  30. package/_modules/themes/five/src/components/Checkout/styles.js +10 -4
  31. package/_modules/themes/five/src/components/Header/index.js +26 -34
  32. package/_modules/themes/five/src/components/Header/styles.js +46 -35
  33. package/_modules/themes/five/src/components/HeaderOption/index.js +3 -2
  34. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +3 -2
  35. package/_modules/themes/five/src/components/MultiCheckout/index.js +22 -13
  36. package/_modules/themes/five/src/components/MultiCheckout/styles.js +11 -8
  37. package/_modules/themes/five/src/components/MultiOrdersDetails/index.js +9 -1
  38. package/_modules/themes/five/src/components/OrderContextUI/index.js +192 -0
  39. package/_modules/themes/five/src/components/OrderContextUI/styles.js +41 -0
  40. package/_modules/themes/five/src/components/OrderDetails/index.js +3 -0
  41. package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +8 -2
  42. package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/styles.js +8 -2
  43. package/_modules/themes/five/src/components/OrdersOption/index.js +2 -1
  44. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +17 -8
  45. package/_modules/themes/five/src/components/ProductItemAccordion/styles.js +27 -27
  46. package/_modules/themes/five/src/components/ProductOptionSubOption/index.js +7 -2
  47. package/_modules/themes/five/src/components/ProductOptionSubOption/styles.js +17 -14
  48. package/_modules/themes/five/src/components/SingleOrderCard/index.js +16 -16
  49. package/_modules/themes/five/src/components/SingleOrderCard/styles.js +49 -41
  50. package/package.json +3 -2
  51. package/src/components/BusinessesListing/index.js +1 -3
  52. package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +25 -14
  53. package/src/components/VerticalOrdersLayout/styles.js +8 -0
  54. package/src/themes/five/index.js +2 -0
  55. package/src/themes/five/src/components/AddressList/index.js +3 -2
  56. package/src/themes/five/src/components/BusinessItemAccordion/index.js +2 -1
  57. package/src/themes/five/src/components/BusinessListingSearch/index.js +4 -0
  58. package/src/themes/five/src/components/BusinessProductsCategories/index.js +8 -3
  59. package/src/themes/five/src/components/BusinessProductsList/index.js +54 -18
  60. package/src/themes/five/src/components/BusinessProductsListing/index.js +14 -2
  61. package/src/themes/five/src/components/BusinessProductsListing/styles.js +18 -6
  62. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +219 -345
  63. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +2 -77
  64. package/src/themes/five/src/components/Cart/index.js +50 -57
  65. package/src/themes/five/src/components/CartContent/index.js +43 -3
  66. package/src/themes/five/src/components/CartContent/styles.js +6 -0
  67. package/src/themes/five/src/components/Checkout/index.js +16 -2
  68. package/src/themes/five/src/components/Checkout/styles.js +19 -6
  69. package/src/themes/five/src/components/Header/index.js +281 -277
  70. package/src/themes/five/src/components/Header/styles.js +20 -51
  71. package/src/themes/five/src/components/HeaderOption/index.js +3 -2
  72. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +2 -1
  73. package/src/themes/five/src/components/MultiCheckout/index.js +27 -13
  74. package/src/themes/five/src/components/MultiCheckout/styles.js +8 -13
  75. package/src/themes/five/src/components/MultiOrdersDetails/index.js +21 -13
  76. package/src/themes/five/src/components/OrderContextUI/index.js +133 -0
  77. package/src/themes/five/src/components/OrderContextUI/styles.js +86 -0
  78. package/src/themes/five/src/components/OrderDetails/index.js +4 -0
  79. package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +5 -2
  80. package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/styles.js +4 -0
  81. package/src/themes/five/src/components/OrdersOption/index.js +2 -1
  82. package/src/themes/five/src/components/ProductItemAccordion/index.js +58 -40
  83. package/src/themes/five/src/components/ProductItemAccordion/styles.js +4 -3
  84. package/src/themes/five/src/components/ProductOptionSubOption/index.js +8 -1
  85. package/src/themes/five/src/components/ProductOptionSubOption/styles.js +6 -0
  86. package/src/themes/five/src/components/SingleOrderCard/index.js +12 -13
  87. package/src/themes/five/src/components/SingleOrderCard/styles.js +26 -7
  88. package/template/app.js +179 -66
  89. package/template/components/ListenPageChanges/index.js +3 -2
  90. package/template/components/OrderingThemeUpdated/index.js +41 -0
  91. package/template/helmetdata.json +7 -0
  92. package/template/pages/MessagesList/index.js +2 -0
  93. package/template/pages/MultiCart/index.js +30 -0
  94. package/template/pages/MultiCheckout/index.js +86 -10
  95. package/template/pages/MultiOrdersDetails/index.js +9 -4
  96. package/_bundles/0.ordering-ui.8e20ae6af39ad738a29e.js +0 -1
  97. package/_bundles/ordering-ui.8e20ae6af39ad738a29e.js +0 -2
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.Header = void 0;
7
+ exports.default = exports.Header = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _reactRouterDom = require("react-router-dom");
10
10
  var _orderingComponentsExternal = require("ordering-components-external");
@@ -51,7 +51,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
51
51
  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; } }
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
  var Header = function Header(props) {
54
- var _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _customerState$user, _orderState$options3, _orderState$options3$, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images$logos, _orderingTheme$my_pro, _orderingTheme$my_pro2, _orderingTheme$my_pro3, _orderingTheme$my_pro4, _orderingTheme$my_pro5, _orderingTheme$my_pro6, _theme$images2, _theme$images2$logos, _theme$images3, _theme$images3$logos, _orderingTheme$my_pro7, _orderingTheme$my_pro8, _orderingTheme$my_pro9, _orderingTheme$my_pro10, _orderingTheme$my_pro11, _orderingTheme$my_pro12, _theme$images4, _theme$images4$logos, _theme$images5, _theme$images5$logos, _orderState$options5, _orderState$options5$, _orderState$options6, _orderState$options6$, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _configState$configs8, _configState$configs9, _orderState$options7, _orderState$options8, _configState$configs10, _configState$configs11, _theme$defaultLanguag2, _theme$defaultLanguag3, _orderState$options9, _orderState$options9$, _configState$configs12, _configState$configs13, _orderState$options10, _configState$configs14, _configState$configs15, _configState$configs16, _configState$configs17, _orderState$options11, _orderState$options12, _configState$configs18, _configState$configs19, _orderState$options13, _configState$configs20, _configState$configs21, _configState$configs22, _configState$configs23, _orderState$options14, _orderState$options15, _customerState$user2, _customerState$user3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _props$afterComponent, _props$afterElements;
54
+ var _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _theme$header, _theme$header$compone, _theme$header$compone2, _customerState$user, _orderState$options3, _orderState$options3$, _theme$images, _theme$images$logos, _orderingTheme$my_pro, _orderingTheme$my_pro2, _orderingTheme$my_pro3, _orderingTheme$my_pro4, _orderingTheme$my_pro5, _orderingTheme$my_pro6, _theme$images2, _theme$images2$logos, _theme$images3, _theme$images3$logos, _orderingTheme$my_pro7, _orderingTheme$my_pro8, _orderingTheme$my_pro9, _orderingTheme$my_pro10, _orderingTheme$my_pro11, _orderingTheme$my_pro12, _theme$images4, _theme$images4$logos, _theme$images5, _theme$images5$logos, _orderState$options5, _orderState$options5$, _orderState$options6, _orderState$options6$, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _configState$configs8, _configState$configs9, _orderState$options7, _orderState$options8, _configState$configs10, _configState$configs11, _theme$defaultLanguag2, _theme$defaultLanguag3, _orderState$options9, _orderState$options9$, _configState$configs12, _configState$configs13, _orderState$options10, _configState$configs14, _configState$configs15, _configState$configs16, _configState$configs17, _orderState$options11, _orderState$options12, _configState$configs18, _configState$configs19, _orderState$options13, _configState$configs20, _configState$configs21, _configState$configs22, _configState$configs23, _orderState$options14, _orderState$options15, _customerState$user2, _customerState$user3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9;
55
55
  var isHome = props.isHome,
56
56
  location = props.location,
57
57
  isShowOrderOptions = props.isShowOrderOptions,
@@ -151,6 +151,7 @@ var Header = function Header(props) {
151
151
  })) || [];
152
152
  var isPreOrderSetting = (configState === null || configState === void 0 ? void 0 : (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 ? void 0 : (_configState$configs3 = _configState$configs2.preorder_status_enabled) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value) === '1';
153
153
  var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
154
+ var isHideLanguages = theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.language_selector) === null || _theme$header$compone2 === void 0 ? void 0 : _theme$header$compone2.hidden;
154
155
  var handleSuccessSignup = function handleSuccessSignup(user) {
155
156
  var _user$session;
156
157
  login({
@@ -256,17 +257,9 @@ var Header = function Header(props) {
256
257
  maximumAge: 0
257
258
  });
258
259
  }, [orderState === null || orderState === void 0 ? void 0 : (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : (_orderState$options3$ = _orderState$options3.address) === null || _orderState$options3$ === void 0 ? void 0 : _orderState$options3$.location, pathname]);
259
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
260
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
261
- key: i
262
- }, BeforeElement);
263
- }), (_props$beforeComponen = props.beforeComponents) === null || _props$beforeComponen === void 0 ? void 0 : _props$beforeComponen.map(function (BeforeComponent, i) {
264
- return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
265
- key: i
266
- }, props));
267
- }), /*#__PURE__*/_react.default.createElement(_styles.Header, {
260
+ return /*#__PURE__*/_react.default.createElement(_styles.Header, {
268
261
  isChew: isChew
269
- }, /*#__PURE__*/_react.default.createElement(_styles.InnerHeader, null, /*#__PURE__*/_react.default.createElement(_styles.LeftHeader, {
262
+ }, /*#__PURE__*/_react.default.createElement(_styles.InnerHeader, null, /*#__PURE__*/_react.default.createElement(_styles.LeftSide, null, /*#__PURE__*/_react.default.createElement(_styles.LeftHeader, {
270
263
  id: "left-side"
271
264
  }, /*#__PURE__*/_react.default.createElement(_SidebarMenu.SidebarMenu, {
272
265
  auth: auth,
@@ -293,7 +286,7 @@ var Header = function Header(props) {
293
286
  height: isChew ? '20px' : '45px',
294
287
  src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$logos = _theme$images3.logos) === null || _theme$images3$logos === void 0 ? void 0 : _theme$images3$logos.chewLogo : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$my_pro7 = orderingTheme.my_products) === null || _orderingTheme$my_pro7 === void 0 ? void 0 : (_orderingTheme$my_pro8 = _orderingTheme$my_pro7.components) === null || _orderingTheme$my_pro8 === void 0 ? void 0 : (_orderingTheme$my_pro9 = _orderingTheme$my_pro8.images) === null || _orderingTheme$my_pro9 === void 0 ? void 0 : (_orderingTheme$my_pro10 = _orderingTheme$my_pro9.components) === null || _orderingTheme$my_pro10 === void 0 ? void 0 : (_orderingTheme$my_pro11 = _orderingTheme$my_pro10.logo) === null || _orderingTheme$my_pro11 === void 0 ? void 0 : (_orderingTheme$my_pro12 = _orderingTheme$my_pro11.components) === null || _orderingTheme$my_pro12 === void 0 ? void 0 : _orderingTheme$my_pro12.image) || (isHome ? theme === null || theme === void 0 ? void 0 : (_theme$images4 = theme.images) === null || _theme$images4 === void 0 ? void 0 : (_theme$images4$logos = _theme$images4.logos) === null || _theme$images4$logos === void 0 ? void 0 : _theme$images4$logos.isotypeInvert : theme === null || theme === void 0 ? void 0 : (_theme$images5 = theme.images) === null || _theme$images5 === void 0 ? void 0 : (_theme$images5$logos = _theme$images5.logos) === null || _theme$images5$logos === void 0 ? void 0 : _theme$images5$logos.isotype),
295
288
  loading: "lazy"
296
- }))), isShowOrderOptions && !props.isCustomLayout && /*#__PURE__*/_react.default.createElement(_styles.Menu, {
289
+ }))), isShowOrderOptions && !props.isCustomLayout && windowSize.width >= 576 && /*#__PURE__*/_react.default.createElement(_styles.Menu, {
297
290
  id: "center-side",
298
291
  className: "left-header",
299
292
  isCustomerMode: isCustomerMode,
@@ -330,7 +323,7 @@ var Header = function Header(props) {
330
323
  return openModal(variant);
331
324
  },
332
325
  orderTypeList: orderTypeList
333
- })), windowSize.width > 1200 && window.location.pathname === '/search' && /*#__PURE__*/_react.default.createElement(_styles.HeaderSearchMode, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
326
+ }))), windowSize.width > 1200 && window.location.pathname === '/search' && /*#__PURE__*/_react.default.createElement(_styles.HeaderSearchMode, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
334
327
  lazyLoad: true,
335
328
  search: searchValue,
336
329
  placeholder: t('SEARCH_BUSINESSES', 'Search Businesses'),
@@ -348,22 +341,23 @@ var Header = function Header(props) {
348
341
  }, /*#__PURE__*/_react.default.createElement(_styles.Menu, {
349
342
  isCustomerMode: isCustomerMode
350
343
  }, !auth && windowSize.width > 920 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
351
- onClick: function onClick() {
352
- return handleOpenLoginSignUp('login');
353
- },
344
+ name: "signin",
345
+ highlight: isChew && 1,
354
346
  style: {
355
347
  whiteSpace: 'nowrap'
356
348
  },
357
- name: "signin"
358
- }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.LOGIN) || 'Login')), !isHideSignup && /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
359
349
  onClick: function onClick() {
360
- return handleOpenLoginSignUp('signup');
361
- },
350
+ return handleOpenLoginSignUp('login');
351
+ }
352
+ }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.LOGIN) || 'Login')), !isHideSignup && /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
353
+ name: "signup",
362
354
  highlight: 1,
363
355
  style: {
364
356
  whiteSpace: 'nowrap'
365
357
  },
366
- name: "signup"
358
+ onClick: function onClick() {
359
+ return handleOpenLoginSignUp('signup');
360
+ }
367
361
  }, t('SIGN_UP', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.SIGN_UP) || 'Sign up'))), auth && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isShowOrderOptions && (windowSize.width > 768 ? /*#__PURE__*/_react.default.createElement(_CartPopover.CartPopover, {
368
362
  open: openPopover.cart,
369
363
  carts: cartsWithProducts,
@@ -396,7 +390,8 @@ var Header = function Header(props) {
396
390
  onClose: function onClose() {
397
391
  return handleClosePopover('user');
398
392
  }
399
- })), /*#__PURE__*/_react.default.createElement(_styles.LanguageSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_LanguageSelector.LanguageSelector, null))))), onlineStatus && isShowOrderOptions && !props.isCustomLayout && !isCustomerMode && (windowSize.width > 768 && windowSize.width <= 820 ? /*#__PURE__*/_react.default.createElement(_styles.SubMenu, null, isFarAway && /*#__PURE__*/_react.default.createElement(_styles.FarAwayMessage, null, /*#__PURE__*/_react.default.createElement(_TiWarningOutline.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address'))), /*#__PURE__*/_react.default.createElement(_styles.AddressMenu, {
393
+ })), !isHideLanguages && /*#__PURE__*/_react.default.createElement(_styles.LanguageSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_LanguageSelector.LanguageSelector, null))))), onlineStatus && isShowOrderOptions && !props.isCustomLayout && !isCustomerMode && (windowSize.width > 768 && windowSize.width <= 820 ? /*#__PURE__*/_react.default.createElement(_styles.SubMenu, null, isFarAway && /*#__PURE__*/_react.default.createElement(_styles.FarAwayMessage, null, /*#__PURE__*/_react.default.createElement(_TiWarningOutline.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address'))), /*#__PURE__*/_react.default.createElement(_styles.AddressMenu, {
394
+ isChew: isChew,
400
395
  onClick: function onClick() {
401
396
  return openModal('address');
402
397
  }
@@ -406,11 +401,14 @@ var Header = function Header(props) {
406
401
  onClick: (configState === null || configState === void 0 ? void 0 : (_configState$configs14 = configState.configs) === null || _configState$configs14 === void 0 ? void 0 : (_configState$configs15 = _configState$configs14.max_days_preorder) === null || _configState$configs15 === void 0 ? void 0 : _configState$configs15.value) === -1 || (configState === null || configState === void 0 ? void 0 : (_configState$configs16 = configState.configs) === null || _configState$configs16 === void 0 ? void 0 : (_configState$configs17 = _configState$configs16.max_days_preorder) === null || _configState$configs17 === void 0 ? void 0 : _configState$configs17.value) === 0 ? null : function (variant) {
407
402
  return openModal(variant);
408
403
  }
409
- })) : /*#__PURE__*/_react.default.createElement(_styles.SubMenu, null, isFarAway && /*#__PURE__*/_react.default.createElement(_styles.FarAwayMessage, null, /*#__PURE__*/_react.default.createElement(_TiWarningOutline.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address'))), /*#__PURE__*/_react.default.createElement(_HeaderOption.HeaderOption, {
404
+ })) : windowSize.width >= 576 && /*#__PURE__*/_react.default.createElement(_styles.SubMenu, null, isFarAway && /*#__PURE__*/_react.default.createElement(_styles.FarAwayMessage, null, /*#__PURE__*/_react.default.createElement(_TiWarningOutline.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address'))), /*#__PURE__*/_react.default.createElement(_HeaderOption.HeaderOption, {
410
405
  variant: "address",
411
406
  addressState: orderState === null || orderState === void 0 ? void 0 : (_orderState$options11 = orderState.options) === null || _orderState$options11 === void 0 ? void 0 : (_orderState$options12 = _orderState$options11.address) === null || _orderState$options12 === void 0 ? void 0 : _orderState$options12.address,
412
407
  onClick: function onClick(variant) {
413
408
  return openModal(variant);
409
+ },
410
+ containerStyle: {
411
+ width: '80%'
414
412
  }
415
413
  }), !isCustomerMode && (isPreOrderSetting || (configState === null || configState === void 0 ? void 0 : (_configState$configs18 = configState.configs) === null || _configState$configs18 === void 0 ? void 0 : (_configState$configs19 = _configState$configs18.preorder_status_enabled) === null || _configState$configs19 === void 0 ? void 0 : _configState$configs19.value) === undefined) && /*#__PURE__*/_react.default.createElement(_HeaderOption.HeaderOption, {
416
414
  variant: "moment",
@@ -574,17 +572,11 @@ var Header = function Header(props) {
574
572
  business: preorderBusiness,
575
573
  handleClick: handleBusinessClick,
576
574
  showButton: true
577
- }))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
578
- return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
579
- key: i
580
- }, props));
581
- }), (_props$afterElements = props.afterElements) === null || _props$afterElements === void 0 ? void 0 : _props$afterElements.map(function (AfterElement, i) {
582
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
583
- key: i
584
- }, AfterElement);
585
- }));
575
+ })));
586
576
  };
587
577
  exports.Header = Header;
588
578
  Header.defaultProps = {
589
579
  isShowOrderOptions: true
590
- };
580
+ };
581
+ var _default = Header;
582
+ exports.default = _default;
@@ -4,42 +4,47 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.UserEdit = exports.SubMenu = exports.RightHeader = exports.MomentMenu = exports.MenuLink = exports.MenuItem = exports.Menu = exports.LogoHeader = exports.LeftHeader = exports.LanguageSelectorWrapper = exports.InputGroup = exports.InnerHeader = exports.HeaderSearchMode = exports.Header = exports.FarAwayMessage = exports.Divider = exports.CustomerInfo = exports.AddressMenu = exports.AddressFormWrapper = void 0;
7
+ exports.UserEdit = exports.SubMenu = exports.RightHeader = exports.MomentMenu = exports.MenuLink = exports.MenuItem = exports.Menu = exports.LogoHeader = exports.LeftSide = exports.LeftHeader = exports.LanguageSelectorWrapper = exports.InputGroup = exports.InnerHeader = exports.HeaderSearchMode = exports.Header = exports.FarAwayMessage = exports.Divider = exports.CustomerInfo = exports.AddressMenu = exports.AddressFormWrapper = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _polished = require("polished");
10
- 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, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32;
10
+ 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, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
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 _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
14
  var Header = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n background-color: ", ";\n border-bottom: ", ";\n"])), function (props) {
15
- return props.isChew && props.theme.colors.primary;
15
+ var _props$theme, _props$theme$header, _props$theme$header$c, _props$theme$header$c2;
16
+ return props.isChew && props.theme.colors.primary || ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$header = _props$theme.header) === null || _props$theme$header === void 0 ? void 0 : (_props$theme$header$c = _props$theme$header.components) === null || _props$theme$header$c === void 0 ? void 0 : (_props$theme$header$c2 = _props$theme$header$c.style) === null || _props$theme$header$c2 === void 0 ? void 0 : _props$theme$header$c2.backgroundColor);
16
17
  }, function (props) {
17
18
  return !props.isChew && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["1px solid #E9ECEF"])));
18
19
  });
19
20
  exports.Header = Header;
20
- var InnerHeader = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n color: #FFF;\n justify-content: space-between;\n margin: 15px 0;\n align-items: center;\n\n #left-side {\n width: ", ";\n justify-content: flex-start;\n }\n #right-side {\n width: ", ";\n justify-content: flex-end;\n }\n #center-side {\n width: ", ";\n }\n\n @media (min-width: 1024px) {\n #center-side {\n width: calc(60% - 140px);\n }\n }\n\n @media (min-width: 1200px) {\n #center-side {\n width: calc(60% - 200px);\n }\n }\n\n @media (min-width: 1500px) {\n #center-side {\n width: calc(60% - 260px);\n }\n }\n"])), function (_ref) {
21
+ var InnerHeader = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n color: #FFF;\n justify-content: space-between;\n margin: 15px 0;\n align-items: center;\n #left-side {\n width: ", ";\n justify-content: flex-start;\n }\n #right-side {\n width: ", ";\n justify-content: flex-end;\n }\n #center-side {\n width: ", ";\n }\n @media (min-width: 768px) {\n #left-side {\n width: ", ";\n }\n }\n @media (min-width: 1024px) {\n #center-side {\n width: calc(60% - 140px);\n }\n }\n @media (min-width: 1200px) {\n #center-side {\n width: calc(60% - 200px);\n }\n }\n @media (min-width: 1500px) {\n #center-side {\n width: calc(60% - 260px);\n }\n }\n"])), function (_ref) {
21
22
  var _theme$header, _theme$header$compone, _theme$header$compone2;
22
23
  var theme = _ref.theme;
23
24
  return (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : _theme$header$compone2.type) === 'starbucks' ? '30%' : '25%';
24
25
  }, function (_ref2) {
25
26
  var _theme$header2, _theme$header2$compon, _theme$header2$compon2;
26
27
  var theme = _ref2.theme;
27
- return (theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : (_theme$header2$compon = _theme$header2.components) === null || _theme$header2$compon === void 0 ? void 0 : (_theme$header2$compon2 = _theme$header2$compon.layout) === null || _theme$header2$compon2 === void 0 ? void 0 : _theme$header2$compon2.type) === 'starbucks' ? '30%' : '25%';
28
+ return (theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : (_theme$header2$compon = _theme$header2.components) === null || _theme$header2$compon === void 0 ? void 0 : (_theme$header2$compon2 = _theme$header2$compon.layout) === null || _theme$header2$compon2 === void 0 ? void 0 : _theme$header2$compon2.type) === 'starbucks' ? '30%' : '40%';
28
29
  }, function (_ref3) {
29
30
  var _theme$header3, _theme$header3$compon, _theme$header3$compon2;
30
31
  var theme = _ref3.theme;
31
32
  return (theme === null || theme === void 0 ? void 0 : (_theme$header3 = theme.header) === null || _theme$header3 === void 0 ? void 0 : (_theme$header3$compon = _theme$header3.components) === null || _theme$header3$compon === void 0 ? void 0 : (_theme$header3$compon2 = _theme$header3$compon.layout) === null || _theme$header3$compon2 === void 0 ? void 0 : _theme$header3$compon2.type) === 'starbucks' ? 'calc(60% - 140px)' : 'calc(60% - 30px)';
33
+ }, function (_ref4) {
34
+ var _theme$header4, _theme$header4$compon, _theme$header4$compon2;
35
+ var theme = _ref4.theme;
36
+ return (theme === null || theme === void 0 ? void 0 : (_theme$header4 = theme.header) === null || _theme$header4 === void 0 ? void 0 : (_theme$header4$compon = _theme$header4.components) === null || _theme$header4$compon === void 0 ? void 0 : (_theme$header4$compon2 = _theme$header4$compon.layout) === null || _theme$header4$compon2 === void 0 ? void 0 : _theme$header4$compon2.type) === 'starbucks' ? '30%' : 'initial';
32
37
  });
33
38
  exports.InnerHeader = InnerHeader;
34
- var LogoHeader = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n img {\n width: ", ";\n height: ", ";\n margin: 0;\n vertical-align: middle;\n margin-left: 10px;\n\n ", "\n\n @media (min-width: 768px) {\n width: ", ";\n height: ", ";\n }\n }\n\n ", "\n\n @media (min-width: 768px) {\n img:nth-child(1) {\n display: block;\n }\n img:nth-child(2) {\n display: none;\n }\n }\n"])), function (props) {
39
+ var LogoHeader = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n img {\n width: ", ";\n height: ", ";\n margin: 0;\n vertical-align: middle;\n margin-left: 10px;\n ", "\n @media (min-width: 769px) {\n width: ", ";\n height: ", ";\n }\n }\n ", "\n @media (min-width: 769px) {\n img:nth-child(1) {\n display: block;\n }\n img:nth-child(2) {\n display: none;\n }\n }\n"])), function (props) {
35
40
  var _props$imgW;
36
41
  return props.isChew ? '70px' : (_props$imgW = props.imgW) !== null && _props$imgW !== void 0 ? _props$imgW : '35px';
37
42
  }, function (props) {
38
43
  var _props$imgH;
39
44
  return props.isChew ? '20px' : (_props$imgH = props.imgH) !== null && _props$imgH !== void 0 ? _props$imgH : '45px';
40
45
  }, function (props) {
41
- var _props$theme;
42
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
46
+ var _props$theme2;
47
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
43
48
  }, function (props) {
44
49
  var _props$imgW2;
45
50
  return (_props$imgW2 = props.imgW) !== null && _props$imgW2 !== void 0 ? _props$imgW2 : '150px';
@@ -51,22 +56,22 @@ var LogoHeader = _styledComponents.default.div(_templateObject4 || (_templateObj
51
56
  exports.LogoHeader = LogoHeader;
52
57
  var LeftHeader = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n align-self: center;\n display: flex;\n align-items: center;\n"])));
53
58
  exports.LeftHeader = LeftHeader;
54
- var RightHeader = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n align-self: center;\n display: flex;\n\n #select-input {\n div {\n color: ", ";\n }\n }\n"])), function (props) {
59
+ var RightHeader = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n align-self: center;\n display: flex;\n #select-input {\n div {\n color: ", ";\n }\n }\n"])), function (props) {
55
60
  return props.theme.colors.darkTextColor;
56
61
  });
57
62
  exports.RightHeader = RightHeader;
58
- var Menu = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n #select-input {\n border-radius: 7.6px;\n\n #list {\n border-radius: 7.6px;\n }\n\n ", "\n }\n\n &.left-header {\n background: #F8F9FA;\n border: none;\n box-sizing: border-box;\n border-radius: ", ";\n margin: 0 15px;\n flex-grow: 1;\n padding: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n height: 44px;\n\n @media (min-width: 821px) {\n border: 1px solid #DEE2E6;\n justify-content: space-between;\n }\n\n @media (min-width: 1024px) {\n padding: 0 20px;\n margin-left: 45px;\n }\n\n @media (min-width: 1200px) {\n padding: 0 30px;\n margin-left: 50px;\n }\n\n @media (min-width: 1500px) {\n padding: 0 30px;\n margin: 0 75px;\n }\n }\n\n > *:not(:last-child) {\n margin: 0 5px;\n }\n\n > span {\n #select-input {\n background: transparent !important;\n }\n }\n\n .moment-popover {\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n\n @media (min-width: 1175px) {\n width: 250px;\n }\n \n @media (min-width: 1400px) {\n width: 400px;\n }\n\n > div:first-child {\n width: 100%;\n display: flex;\n justify-content: center;\n }\n }\n\n .address-popover {\n flex-grow: 1;\n display: none;\n > div:first-child {\n width: 100%;\n }\n }\n\n .order-type {\n padding: 0 10px;\n\n @media (min-width: 1200px) {\n padding: 0 20px;\n }\n }\n\n\n @media (min-width: 821px) {\n .moment-popover,\n .address-popover {\n display: flex;\n }\n }\n"])), function (_ref4) {
59
- var isCustomerMode = _ref4.isCustomerMode;
60
- return !isCustomerMode && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin: 0px 5px;\n height: 40px;\n\n svg {\n font-size: 16px;\n }\n\n > div:first-child {\n height: 100%;\n padding-left: 10px;\n padding-right: 10px;\n\n @media (min-width: 993px) {\n padding-left: 13px;\n padding-right: 13px;\n }\n }\n "])));
63
+ var Menu = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n #select-input {\n border-radius: 7.6px;\n #list {\n border-radius: 7.6px;\n }\n ", "\n }\n &.left-header {\n background: #F8F9FA;\n border: none;\n box-sizing: border-box;\n border-radius: ", ";\n margin: 0 20px;\n flex-grow: 1;\n padding: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n height: 44px;\n @media (min-width: 821px) {\n border: 1px solid #DEE2E6;\n justify-content: space-between;\n }\n @media (min-width: 1024px) {\n padding: 0 20px;\n margin-left: 45px;\n }\n @media (min-width: 1200px) {\n padding: 0 30px;\n margin-left: 50px;\n }\n @media (min-width: 1500px) {\n padding: 0 30px;\n margin: 0 75px;\n }\n }\n > *:not(:last-child) {\n margin: 0 5px;\n }\n > span {\n #select-input {\n background: transparent !important;\n }\n }\n .moment-popover {\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n @media (min-width: 1175px) {\n width: 250px;\n }\n \n @media (min-width: 1400px) {\n width: 400px;\n }\n > div:first-child {\n width: 100%;\n display: flex;\n justify-content: center;\n }\n }\n .address-popover {\n flex-grow: 1;\n display: none;\n > div:first-child {\n width: 100%;\n }\n }\n .order-type {\n padding: 0 10px;\n @media (min-width: 1200px) {\n padding: 0 20px;\n }\n }\n @media (min-width: 821px) {\n .moment-popover,\n .address-popover {\n display: flex;\n }\n }\n"])), function (_ref5) {
64
+ var isCustomerMode = _ref5.isCustomerMode;
65
+ return !isCustomerMode && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin: 0px 5px;\n height: 40px;\n svg {\n font-size: 16px;\n }\n > div:first-child {\n height: 100%;\n padding-left: 10px;\n padding-right: 10px;\n @media (min-width: 993px) {\n padding-left: 13px;\n padding-right: 13px;\n }\n }\n "])));
61
66
  }, function (props) {
62
67
  return props.isChew ? '8px' : '50px';
63
68
  });
64
69
  exports.Menu = Menu;
65
70
  var MenuItem = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n"])));
66
71
  exports.MenuItem = MenuItem;
67
- var MenuLink = _styledComponents.default.a(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n text-decoration: none;\n font-size: 14px;\n padding: 10px;\n color: #333;\n cursor: pointer;\n\n ", "\n"])), function (_ref5) {
68
- var highlight = _ref5.highlight;
69
- return highlight && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n border-radius: 7.6px;\n padding: 11px 15px;\n\n &:hover {\n background: ", ";\n color: #FFF;\n }\n "])), function (props) {
72
+ var MenuLink = _styledComponents.default.a(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n text-decoration: none;\n font-size: 14px;\n padding: 10px;\n color: #333;\n cursor: pointer;\n ", "\n"])), function (_ref6) {
73
+ var highlight = _ref6.highlight;
74
+ return highlight && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n border-radius: 7.6px;\n padding: 11px 15px;\n &:hover {\n background: ", ";\n color: #FFF;\n }\n "])), function (props) {
70
75
  return props.theme.colors.primary;
71
76
  }, function (props) {
72
77
  return props.theme.colors.primaryContrast;
@@ -75,51 +80,51 @@ var MenuLink = _styledComponents.default.a(_templateObject12 || (_templateObject
75
80
  });
76
81
  });
77
82
  exports.MenuLink = MenuLink;
78
- var SubMenu = (0, _styledComponents.default)(InnerHeader)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n padding: 0px 20px 7px;\n box-sizing: border-box;\n margin: 0px;\n position: relative;\n\n @media (min-width: 821px) {\n display: none;\n }\n"])));
83
+ var SubMenu = (0, _styledComponents.default)(InnerHeader)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n padding: 0px 20px 7px;\n box-sizing: border-box;\n margin: 0px;\n position: relative;\n @media (min-width: 821px) {\n display: none;\n }\n"])));
79
84
  exports.SubMenu = SubMenu;
80
- var CustomerInfo = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: none;\n cursor: pointer;\n flex: 1;\n position: relative;\n @media (min-width: 450px) {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n display: flex;\n align-items: center;\n margin: 0;\n p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #909BA9;\n }\n svg {\n color: #748194;\n margin: 0;\n font-size: 20px;\n position: absolute;\n right: 0;\n }\n }\n }\n"])));
85
+ var CustomerInfo = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: none;\n cursor: pointer;\n flex: 1;\n position: relative;\n @media (min-width: 450px) {\n display: flex;\n justify-content: center;\n align-items: center;\n span {\n display: flex;\n align-items: center;\n margin: 0;\n p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #909BA9;\n }\n svg {\n color: #748194;\n margin: 0;\n font-size: 20px;\n position: absolute;\n right: 0;\n }\n }\n }\n"])));
81
86
  exports.CustomerInfo = CustomerInfo;
82
87
  var UserEdit = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n > :first-child{\n margin-bottom: 20px;\n }\n"])));
83
88
  exports.UserEdit = UserEdit;
84
- var AddressMenu = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n display: flex;\n align-items: center;\n position: relative;\n\n span {\n width: 85%;\n p {\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n }\n\n ", "\n\n svg {\n color: ", ";\n font-size: 16px;\n margin-right: 10px;\n ", "\n }\n @media (min-width: 765px) {\n ", "\n }\n @media (min-width: 820px) {\n ", "\n }\n"])), function (props) {
89
+ var AddressMenu = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n color: ", ";\n display: flex;\n align-items: center;\n position: relative;\n span {\n width: 85%;\n p {\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n }\n ", "\n svg {\n color: ", ";\n font-size: 16px;\n margin-right: 10px;\n ", "\n }\n @media (min-width: 765px) {\n ", "\n }\n @media (min-width: 820px) {\n ", "\n }\n"])), function (props) {
85
90
  var _props$theme$colors, _props$theme$colors2;
86
91
  return props.isChew ? (_props$theme$colors = props.theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage : (_props$theme$colors2 = props.theme.colors) === null || _props$theme$colors2 === void 0 ? void 0 : _props$theme$colors2.headingColor;
87
- }, function (_ref6) {
88
- var isCustomerMode = _ref6.isCustomerMode;
92
+ }, function (_ref7) {
93
+ var isCustomerMode = _ref7.isCustomerMode;
89
94
  return isCustomerMode ? (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n flex: 0.8;\n "]))) : (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 50%;\n "])));
90
95
  }, function (props) {
91
96
  var _props$theme$colors3;
92
97
  return (_props$theme$colors3 = props.theme.colors) === null || _props$theme$colors3 === void 0 ? void 0 : _props$theme$colors3.lightGray;
93
98
  }, function (props) {
94
- var _props$theme2;
95
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
96
- }, function (_ref7) {
97
- var isCustomerMode = _ref7.isCustomerMode;
98
- return !isCustomerMode && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 80%;\n "])));
99
+ var _props$theme3;
100
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
99
101
  }, function (_ref8) {
100
102
  var isCustomerMode = _ref8.isCustomerMode;
103
+ return !isCustomerMode && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 80%;\n "])));
104
+ }, function (_ref9) {
105
+ var isCustomerMode = _ref9.isCustomerMode;
101
106
  return !isCustomerMode && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n width: 50%;\n "])));
102
107
  });
103
108
  exports.AddressMenu = AddressMenu;
104
- var MomentMenu = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n \n @media (min-width: 821px) {\n display: flex;\n }\n\n @media (min-width: 1175px) {\n width: 250px;\n }\n\n @media (min-width: 1400px) {\n width: 400px;\n }\n\n > div {\n cursor: pointer;\n font-size: 14px;\n color: #909BA9;\n display: flex;\n align-items: center;\n text-align: center;\n white-space: nowrap;\n padding: 0 10px;\n }\n"])));
109
+ var MomentMenu = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n border-left: 1px solid #DEE2E6;\n border-right: 1px solid #DEE2E6;\n height: 100%;\n justify-content: center;\n width: 200px;\n display: none;\n \n @media (min-width: 821px) {\n display: flex;\n }\n @media (min-width: 1175px) {\n width: 250px;\n }\n @media (min-width: 1400px) {\n width: 400px;\n }\n > div {\n cursor: pointer;\n font-size: 14px;\n color: #909BA9;\n display: flex;\n align-items: center;\n text-align: center;\n white-space: nowrap;\n padding: 0 10px;\n }\n"])));
105
110
  exports.MomentMenu = MomentMenu;
106
- var FarAwayMessage = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n pointer-events: none;\n position: absolute;\n display: flex;\n align-items: center;\n z-index: 2000;\n top: 100%;\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n padding: 6px 15px;\n box-sizing: border-box;\n margin: 10px 0px 0px 0px !important;\n\n left: 5px;\n ", "\n\n svg {\n font-size: 20px;\n color: ", ";\n margin-right: 10px;\n ", "\n }\n span {\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n }\n\n @media (min-width: 400px) {\n padding: 8px 20px;\n font-size: 14px;\n line-height: 24px;\n left: 10px;\n ", "\n }\n"])), function (props) {
111
+ var FarAwayMessage = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n pointer-events: none;\n position: absolute;\n display: flex;\n align-items: center;\n z-index: 2000;\n top: 100%;\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n padding: 6px 15px;\n box-sizing: border-box;\n margin: 10px 0px 0px 0px !important;\n left: 5px;\n ", "\n svg {\n font-size: 20px;\n color: ", ";\n margin-right: 10px;\n ", "\n }\n span {\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n }\n @media (min-width: 400px) {\n padding: 8px 20px;\n font-size: 14px;\n line-height: 24px;\n left: 10px;\n ", "\n }\n"])), function (props) {
107
112
  return props.theme.colors.warning100;
108
113
  }, function (props) {
109
114
  return props.theme.colors.warning500;
110
115
  }, function (props) {
111
- var _props$theme3;
112
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n right: 5px;\n left: initial;\n "])));
116
+ var _props$theme4;
117
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n right: 5px;\n left: initial;\n "])));
113
118
  }, function (props) {
114
119
  return props.theme.colors.warning500;
115
120
  }, function (props) {
116
- var _props$theme4;
117
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-right: auto;\n margin-left: 10px;\n "])));
121
+ var _props$theme5;
122
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-right: auto;\n margin-left: 10px;\n "])));
118
123
  }, function (props) {
119
124
  return props.theme.colors.headingColor;
120
125
  }, function (props) {
121
- var _props$theme5;
122
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n right: 10px;\n left: initial;\n "])));
126
+ var _props$theme6;
127
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n right: 10px;\n left: initial;\n "])));
123
128
  });
124
129
  exports.FarAwayMessage = FarAwayMessage;
125
130
  var Divider = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n border: 1px solid #DEE2E6;\n height: 100%;\n"])));
@@ -130,7 +135,13 @@ var InputGroup = _styledComponents.default.div(_templateObject30 || (_templateOb
130
135
  return props.theme.colors.darkTextColor;
131
136
  });
132
137
  exports.InputGroup = InputGroup;
133
- var LanguageSelectorWrapper = (0, _styledComponents.default)(InputGroup)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n > div {\n border-radius: 7.6px;\n text-align: left;\n background: #F8F9FA !important;\n border-color: #F8F9FA;\n background-color: #F8F9FA !important;\n height: 44px;\n\n > div:first-child {\n height: 44px;\n }\n\n #list {\n border-radius: 7.6px;\n background: #F8F9FA !important;\n border-color: #F8F9FA;\n }\n }\n #select-input {\n margin: 0px 10px 0 5px;\n }\n"])));
138
+ var LanguageSelectorWrapper = (0, _styledComponents.default)(InputGroup)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n > div {\n border-radius: 7.6px;\n text-align: left;\n background: #F8F9FA !important;\n border-color: #F8F9FA;\n background-color: #F8F9FA !important;\n height: 44px;\n > div:first-child {\n height: 44px;\n }\n #list {\n border-radius: 7.6px;\n background: #F8F9FA !important;\n border-color: #F8F9FA;\n }\n }\n #select-input {\n margin: 0px 10px 0 5px;\n }\n"])));
134
139
  exports.LanguageSelectorWrapper = LanguageSelectorWrapper;
135
140
  var HeaderSearchMode = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n width: 300px;\n input {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n @media (min-width: 1400px){\n width: 300px;\n }\n @media (min-width: 1200px){\n width: 250px;\n }\n"])));
136
- exports.HeaderSearchMode = HeaderSearchMode;
141
+ exports.HeaderSearchMode = HeaderSearchMode;
142
+ var LeftSide = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n @media (min-width: 769px){\n flex-direction: ", ";\n width: 60%;\n }\n"])), function (_ref10) {
143
+ var _theme$header5, _theme$header5$compon, _theme$header5$compon2, _theme$header5$compon3, _theme$header5$compon4;
144
+ var theme = _ref10.theme;
145
+ return (theme === null || theme === void 0 ? void 0 : (_theme$header5 = theme.header) === null || _theme$header5 === void 0 ? void 0 : (_theme$header5$compon = _theme$header5.components) === null || _theme$header5$compon === void 0 ? void 0 : (_theme$header5$compon2 = _theme$header5$compon.logo) === null || _theme$header5$compon2 === void 0 ? void 0 : (_theme$header5$compon3 = _theme$header5$compon2.components) === null || _theme$header5$compon3 === void 0 ? void 0 : (_theme$header5$compon4 = _theme$header5$compon3.layout) === null || _theme$header5$compon4 === void 0 ? void 0 : _theme$header5$compon4.position) === 'center' ? 'row-reverse' : 'row';
146
+ });
147
+ exports.LeftSide = LeftSide;
@@ -54,10 +54,11 @@ var HeaderOption = function HeaderOption(props) {
54
54
  onClick: function onClick() {
55
55
  return props.onClick(variant);
56
56
  },
57
- isHome: props.isHome
57
+ isHome: props.isHome,
58
+ style: props.containerStyle
58
59
  }, variant === 'cart' && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_AiOutlineShoppingCart.default, {
59
60
  id: "icon"
60
- }), totalCarts > 0 && /*#__PURE__*/_react.default.createElement("span", null, totalCarts)), variant === 'address' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_FaMapMarkerAlt.default, {
61
+ }), totalCarts > 0 && /*#__PURE__*/_react.default.createElement("span", null, totalCarts)), variant === 'address' && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_FaMapMarkerAlt.default, {
61
62
  id: "icon"
62
63
  }), addressState || t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')), variant === 'moment' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, momentState ? parseDate(momentState, {
63
64
  outputFormat: configs === null || configs === void 0 ? void 0 : (_configs$dates_moment = configs.dates_moment_format) === null || _configs$dates_moment === void 0 ? void 0 : _configs$dates_moment.value
@@ -33,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
33
33
  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; } }
34
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
35
  var OriginalHomeHero = function OriginalHomeHero(props) {
36
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _configs$powered_by_o, _theme$images, _theme$images$general, _theme$images2, _theme$images2$genera, _theme$images3, _theme$images3$logos, _theme$defaultLanguag, _theme$defaultLanguag2, _orderState$options3, _orderState$options3$, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _orderState$options4, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10;
36
+ var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _configs$powered_by_o, _theme$images, _theme$images$general, _theme$images2, _theme$images2$genera, _theme$images3, _theme$images3$logos, _theme$defaultLanguag, _theme$defaultLanguag2, _orderState$options3, _orderState$options3$, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _orderState$options4, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10;
37
37
  var onFindBusiness = props.onFindBusiness;
38
38
  var _useSession = (0, _orderingComponentsExternal.useSession)(),
39
39
  _useSession2 = _slicedToArray(_useSession, 2),
@@ -78,6 +78,7 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
78
78
  var logo = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme9 = orderingTheme.theme) === null || _orderingTheme$theme9 === void 0 ? void 0 : (_orderingTheme$theme10 = _orderingTheme$theme9.my_products) === null || _orderingTheme$theme10 === void 0 ? void 0 : (_orderingTheme$theme11 = _orderingTheme$theme10.components) === null || _orderingTheme$theme11 === void 0 ? void 0 : (_orderingTheme$theme12 = _orderingTheme$theme11.images) === null || _orderingTheme$theme12 === void 0 ? void 0 : (_orderingTheme$theme13 = _orderingTheme$theme12.components) === null || _orderingTheme$theme13 === void 0 ? void 0 : (_orderingTheme$theme14 = _orderingTheme$theme13.logo) === null || _orderingTheme$theme14 === void 0 ? void 0 : (_orderingTheme$theme15 = _orderingTheme$theme14.components) === null || _orderingTheme$theme15 === void 0 ? void 0 : _orderingTheme$theme15.image;
79
79
  var mobileBgImg = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme16 = orderingTheme.theme) === null || _orderingTheme$theme16 === void 0 ? void 0 : (_orderingTheme$theme17 = _orderingTheme$theme16.my_products) === null || _orderingTheme$theme17 === void 0 ? void 0 : (_orderingTheme$theme18 = _orderingTheme$theme17.components) === null || _orderingTheme$theme18 === void 0 ? void 0 : (_orderingTheme$theme19 = _orderingTheme$theme18.images) === null || _orderingTheme$theme19 === void 0 ? void 0 : (_orderingTheme$theme20 = _orderingTheme$theme19.components) === null || _orderingTheme$theme20 === void 0 ? void 0 : (_orderingTheme$theme21 = _orderingTheme$theme20.homepage_mobile_background) === null || _orderingTheme$theme21 === void 0 ? void 0 : (_orderingTheme$theme22 = _orderingTheme$theme21.components) === null || _orderingTheme$theme22 === void 0 ? void 0 : _orderingTheme$theme22.image;
80
80
  var isFullScreen = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme23 = orderingTheme.theme) === null || _orderingTheme$theme23 === void 0 ? void 0 : (_orderingTheme$theme24 = _orderingTheme$theme23.my_products) === null || _orderingTheme$theme24 === void 0 ? void 0 : (_orderingTheme$theme25 = _orderingTheme$theme24.components) === null || _orderingTheme$theme25 === void 0 ? void 0 : (_orderingTheme$theme26 = _orderingTheme$theme25.images) === null || _orderingTheme$theme26 === void 0 ? void 0 : (_orderingTheme$theme27 = _orderingTheme$theme26.components) === null || _orderingTheme$theme27 === void 0 ? void 0 : _orderingTheme$theme27.homepage_image_fullscreen;
81
+ var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme28 = orderingTheme.theme) === null || _orderingTheme$theme28 === void 0 ? void 0 : (_orderingTheme$theme29 = _orderingTheme$theme28.header) === null || _orderingTheme$theme29 === void 0 ? void 0 : (_orderingTheme$theme30 = _orderingTheme$theme29.components) === null || _orderingTheme$theme30 === void 0 ? void 0 : (_orderingTheme$theme31 = _orderingTheme$theme30.layout) === null || _orderingTheme$theme31 === void 0 ? void 0 : (_orderingTheme$theme32 = _orderingTheme$theme31.type) === null || _orderingTheme$theme32 === void 0 ? void 0 : _orderingTheme$theme32.toLowerCase()) === 'chew';
81
82
  var enabledPoweredByOrdering = configs === null || configs === void 0 ? void 0 : (_configs$powered_by_o = configs.powered_by_ordering_module) === null || _configs$powered_by_o === void 0 ? void 0 : _configs$powered_by_o.value;
82
83
  var handleFindBusinesses = function handleFindBusinesses() {
83
84
  var _orderState$options, _orderState$options$a;
@@ -151,7 +152,7 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
151
152
  mb: !auth && isShowLoginAccount && '30vh',
152
153
  bgimage: windowSize.width < 576 ? mobileBgImg || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.homeHeroMobile) : bgImg || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.homeHero),
153
154
  isFullScreen: isFullScreen
154
- }, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_styles.LogoWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
155
+ }, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, windowSize.width < 576 && !isChew && /*#__PURE__*/_react.default.createElement(_styles.LogoWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
155
156
  alt: "Logotype",
156
157
  src: logo || (theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$logos = _theme$images3.logos) === null || _theme$images3$logos === void 0 ? void 0 : _theme$images3$logos.logotypeInvert),
157
158
  loading: "lazy"
@@ -41,7 +41,7 @@ var mapConfigs = {
41
41
  }
42
42
  };
43
43
  var MultiCheckoutUI = function MultiCheckoutUI(props) {
44
- var _paymethodSelected$pa, _Object$values, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _configs$google_maps_, _customerState$user, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _openCarts$, _openCarts$2;
44
+ var _paymethodSelected$pa, _Object$values, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _configs$driver_tip_o, _configs$multi_busine, _configs$driver_tip_o2, _configs$driver_tip_o3, _configs$google_maps_, _customerState$user, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _openCarts$, _openCarts$2, _configs$multi_busine4, _configs$multi_busine5;
45
45
  var placing = props.placing,
46
46
  isCustomerMode = props.isCustomerMode,
47
47
  openCarts = props.openCarts,
@@ -53,7 +53,8 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
53
53
  handlePaymethodDataChange = props.handlePaymethodDataChange,
54
54
  onRedirectPage = props.onRedirectPage,
55
55
  cartGroup = props.cartGroup,
56
- cartUuid = props.cartUuid;
56
+ cartUuid = props.cartUuid,
57
+ totalCartsFee = props.totalCartsFee;
57
58
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
58
59
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
59
60
  t = _useLanguage2[1];
@@ -94,14 +95,14 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
94
95
  _useState6 = _slicedToArray(_useState5, 2),
95
96
  alertState = _useState6[0],
96
97
  setAlertState = _useState6[1];
97
- var maximumCarts = 5;
98
- var isDisablePlaceOrderButton = !(paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.paymethod_id || paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.wallet_id) || openCarts.length > maximumCarts || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$pa = paymethodSelected.paymethod) === null || _paymethodSelected$pa === void 0 ? void 0 : _paymethodSelected$pa.gateway) === 'stripe' && !(paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.paymethod_data);
98
+ var isDisablePlaceOrderButton = !(paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.paymethod_id || paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.wallet_id) || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$pa = paymethodSelected.paymethod) === null || _paymethodSelected$pa === void 0 ? void 0 : _paymethodSelected$pa.gateway) === 'stripe' && !(paymethodSelected !== null && paymethodSelected !== void 0 && paymethodSelected.paymethod_data);
99
99
  var walletCarts = ((_Object$values = Object.values(orderState === null || orderState === void 0 ? void 0 : orderState.carts)) === null || _Object$values === void 0 ? void 0 : _Object$values.filter(function (cart) {
100
100
  var _cart$products;
101
101
  return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0 ? void 0 : (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (cart === null || cart === void 0 ? void 0 : cart.valid_schedule) && (cart === null || cart === void 0 ? void 0 : cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.valid_maximum) && (cart === null || cart === void 0 ? void 0 : cart.valid_minimum) && (cart === null || cart === void 0 ? void 0 : cart.wallets);
102
102
  })) || null || [];
103
103
  var isMultiDriverTips = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
104
- var driverTipsOptions = typeof (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
104
+ var driverTipsOptions = typeof (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string';
105
+ var totalFeeEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine = configs.multi_business_checkout_show_combined_delivery_fee) === null || _configs$multi_busine === void 0 ? void 0 : _configs$multi_busine.value) === '1' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
105
106
  var handlePlaceOrder = function handlePlaceOrder() {
106
107
  if (!userErrors.length) {
107
108
  handleGroupPlaceOrder && handleGroupPlaceOrder();
@@ -159,12 +160,12 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
159
160
  }
160
161
  }, [validationFields, user, customerState]);
161
162
  (0, _react.useEffect)(function () {
162
- if (openCarts.length) return;
163
+ if (openCarts.length || cartGroup.loading) return;
163
164
  onRedirectPage && onRedirectPage({
164
165
  page: 'search'
165
166
  });
166
- }, [openCarts]);
167
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, openCarts.length === 0 ? /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
167
+ }, [openCarts, cartGroup]);
168
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !(cartGroup !== null && cartGroup !== void 0 && cartGroup.loading) && openCarts.length === 0 ? /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
168
169
  content: t('CARTS_NOT_FOUND', 'You don’t have carts available')
169
170
  }) : /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperLeftContainer, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperLeftContent, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ArrowLeft, {
170
171
  className: "back-arrow",
@@ -209,20 +210,28 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
209
210
  driverTip: parseInt(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_t2 = configs.driver_tip_type) === null || _configs$driver_tip_t2 === void 0 ? void 0 : _configs$driver_tip_t2.value, 10) === 1 ? (_openCarts$ = openCarts[0]) === null || _openCarts$ === void 0 ? void 0 : _openCarts$.driver_tip : (_openCarts$2 = openCarts[0]) === null || _openCarts$2 === void 0 ? void 0 : _openCarts$2.driver_tip_rate,
210
211
  useOrderContext: true
211
212
  })))), /*#__PURE__*/_react.default.createElement(_styles.WrapperRightContainer, null, /*#__PURE__*/_react.default.createElement(_styles.CartContainer, null, /*#__PURE__*/_react.default.createElement(_styles.CartHeader, null, /*#__PURE__*/_react.default.createElement("h1", null, t('MOBILE_FRONT_YOUR_ORDER', 'Your order'))), openCarts.map(function (cart) {
212
- var _cart$products2;
213
+ var _cart$products2, _configs$multi_busine2, _configs$multi_busine3;
213
214
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
214
215
  key: cart.uuid
215
216
  }, /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
216
217
  isCartPending: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
217
218
  cart: cart,
218
- isMultiCheckout: !isMultiDriverTips,
219
- isProducts: (cart === null || cart === void 0 ? void 0 : (_cart$products2 = cart.products) === null || _cart$products2 === void 0 ? void 0 : _cart$products2.length) || 0
219
+ isMultiCheckout: isMultiDriverTips,
220
+ isProducts: (cart === null || cart === void 0 ? void 0 : (_cart$products2 = cart.products) === null || _cart$products2 === void 0 ? void 0 : _cart$products2.length) || 0,
221
+ hideDeliveryFee: (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine2 = configs.multi_business_checkout_show_combined_delivery_fee) === null || _configs$multi_busine2 === void 0 ? void 0 : _configs$multi_busine2.value) === '1',
222
+ hideDriverTip: (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine3 = configs.multi_business_checkout_show_combined_driver_tip) === null || _configs$multi_busine3 === void 0 ? void 0 : _configs$multi_busine3.value) === '1'
220
223
  }), /*#__PURE__*/_react.default.createElement(_styles.DriverTipDivider, null));
221
- }), walletCarts.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.WarningText, null, t('WARNING_PARTIAL_WALLET_CARTS', 'Important: One or more carts can`t be completed due a partial payment with cash/points wallet and requires to be paid individually')), openCarts.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.MultiCartPriceContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h4", null, t('TOTAL_FOR_ALL_CARTS', 'Total for all Carts')), /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(totalCartsPrice))), /*#__PURE__*/_react.default.createElement("p", null, t('MULTI_CHECKOUT_DESCRIPTION', 'You will receive a receipt for each business. The payment is not combined between multiple stores. Each payment is processed by the store')))), /*#__PURE__*/_react.default.createElement(_styles.WrapperPlaceOrderButton, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
224
+ }), walletCarts.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.WarningText, null, t('WARNING_PARTIAL_WALLET_CARTS', 'Important: One or more carts can`t be completed due a partial payment with cash/points wallet and requires to be paid individually')), openCarts.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.MultiCartPriceContainer, {
225
+ totalFeeEnabled: totalFeeEnabled
226
+ }, totalCartsFee && (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine4 = configs.multi_business_checkout_show_combined_delivery_fee) === null || _configs$multi_busine4 === void 0 ? void 0 : _configs$multi_busine4.value) === '1' && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("p", null, t('TOTAL_DELIVERY_FEE', 'Total delivery fee')), /*#__PURE__*/_react.default.createElement("p", null, parsePrice(totalCartsFee))), openCarts.reduce(function (sum, cart) {
227
+ return sum + (cart === null || cart === void 0 ? void 0 : cart.driver_tip);
228
+ }, 0) > 0 && (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine5 = configs.multi_business_checkout_show_combined_driver_tip) === null || _configs$multi_busine5 === void 0 ? void 0 : _configs$multi_busine5.value) === '1' && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("p", null, t('DRIVER_TIP', 'Driver tip')), /*#__PURE__*/_react.default.createElement("p", null, parsePrice(openCarts.reduce(function (sum, cart) {
229
+ return sum + (cart === null || cart === void 0 ? void 0 : cart.driver_tip);
230
+ }, 0)))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h4", null, t('TOTAL_FOR_ALL_CARTS', 'Total for all Carts')), /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(totalCartsPrice))), /*#__PURE__*/_react.default.createElement("p", null, t('MULTI_CHECKOUT_DESCRIPTION', 'You will receive a receipt for each business. The payment is not combined between multiple stores. Each payment is processed by the store')))), /*#__PURE__*/_react.default.createElement(_styles.WrapperPlaceOrderButton, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
222
231
  color: "primary",
223
232
  disabled: isDisablePlaceOrderButton || placing || (cartGroup === null || cartGroup === void 0 ? void 0 : cartGroup.loading),
224
233
  onClick: handlePlaceOrder
225
- }, placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order'))), openCarts.length > maximumCarts && /*#__PURE__*/_react.default.createElement(_styles.WarningText, null, t('WARNING_MAXIMUM_CARTS', 'You can only pay for a maximum of 5 carts, please discard one or more to continue.'))), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
234
+ }, placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order')))), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
226
235
  title: t('CHECKOUT ', 'Checkout'),
227
236
  content: alertState.content,
228
237
  acceptText: t('ACCEPT', 'Accept'),
@@ -8,16 +8,16 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
11
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n flex-direction: column;\n min-height: auto;\n\n @media (min-width: 769px) {\n flex-direction: row;\n }\n\n @media (min-width: 993px) {\n min-height: calc(100vh - 337px);\n box-sizing: border-box;\n }\n"])));
11
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n flex-direction: column;\n min-height: auto;\n @media (min-width: 769px) {\n flex-direction: row;\n }\n @media (min-width: 993px) {\n min-height: calc(100vh - 337px);\n box-sizing: border-box;\n }\n"])));
12
12
  exports.Container = Container;
13
- var WrapperLeftContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n box-sizing: border-box;\n padding: 30px 20px;\n\n @media (min-width: 769px) {\n width: 55%;\n padding: 30px 60px 55px 40px;\n }\n"])));
13
+ var WrapperLeftContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n box-sizing: border-box;\n padding: 30px 20px;\n @media (min-width: 769px) {\n width: 55%;\n padding: 30px 60px 55px 40px;\n }\n"])));
14
14
  exports.WrapperLeftContainer = WrapperLeftContainer;
15
- var WrapperLeftContent = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n\n .checkout-title {\n margin: 0;\n font-weight: 600;\n font-size: 32px;\n color: ", ";\n }\n\n .back-arrow {\n font-size: 24px;\n cursor: pointer;\n margin-bottom: 5px;\n }\n"])), function (props) {
15
+ var WrapperLeftContent = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n .checkout-title {\n margin: 0;\n font-weight: 600;\n font-size: 32px;\n color: ", ";\n }\n .back-arrow {\n font-size: 24px;\n cursor: pointer;\n margin-bottom: 5px;\n }\n"])), function (props) {
16
16
  var _props$theme;
17
17
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.colors.darkTextColor;
18
18
  });
19
19
  exports.WrapperLeftContent = WrapperLeftContent;
20
- var WrapperRightContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n background: #F8F9FA;\n box-sizing: border-box;\n padding: 40px 20px;\n\n @media (min-width: 769px) {\n width: 45%;\n padding: 55px 40px;\n }\n"])));
20
+ var WrapperRightContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n background: #F8F9FA;\n box-sizing: border-box;\n padding: 40px 20px;\n @media (min-width: 769px) {\n width: 45%;\n padding: 55px 40px;\n }\n"])));
21
21
  exports.WrapperRightContainer = WrapperRightContainer;
22
22
  var PaymentMethodContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin: 20px 0px 0px;\n h1 {\n margin: 0px;\n font-weight: 500;\n font-size: 20px;\n color: ", ";\n }\n"])), function (props) {
23
23
  return props.theme.colors.darkTextColor;
@@ -29,11 +29,14 @@ var DriverTipContainer = _styledComponents.default.div(_templateObject6 || (_tem
29
29
  exports.DriverTipContainer = DriverTipContainer;
30
30
  var CartContainer = (0, _styledComponents.default)(PaymentMethodContainer)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-bottom: 20px;\n"])));
31
31
  exports.CartContainer = CartContainer;
32
- var CartHeader = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n flex-direction: column;\n\n h1 {\n font-weight: 600;\n font-size: 20px;\n line-height: 30px;\n }\n\n h1 {\n margin: 5px 0px;\n }\n\n @media (min-width: 300px) {\n flex-direction: row;\n align-items: center;\n }\n"])));
32
+ var CartHeader = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n flex-direction: column;\n h1 {\n font-weight: 600;\n font-size: 20px;\n line-height: 30px;\n }\n h1 {\n margin: 5px 0px;\n }\n @media (min-width: 300px) {\n flex-direction: row;\n align-items: center;\n }\n"])));
33
33
  exports.CartHeader = CartHeader;
34
- var DriverTipDivider = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 8px;\n width: calc(100% + 40px);\n margin-left: -20px;\n background: #E9ECEF;\n\n @media(min-width: 769px) {\n width: calc(100% + 80px);\n margin-left: -40px;\n }\n"])));
34
+ var DriverTipDivider = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 8px;\n width: calc(100% + 40px);\n margin-left: -20px;\n background: #E9ECEF;\n @media(min-width: 769px) {\n width: calc(100% + 80px);\n margin-left: -40px;\n }\n"])));
35
35
  exports.DriverTipDivider = DriverTipDivider;
36
- var MultiCartPriceContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 38px;\n margin-bottom: 5px;\n > h4 {\n font-size: 18px;\n margin: 0;\n }\n }\n p {\n font-size: 14px;\n color: ", ";\n margin: 0;\n }\n"])), function (props) {
36
+ var MultiCartPriceContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: 38px;\n > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: ", ";\n margin-bottom: 5px;\n > h4 {\n font-size: 18px;\n margin: 0;\n }\n }\n > span {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 5px;\n }\n p {\n font-size: 14px;\n color: ", ";\n margin: 0;\n }\n"])), function (_ref) {
37
+ var totalFeeEnabled = _ref.totalFeeEnabled;
38
+ return totalFeeEnabled ? '5px' : '38px';
39
+ }, function (props) {
37
40
  return props.theme.colors.darkGray;
38
41
  });
39
42
  exports.MultiCartPriceContainer = MultiCartPriceContainer;
@@ -41,7 +44,7 @@ var WrapperUserDetails = _styledComponents.default.div(_templateObject11 || (_te
41
44
  exports.WrapperUserDetails = WrapperUserDetails;
42
45
  var UserDetailsContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin-top: 25px;\n flex-wrap: wrap;\n padding-bottom: 20px;\n border-bottom: 1px solid #E9ECEF;\n"])));
43
46
  exports.UserDetailsContainer = UserDetailsContainer;
44
- var WrapperPlaceOrderButton = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n justify-content: center;\n\n button {\n width: 100%;\n padding: 5px 20px;\n cursor: pointer;\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n }\n"])));
47
+ var WrapperPlaceOrderButton = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n justify-content: center;\n button {\n width: 100%;\n padding: 5px 20px;\n cursor: pointer;\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n }\n"])));
45
48
  exports.WrapperPlaceOrderButton = WrapperPlaceOrderButton;
46
49
  var WarningText = _styledComponents.default.p(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin: 10px auto;\n text-align: center;\n color: ", ";\n font-size: 14px;\n"])), function (props) {
47
50
  return props.theme.colors.danger500;