ordering-ui-external 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/_bundles/0.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
  2. package/_bundles/{1.ordering-ui.8b7044a2b34939a44465.js → 1.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  3. package/_bundles/2.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
  4. package/_bundles/{4.ordering-ui.8b7044a2b34939a44465.js → 4.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  5. package/_bundles/{5.ordering-ui.8b7044a2b34939a44465.js → 5.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  6. package/_bundles/{6.ordering-ui.8b7044a2b34939a44465.js → 6.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  7. package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js → 7.ordering-ui.a7de4e953ec3c5879d9b.js} +2 -2
  8. package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → 7.ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.8b7044a2b34939a44465.js → 8.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  10. package/_bundles/{9.ordering-ui.8b7044a2b34939a44465.js → 9.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  11. package/_bundles/ordering-ui.a7de4e953ec3c5879d9b.js +2 -0
  12. package/_bundles/{ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → ordering-ui.a7de4e953ec3c5879d9b.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/MomentControl/index.js +4 -2
  55. package/_modules/themes/five/src/components/MyOrders/index.js +24 -56
  56. package/_modules/themes/five/src/components/MyOrders/styles.js +1 -1
  57. package/_modules/themes/five/src/components/OrderDetails/index.js +5 -2
  58. package/_modules/themes/five/src/components/OrderDetails/styles.js +24 -24
  59. package/_modules/themes/five/src/components/OrderItAgain/styles.js +6 -2
  60. package/_modules/themes/five/src/components/OrdersOption/index.js +18 -18
  61. package/_modules/themes/five/src/components/OrdersOption/styles.js +2 -2
  62. package/_modules/themes/five/src/components/PageBanner/index.js +50 -0
  63. package/_modules/themes/five/src/components/PageBanner/styles.js +18 -0
  64. package/_modules/themes/five/src/components/Pagination/index.js +99 -0
  65. package/_modules/themes/five/src/components/Pagination/styles.js +56 -0
  66. package/_modules/themes/five/src/components/ProductForm/index.js +39 -23
  67. package/_modules/themes/five/src/components/ProductForm/styles.js +74 -38
  68. package/_modules/themes/five/src/components/Promotions/index.js +7 -2
  69. package/_modules/themes/five/src/components/Promotions/styles.js +16 -14
  70. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +31 -10
  71. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +19 -11
  72. package/_modules/themes/five/src/components/SidebarMenu/styles.js +1 -1
  73. package/_modules/themes/five/src/components/SignUpForm/index.js +3 -2
  74. package/_modules/themes/five/src/components/SingleOrderCard/index.js +7 -17
  75. package/_modules/themes/five/src/components/SingleProductCard/index.js +7 -298
  76. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +310 -0
  77. package/_modules/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +36 -32
  78. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +305 -0
  79. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +143 -0
  80. package/_modules/themes/five/src/components/StripeElementsForm/index.js +1 -0
  81. package/_modules/themes/five/src/components/UserPopover/index.js +3 -1
  82. package/_modules/themes/five/src/components/UserPopover/styles.js +4 -3
  83. package/_modules/themes/five/src/components/UserProfileForm/styles.js +5 -8
  84. package/_modules/themes/six/src/components/BusinessController/index.js +81 -15
  85. package/_modules/themes/six/src/components/BusinessController/styles.js +58 -30
  86. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -3
  87. package/_modules/themes/six/src/components/BusinessesMap/styles.js +1 -1
  88. package/_modules/themes/six/src/components/SearchBar/index.js +19 -10
  89. package/_modules/themes/six/src/components/SearchBar/styles.js +44 -16
  90. package/index-template.js +3 -1
  91. package/package.json +2 -2
  92. package/src/components/BusinessInformation/index.js +3 -8
  93. package/src/components/OrdersOption/styles.js +5 -5
  94. package/src/components/Pagination/index.js +107 -0
  95. package/src/components/Pagination/styles.js +106 -0
  96. package/src/components/SmartAppBanner/index.js +1 -0
  97. package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +89 -0
  98. package/src/components/VerticalOrdersLayout/index.js +86 -48
  99. package/src/components/VerticalOrdersLayout/styles.js +66 -22
  100. package/src/index.js +2 -0
  101. package/src/themes/five/src/components/AccordionDropdown/index.js +19 -6
  102. package/src/themes/five/src/components/AccordionDropdown/styles.js +25 -1
  103. package/src/themes/five/src/components/AddressList/styles.js +2 -0
  104. package/src/themes/five/src/components/BusinessBasicInformation/index.js +21 -11
  105. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +9 -3
  106. package/src/themes/five/src/components/BusinessListingSearch/index.js +1 -0
  107. package/src/themes/five/src/components/BusinessProductsCategories/index.js +0 -2
  108. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +23 -12
  109. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +12 -4
  110. package/src/themes/five/src/components/BusinessProductsListing/index.js +3 -0
  111. package/src/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
  112. package/src/themes/five/src/components/BusinessesListing/index.js +5 -5
  113. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +54 -25
  114. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -26
  115. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +19 -6
  116. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +38 -3
  117. package/src/themes/five/src/components/CardForm/index.js +49 -8
  118. package/src/themes/five/src/components/CardForm/styles.js +20 -2
  119. package/src/themes/five/src/components/CartPopover/index.js +2 -1
  120. package/src/themes/five/src/components/CartPopover/styles.js +3 -3
  121. package/src/themes/five/src/components/Footer/index.js +15 -6
  122. package/src/themes/five/src/components/Footer/styles.js +15 -14
  123. package/src/themes/five/src/components/Header/index.js +6 -4
  124. package/src/themes/five/src/components/Header/styles.js +14 -11
  125. package/src/themes/five/src/components/HeaderOption/index.js +13 -10
  126. package/src/themes/five/src/components/HeaderOption/styles.js +2 -2
  127. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +22 -10
  128. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +8 -0
  129. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +24 -36
  130. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +12 -1
  131. package/src/themes/five/src/components/InputPhoneNumber/index.js +1 -0
  132. package/src/themes/five/src/components/LoginForm/index.js +2 -1
  133. package/src/themes/five/src/components/MomentControl/index.js +3 -2
  134. package/src/themes/five/src/components/MyOrders/index.js +20 -62
  135. package/src/themes/five/src/components/MyOrders/styles.js +1 -2
  136. package/src/themes/five/src/components/OrderDetails/index.js +9 -0
  137. package/src/themes/five/src/components/OrderDetails/styles.js +0 -55
  138. package/src/themes/five/src/components/OrderItAgain/styles.js +18 -0
  139. package/src/themes/five/src/components/OrdersOption/index.js +10 -16
  140. package/src/themes/five/src/components/OrdersOption/styles.js +1 -3
  141. package/src/themes/five/src/components/PageBanner/index.js +58 -0
  142. package/src/themes/five/src/components/PageBanner/styles.js +58 -0
  143. package/src/themes/five/src/components/Pagination/index.js +106 -0
  144. package/src/themes/five/src/components/Pagination/styles.js +106 -0
  145. package/src/themes/five/src/components/ProductForm/index.js +108 -84
  146. package/src/themes/five/src/components/ProductForm/styles.js +94 -12
  147. package/src/themes/five/src/components/Promotions/index.js +22 -16
  148. package/src/themes/five/src/components/Promotions/styles.js +10 -4
  149. package/src/themes/five/src/components/RenderProductsLayout/index.js +94 -66
  150. package/src/themes/five/src/components/RenderProductsLayout/styles.js +23 -22
  151. package/src/themes/five/src/components/SidebarMenu/styles.js +1 -1
  152. package/src/themes/five/src/components/SignUpForm/index.js +2 -1
  153. package/src/themes/five/src/components/SingleOrderCard/index.js +0 -21
  154. package/src/themes/five/src/components/SingleProductCard/index.js +7 -300
  155. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +312 -0
  156. package/src/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +9 -5
  157. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +313 -0
  158. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +353 -0
  159. package/src/themes/five/src/components/StripeElementsForm/index.js +1 -0
  160. package/src/themes/five/src/components/UserPopover/index.js +2 -0
  161. package/src/themes/five/src/components/UserPopover/styles.js +2 -2
  162. package/src/themes/five/src/components/UserProfileForm/styles.js +3 -11
  163. package/src/themes/six/src/components/BusinessController/index.js +163 -62
  164. package/src/themes/six/src/components/BusinessController/styles.js +53 -14
  165. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -1
  166. package/src/themes/six/src/components/BusinessesMap/styles.js +1 -1
  167. package/src/themes/six/src/components/SearchBar/index.js +27 -8
  168. package/src/themes/six/src/components/SearchBar/styles.js +33 -2
  169. package/template/app.js +364 -364
  170. package/template/assets/images/chew_logo.png +0 -0
  171. package/template/components/HelmetTags/index.js +5 -4
  172. package/_bundles/0.ordering-ui.8b7044a2b34939a44465.js +0 -1
  173. package/_bundles/2.ordering-ui.8b7044a2b34939a44465.js +0 -1
  174. package/_bundles/ordering-ui.8b7044a2b34939a44465.js +0 -2
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapperSearchAbsolute = exports.WrapperSearch = exports.WrappLayout = exports.WrapContent = exports.Title = exports.ProfessionalFilterWrapper = exports.NearBusiness = exports.MobileCartViewWrapper = exports.EmptyCart = exports.EmptyBtnWrapper = exports.BusinessContent = exports.BusinessCategoryProductWrapper = exports.BusinessCategoriesContainer = exports.BusinessCartContent = exports.BusinessCartContainer = void 0;
7
+ exports.WrapperSearchAbsolute = exports.WrapperSearch = exports.WrappLayout = exports.WrapContent = exports.Title = exports.ProfessionalFilterWrapper = exports.PageBannerWrapper = exports.NearBusiness = exports.MobileCartViewWrapper = exports.EmptyCart = exports.EmptyBtnWrapper = exports.CategorySelectedContainer = exports.BusinessContent = exports.BusinessCategoryProductWrapper = exports.BusinessCategoriesContainer = exports.BusinessCartContent = exports.BusinessCartContainer = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -16,18 +16,18 @@ var Title = _styledComponents.default.h1(_templateObject || (_templateObject = _
16
16
  exports.Title = Title;
17
17
  var WrappLayout = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([""])));
18
18
  exports.WrappLayout = WrappLayout;
19
- var WrapContent = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 5px;\n background: ", ";\n\n ", "\n\n @media (min-width: 576px) {\n padding: 0px;\n }\n\n &#businessProductList {\n > div {\n margin-top: 30px;\n }\n }\n"])), function (props) {
19
+ var WrapContent = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 5px;\n background: ", ";\n ", "\n @media (min-width: 576px) {\n padding: 0px;\n }\n &#businessProductList {\n > div {\n margin-top: 30px;\n }\n }\n"])), function (props) {
20
20
  return props.theme.colors.backgroundPage;
21
21
  }, function (_ref) {
22
22
  var isGroceries = _ref.isGroceries;
23
23
  return !isGroceries && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-top: 70px;\n "])));
24
24
  });
25
25
  exports.WrapContent = WrapContent;
26
- var BusinessContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n display: flex;\n flex-direction: column;\n\n @media (min-width: 993px) {\n flex-direction: row;\n }\n"])), function (props) {
26
+ var BusinessContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n display: flex;\n flex-direction: column;\n @media (min-width: 993px) {\n flex-direction: row;\n }\n"])), function (props) {
27
27
  return props.isCustomLayout ? 0 : 30;
28
28
  });
29
29
  exports.BusinessContent = BusinessContent;
30
- var BusinessCategoryProductWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n\n /* Hide scrollbar for Chrome, Safari and Opera */\n .category-lists::-webkit-scrollbar {\n display: none;\n }\n\n /* Hide scrollbar for IE, Edge and Firefox */\n .category-lists {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n\n @media (min-width: 1000px) {\n width: ", ";\n }\n"])), function (_ref2) {
30
+ var BusinessCategoryProductWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n /* Hide scrollbar for Chrome, Safari and Opera */\n .category-lists::-webkit-scrollbar {\n display: none;\n }\n /* Hide scrollbar for IE, Edge and Firefox */\n .category-lists {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n @media (min-width: 1000px) {\n width: ", ";\n }\n"])), function (_ref2) {
31
31
  var showCartOnProductList = _ref2.showCartOnProductList;
32
32
  return showCartOnProductList ? '70%' : '85%';
33
33
  });
@@ -41,7 +41,7 @@ var BusinessCartContainer = (0, _styledComponents.default)(BusinessCategoriesCon
41
41
  return isProfessional && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: 0px;\n "])));
42
42
  });
