ordering-ui-external 1.7.2 → 1.8.1

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 (171) hide show
  1. package/_bundles/{0.ordering-ui.f9c3deec77a8e21645ed.js → 0.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  2. package/_bundles/{1.ordering-ui.f9c3deec77a8e21645ed.js → 1.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  3. package/_bundles/2.ordering-ui.cf9ba81c5417ae8af84a.js +1 -0
  4. package/_bundles/{4.ordering-ui.f9c3deec77a8e21645ed.js → 4.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  5. package/_bundles/{5.ordering-ui.f9c3deec77a8e21645ed.js → 5.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  6. package/_bundles/{6.ordering-ui.f9c3deec77a8e21645ed.js → 6.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  7. package/_bundles/{7.ordering-ui.f9c3deec77a8e21645ed.js → 7.ordering-ui.cf9ba81c5417ae8af84a.js} +2 -2
  8. package/_bundles/{7.ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt → 7.ordering-ui.cf9ba81c5417ae8af84a.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.f9c3deec77a8e21645ed.js → 8.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  10. package/_bundles/{9.ordering-ui.f9c3deec77a8e21645ed.js → 9.ordering-ui.cf9ba81c5417ae8af84a.js} +1 -1
  11. package/_bundles/ordering-ui.cf9ba81c5417ae8af84a.js +2 -0
  12. package/_bundles/{ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt → ordering-ui.cf9ba81c5417ae8af84a.js.LICENSE.txt} +0 -0
  13. package/_modules/components/BusinessInformation/index.js +4 -8
  14. package/_modules/components/OrdersOption/styles.js +4 -2
  15. package/_modules/components/Pagination/index.js +100 -0
  16. package/_modules/components/Pagination/styles.js +56 -0
  17. package/_modules/components/SmartAppBanner/index.js +2 -1
  18. package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +92 -0
  19. package/_modules/components/VerticalOrdersLayout/index.js +115 -41
  20. package/_modules/components/VerticalOrdersLayout/styles.js +25 -11
  21. package/_modules/index.js +7 -0
  22. package/_modules/themes/five/src/components/AccordionDropdown/index.js +15 -4
  23. package/_modules/themes/five/src/components/AccordionDropdown/styles.js +14 -4
  24. package/_modules/themes/five/src/components/AddressList/styles.js +2 -2
  25. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +17 -10
  26. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -42
  27. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +5 -1
  28. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +0 -3
  29. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +22 -13
  30. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +15 -7
  31. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +3 -0
  32. package/_modules/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
  33. package/_modules/themes/five/src/components/BusinessesListing/index.js +6 -13
  34. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +66 -40
  35. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +13 -7
  36. package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +16 -7
  37. package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +21 -15
  38. package/_modules/themes/five/src/components/CardForm/index.js +17 -3
  39. package/_modules/themes/five/src/components/CardForm/styles.js +14 -6
  40. package/_modules/themes/five/src/components/CartPopover/index.js +6 -4
  41. package/_modules/themes/five/src/components/CartPopover/styles.js +4 -2
  42. package/_modules/themes/five/src/components/Footer/index.js +16 -6
  43. package/_modules/themes/five/src/components/Footer/styles.js +11 -9
  44. package/_modules/themes/five/src/components/Header/index.js +14 -9
  45. package/_modules/themes/five/src/components/Header/styles.js +64 -44
  46. package/_modules/themes/five/src/components/HeaderOption/index.js +9 -2
  47. package/_modules/themes/five/src/components/HeaderOption/styles.js +8 -2
  48. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +9 -3
  49. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +5 -3
  50. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +9 -19
  51. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +23 -19
  52. package/_modules/themes/five/src/components/InputPhoneNumber/index.js +1 -0
  53. package/_modules/themes/five/src/components/LoginForm/index.js +3 -2
  54. package/_modules/themes/five/src/components/MyOrders/index.js +24 -56
  55. package/_modules/themes/five/src/components/MyOrders/styles.js +1 -1
  56. package/_modules/themes/five/src/components/OrderDetails/index.js +5 -2
  57. package/_modules/themes/five/src/components/OrderDetails/styles.js +24 -24
  58. package/_modules/themes/five/src/components/OrderItAgain/styles.js +6 -2
  59. package/_modules/themes/five/src/components/OrdersOption/index.js +18 -18
  60. package/_modules/themes/five/src/components/OrdersOption/styles.js +2 -2
  61. package/_modules/themes/five/src/components/PageBanner/index.js +50 -0
  62. package/_modules/themes/five/src/components/PageBanner/styles.js +18 -0
  63. package/_modules/themes/five/src/components/Pagination/index.js +99 -0
  64. package/_modules/themes/five/src/components/Pagination/styles.js +56 -0
  65. package/_modules/themes/five/src/components/ProductForm/index.js +39 -23
  66. package/_modules/themes/five/src/components/ProductForm/styles.js +74 -38
  67. package/_modules/themes/five/src/components/Promotions/index.js +7 -2
  68. package/_modules/themes/five/src/components/Promotions/styles.js +16 -14
  69. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +31 -10
  70. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +19 -11
  71. package/_modules/themes/five/src/components/SidebarMenu/styles.js +1 -1
  72. package/_modules/themes/five/src/components/SignUpForm/index.js +3 -2
  73. package/_modules/themes/five/src/components/SingleOrderCard/index.js +7 -17
  74. package/_modules/themes/five/src/components/SingleProductCard/index.js +7 -298
  75. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +310 -0
  76. package/_modules/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +37 -33
  77. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +305 -0
  78. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +143 -0
  79. package/_modules/themes/five/src/components/StripeElementsForm/index.js +1 -0
  80. package/_modules/themes/five/src/components/UserPopover/index.js +3 -1
  81. package/_modules/themes/five/src/components/UserPopover/styles.js +4 -3
  82. package/_modules/themes/five/src/components/UserProfileForm/styles.js +5 -8
  83. package/_modules/themes/six/src/components/BusinessController/index.js +81 -15
  84. package/_modules/themes/six/src/components/BusinessController/styles.js +58 -30
  85. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -3
  86. package/_modules/themes/six/src/components/BusinessesMap/styles.js +1 -1
  87. package/_modules/themes/six/src/components/SearchBar/index.js +19 -10
  88. package/_modules/themes/six/src/components/SearchBar/styles.js +44 -16
  89. package/index-template.js +3 -1
  90. package/package.json +2 -2
  91. package/src/components/BusinessInformation/index.js +3 -8
  92. package/src/components/OrdersOption/styles.js +5 -5
  93. package/src/components/Pagination/index.js +107 -0
  94. package/src/components/Pagination/styles.js +106 -0
  95. package/src/components/SmartAppBanner/index.js +1 -0
  96. package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +89 -0
  97. package/src/components/VerticalOrdersLayout/index.js +86 -48
  98. package/src/components/VerticalOrdersLayout/styles.js +66 -22
  99. package/src/index.js +2 -0
  100. package/src/themes/five/src/components/AccordionDropdown/index.js +19 -6
  101. package/src/themes/five/src/components/AccordionDropdown/styles.js +25 -1
  102. package/src/themes/five/src/components/AddressList/styles.js +2 -0
  103. package/src/themes/five/src/components/BusinessBasicInformation/index.js +21 -11
  104. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +9 -3
  105. package/src/themes/five/src/components/BusinessListingSearch/index.js +1 -0
  106. package/src/themes/five/src/components/BusinessProductsCategories/index.js +0 -2
  107. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +23 -12
  108. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +12 -4
  109. package/src/themes/five/src/components/BusinessProductsListing/index.js +3 -0
  110. package/src/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
  111. package/src/themes/five/src/components/BusinessesListing/index.js +5 -5
  112. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +54 -25
  113. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -26
  114. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +19 -6
  115. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +38 -3
  116. package/src/themes/five/src/components/CardForm/index.js +49 -8
  117. package/src/themes/five/src/components/CardForm/styles.js +20 -2
  118. package/src/themes/five/src/components/CartPopover/index.js +2 -1
  119. package/src/themes/five/src/components/CartPopover/styles.js +3 -3
  120. package/src/themes/five/src/components/Footer/index.js +15 -6
  121. package/src/themes/five/src/components/Footer/styles.js +15 -14
  122. package/src/themes/five/src/components/Header/index.js +6 -4
  123. package/src/themes/five/src/components/Header/styles.js +14 -11
  124. package/src/themes/five/src/components/HeaderOption/index.js +13 -10
  125. package/src/themes/five/src/components/HeaderOption/styles.js +2 -2
  126. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +22 -10
  127. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +8 -0
  128. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +24 -36
  129. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +12 -1
  130. package/src/themes/five/src/components/InputPhoneNumber/index.js +1 -0
  131. package/src/themes/five/src/components/LoginForm/index.js +2 -1
  132. package/src/themes/five/src/components/MyOrders/index.js +20 -62
  133. package/src/themes/five/src/components/MyOrders/styles.js +1 -2
  134. package/src/themes/five/src/components/OrderDetails/index.js +9 -0
  135. package/src/themes/five/src/components/OrderDetails/styles.js +0 -55
  136. package/src/themes/five/src/components/OrderItAgain/styles.js +18 -0
  137. package/src/themes/five/src/components/OrdersOption/index.js +10 -16
  138. package/src/themes/five/src/components/OrdersOption/styles.js +1 -3
  139. package/src/themes/five/src/components/PageBanner/index.js +58 -0
  140. package/src/themes/five/src/components/PageBanner/styles.js +58 -0
  141. package/src/themes/five/src/components/Pagination/index.js +106 -0
  142. package/src/themes/five/src/components/Pagination/styles.js +106 -0
  143. package/src/themes/five/src/components/ProductForm/index.js +108 -84
  144. package/src/themes/five/src/components/ProductForm/styles.js +94 -12
  145. package/src/themes/five/src/components/Promotions/index.js +22 -16
  146. package/src/themes/five/src/components/Promotions/styles.js +10 -4
  147. package/src/themes/five/src/components/RenderProductsLayout/index.js +94 -66
  148. package/src/themes/five/src/components/RenderProductsLayout/styles.js +23 -22
  149. package/src/themes/five/src/components/SidebarMenu/styles.js +1 -1
  150. package/src/themes/five/src/components/SignUpForm/index.js +2 -1
  151. package/src/themes/five/src/components/SingleOrderCard/index.js +0 -21
  152. package/src/themes/five/src/components/SingleProductCard/index.js +7 -300
  153. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +312 -0
  154. package/src/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +9 -6
  155. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +313 -0
  156. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +353 -0
  157. package/src/themes/five/src/components/StripeElementsForm/index.js +1 -0
  158. package/src/themes/five/src/components/UserPopover/index.js +2 -0
  159. package/src/themes/five/src/components/UserPopover/styles.js +2 -2
  160. package/src/themes/five/src/components/UserProfileForm/styles.js +3 -11
  161. package/src/themes/six/src/components/BusinessController/index.js +163 -62
  162. package/src/themes/six/src/components/BusinessController/styles.js +53 -14
  163. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -1
  164. package/src/themes/six/src/components/BusinessesMap/styles.js +1 -1
  165. package/src/themes/six/src/components/SearchBar/index.js +27 -8
  166. package/src/themes/six/src/components/SearchBar/styles.js +33 -2
  167. package/template/app.js +364 -364
  168. package/template/assets/images/chew_logo.png +0 -0
  169. package/template/components/HelmetTags/index.js +5 -4
  170. package/_bundles/2.ordering-ui.f9c3deec77a8e21645ed.js +0 -1
  171. package/_bundles/ordering-ui.f9c3deec77a8e21645ed.js +0 -2
@@ -4,38 +4,44 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapperSearch = exports.PreviousOrders = exports.MapWrapper = exports.ListWrapper = exports.ErrorMessage = exports.BusinessesTitle = exports.BusinessList = exports.BusinessFilter = exports.BusinessContent = exports.BusinessContainer = void 0;
7
+ exports.WrapperSearch = exports.PreviousOrders = exports.MapWrapper = exports.ListWrapper = exports.ErrorMessage = exports.BusinessesTitle = exports.BusinessList = exports.BusinessFilter = exports.BusinessContent = exports.BusinessContainer = exports.AddressInput = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
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) } })); }
13
- var BusinessContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: 35px;\n box-shadow: 0px -2px 1px 0px lightgrey;\n"])));
13
+ var BusinessContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: 0;\n @media (min-width: 577px){\n margin-top: 35px\n }\n"])));
14
14
  exports.BusinessContainer = BusinessContainer;