43
43
  exports.BusinessCartContainer = BusinessCartContainer;
44
- var BusinessCartContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background: white;\n padding: 30px;\n position: relative;\n margin-bottom: 30px;\n max-height: ", ";\n overflow: auto;\n\n .product.accordion {\n margin: 0;\n }\n\n /* .accordion.active {\n padding-bottom: 10px;\n } */\n\n ", "\n\n @media (min-width: 1200px) {\n position: sticky;\n top: 0;\n }\n\n @media (min-width: 768px) {\n padding: 35px 30px;\n }\n"])), function (_ref4) {
44
+ var BusinessCartContent = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background: white;\n padding: 30px;\n position: relative;\n margin-bottom: 30px;\n max-height: ", ";\n overflow: auto;\n .product.accordion {\n margin: 0;\n }\n /* .accordion.active {\n padding-bottom: 10px;\n } */\n ", "\n @media (min-width: 1200px) {\n position: sticky;\n top: 0;\n }\n @media (min-width: 768px) {\n padding: 35px 30px;\n }\n"])), function (_ref4) {
45
45
  var maxHeight = _ref4.maxHeight;
46
46
  return "".concat(maxHeight, "px");
47
47
  }, function (_ref5) {
@@ -49,15 +49,15 @@ var BusinessCartContent = _styledComponents.default.div(_templateObject11 || (_t
49
49
  return !isModal && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n border: 1px solid #E9ECEF;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n "])));
50
50
  });
51
51
  exports.BusinessCartContent = BusinessCartContent;
52
- var EmptyCart = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n .empty-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n svg {\n font-size: 45px;\n color: #B1BCCC;\n margin-top: 10px;\n }\n\n p {\n font-size: 14px;\n color: #B1BCCC;\n margin: 23px 0 0 0;\n }\n }\n"])));
52
+ var EmptyCart = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n .empty-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n svg {\n font-size: 45px;\n color: #B1BCCC;\n margin-top: 10px;\n }\n p {\n font-size: 14px;\n color: #B1BCCC;\n margin: 23px 0 0 0;\n }\n }\n"])));
53
53
  exports.EmptyCart = EmptyCart;
54
- var EmptyBtnWrapper = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 20px;\n\n span {\n font-weight: 600;\n font-size: 16px;\n color: ", ";\n }\n\n button {\n color: #748194;\n background: #F8F9FA;\n border: 1px solid #F8F9FA;\n border-radius: 7.6px;\n height: 44px;\n font-size: 14px;\n padding-left: 25px;\n padding-right: 25px;\n }\n"])), function (props) {
54
+ var EmptyBtnWrapper = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 20px;\n span {\n font-weight: 600;\n font-size: 16px;\n color: ", ";\n }\n button {\n color: #748194;\n background: #F8F9FA;\n border: 1px solid #F8F9FA;\n border-radius: 7.6px;\n height: 44px;\n font-size: 14px;\n padding-left: 25px;\n padding-right: 25px;\n }\n"])), function (props) {
55
55
  return props.theme.colors.darkTextColor;
56
56
  });
57
57
  exports.EmptyBtnWrapper = EmptyBtnWrapper;
58
- var MobileCartViewWrapper = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n position: fixed;\n width: 100vw;\n left: 0;\n bottom: 0;\n background-color: white;\n padding: 10px 25px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n z-index: 1000;\n box-shadow: 0px 4px 10px rgb(0 0 0 / 12%);\n\n span {\n font-weight: 600;\n font-size: 16px;\n }\n\n button {\n height: 44px;\n border-radius: 7.6px;\n }\n"])));
58
+ var MobileCartViewWrapper = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n position: fixed;\n width: 100vw;\n left: 0;\n bottom: 0;\n background-color: white;\n padding: 10px 25px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n z-index: 1000;\n box-shadow: 0px 4px 10px rgb(0 0 0 / 12%);\n span {\n font-weight: 600;\n font-size: 16px;\n }\n button {\n height: 44px;\n border-radius: 7.6px;\n }\n"])));
59
59
  exports.MobileCartViewWrapper = MobileCartViewWrapper;
60
- var WrapperSearch = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n .search-bar {\n margin-right: 10px;\n ", "\n input {\n width: 100%;\n\n @media (min-width: 500px) {\n width: 250px;\n }\n }\n }\n\n div:last-child {\n text-align: right;\n\n ", "\n }\n"])), function (props) {
60
+ var WrapperSearch = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n .search-bar {\n margin-right: 10px;\n ", "\n input {\n width: 100%;\n @media (min-width: 500px) {\n width: 250px;\n }\n }\n }\n div:last-child {\n text-align: right;\n ", "\n }\n"])), function (props) {
61
61
  var _props$theme;
62
62
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
63
63
  }, function (props) {
@@ -75,4 +75,12 @@ var WrapperSearchAbsolute = _styledComponents.default.div(_templateObject21 || (
75
75
  });
76
76
  exports.WrapperSearchAbsolute = WrapperSearchAbsolute;
77
77
  var NearBusiness = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
78
- exports.NearBusiness = NearBusiness;
78
+ exports.NearBusiness = NearBusiness;
79
+ var PageBannerWrapper = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n > div {\n border-radius: 8px;\n }\n"])));
80
+ exports.PageBannerWrapper = PageBannerWrapper;
81
+ var CategorySelectedContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: inline;\n margin-left: 10px;\n color: ", ";\n padding-right: 5px;\n cursor: pointer;\n p{\n margin: 0;\n }\n svg {\n position: relative;\n top: 2px;\n margin-right: 3px;\n width: 14px;\n height: 14px;\n }\n"])), function (_ref7) {
82
+ var _theme$colors;
83
+ var theme = _ref7.theme;
84
+ return theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.primary;
85
+ });
86
+ exports.CategorySelectedContainer = CategorySelectedContainer;
@@ -23,7 +23,7 @@ var IconContent = _styledComponents.default.button(_templateObject4 || (_templat
23
23
  return isHome ? 'rgb(255, 255, 255)' : '#333';
24
24
  });
25
25
  exports.IconContent = IconContent;
26
- var SidebarContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n height: 100%;\n width: 0;\n position: fixed;\n z-index: 1005;\n top: 0;\n background-color: ", ";\n overflow-x: hidden;\n transition: 0.5s;\n padding-top: 60px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n\n ", "\n\n @media (max-height: 450px) {\n padding-top: 15px;\n }\n"])), function (_ref4) {
26
+ var SidebarContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n height: 100%;\n width: 0;\n position: fixed;\n z-index: 2050;\n top: 0;\n background-color: ", ";\n overflow-x: hidden;\n transition: 0.5s;\n padding-top: 60px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n\n ", "\n\n @media (max-height: 450px) {\n padding-top: 15px;\n }\n"])), function (_ref4) {
27
27
  var theme = _ref4.theme;
28
28
  return theme.colors.backgroundPage;
29
29
  }, function (props) {
@@ -374,7 +374,8 @@ var SignUpFormUI = function SignUpFormUI(props) {
374
374
  noValidate: true,
375
375
  isPopup: isPopup,
376
376
  onSubmit: formMethods.handleSubmit(onSubmit),
377
- isSkeleton: useChekoutFileds && (validationFields === null || validationFields === void 0 ? void 0 : validationFields.loading)
377
+ isSkeleton: useChekoutFileds && (validationFields === null || validationFields === void 0 ? void 0 : validationFields.loading),
378
+ autoComplete: "on"
378
379
  }, (_props$beforeMidEleme = props.beforeMidElements) === null || _props$beforeMidEleme === void 0 ? void 0 : _props$beforeMidEleme.map(function (BeforeMidElements, i) {
379
380
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
380
381
  key: i
@@ -401,7 +402,7 @@ var SignUpFormUI = function SignUpFormUI(props) {
401
402
  pattern: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i
402
403
  }),
403
404
  required: !!field.required,
404
- autoComplete: "off",
405
+ autoComplete: "on",
405
406
  isError: ((_formMethods$errors4 = formMethods.errors) === null || _formMethods$errors4 === void 0 ? void 0 : _formMethods$errors4.email) && !notValidationFields.includes(field.code)
406
407
  }), /*#__PURE__*/_react.default.createElement(_styles2.InputBeforeIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Envelope, null))))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, signUpTab === 'default' && /*#__PURE__*/_react.default.createElement(_styles2.InputContainer, {
407
408
  isHalf: fieldNumber % 2 === 0
@@ -39,7 +39,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
39
39
  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; } }
40
40
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
41
  var SingleOrderCardUI = function SingleOrderCardUI(props) {
42
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _props$beforeElements, _props$beforeComponen, _configs$google_maps_, _order$business, _order$business2, _theme$images, _theme$images$dummies, _order$business3, _configs$google_maps_2, _order$business4, _theme$images2, _theme$images2$dummie, _order$business5, _theme$images3, _theme$images3$dummie, _order$business6, _theme$images4, _theme$images4$dummie, _order$business7, _order$summary, _order$business8, _getOrderStatus, _order$summary2, _props$afterComponent, _props$afterElements;
42
+ var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _props$beforeElements, _props$beforeComponen, _order$business, _theme$images, _theme$images$dummies, _order$business2, _theme$images2, _theme$images2$dummie, _order$business3, _theme$images3, _theme$images3$dummie, _order$business4, _order$summary, _order$business5, _getOrderStatus, _order$summary2, _props$afterComponent, _props$afterElements;
43
43
  var order = props.order,
44
44
  getOrderStatus = props.getOrderStatus,
45
45
  isBusinessesPage = props.isBusinessesPage,
@@ -217,7 +217,6 @@ var SingleOrderCardUI = function SingleOrderCardUI(props) {
217
217
  };
218
218
  var showBusinessLogo = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.orders) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.business_logo) !== null && _orderingTheme$theme$3 !== void 0 && _orderingTheme$theme$3.hidden);