15
15
  var BusinessList = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n"])));
16
16
  exports.BusinessList = BusinessList;
17
- var WrapperSearch = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n \n @media (min-width: 850px) {\n width: 100%;\n }\n \n ", "\n"])), function (_ref) {
18
- var isCustomLayout = _ref.isCustomLayout;
19
- return isCustomLayout && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin: 0 auto;\n margin-top: 10px;\n margin-bottom: 20px;\n width: 100%; \n padding: 0 20px;\n svg {\n font-size: 26px;\n color: ", ";\n margin-left: 10px;\n cursor: pointer;\n }\n @media(min-width: 681px){\n width: 75%;\n padding: 0;\n }\n @media(min-width: 1201px){\n width: 50%;\n }\n "])), function (props) {
17
+ var WrapperSearch = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 15px 10px 15px 25px;\n input {\n border-bottom: 1px solid #ccc;\n }\n svg{\n ", "\n }\n @media (min-width: 850px) {\n width: 100%;\n box-shadow: 0px -2px 1px 4px lightgrey;\n }\n \n \n ", "\n"])), function (_ref) {
18
+ var _theme$business_listi, _theme$business_listi2, _theme$business_listi3;
19
+ var theme = _ref.theme;
20
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_listi = theme.business_listing_view) === null || _theme$business_listi === void 0 ? void 0 : (_theme$business_listi2 = _theme$business_listi.components) === null || _theme$business_listi2 === void 0 ? void 0 : (_theme$business_listi3 = _theme$business_listi2.layout) === null || _theme$business_listi3 === void 0 ? void 0 : _theme$business_listi3.type) === 'mapview' && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: 5px;\n transform: translateY(70%);\n cursor: pointer;\n "])));
21
+ }, function (_ref2) {
22
+ var isCustomLayout = _ref2.isCustomLayout;
23
+ return isCustomLayout && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin: 0 auto;\n margin-top: 10px;\n margin-bottom: 20px;\n width: 100%; \n padding: 0 20px;\n svg {\n font-size: 26px;\n color: ", ";\n margin-left: 10px;\n cursor: pointer;\n }\n @media(min-width: 681px){\n width: 75%;\n padding: 0;\n }\n @media(min-width: 1201px){\n width: 50%;\n }\n "])), function (props) {
20
24
  var _props$theme, _props$theme$colors;
21
25
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$colors = _props$theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.primary;
22
26
  });
23
27
  });
24
28
  exports.WrapperSearch = WrapperSearch;
25
- var ErrorMessage = _styledComponents.default.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: 20px;\n width: 100%;\n background-color: #CCCCCC;\n margin: 0px 15px;\n color: #D81313;\n font-weight: bold;\n"])));
29
+ var ErrorMessage = _styledComponents.default.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: 20px;\n width: 100%;\n background-color: #CCCCCC;\n margin: 0px 15px;\n color: #D81313;\n font-weight: bold;\n"])));
26
30
  exports.ErrorMessage = ErrorMessage;
27
- var PreviousOrders = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin: 10px 20px 0px;\n"])));
31
+ var PreviousOrders = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin: 10px 20px 0px;\n"])));
28
32
  exports.PreviousOrders = PreviousOrders;
29
- var BusinessesTitle = _styledComponents.default.h1(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: 18px;\n margin: 0px 20px;\n"])));
33
+ var BusinessesTitle = _styledComponents.default.h1(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 18px;\n margin: 0px 20px;\n"])));
30
34
  exports.BusinessesTitle = BusinessesTitle;
31
- var BusinessContent = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n overflow: hidden;\n position: relative;\n z-index: 1;\n @media(min-width: 850px){\n flex-direction: row;\n height: 100vh;\n }\n"])));
35
+ var BusinessContent = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n overflow: hidden;\n position: relative;\n z-index: 1;\n @media(min-width: 850px){\n flex-direction: row;\n height: 100vh;\n }\n"])));
32
36
  exports.BusinessContent = BusinessContent;
33
- var ListWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column; \n min-height: 70vh;\n overflow: auto;\n box-shadow: 0 -2px 4px 0 rgb(0 0 0 / 12%);\n @media(min-width: 850px){\n width: 40vw;\n }\n"])));
37
+ var ListWrapper = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column; \n min-height: 70vh;\n overflow: auto;\n box-shadow: 0 -2px 4px 0 rgb(0 0 0 / 12%);\n @media(min-width: 850px){\n width: 40vw;\n }\n"])));
34
38
  exports.ListWrapper = ListWrapper;
35
- var MapWrapper = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: relative;\n /* height: 100vh; */\n"])));
39
+ var MapWrapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n /* height: 100vh; */\n"])));
36
40
  exports.MapWrapper = MapWrapper;
37
- var BusinessFilter = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex; \n padding-left: 20px;\n ", "\n"])), function (props) {
41
+ var BusinessFilter = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex; \n padding-left: 20px;\n ", "\n"])), function (props) {
38
42
  var _props$theme2;
39
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding-right: 20px;\n "])));
43
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding-right: 20px;\n "])));
40
44
  });