219
219
  var showDate = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.orders) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.date) !== null && _orderingTheme$theme5 !== void 0 && _orderingTheme$theme5.hidden);
220
- var showMap = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme6 = orderingTheme.theme) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.orders) !== null && _orderingTheme$theme7 !== void 0 && (_orderingTheme$theme8 = _orderingTheme$theme7.components) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.map) !== null && _orderingTheme$theme9 !== void 0 && _orderingTheme$theme9.hidden);
221
220
  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) {
222
221
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
223
222
  key: i
@@ -233,24 +232,15 @@ var SingleOrderCardUI = function SingleOrderCardUI(props) {
233
232
  onClick: function onClick(e) {
234
233
  return handleClickCard(e, order === null || order === void 0 ? void 0 : order.uuid);
235
234
  }
236
- }, ((configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value) || isBusinessesPage) && showMap && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
237
- height: 80
238
- }) : /*#__PURE__*/_react.default.createElement(_styles.Map, {
239
- isBusinessesPage: isBusinessesPage
240
- }, /*#__PURE__*/_react.default.createElement("img", {
241
- src: isBusinessesPage ? (order === null || order === void 0 ? void 0 : (_order$business = order.business) === null || _order$business === void 0 ? void 0 : _order$business.header) || (order === null || order === void 0 ? void 0 : (_order$business2 = order.business) === null || _order$business2 === void 0 ? void 0 : _order$business2.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo) : (0, _utils.getGoogleMapImage)(order === null || order === void 0 ? void 0 : (_order$business3 = order.business) === null || _order$business3 === void 0 ? void 0 : _order$business3.location, configs === null || configs === void 0 ? void 0 : (_configs$google_maps_2 = configs.google_maps_api_key) === null || _configs$google_maps_2 === void 0 ? void 0 : _configs$google_maps_2.value),
242
- alt: isBusinessesPage ? 'business_header' : 'google-maps-img',
243
- height: isBusinessesPage ? '200px' : '100px',
244
- width: "400px"
245
- }))), /*#__PURE__*/_react.default.createElement(_styles.Content, {
235
+ }, /*#__PURE__*/_react.default.createElement(_styles.Content, {
246
236
  isCustomerMode: isCustomerMode
247
237
  }, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
248
238
  width: 60,
249
239
  height: 60
250
240
  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isCustomerMode && showBusinessLogo && /*#__PURE__*/_react.default.createElement(_styles.BusinessLogoWrapper, {
251
- bgimage: optimizeImage((order === null || order === void 0 ? void 0 : (_order$business4 = order.business) === null || _order$business4 === void 0 ? void 0 : _order$business4.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.businessLogo), 'h_400,c_limit')
252
- }), isCustomerMode && showBusinessLogo && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (((_order$business5 = order.business) === null || _order$business5 === void 0 ? void 0 : _order$business5.logo) || ((_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.businessLogo)) && /*#__PURE__*/_react.default.createElement(_styles.Logo, null, /*#__PURE__*/_react.default.createElement("img", {
253
- src: ((_order$business6 = order.business) === null || _order$business6 === void 0 ? void 0 : _order$business6.logo) || ((_theme$images4 = theme.images) === null || _theme$images4 === void 0 ? void 0 : (_theme$images4$dummie = _theme$images4.dummies) === null || _theme$images4$dummie === void 0 ? void 0 : _theme$images4$dummie.businessLogo),
241
+ bgimage: optimizeImage((order === null || order === void 0 ? void 0 : (_order$business = order.business) === null || _order$business === void 0 ? void 0 : _order$business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo), 'h_400,c_limit')
242
+ }), isCustomerMode && showBusinessLogo && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (((_order$business2 = order.business) === null || _order$business2 === void 0 ? void 0 : _order$business2.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.businessLogo)) && /*#__PURE__*/_react.default.createElement(_styles.Logo, null, /*#__PURE__*/_react.default.createElement("img", {
243
+ src: ((_order$business3 = order.business) === null || _order$business3 === void 0 ? void 0 : _order$business3.logo) || ((_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.businessLogo),
254
244
  alt: "business-logo",
255
245
  width: "75px",
256
246
  height: "75px"
@@ -258,14 +248,14 @@ var SingleOrderCardUI = function SingleOrderCardUI(props) {
258
248
  activeOrders: true
259
249
  }, isCustomerMode ? /*#__PURE__*/_react.default.createElement(_styles.TitleContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
260
250
  width: 120
261
- }) : (_order$business7 = order.business) === null || _order$business7 === void 0 ? void 0 : _order$business7.name), /*#__PURE__*/_react.default.createElement(_styles.Price, {
251
+ }) : (_order$business4 = order.business) === null || _order$business4 === void 0 ? void 0 : _order$business4.name), /*#__PURE__*/_react.default.createElement(_styles.Price, {
262
252
  isBusinessesPage: isBusinessesPage,
263
253
  isCustomerMode: isCustomerMode
264
254
  }, /*#__PURE__*/_react.default.createElement("h2", null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
265
255
  width: 50
266
256
  }) : parsePrice((order === null || order === void 0 ? void 0 : (_order$summary = order.summary) === null || _order$summary === void 0 ? void 0 : _order$summary.total) || (order === null || order === void 0 ? void 0 : order.total))))) : /*#__PURE__*/_react.default.createElement("h2", null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
267
257
  width: 120
268
- }) : (_order$business8 = order.business) === null || _order$business8 === void 0 ? void 0 : _order$business8.name), isSkeleton ? /*#__PURE__*/_react.default.createElement("div", {
258
+ }) : (_order$business5 = order.business) === null || _order$business5 === void 0 ? void 0 : _order$business5.name), isSkeleton ? /*#__PURE__*/_react.default.createElement("div", {
269
259
  className: "orders-detail"
270
260
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
271
261
  width: 150
@@ -1,309 +1,18 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.SingleProductCard = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
10
- var _orderingComponentsExternal = require("ordering-components-external");
11
- var _utils = require("../../../../../utils");
12
- var _useIntersectionObserver = require("../../../../../hooks/useIntersectionObserver");
13
- var _reactBootstrapIcons = require("react-bootstrap-icons");
7
+ var _react = _interopRequireDefault(require("react"));
14
8
  var _styledComponents = require("styled-components");
15
- var _Modal = require("../Modal");
16
- var _LoginForm = require("../LoginForm");
17
- var _SignUpForm = require("../SignUpForm");
18
- var _ForgotPasswordForm = require("../ForgotPasswordForm");
19
- var _Confirm = require("../Confirm");
20
- var _styles = require("./styles");
21
- var _Buttons = require("../../styles/Buttons");
9
+ var _original = require("./layouts/original");
10
+ var _starbucks = require("./layouts/starbucks");
22
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
- 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); }
24
- 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; }
25
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
30
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
34
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
36
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
- 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; }
38
- 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; } }
39
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
40
- var SingleProductCardUI = function SingleProductCardUI(props) {
41
- var _theme$business_view$, _theme$business_view, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$images, _theme$images$dummies, _theme$images2, _theme$images2$dummie, _product$ribbon, _product$ribbon2, _product$ribbon3, _product$ribbon4, _product$ribbon5, _theme$images3, _theme$images3$dummie, _product$ribbon6, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4;
42
- var product = props.product,
43
- isSoldOut = props.isSoldOut,
44
- isSkeleton = props.isSkeleton,
45
- onProductClick = props.onProductClick,
46
- isCartOnProductsList = props.isCartOnProductsList,
47
- useCustomFunctionality = props.useCustomFunctionality,
48
- onCustomClick = props.onCustomClick,
49
- customText = props.customText,
50
- customStyle = props.customStyle,
51
- useKioskApp = props.useKioskApp,
52
- productAddedToCartLength = props.productAddedToCartLength,
53
- handleFavoriteProduct = props.handleFavoriteProduct,
54
- isFavorite = props.isFavorite,
55
- isPreviously = props.isPreviously;
56
- var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
57
- _useLanguage2 = _slicedToArray(_useLanguage, 2),
58
- t = _useLanguage2[1];
59
- var _useIntersectionObser = (0, _useIntersectionObserver.useIntersectionObserver)(),
60
- _useIntersectionObser2 = _slicedToArray(_useIntersectionObser, 2),
61
- $element = _useIntersectionObser2[0],
62
- isObserved = _useIntersectionObser2[1];
63
- var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
64
- _useConfig2 = _slicedToArray(_useConfig, 1),
65
- stateConfig = _useConfig2[0];
66
- var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
67
- _useUtils2 = _slicedToArray(_useUtils, 1),
68
- _useUtils2$ = _useUtils2[0],
69
- parsePrice = _useUtils2$.parsePrice,
70
- optimizeImage = _useUtils2$.optimizeImage,
71
- parseDate = _useUtils2$.parseDate;
72
- var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
73
- _useOrder2 = _slicedToArray(_useOrder, 1),
74
- orderState = _useOrder2[0];
75
- var _useSession = (0, _orderingComponentsExternal.useSession)(),
76
- _useSession2 = _slicedToArray(_useSession, 2),
77
- auth = _useSession2[0].auth,
78
- login = _useSession2[1].login;
79
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
80
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
81
- orderingTheme = _useOrderingTheme2[0];
82
- var theme = (0, _styledComponents.useTheme)();
83
- var favoriteRef = (0, _react.useRef)(null);
84
- var _useState = (0, _react.useState)(false),
85
- _useState2 = _slicedToArray(_useState, 2),
86
- isModalOpen = _useState2[0],
87
- setIsModalOpen = _useState2[1];
88
- var _useState3 = (0, _react.useState)(null),
89
- _useState4 = _slicedToArray(_useState3, 2),
90
- modalPageToShow = _useState4[0],
91
- setModalPageToShow = _useState4[1];
92
- var _useState5 = (0, _react.useState)({
93
- open: false,
94
- content: []
95
- }),
96
- _useState6 = _slicedToArray(_useState5, 2),
97
- alertState = _useState6[0],
98
- setAlertState = _useState6[1];
99
- var editMode = typeof (product === null || product === void 0 ? void 0 : product.code) !== 'undefined';
100
- var isObservedValidation = isObserved || useKioskApp;
101
- var removeToBalance = editMode ? product === null || product === void 0 ? void 0 : product.quantity : 0;
102
- var cartProducts = Object.values(orderState.carts).reduce(function (products, _cart) {
103
- return [].concat(_toConsumableArray(products), _toConsumableArray(_cart === null || _cart === void 0 ? void 0 : _cart.products));
104
- }, []);
105
- var productBalance = cartProducts.reduce(function (sum, _product) {
106
- return sum + (_product.id === (product === null || product === void 0 ? void 0 : product.id) ? _product.quantity : 0);
107
- }, 0);
108
- var totalBalance = (productBalance || 0) - removeToBalance;
109
- var maxCartProductConfig = (stateConfig.configs.max_product_amount ? parseInt(stateConfig.configs.max_product_amount) : 100) - totalBalance;
110
- var hideAddButton = (_theme$business_view$ = theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view.components) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.products) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.components) === null || _theme$business_view$4 === void 0 ? void 0 : (_theme$business_view$5 = _theme$business_view$4.add_to_cart_button) === null || _theme$business_view$5 === void 0 ? void 0 : _theme$business_view$5.hidden) !== null && _theme$business_view$ !== void 0 ? _theme$business_view$ : true;
111
- // const productsRows = theme?.layouts?.business_view?.components?.products?.components?.layout?.rows
112
-
113
- var maxCartProductInventory = (product !== null && product !== void 0 && product.inventoried ? product === null || product === void 0 ? void 0 : product.quantity : undefined) - totalBalance;
114
- maxCartProductInventory = !isNaN(maxCartProductInventory) ? maxCartProductInventory : maxCartProductConfig;
115
- var maxProductQuantity = Math.min(maxCartProductConfig, maxCartProductInventory);
116
- var handleClickProduct = function handleClickProduct(e) {
117
- var _favoriteRef$current, _product$business;
118
- if (favoriteRef !== null && favoriteRef !== void 0 && (_favoriteRef$current = favoriteRef.current) !== null && _favoriteRef$current !== void 0 && _favoriteRef$current.contains(e.target)) return;
119
- if (productAddedToCartLength && product !== null && product !== void 0 && product.maximum_per_order && productAddedToCartLength >= (product === null || product === void 0 ? void 0 : product.maximum_per_order)) {
120
- setAlertState({
121
- open: true,
122
- content: [t('PRODUCT_ON_MAXIMUM_ORDER', 'The product is on maximum order')]
123
- });
124
- return;
125
- }
126
- if (isFavorite) {
127
- onProductClick && onProductClick();
128
- return;
129
- }
130
- !isSkeleton && !useCustomFunctionality && onProductClick && onProductClick(product, product === null || product === void 0 ? void 0 : (_product$business = product.business) === null || _product$business === void 0 ? void 0 : _product$business.slug) || useCustomFunctionality && onCustomClick && onCustomClick();
131
- };
132
- var closeAlert = function closeAlert() {
133
- setAlertState({
134
- open: false,
135
- content: []
136
- });
137
- };
138
- var handleChangeFavorite = function handleChangeFavorite() {
139
- if (auth) {
140
- handleFavoriteProduct && handleFavoriteProduct(!(product !== null && product !== void 0 && product.favorite));
141
- } else {
142
- setModalPageToShow('login');
143
- setIsModalOpen(true);
144
- }
145
- };
146
- var closeAuthModal = function closeAuthModal() {
147
- setIsModalOpen(false);
148
- setModalPageToShow(null);
149
- };
150
- var handleSuccessLogin = function handleSuccessLogin(user) {
151
- if (user) {
152
- closeAuthModal();
153
- }
154
- };
155
- var handleCustomModalClick = function handleCustomModalClick(e, _ref) {
156
- var page = _ref.page;
157
- e.preventDefault();
158
- setModalPageToShow(page);
159
- };
160
- var handleSuccessSignup = function handleSuccessSignup(user) {
161
- var _user$session;
162
- login({
163
- user: user,
164
- token: user === null || user === void 0 ? void 0 : (_user$session = user.session) === null || _user$session === void 0 ? void 0 : _user$session.access_token
165
- });
166
- };
167
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.CardContainer, {
168
- ref: $element,
169
- soldOut: isSoldOut || maxProductQuantity <= 0,
170
- onClick: handleClickProduct,
171
- isCartOnProductsList: isCartOnProductsList,
172
- style: useCustomFunctionality && customStyle,
173
- className: "product-card",
174
- isShowAddButt: !useCustomFunctionality && !hideAddButton && !isSkeleton
175
- // productsRows={productsRows}
176
- }, isObservedValidation ? /*#__PURE__*/_react.default.createElement("div", null, !useCustomFunctionality && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isSkeleton && productAddedToCartLength > 0 && /*#__PURE__*/_react.default.createElement(_styles.QuantityContainer, null, /*#__PURE__*/_react.default.createElement("span", null, productAddedToCartLength)), /*#__PURE__*/_react.default.createElement(_styles.CardInfo, {
177
- soldOut: isSoldOut || maxProductQuantity <= 0,
178
- isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.product), 'h_86,c_limit'),
179
- oneLine: isPreviously
180
- }, /*#__PURE__*/_react.default.createElement(_styles.TitleWrapper, null, !isSkeleton ? /*#__PURE__*/_react.default.createElement("h1", null, product === null || product === void 0 ? void 0 : product.name) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
181
- width: 100
182
- }), !useKioskApp && !isPreviously && (!isSkeleton ? /*#__PURE__*/_react.default.createElement("span", {
183
- onClick: function onClick() {
184
- return handleChangeFavorite();
185
- },
186
- ref: favoriteRef
187
- }, product !== null && product !== void 0 && product.favorite ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.HeartFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Heart, null)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
188
- width: 16,
189
- height: 16
190
- }))), !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.PriceWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, product !== null && product !== void 0 && product.price ? parsePrice(product === null || product === void 0 ? void 0 : product.price) : ''), !(isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement("span", {
191
- className: "off-price"
192
- }, product !== null && product !== void 0 && product.offer_price && product !== null && product !== void 0 && product.in_offer ? parsePrice(product === null || product === void 0 ? void 0 : product.offer_price) : '')) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
193
- width: 100
194
- }), !isSkeleton ? /*#__PURE__*/_react.default.createElement("p", null, product === null || product === void 0 ? void 0 : product.description) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
195
- width: 100
196
- }), isPreviously && (!isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.LastOrder, null, t('LAST_ORDERED_ON', 'Last ordered on'), " ", parseDate(product === null || product === void 0 ? void 0 : product.last_ordered_date, {
197
- outputFormat: 'MMM DD, YYYY'
198
- })) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
199
- width: 80
200
- }))), !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, {
201
- isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.product), 'h_86,c_limit')
202
- }, (product === null || product === void 0 ? void 0 : (_product$ribbon = product.ribbon) === null || _product$ribbon === void 0 ? void 0 : _product$ribbon.enabled) && /*#__PURE__*/_react.default.createElement(_styles.RibbonBox, {
203
- bgColor: product === null || product === void 0 ? void 0 : (_product$ribbon2 = product.ribbon) === null || _product$ribbon2 === void 0 ? void 0 : _product$ribbon2.color,
204
- isRoundRect: (product === null || product === void 0 ? void 0 : (_product$ribbon3 = product.ribbon) === null || _product$ribbon3 === void 0 ? void 0 : _product$ribbon3.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
205
- isCapsule: (product === null || product === void 0 ? void 0 : (_product$ribbon4 = product.ribbon) === null || _product$ribbon4 === void 0 ? void 0 : _product$ribbon4.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape)
206
- }, product === null || product === void 0 ? void 0 : (_product$ribbon5 = product.ribbon) === null || _product$ribbon5 === void 0 ? void 0 : _product$ribbon5.text), /*#__PURE__*/_react.default.createElement(_styles.CardLogo, {
207
- className: "image",
208
- soldOut: isSoldOut || maxProductQuantity <= 0,
209
- bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.product), 'h_86,c_limit')
210
- })) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
211
- height: 75,
212
- width: 75
213
- }), (isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement(_styles.SoldOut, {
214
- isBottom: product === null || product === void 0 ? void 0 : (_product$ribbon6 = product.ribbon) === null || _product$ribbon6 === void 0 ? void 0 : _product$ribbon6.enabled
215
- }, t('SOLD_OUT', 'SOLD OUT'))), useCustomFunctionality && customText && /*#__PURE__*/_react.default.createElement("span", {
216
- style: {
217
- fontSize: 16,
218
- fontWeight: 500
219
- }
220
- }, customText)) : /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles.SkeletonCardInfo, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
221
- width: 100
222
- }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
223
- width: 100
224
- }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
225
- width: 100
226
- })), /*#__PURE__*/_react.default.createElement(_styles.SkeletonCardLogo, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
227
- height: 75,
228
- width: 75
229
- }))), !useCustomFunctionality && !hideAddButton && !isSkeleton && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
230
- outline: true,
231
- color: "primary",
232
- disabled: productAddedToCartLength && (product === null || product === void 0 ? void 0 : product.maximum_per_order) && productAddedToCartLength >= (product === null || product === void 0 ? void 0 : product.maximum_per_order)
233
- }, t('ADD', 'Add'))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
234
- open: isModalOpen,
235
- onRemove: function onRemove() {
236
- return closeAuthModal();
237
- },
238
- onClose: function onClose() {
239
- return closeAuthModal();
240
- },
241
- width: "50%",
242
- authModal: true
243
- }, modalPageToShow === 'login' && /*#__PURE__*/_react.default.createElement(_LoginForm.LoginForm, {
244
- handleSuccessLogin: handleSuccessLogin,
245
- elementLinkToSignup: /*#__PURE__*/_react.default.createElement("a", {
246
- onClick: function onClick(e) {
247
- return handleCustomModalClick(e, {
248
- page: 'signup'
249
- });
250
- },
251
- href: "#"
252
- }, t('CREATE_ACCOUNT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.CREATE_ACCOUNT) || 'Create account')),
253
- elementLinkToForgotPassword: /*#__PURE__*/_react.default.createElement("a", {
254
- onClick: function onClick(e) {
255
- return handleCustomModalClick(e, {
256
- page: 'forgotpassword'
257
- });
258
- },
259
- href: "#"
260
- }, t('RESET_PASSWORD', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.RESET_PASSWORD) || 'Reset password')),
261
- useLoginByCellphone: true,
262
- isPopup: true
263
- }), modalPageToShow === 'signup' && /*#__PURE__*/_react.default.createElement(_SignUpForm.SignUpForm, {
264
- elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
265
- onClick: function onClick(e) {
266
- return handleCustomModalClick(e, {
267
- page: 'login'
268
- });
269
- },
270
- href: "#"
271
- }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.LOGIN) || 'Login')),
272
- useLoginByCellphone: true,
273
- useChekoutFileds: true,
274
- handleSuccessSignup: handleSuccessSignup,
275
- isPopup: true,
276
- closeModal: function closeModal() {
277
- return closeAuthModal();
278
- }
279
- }), modalPageToShow === 'forgotpassword' && /*#__PURE__*/_react.default.createElement(_ForgotPasswordForm.ForgotPasswordForm, {
280
- elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
281
- onClick: function onClick(e) {
282
- return handleCustomModalClick(e, {
283
- page: 'login'
284
- });
285
- },
286
- href: "#"
287
- }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.LOGIN) || 'Login')),
288
- isPopup: true
289
- })), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
290
- title: t('PRODUCT', 'Product'),
291
- content: alertState.content,
292
- acceptText: t('ACCEPT', 'Accept'),
293
- open: alertState.open,
294
- onClose: function onClose() {
295
- return closeAlert();
296
- },
297
- onAccept: function onAccept() {
298
- return closeAlert();
299
- },
300
- closeOnBackdrop: false
301
- }));
302
- };
303
12
  var SingleProductCard = function SingleProductCard(props) {
304
- var singleProductCardProps = _objectSpread(_objectSpread({}, props), {}, {
305
- UIComponent: SingleProductCardUI
306
- });
307
- return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.SingleProductCard, singleProductCardProps);
13
+ var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4;
14
+ var theme = (0, _styledComponents.useTheme)();
15
+ var layout = (theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$ = _theme$business_view.components) === null || _theme$business_view$ === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view$.products) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.components) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.layout) === null || _theme$business_view$4 === void 0 ? void 0 : _theme$business_view$4.type) || 'original';
16
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, layout === 'original' && /*#__PURE__*/_react.default.createElement(_original.SingleProductCard, props), layout === 'starbucks' && /*#__PURE__*/_react.default.createElement(_starbucks.SingleProductCard, props));
308
17
  };
309
18
  exports.SingleProductCard = SingleProductCard;