41
- exports.BusinessFilter = BusinessFilter;
45
+ exports.BusinessFilter = BusinessFilter;
46
+ var AddressInput = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n border: 1px solid #ccc;\n padding: 10px 15px;\n margin: 20px;\n margin-bottom: 0;\n border-radius: 7.6px;\n cursor: pointer;\n p{\n margin: 0;\n margin-left: 35px\n }\n\n svg {\n position: absolute;\n width: 24px;\n height: 24px;\n }\n"])));
47
+ exports.AddressInput = AddressInput;
@@ -42,9 +42,14 @@ var CARD_ELEMENT_OPTIONS = {
42
42
  var CardFormUI = function CardFormUI(props) {
43
43
  var _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
44
44
  var error = props.error,
45
+ errorExpiry = props.errorExpiry,
46
+ errorCvc = props.errorCvc,
45
47
  loading = props.loading,
46
48
  handleSubmit = props.handleSubmit,
47
- handleChange = props.handleChange;
49
+ handleChange = props.handleChange,
50
+ isSplitForm = props.isSplitForm,
51
+ handleChangeExpiry = props.handleChangeExpiry,
52
+ handleChangeCvc = props.handleChangeCvc;
48
53
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
49
54
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
50
55
  t = _useLanguage2[1];
@@ -58,10 +63,19 @@ var CardFormUI = function CardFormUI(props) {
58
63
  }, props));
59
64
  }), /*#__PURE__*/_react.default.createElement(_styles.FormStripe, {
60
65
  onSubmit: handleSubmit
61
- }, /*#__PURE__*/_react.default.createElement(_styles.FormRow, null, /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardElement, {
66
+ }, /*#__PURE__*/_react.default.createElement(_styles.FormRow, null, !isSplitForm ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardElement, {
62
67
  options: CARD_ELEMENT_OPTIONS,
63
68
  onChange: handleChange
64
- }), /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, error)), /*#__PURE__*/_react.default.createElement(_styles.FormActions, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
69
+ }), /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, error)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.CardNumberField, null, /*#__PURE__*/_react.default.createElement("label", null, t('CARD_NUMBER', 'Card number')), /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardNumberElement, {
70
+ options: CARD_ELEMENT_OPTIONS,
71
+ onChange: handleChange
72
+ }), /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, error)), /*#__PURE__*/_react.default.createElement(_styles.CardExpiryCvcField, null, /*#__PURE__*/_react.default.createElement(_styles.CardExpiryField, null, /*#__PURE__*/_react.default.createElement("label", null, t('EXPIRE_DATE', 'Expire date')), /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardExpiryElement, {
73
+ options: CARD_ELEMENT_OPTIONS,
74
+ onChange: handleChangeExpiry
75
+ }), /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, errorExpiry)), /*#__PURE__*/_react.default.createElement(_styles.CardCvcField, null, /*#__PURE__*/_react.default.createElement("label", null, t('CVC', 'CVC')), /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardCvcElement, {
76
+ options: CARD_ELEMENT_OPTIONS,
77
+ onChange: handleChangeCvc
78
+ }), /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, errorCvc))))), /*#__PURE__*/_react.default.createElement(_styles.FormActions, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
65
79
  color: "primary",
66
80
  type: "submit",
67
81
  disabled: loading
@@ -4,20 +4,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.FormStripe = exports.FormRow = exports.FormActions = exports.ErrorMessage = void 0;
7
+ exports.FormStripe = exports.FormRow = exports.FormActions = exports.ErrorMessage = exports.CardNumberField = exports.CardExpiryField = exports.CardExpiryCvcField = exports.CardCvcField = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
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) } })); }
13
13
  var FormStripe = _styledComponents.default.form(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .StripeElement,\n .StripeElementIdeal {\n display: block;\n padding: 10px 14px;\n box-shadow: rgba(50, 50, 93, 0.14902) 0px 1px 3px,\n rgba(0, 0, 0, 0.0196078) 0px 1px 0px;\n border-radius: 4px;\n background: white;\n }\n\n .StripeElement--focus,\n .StripeElementIdeal--focus {\n box-shadow: rgba(50, 50, 93, 0.109804) 0px 4px 6px,\n rgba(0, 0, 0, 0.0784314) 0px 1px 3px;\n -webkit-transition: all 150ms ease;\n transition: all 150ms ease;\n }\n\n .StripeElement.loading {\n height: 41.6px;\n opacity: 0.6;\n }\n\n .StripeElementIdeal {\n padding: 0;\n }\n"])));
14
14
  exports.FormStripe = FormStripe;
15
- var FormRow = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n input {\n display: block;\n border: none;\n font-size: 18px;\n margin: 10px 0 20px 0;\n max-width: 100%;\n padding: 10px 14px;\n box-shadow: rgba(50, 50, 93, 0.14902) 0px 1px 3px,\n rgba(0, 0, 0, 0.0196078) 0px 1px 0px;\n border-radius: 4px;\n background: white;\n color: #424770;\n letter-spacing: 0.025em;\n width: 500px;\n }\n\n input::placeholder {\n color: #aab7c4;\n }\n"])));
15
+ var CardExpiryField = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: #ADB2B9;\n"])));
16
+ exports.CardExpiryField = CardExpiryField;
17
+ var CardCvcField = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: #ADB2B9;\n"])));
18
+ exports.CardCvcField = CardCvcField;
19
+ var CardNumberField = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n color: #ADB2B9;\n"])));
20
+ exports.CardNumberField = CardNumberField;
21
+ var CardExpiryCvcField = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 10px;\n"])));
22
+ exports.CardExpiryCvcField = CardExpiryCvcField;
23
+ var FormRow = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n input {\n display: block;\n border: none;\n font-size: 18px;\n margin: 10px 0 20px 0;\n max-width: 100%;\n padding: 10px 14px;\n box-shadow: rgba(50, 50, 93, 0.14902) 0px 1px 3px,\n rgba(0, 0, 0, 0.0196078) 0px 1px 0px;\n border-radius: 4px;\n background: white;\n color: #424770;\n letter-spacing: 0.025em;\n width: 500px;\n }\n\n input::placeholder {\n color: #aab7c4;\n }\n"])));
16
24
  exports.FormRow = FormRow;
17
- var ErrorMessage = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 16px;\n font-weight: bold;\n margin-top: 10px;\n margin-bottom: 20px;\n color: #D81212;\n margin: 10px 0px 0px 10px;\n ", " \n"])), function (props) {
25
+ var ErrorMessage = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: 16px;\n font-weight: bold;\n margin-top: 10px;\n margin-bottom: 20px;\n color: #D81212;\n margin: 10px 0px 0px 10px;\n ", "\n"])), function (props) {
18
26
  var _props$theme;
19
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 10px 10px 0px 0px \n "])));
27
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 10px 10px 0px 0px\n "])));
20
28
  });
21
29
  exports.ErrorMessage = ErrorMessage;
22
- var FormActions = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n margin-top: 20px;\n\n button {\n height: 44px;\n width: 100%;\n border-radius: 7.6px;\n\n &:disabled {\n opacity: 0.5;\n }\n }\n"])));
30
+ var FormActions = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n margin-top: 20px;\n\n button {\n height: 44px;\n width: 100%;\n border-radius: 7.6px;\n\n &:disabled {\n opacity: 0.5;\n }\n }\n"])));
23
31
  exports.FormActions = FormActions;
@@ -31,7 +31,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
31
31
  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; } }
32
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
33
  var CartPopover = function CartPopover(props) {
34
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _props$beforeElements, _props$beforeComponen, _props$carts, _props$carts2, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _props$afterComponent, _props$afterElements;
34
+ var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _props$beforeElements, _props$beforeComponen, _props$carts, _props$carts2, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _props$afterComponent, _props$afterElements;
35
35
  var open = props.open,
36
36
  auth = props.auth,
37
37
  location = props.location,
@@ -53,6 +53,7 @@ var CartPopover = function CartPopover(props) {
53
53
  var referenceElement = (0, _react.useRef)();
54
54
  var popperElement = (0, _react.useRef)();
55
55
  var arrowElement = (0, _react.useRef)();
56
+ 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$3.type) === 'Chew';
56
57
  var popper = (0, _reactPopper.usePopper)(referenceElement.current, popperElement.current, {
57
58
  placement: theme !== null && theme !== void 0 && theme.rtl ? 'bottom' : 'bottom-end',
58
59
  modifiers: [{
@@ -70,7 +71,7 @@ var CartPopover = function CartPopover(props) {
70
71
  var styles = popper.styles,
71
72
  attributes = popper.attributes,
72
73
  forceUpdate = popper.forceUpdate;
73
- var isSlideBar = (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.cart) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.open_strategy) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.type) === 'slide';
74
+ var isSlideBar = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.header) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.cart) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.open_strategy) === null || _orderingTheme$theme6 === void 0 ? void 0 : _orderingTheme$theme6.type) === 'slide';
74
75
  (0, _react.useEffect)(function () {
75
76
  // forceUpdate && forceUpdate()
76
77
  }, [open, orderState]);
@@ -137,13 +138,14 @@ var CartPopover = function CartPopover(props) {
137
138
  }, /*#__PURE__*/_react.default.createElement(_styles.HeaderItem, {
138
139
  ref: referenceElement,
139
140
  onClick: props.onClick,
140
- name: "cart-popover"
141
+ name: "cart-popover",
142
+ isChew: isChew
141
143
  }, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Cart3, null), ((_props$carts = props.carts) === null || _props$carts === void 0 ? void 0 : _props$carts.length) > 0 && /*#__PURE__*/_react.default.createElement("span", null, (_props$carts2 = props.carts) === null || _props$carts2 === void 0 ? void 0 : _props$carts2.length))), isSlideBar ? /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
142
144
  open: open,
143
145
  onClose: props.onClose,
144
146
  hideCloseDefault: true,
145
147
  isSlideBar: true,
146
- slideBarPosition: orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.header) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.cart) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.open_strategy) === null || _orderingTheme$theme6 === void 0 ? void 0 : _orderingTheme$theme6.position
148
+ slideBarPosition: orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme7 = orderingTheme.theme) === null || _orderingTheme$theme7 === void 0 ? void 0 : (_orderingTheme$theme8 = _orderingTheme$theme7.header) === null || _orderingTheme$theme8 === void 0 ? void 0 : (_orderingTheme$theme9 = _orderingTheme$theme8.components) === null || _orderingTheme$theme9 === void 0 ? void 0 : (_orderingTheme$theme10 = _orderingTheme$theme9.cart) === null || _orderingTheme$theme10 === void 0 ? void 0 : (_orderingTheme$theme11 = _orderingTheme$theme10.open_strategy) === null || _orderingTheme$theme11 === void 0 ? void 0 : _orderingTheme$theme11.position
147
149
  }, /*#__PURE__*/_react.default.createElement(_styles.TitleContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, t('MY_CART', 'My cart')), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
148
150
  outline: true,
149
151
  color: "primary",
@@ -10,8 +10,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
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) } })); }
13
- var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n > span {\n padding: 10px;\n display: flex;\n align-items: center;\n background: ", ";\n color: #FFFFFF;\n border-radius: 7.6px;\n\n span {\n margin: 0;\n font-size: 14px;\n ", " \n }\n svg {\n font-size: 16px;\n }\n }\n"])), function (props) {
14
- return props.theme.colors.primary;
13
+ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n > span {\n background: ", ";\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n border-radius: 7.6px;\n\n span {\n margin: 0;\n font-size: 14px;\n ", "\n }\n svg {\n font-size: 16px;\n }\n }\n"])), function (props) {
14
+ return !props.isChew ? props.theme.colors.primary : props.theme.colors.backgroundPage;
15
+ }, function (props) {
16
+ return !props.isChew ? props.theme.colors.backgroundPage : props.theme.colors.colorPage;
15
17
  }, function (props) {
16
18
  var _props$theme;
17
19
  return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 10px;\n "])));
@@ -24,8 +24,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
24
24
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
25
25
  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; } }
26
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
- var Footer = function Footer() {
28
- var _theme$my_products, _theme$my_products$co, _theme$my_products$co2, _theme$my_products$co3, _theme$my_products$co4;
27
+ var Footer = function Footer(_ref) {
28
+ var _theme$my_products, _theme$my_products$co, _theme$my_products$co2, _theme$my_products$co3, _theme$my_products$co4, _configs$powered_by_o;
29
+ var isFooterPage = _ref.isFooterPage;
29
30
  var _useState = (0, _react.useState)({
30
31
  body: null,
31
32
  loading: false,
@@ -41,9 +42,16 @@ var Footer = function Footer() {
41
42
  _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
42
43
  theme = _useOrderingTheme2[0].theme;
43
44
  var requestsState = {};
45
+ var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
46
+ _useConfig2 = _slicedToArray(_useConfig, 1),
47
+ configs = _useConfig2[0].configs;
48
+ var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
49
+ _useLanguage2 = _slicedToArray(_useLanguage, 2),
50
+ t = _useLanguage2[1];
44
51
  var footerContent = theme === null || theme === void 0 ? void 0 : (_theme$my_products = theme.my_products) === null || _theme$my_products === void 0 ? void 0 : (_theme$my_products$co = _theme$my_products.components) === null || _theme$my_products$co === void 0 ? void 0 : (_theme$my_products$co2 = _theme$my_products$co.theme_settings) === null || _theme$my_products$co2 === void 0 ? void 0 : (_theme$my_products$co3 = _theme$my_products$co2.components) === null || _theme$my_products$co3 === void 0 ? void 0 : (_theme$my_products$co4 = _theme$my_products$co3.values) === null || _theme$my_products$co4 === void 0 ? void 0 : _theme$my_products$co4.footer_content;
52
+ 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;
45
53
  var getPage = /*#__PURE__*/function () {
46
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
54
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
47
55
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
48
56
  return _regeneratorRuntime().wrap(function _callee$(_context) {
49
57
  while (1) {
@@ -95,7 +103,7 @@ var Footer = function Footer() {
95
103
  }, _callee, null, [[1, 14]]);
96
104
  }));
97
105
  return function getPage() {
98
- return _ref.apply(this, arguments);
106
+ return _ref2.apply(this, arguments);
99
107
  };
100
108
  }();
101
109
  (0, _react.useEffect)(function () {
@@ -106,7 +114,7 @@ var Footer = function Footer() {
106
114
  }
107
115
  };
108
116
  }, []);
109
- return /*#__PURE__*/_react.default.createElement(_styles.Container, null, (footerContent || footerState.body) && /*#__PURE__*/_react.default.createElement("div", {
117
+ return /*#__PURE__*/_react.default.createElement(_styles.Container, null, (footerContent || footerState.body) && !isFooterPage && /*#__PURE__*/_react.default.createElement("div", {
110
118
  style: {
111
119
  wordBreak: 'break-all',
112
120
  padding: '0px 10px'
@@ -114,6 +122,8 @@ var Footer = function Footer() {
114
122
  dangerouslySetInnerHTML: {
115
123
  __html: footerContent || footerState.body
116
124
  }
117
- }));
125
+ }), enabledPoweredByOrdering && /*#__PURE__*/_react.default.createElement(_styles.PoweredByOrdering, null, t('POWERED_BY', 'Powered by'), /*#__PURE__*/_react.default.createElement("a", {
126
+ href: "https://www.ordering.co"
127
+ }, ' ', t('ORDERING_CO', 'Ordering.co'))));
118
128
  };
119
129
  exports.Footer = Footer;
@@ -4,30 +4,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.SocialIconList = exports.SocialGroup = exports.LanguageWrapper = exports.FooterWrapper = exports.FooterBottom = exports.Description = exports.Content = exports.Container = void 0;
7
+ exports.SocialIconList = exports.SocialGroup = exports.PoweredByOrdering = exports.LanguageWrapper = exports.FooterWrapper = exports.FooterBottom = exports.Description = exports.Content = exports.Container = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
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) } })); }
13
13
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
14
14
  exports.Container = Container;
15
- var FooterWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n width: 100%;\n flex-wrap: wrap;\n flex-direction: column;\n border-bottom: 1px solid #d9d9d9;\n\n @media (min-width: 768px) {\n flex-direction: row;\n justify-content: flex-start;\n }\n"])));
15
+ var FooterWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n width: 100%;\n flex-wrap: wrap;\n flex-direction: column;\n border-bottom: 1px solid #d9d9d9;\n @media (min-width: 768px) {\n flex-direction: row;\n justify-content: flex-start;\n }\n"])));
16
16
  exports.FooterWrapper = FooterWrapper;
17
- var Content = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: auto;\n width: 100%;\n text-align: center;\n margin-bottom: 10px;\n\n > h4 {\n font-weight: 600;\n font-size: 16px;\n margin: 20px 0px 15px 0px;\n }\n\n > div {\n margin: 10px 0;\n > a {\n display: inline-block;\n text-decoration: none;\n font-size: 14px;\n text-decoration: none;\n color: #344050;\n transition: all 0.2s linear;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n }\n\n\n\n @media (min-width: 768px) {\n width: 50%;\n text-align: left;\n ", "\n }\n\n @media (min-width: 992px) {\n width: 25%;\n margin: 0;\n }\n"])), function (props) {
17
+ var Content = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: auto;\n width: 100%;\n text-align: center;\n margin-bottom: 10px;\n > h4 {\n font-weight: 600;\n font-size: 16px;\n margin: 20px 0px 15px 0px;\n }\n > div {\n margin: 10px 0;\n > a {\n display: inline-block;\n text-decoration: none;\n font-size: 14px;\n text-decoration: none;\n color: #344050;\n transition: all 0.2s linear;\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n }\n @media (min-width: 768px) {\n width: 50%;\n text-align: left;\n ", "\n }\n @media (min-width: 992px) {\n width: 25%;\n margin: 0;\n }\n"])), function (props) {
18
18
  return props.theme.colors.primary;
19
19
  }, function (props) {
20
20
  var _props$theme;
21
21
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
22
22
  });
23
23
  exports.Content = Content;
24
- var FooterBottom = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n\n @media (min-width: 768px) {\n flex-direction: row;\n }\n"])));
24
+ var FooterBottom = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n @media (min-width: 768px) {\n flex-direction: row;\n }\n"])));
25
25
  exports.FooterBottom = FooterBottom;
26
26
  var Description = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 10px 0;\n font-size: 14px;\n color: #344050;\n"])));
27
27
  exports.Description = Description;
28
- var SocialIconList = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n @media (min-width: 1400px) {\n width: 25%;\n justify-content: space-between;\n }\n"])));
28
+ var SocialIconList = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n @media (min-width: 1400px) {\n width: 25%;\n justify-content: space-between;\n }\n"])));
29
29
  exports.SocialIconList = SocialIconList;
30
- var LanguageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n display: flex;\n align-items: center;\n margin-right: 15px;\n ", "\n\n svg {\n font-size: 20px;\n }\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #344050 !important;\n\n > div:first-child {\n font-size: 14px;\n text-decoration: underline;\n padding-right: 0px !important;\n padding-left: 12px !important;\n ", "\n svg {\n display: none;\n }\n }\n #list {\n bottom: 100%;\n border-radius: 8px;\n }\n }\n"])), function (props) {
30
+ var LanguageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n display: flex;\n align-items: center;\n margin-right: 15px;\n ", "\n svg {\n font-size: 20px;\n }\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #344050 !important;\n > div:first-child {\n font-size: 14px;\n text-decoration: underline;\n padding-right: 0px !important;\n padding-left: 12px !important;\n ", "\n svg {\n display: none;\n }\n }\n #list {\n bottom: 100%;\n border-radius: 8px;\n }\n }\n"])), function (props) {
31
31
  var _props$theme2;
32
32
  return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: 15px;\n margin-right: 0px;\n "])));
33
33
  }, function (props) {
@@ -35,10 +35,12 @@ var LanguageWrapper = _styledComponents.default.div(_templateObject8 || (_templa
35
35
  return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding-right: 12px !important;\n padding-left: 0px !important;\n "])));
36
36
  });
37
37
  exports.LanguageWrapper = LanguageWrapper;
38
- var SocialGroup = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n a {\n color: #344050;\n display: flex;\n align-items: center;\n margin: 10px 0px 10px 15px;\n ", "\n > svg {\n font-size: 20px;\n }\n transition: all 0.3s ease;\n\n &:hover {\n transform: scale(1.04);\n color: ", ";\n }\n }\n"])), function (props) {
38
+ var SocialGroup = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n a {\n color: #344050;\n display: flex;\n align-items: center;\n margin: 10px 0px 10px 15px;\n ", "\n > svg {\n font-size: 20px;\n }\n transition: all 0.3s ease;\n &:hover {\n transform: scale(1.04);\n color: ", ";\n }\n }\n"])), function (props) {
39
39
  var _props$theme4;
40
40
  return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin: 10px 15px 10px 0px;\n "])));
41
41
  }, function (props) {
42
42
  return props.theme.colors.primary;
43
43
  });
44
- exports.SocialGroup = SocialGroup;
44
+ exports.SocialGroup = SocialGroup;
45
+ var PoweredByOrdering = _styledComponents.default.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n text-align: center;\n margin: 0;\n display: flex;\n justify-content: center;\n bottom: 0;\n left: 0;\n right: 0;\n white-space: pre;\n margin-bottom: 10px;\n a{\n font-weight: 600;\n }\n"])));
46
+ exports.PoweredByOrdering = PoweredByOrdering;
@@ -50,7 +50,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
50
50
  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; } }
51
51
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
52
52
  var Header = function Header(props) {
53
- var _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _customerState$user, _orderState$options3, _orderState$options3$, _props$beforeElements, _props$beforeComponen, _orderingTheme$my_pro, _orderingTheme$my_pro2, _orderingTheme$my_pro3, _orderingTheme$my_pro4, _orderingTheme$my_pro5, _orderingTheme$my_pro6, _theme$images, _theme$images$logos, _orderingTheme$my_pro7, _orderingTheme$my_pro8, _orderingTheme$my_pro9, _orderingTheme$my_pro10, _orderingTheme$my_pro11, _orderingTheme$my_pro12, _theme$images2, _theme$images2$logos, _theme$images3, _theme$images3$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;
53
+ var _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _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
54
  var isHome = props.isHome,
55
55
  location = props.location,
56
56
  isShowOrderOptions = props.isShowOrderOptions,
@@ -147,6 +147,7 @@ var Header = function Header(props) {
147
147
  return Number(value);
148
148
  })) || [];
149
149
  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';
150
+ 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$3.type) === 'Chew';
150
151
  var handleSuccessSignup = function handleSuccessSignup(user) {
151
152
  var _user$session;
152
153
  login({
@@ -260,7 +261,9 @@ var Header = function Header(props) {
260
261
  return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
261
262
  key: i
262
263
  }, props));
263
- }), /*#__PURE__*/_react.default.createElement(_styles.Header, null, /*#__PURE__*/_react.default.createElement(_styles.InnerHeader, null, /*#__PURE__*/_react.default.createElement(_styles.LeftHeader, {
264
+ }), /*#__PURE__*/_react.default.createElement(_styles.Header, {
265
+ isChew: isChew
266
+ }, /*#__PURE__*/_react.default.createElement(_styles.InnerHeader, null, /*#__PURE__*/_react.default.createElement(_styles.LeftHeader, {
264
267
  id: "left-side"
265
268
  }, /*#__PURE__*/_react.default.createElement(_SidebarMenu.SidebarMenu, {
266
269
  auth: auth,
@@ -273,23 +276,25 @@ var Header = function Header(props) {
273
276
  return handleGoToPage({
274
277
  page: orderState !== null && orderState !== void 0 && (_orderState$options4 = orderState.options) !== null && _orderState$options4 !== void 0 && (_orderState$options4$ = _orderState$options4.address) !== null && _orderState$options4$ !== void 0 && _orderState$options4$.location && !isCustomerMode ? 'search' : 'home'
275
278
  });
276
- }
279
+ },
280
+ isChew: isChew
277
281
  }, /*#__PURE__*/_react.default.createElement("img", {
278
282
  alt: "Logotype",
279
283
  width: "170px",
280
- height: "45px",
281
- src: (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$my_pro = orderingTheme.my_products) === null || _orderingTheme$my_pro === void 0 ? void 0 : (_orderingTheme$my_pro2 = _orderingTheme$my_pro.components) === null || _orderingTheme$my_pro2 === void 0 ? void 0 : (_orderingTheme$my_pro3 = _orderingTheme$my_pro2.images) === null || _orderingTheme$my_pro3 === void 0 ? void 0 : (_orderingTheme$my_pro4 = _orderingTheme$my_pro3.components) === null || _orderingTheme$my_pro4 === void 0 ? void 0 : (_orderingTheme$my_pro5 = _orderingTheme$my_pro4.logo) === null || _orderingTheme$my_pro5 === void 0 ? void 0 : (_orderingTheme$my_pro6 = _orderingTheme$my_pro5.components) === null || _orderingTheme$my_pro6 === void 0 ? void 0 : _orderingTheme$my_pro6.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.logotype),
284
+ height: isChew ? '35px' : '45px',
285
+ src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.chewLogo : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$my_pro = orderingTheme.my_products) === null || _orderingTheme$my_pro === void 0 ? void 0 : (_orderingTheme$my_pro2 = _orderingTheme$my_pro.components) === null || _orderingTheme$my_pro2 === void 0 ? void 0 : (_orderingTheme$my_pro3 = _orderingTheme$my_pro2.images) === null || _orderingTheme$my_pro3 === void 0 ? void 0 : (_orderingTheme$my_pro4 = _orderingTheme$my_pro3.components) === null || _orderingTheme$my_pro4 === void 0 ? void 0 : (_orderingTheme$my_pro5 = _orderingTheme$my_pro4.logo) === null || _orderingTheme$my_pro5 === void 0 ? void 0 : (_orderingTheme$my_pro6 = _orderingTheme$my_pro5.components) === null || _orderingTheme$my_pro6 === void 0 ? void 0 : _orderingTheme$my_pro6.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$logos = _theme$images2.logos) === null || _theme$images2$logos === void 0 ? void 0 : _theme$images2$logos.logotype),
282
286
  loading: "lazy"
283
287
  }), /*#__PURE__*/_react.default.createElement("img", {
284
288
  alt: "Isotype",
285
- width: "35px",
286
- height: "45px",
287
- src: (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$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$logos = _theme$images2.logos) === null || _theme$images2$logos === void 0 ? void 0 : _theme$images2$logos.isotypeInvert : 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.isotype),
289
+ width: isChew ? '70px' : '35px',
290
+ height: isChew ? '20px' : '45px',
291
+ 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),
288
292
  loading: "lazy"
289
293
  }))), isShowOrderOptions && !props.isCustomLayout && /*#__PURE__*/_react.default.createElement(_styles.Menu, {
290
294
  id: "center-side",
291
295
  className: "left-header",
292
- isCustomerMode: isCustomerMode
296
+ isCustomerMode: isCustomerMode,
297
+ isChew: isChew
293
298
  }, windowSize.width > 820 && 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'))), isCustomerMode && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.AddressMenu, {
294
299
  isCustomerMode: isCustomerMode,
295
300
  onClick: function onClick(e) {