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
package/_modules/index.js CHANGED
@@ -447,6 +447,12 @@ Object.defineProperty(exports, "PagesList", {
447
447
  return _PagesList.PagesList;
448
448
  }
449
449
  });
450
+ Object.defineProperty(exports, "Pagination", {
451
+ enumerable: true,
452
+ get: function get() {
453
+ return _Pagination.Pagination;
454
+ }
455
+ });
450
456
  Object.defineProperty(exports, "PaymentOptionCash", {
451
457
  enumerable: true,
452
458
  get: function get() {
@@ -909,6 +915,7 @@ var _OrderSuccessModal = require("./components/OrderSuccessModal");
909
915
  var _OrderTypeSelectorHeader = require("./components/OrderTypeSelectorHeader");
910
916
  var _PageNotFound = require("./components/PageNotFound");
911
917
  var _PagesList = require("./components/PagesList");
918
+ var _Pagination = require("./themes/five/src/components/Pagination");
912
919
  var _PaymentOptionCash = require("./components/PaymentOptionCash");
913
920
  var _PaymentOptionPaypal = require("./components/PaymentOptionPaypal");
914
921
  var _PaymentOptions = require("./components/PaymentOptions");
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.AccordionDropdown = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _BiCaretUp = _interopRequireDefault(require("@meronex/icons/bi/BiCaretUp"));
9
+ var _AiOutlineCheck = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineCheck"));
9
10
  var _styles = require("./styles");
11
+ var _useWindowSize = require("../../../../../hooks/useWindowSize");
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
  var AccordionDropdown = function AccordionDropdown(props) {
12
14
  var item = props.item,
@@ -15,19 +17,28 @@ var AccordionDropdown = function AccordionDropdown(props) {
15
17
  isSelected = props.isSelected,
16
18
  handleClickItem = props.handleClickItem,
17
19
  IterateCategories = props.IterateCategories;
20
+ var handleClick = function handleClick(e, isSelectCategory) {
21
+ e.stopPropagation();
22
+ handleClickItem(isSelectCategory);
23
+ };
24
+ var windowSize = (0, _useWindowSize.useWindowSize)();
18
25
  return /*#__PURE__*/_react.default.createElement("div", {
19
26
  className: "accordion-item"
20
27
  }, /*#__PURE__*/_react.default.createElement(_styles.CategoryTab, {
21
28
  active: isSelected,
22
29
  className: "accordion-title",
23
30
  categorySpace: spaceTab,
24
- onClick: function onClick() {
25
- return handleClickItem();
31
+ onClick: function onClick(e) {
32
+ return handleClick(e, false);
26
33
  },
27
34
  isOpen: isOpen
28
- }, /*#__PURE__*/_react.default.createElement(_BiCaretUp.default, {
35
+ }, /*#__PURE__*/_react.default.createElement("span", null, item.name), /*#__PURE__*/_react.default.createElement("div", null, windowSize.width < 993 && /*#__PURE__*/_react.default.createElement(_styles.SelectCategory, {
36
+ onClick: function onClick(e) {
37
+ return handleClick(e, true);
38
+ }
39
+ }, /*#__PURE__*/_react.default.createElement(_AiOutlineCheck.default, null)), /*#__PURE__*/_react.default.createElement(_BiCaretUp.default, {
29
40
  className: "accordion__icon ".concat(isOpen ? 'rotate' : '')
30
- }), /*#__PURE__*/_react.default.createElement("span", null, item.name)), isOpen && /*#__PURE__*/_react.default.createElement("div", {
41
+ }))), isOpen && /*#__PURE__*/_react.default.createElement("div", {
31
42
  className: "accordion-content"
32
43
  }, /*#__PURE__*/_react.default.createElement(IterateCategories, {
33
44
  list: item.subcategories,
@@ -4,13 +4,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.CategoryTab = void 0;
7
+ exports.SelectCategory = exports.CategoryTab = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2;
9
+ var _templateObject, _templateObject2, _templateObject3;
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 CategoryTab = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 10px 15px;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-left: ", "px;\n border-radius: 8px;\n text-align: left;\n\n .accordion__icon{\n transform: rotate(90deg);\n }\n \n .rotate {\n transform: rotate(180deg);\n }\n\n span {\n width: 90%;\n }\n\n ", "\n"])), function (props) {
13
+ var CategoryTab = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 10px 15px;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-left: ", "px;\n border-radius: 8px;\n text-align: left;\n\n .accordion__icon{\n transform: rotate(90deg);\n }\n \n .rotate {\n transform: rotate(180deg);\n }\n\n span {\n width: 9\n 0%;\n }\n\n > div {\n display: flex;\n align-items: center;\n }\n\n ", "\n \n"])), function (props) {
14
14
  var _props$categorySpace;
15
15
  return (_props$categorySpace = props.categorySpace) !== null && _props$categorySpace !== void 0 ? _props$categorySpace : 0;
16
16
  }, function (_ref) {
@@ -19,4 +19,14 @@ var CategoryTab = _styledComponents.default.div(_templateObject || (_templateObj
19
19
  return props.theme.colors.primaryContrast;
20
20
  });
21
21
  });
22
- exports.CategoryTab = CategoryTab;
22
+ exports.CategoryTab = CategoryTab;
23
+ var SelectCategory = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 30px;\n border: 1px solid ", ";\n margin-right: 10px;\n height: 20px;\n svg {\n color: ", "\n }\n &:hover{\n opacity: 0.8;\n }\n"])), function (_ref2) {
24
+ var _theme$colors;
25
+ var theme = _ref2.theme;
26
+ return theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.primary;
27
+ }, function (_ref3) {
28
+ var _theme$colors2;
29
+ var theme = _ref3.theme;
30
+ return theme === null || theme === void 0 ? void 0 : (_theme$colors2 = theme.colors) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.primary;
31
+ });
32
+ exports.SelectCategory = SelectCategory;
@@ -11,7 +11,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
- var AddressListContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0;\n @media (min-width: 768px) {\n padding: 0px 10px;\n }\n ", "\n\n ", "\n\n button.add {\n height: 50px;\n ", "\n }\n"])), function (_ref) {
14
+ var AddressListContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n padding: 0;\n @media (min-width: 768px) {\n padding: 0px 10px;\n }\n ", "\n\n ", "\n\n button.add {\n height: 50px;\n ", "\n }\n"])), function (_ref) {
15
15
  var isProfile = _ref.isProfile;
16
16
  return !isProfile && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
17
17
  }, function (_ref2) {
@@ -19,7 +19,7 @@ var AddressListContainer = _styledComponents.default.div(_templateObject || (_te
19
19
  return isLoading && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n pointer-events: none;\n "])));
20
20
  }, function (_ref3) {
21
21
  var isProfile = _ref3.isProfile;
22
- return !isProfile && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: 100px;\n "])));
22
+ return !isProfile && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: 100px;\n padding: 7px 70px;\n "])));
23
23
  });
24
24
  exports.AddressListContainer = AddressListContainer;
25
25
  var AddressListUl = _styledComponents.default.ul(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0px;\n margin-top: 40px;\n"])));
@@ -25,6 +25,7 @@ var _BusinessPreorder = require("../BusinessPreorder");
25
25
  var _dayjs = _interopRequireDefault(require("dayjs"));
26
26
  var _timezone = _interopRequireDefault(require("dayjs/plugin/timezone"));
27
27
  var _isBetween = _interopRequireDefault(require("dayjs/plugin/isBetween"));
28
+ var _useWindowSize = require("../../../../../hooks/useWindowSize");
28
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
30
  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); }
30
31
  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; }
@@ -43,7 +44,7 @@ _dayjs.default.extend(_timezone.default);
43
44
  _dayjs.default.extend(_isBetween.default);
44
45
  var types = ['food', 'laundry', 'alcohol', 'groceries'];
45
46
  var BusinessBasicInformation = function BusinessBasicInformation(props) {
46
- var _configs$preorder_sta, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _orderingTheme$theme42, _orderingTheme$theme43, _orderingTheme$theme44, _orderingTheme$theme45, _orderingTheme$theme46, _orderingTheme$theme47, _orderingTheme$theme48, _orderingTheme$theme49, _orderingTheme$theme50, _orderingTheme$theme51, _orderingTheme$theme52, _orderingTheme$theme53, _orderingTheme$theme54, _orderingTheme$theme55, _orderingTheme$theme56, _orderingTheme$theme57, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _orderingTheme$theme58, _orderingTheme$theme59, _orderingTheme$theme60, _orderingTheme$theme61, _orderingTheme$theme62, _orderingTheme$theme63, _orderingTheme$theme64, _orderingTheme$theme65, _orderingTheme$theme66, _orderingTheme$theme67, _orderingTheme$theme68, _orderingTheme$theme69, _orderingTheme$theme70, _orderingTheme$theme71, _props$beforeElements, _props$beforeComponen, _business$reviews3, _business$reviews4, _props$afterComponent, _props$afterElements;
47
+ var _configs$preorder_sta, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _orderingTheme$theme42, _orderingTheme$theme43, _orderingTheme$theme44, _orderingTheme$theme45, _orderingTheme$theme46, _orderingTheme$theme47, _orderingTheme$theme48, _orderingTheme$theme49, _orderingTheme$theme50, _orderingTheme$theme51, _orderingTheme$theme52, _orderingTheme$theme53, _orderingTheme$theme54, _orderingTheme$theme55, _orderingTheme$theme56, _orderingTheme$theme57, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _orderingTheme$theme58, _orderingTheme$theme59, _orderingTheme$theme60, _orderingTheme$theme61, _orderingTheme$theme62, _orderingTheme$theme63, _orderingTheme$theme64, _orderingTheme$theme65, _orderingTheme$theme66, _orderingTheme$theme67, _orderingTheme$theme68, _orderingTheme$theme69, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _props$beforeElements, _props$beforeComponen, _business$reviews3, _business$reviews4, _props$afterComponent, _props$afterElements;
47
48
  var isSkeleton = props.isSkeleton,
48
49
  businessState = props.businessState,
49
50
  setOpenBusinessInformation = props.setOpenBusinessInformation,
@@ -55,7 +56,8 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
55
56
  handleChangeSortBy = props.handleChangeSortBy,
56
57
  categoryState = props.categoryState,
57
58
  errorQuantityProducts = props.errorQuantityProducts,
58
- isCustomerMode = props.isCustomerMode;
59
+ isCustomerMode = props.isCustomerMode,
60
+ categoryClicked = props.categoryClicked;
59
61
  var business = businessState.business,
60
62
  loading = businessState.loading;
61
63
  var theme = (0, _styledComponents.useTheme)();
@@ -71,6 +73,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
71
73
  parsePrice = _useUtils2$.parsePrice,
72
74
  parseDistance = _useUtils2$.parseDistance,
73
75
  optimizeImage = _useUtils2$.optimizeImage;
76
+ var windowSize = (0, _useWindowSize.useWindowSize)();
74
77
  var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
75
78
  _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
76
79
  orderingTheme = _useOrderingTheme2[0];
@@ -100,8 +103,9 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
100
103
  var isInfoShrunken = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme50 = orderingTheme.theme) === null || _orderingTheme$theme50 === void 0 ? void 0 : (_orderingTheme$theme51 = _orderingTheme$theme50.business_view) === null || _orderingTheme$theme51 === void 0 ? void 0 : (_orderingTheme$theme52 = _orderingTheme$theme51.components) === null || _orderingTheme$theme52 === void 0 ? void 0 : (_orderingTheme$theme53 = _orderingTheme$theme52.header) === null || _orderingTheme$theme53 === void 0 ? void 0 : (_orderingTheme$theme54 = _orderingTheme$theme53.components) === null || _orderingTheme$theme54 === void 0 ? void 0 : (_orderingTheme$theme55 = _orderingTheme$theme54.business) === null || _orderingTheme$theme55 === void 0 ? void 0 : (_orderingTheme$theme56 = _orderingTheme$theme55.components) === null || _orderingTheme$theme56 === void 0 ? void 0 : (_orderingTheme$theme57 = _orderingTheme$theme56.layout) === null || _orderingTheme$theme57 === void 0 ? void 0 : _orderingTheme$theme57.position) === 'shrunken';
101
104
  var searchLayout = 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$.product_search) === 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;
102
105
  var hideCity = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme58 = orderingTheme.theme) === null || _orderingTheme$theme58 === void 0 ? void 0 : (_orderingTheme$theme59 = _orderingTheme$theme58.business_view) === null || _orderingTheme$theme59 === void 0 ? void 0 : (_orderingTheme$theme60 = _orderingTheme$theme59.components) === null || _orderingTheme$theme60 === void 0 ? void 0 : (_orderingTheme$theme61 = _orderingTheme$theme60.header) === null || _orderingTheme$theme61 === void 0 ? void 0 : (_orderingTheme$theme62 = _orderingTheme$theme61.components) === null || _orderingTheme$theme62 === void 0 ? void 0 : (_orderingTheme$theme63 = _orderingTheme$theme62.business) === null || _orderingTheme$theme63 === void 0 ? void 0 : (_orderingTheme$theme64 = _orderingTheme$theme63.components) === null || _orderingTheme$theme64 === void 0 ? void 0 : (_orderingTheme$theme65 = _orderingTheme$theme64.city) === null || _orderingTheme$theme65 === void 0 ? void 0 : _orderingTheme$theme65.hidden;
103
- var layoutsWithOldSearch = ['starbucks', 'old'];
104
- var hideSearch = layoutsWithOldSearch.includes(orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme66 = orderingTheme.theme) === null || _orderingTheme$theme66 === void 0 ? void 0 : (_orderingTheme$theme67 = _orderingTheme$theme66.business_view) === null || _orderingTheme$theme67 === void 0 ? void 0 : (_orderingTheme$theme68 = _orderingTheme$theme67.components) === null || _orderingTheme$theme68 === void 0 ? void 0 : (_orderingTheme$theme69 = _orderingTheme$theme68.product_search) === null || _orderingTheme$theme69 === void 0 ? void 0 : (_orderingTheme$theme70 = _orderingTheme$theme69.components) === null || _orderingTheme$theme70 === void 0 ? void 0 : (_orderingTheme$theme71 = _orderingTheme$theme70.layout) === null || _orderingTheme$theme71 === void 0 ? void 0 : _orderingTheme$theme71.type);
106
+ var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme66 = orderingTheme.theme) === null || _orderingTheme$theme66 === void 0 ? void 0 : (_orderingTheme$theme67 = _orderingTheme$theme66.header) === null || _orderingTheme$theme67 === void 0 ? void 0 : (_orderingTheme$theme68 = _orderingTheme$theme67.components) === null || _orderingTheme$theme68 === void 0 ? void 0 : (_orderingTheme$theme69 = _orderingTheme$theme68.layout) === null || _orderingTheme$theme69 === void 0 ? void 0 : _orderingTheme$theme69.type) === 'Chew';
107
+ var layoutsWithOldSearch = ['starbucks', 'old', 'floating'];
108
+ var hideSearch = layoutsWithOldSearch.includes(theme === null || theme === void 0 ? void 0 : (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 ? void 0 : (_theme$business_view3 = _theme$business_view2.components) === null || _theme$business_view3 === void 0 ? void 0 : (_theme$business_view4 = _theme$business_view3.product_search) === null || _theme$business_view4 === void 0 ? void 0 : (_theme$business_view5 = _theme$business_view4.components) === null || _theme$business_view5 === void 0 ? void 0 : (_theme$business_view6 = _theme$business_view5.layout) === null || _theme$business_view6 === void 0 ? void 0 : _theme$business_view6.type);
105
109
  var getBusinessType = function getBusinessType() {
106
110
  if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
107
111
  var _types = [];
@@ -190,7 +194,9 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
190
194
  };
191
195
  var BusinessInfoComponent = function BusinessInfoComponent() {
192
196
  var _business$ribbon, _business$ribbon2, _business$ribbon3, _business$ribbon4, _business$ribbon5, _business$ribbon6, _business$ribbon7, _business$city, _business$city2, _orderState$options, _business$reviews, _business$reviews2, _categoryState$produc, _business$professiona;
193
- return /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, {
197
+ return /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContainer, {
198
+ isChew: isChew
199
+ }, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, {
194
200
  className: "info"
195
201
  }, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoItem, {
196
202
  isInfoShrunken: isInfoShrunken
@@ -275,7 +281,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
275
281
  }
276
282
  }, t('REVIEWS', 'Reviews'))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
277
283
  width: isCustomerMode ? 100 : 150
278
- })))), !hideSearch && ((categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$produc = categoryState.products) === null || _categoryState$produc === void 0 ? void 0 : _categoryState$produc.length) !== 0 || searchValue) && !errorQuantityProducts && !isInfoShrunken && !(business !== null && business !== void 0 && (_business$professiona = business.professionals) !== null && _business$professiona !== void 0 && _business$professiona.length) && /*#__PURE__*/_react.default.createElement(SearchComponent, null));
284
+ })))), !hideSearch && ((categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$produc = categoryState.products) === null || _categoryState$produc === void 0 ? void 0 : _categoryState$produc.length) !== 0 || searchValue) && !errorQuantityProducts && !isInfoShrunken && !(business !== null && business !== void 0 && (_business$professiona = business.professionals) !== null && _business$professiona !== void 0 && _business$professiona.length) && (categoryClicked || windowSize.width >= 993) && /*#__PURE__*/_react.default.createElement(SearchComponent, null));
279
285
  };
280
286
  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) {
281
287
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
@@ -295,14 +301,15 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
295
301
  });
296
302
  },
297
303
  business: businessState.business
298
- })), /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoWrapper, null, !isInfoShrunken && /*#__PURE__*/_react.default.createElement(BusinessInfoComponent, null), ((business === null || business === void 0 ? void 0 : business.header) || (business === null || business === void 0 ? void 0 : business.logo) || loading || isInfoShrunken) && /*#__PURE__*/_react.default.createElement(_styles.BusinessContainer, {
304
+ })), /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoWrapper, null, !isInfoShrunken && !isChew && /*#__PURE__*/_react.default.createElement(BusinessInfoComponent, null), ((business === null || business === void 0 ? void 0 : business.header) || (business === null || business === void 0 ? void 0 : business.logo) || loading || isInfoShrunken) && /*#__PURE__*/_react.default.createElement(_styles.BusinessContainer, {
299
305
  bgimage: business === null || business === void 0 ? void 0 : business.header,
300
306
  isSkeleton: isSkeleton,
301
307
  id: "container",
302
- isClosed: !(business !== null && business !== void 0 && business.open)
303
- }, !loading && !(business !== null && business !== void 0 && business.open) && /*#__PURE__*/_react.default.createElement("h1", null, t('CLOSED', 'Closed')), showLogo && (business === null || business === void 0 ? void 0 : business.logo) && /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperBusinessLogo, null, !loading && /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
308
+ isClosed: !(business !== null && business !== void 0 && business.open),
309
+ isChew: isChew
310
+ }, !loading && !(business !== null && business !== void 0 && business.open) && /*#__PURE__*/_react.default.createElement("h1", null, t('CLOSED', 'Closed')), showLogo && (business === null || business === void 0 ? void 0 : business.logo) && !isChew && /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperBusinessLogo, null, !loading && /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
304
311
  bgimage: optimizeImage(business === null || business === void 0 ? void 0 : business.logo, 'h_200,c_limit')
305
- }))), isInfoShrunken && /*#__PURE__*/_react.default.createElement(BusinessInfoComponent, null), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isInfoShrunken && /*#__PURE__*/_react.default.createElement(_styles.SearchComponentContainer, null, /*#__PURE__*/_react.default.createElement(SearchComponent, null)), searchLayout === 'floating' && /*#__PURE__*/_react.default.createElement(_styles.WrapperFloatingSearch, null, /*#__PURE__*/_react.default.createElement(_SearchProducts2.SearchProducts, {
312
+ }))), (isInfoShrunken || isChew) && /*#__PURE__*/_react.default.createElement(BusinessInfoComponent, null), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isInfoShrunken && /*#__PURE__*/_react.default.createElement(_styles.SearchComponentContainer, null, /*#__PURE__*/_react.default.createElement(SearchComponent, null)), searchLayout === 'floating' && /*#__PURE__*/_react.default.createElement(_styles.WrapperFloatingSearch, null, /*#__PURE__*/_react.default.createElement(_SearchProducts2.SearchProducts, {
306
313
  handleChangeSearch: handleChangeSearch,
307
314
  searchValue: searchValue,
308
315
  sortByOptions: sortByOptions,
@@ -7,25 +7,27 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.WrapperSearch = exports.WrapperFloatingSearch = exports.WrapperBusinessLogo = exports.TitleWrapper = exports.SocialList = exports.SearchIconWrapper = exports.SearchComponentContainer = exports.RibbonBox = exports.IconWrapper = exports.BusinessMoreDetail = exports.BusinessLogo = exports.BusinessInfoWrapper = exports.BusinessInfoItem = exports.BusinessInfoContent = exports.BusinessInfoContainer = exports.BusinessInfo = exports.BusinessDetail = exports.BusinessContent = exports.BusinessContainer = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
15
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
- var BusinessContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n position: relative;\n max-height: 324px;\n height: 324px;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n min-height: 200px;\n justify-content: start;\n align-items: flex-end;\n\n ", "\n\n ", "\n\n ", "\n\n h1 {\n color: #FFF;\n opacity: 0.5;\n position: absolute;\n top: 0;\n right: 0;\n margin: 0 10px;\n padding: 0;\n }\n\n @media (min-width: 576px) {\n border-radius: 7.6px;\n }\n\n\n"])), function (props) {
16
+ var BusinessContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n position: relative;\n max-height: 324px;\n height: 324px;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n min-height: 200px;\n justify-content: start;\n align-items: flex-end;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n h1 {\n color: #FFF;\n opacity: 0.5;\n position: absolute;\n top: 0;\n right: 0;\n margin: 0 10px;\n padding: 0;\n }\n\n @media (min-width: 576px) {\n border-radius: 7.6px;\n }\n\n\n"])), function (props) {
17
17
  return props.isSkeleton && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #cccccc;\n "])));
18
18
  }, function (props) {
19
- return props.bgimage && !props.isClosed && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: url(", ");\n "])), props.bgimage);
19
+ return props.bgimage && !props.isClosed && !props.isChew && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: url(", ");\n "])), props.bgimage);
20
20
  }, function (props) {
21
- return props.bgimage && props.isClosed && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(", ");\n "])), props.bgimage);
21
+ return props.bgimage && props.isClosed && !props.isChew && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(", ");\n "])), props.bgimage);
22
+ }, function (props) {
23
+ return props.bgimage && props.isChew && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url(", ");\n "])), props.bgimage);
22
24
  });
23
25
  exports.BusinessContainer = BusinessContainer;
24
- var BusinessContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0;\n margin-left: 35px;\n margin-bottom: -35px;\n max-height: 80px;\n width: 80px;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\n\n @media (min-width: 576px) {\n border-radius: 10px;\n margin: 10px;\n max-height: 124px;\n width: 124px;\n }\n\n @media (min-width: 768px) {\n margin: 25px;\n }\n"])));
26
+ var BusinessContent = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0;\n margin-left: 35px;\n margin-bottom: -35px;\n max-height: 80px;\n width: 80px;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\n\n @media (min-width: 576px) {\n border-radius: 10px;\n margin: 10px;\n max-height: 124px;\n width: 124px;\n }\n\n @media (min-width: 768px) {\n margin: 25px;\n }\n"])));
25
27
  exports.BusinessContent = BusinessContent;
26
- var WrapperBusinessLogo = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: 80px;\n max-height: 80px;\n width: 80px;\n height: 80px;\n \n @media (min-width: 576px) {\n max-width: 124px;\n max-height: 124px;\n height: 124px;\n width: 124px;\n }\n"])));
28
+ var WrapperBusinessLogo = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n max-width: 80px;\n max-height: 80px;\n width: 80px;\n height: 80px;\n\n @media (min-width: 576px) {\n max-width: 124px;\n max-height: 124px;\n height: 124px;\n width: 124px;\n }\n"])));
27
29
  exports.WrapperBusinessLogo = WrapperBusinessLogo;
28
- var BusinessLogoStyled = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n min-height: 80px;\n border-radius: 7.6px;\n @media (min-width: 576px) {\n min-height: 124px;\n }\n"])));
30
+ var BusinessLogoStyled = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n min-height: 80px;\n border-radius: 7.6px;\n @media (min-width: 576px) {\n min-height: 124px;\n }\n"])));
29
31
  var BusinessLogo = function BusinessLogo(props) {
30
32
  var style = {};
31
33
  if (props.bgimage) {
@@ -36,11 +38,11 @@ var BusinessLogo = function BusinessLogo(props) {
36
38
  }), props.children);
37
39
  };
38
40
  exports.BusinessLogo = BusinessLogo;
39
- var BusinessInfo = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n"])));
41
+ var BusinessInfo = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n"])));
40
42
  exports.BusinessInfo = BusinessInfo;
41
- var BusinessInfoItem = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding-right:5px;\n ", "\n\n .type {\n font-size: 14px;\n color: ", ";\n margin: 0 0 5px 0;\n }\n\n .preorder-Reviews {\n span {\n user-select: none;\n cursor: pointer;\n font-size: 14px;\n color: ", ";\n text-decoration: underline;\n &:not(:last-child) {\n margin-right: 5px;\n ", "\n }\n\n &.dot {\n font-size: 12px;\n text-decoration: none;\n color: #909BA9;\n }\n }\n }\n\n ", "\n"])), function (props) {
43
+ var BusinessInfoItem = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding-right:5px;\n ", "\n\n .type {\n font-size: 14px;\n color: ", ";\n margin: 0 0 5px 0;\n }\n\n .preorder-Reviews {\n span {\n user-select: none;\n cursor: pointer;\n font-size: 14px;\n color: ", ";\n text-decoration: underline;\n &:not(:last-child) {\n margin-right: 5px;\n ", "\n }\n\n &.dot {\n font-size: 12px;\n text-decoration: none;\n color: #909BA9;\n }\n }\n }\n\n ", "\n"])), function (props) {
42
44
  var _props$theme;
43
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding-left: 5px;\n padding-right: 0;\n "])));
45
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding-left: 5px;\n padding-right: 0;\n "])));
44
46
  }, function (props) {
45
47
  return props.theme.colors.darkTextColor;
46
48
  }, function (props) {
@@ -48,49 +50,53 @@ var BusinessInfoItem = _styledComponents.default.div(_templateObject9 || (_templ
48
50
  return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.colors.primary;
49
51
  }, function (props) {
50
52
  var _props$theme3;
51
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
53
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
52
54
  }, function (_ref) {
53
55
  var isInfoShrunken = _ref.isInfoShrunken;
54
- return isInfoShrunken && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n color: #FFFFFF;\n span, p, h5, svg {\n color: #FFFFFF !important;\n }\n "])));
56
+ return isInfoShrunken && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n color: #FFFFFF;\n span, p, h5, svg {\n color: #FFFFFF !important;\n }\n "])));
55
57
  });
56
58
  exports.BusinessInfoItem = BusinessInfoItem;
57
- var BusinessInfoContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n box-sizing: border-box;\n align-items: flex-end;\n\n @media (min-width: 576px) {\n padding-top: 0px;\n padding-left: 0px;\n padding-right: 0px;\n margin-top: 10px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n margin-bottom: 25px;\n }\n"])));
59
+ var BusinessInfoContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: ", ";\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n box-sizing: border-box;\n align-items: flex-end;\n\n @media (min-width: 576px) {\n padding-top: 0px;\n padding-left: 0px;\n padding-right: 0px;\n margin-top: 10px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n margin-bottom: 25px;\n margin-left: ", ";\n }\n"])), function (props) {
60
+ return props.isChew && '100%';
61
+ }, function (props) {
62
+ return props.isChew && '25px';
63
+ });
58
64
  exports.BusinessInfoContainer = BusinessInfoContainer;
59
- var BusinessInfoContent = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
65
+ var BusinessInfoContent = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
60
66
  exports.BusinessInfoContent = BusinessInfoContent;
61
- var WrapperSearch = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n box-sizing: border-box;\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\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #748194 !important;\n\n #list {\n border-radius: 8px;\n }\n }\n &.fixed-search {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1002;\n width: 100vw;\n margin-top: 0px;\n background-color: ", ";\n padding: 10px;\n }\n"])), function (props) {
67
+ var WrapperSearch = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n box-sizing: border-box;\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\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #748194 !important;\n\n #list {\n border-radius: 8px;\n }\n }\n &.fixed-search {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1002;\n width: 100vw;\n margin-top: 0px;\n background-color: ", ";\n padding: 10px;\n }\n"])), function (props) {
62
68
  var _props$theme4;
63
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
69
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
64
70
  }, function (props) {
65
71
  var _props$theme5;
66
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n text-align: left;\n "])));
72
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n text-align: left;\n "])));
67
73
  }, function (props) {
68
74
  return props.theme.colors.backgroundPage;
69
75
  });
70
76
  exports.WrapperSearch = WrapperSearch;
71
- var BusinessDetail = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n h5 {\n font-size: 14px;\n color: #909BA9;\n margin: 0 5px 0 0;\n font-weight: normal;\n ", "\n\n span {\n margin-right: 5px;\n ", "\n }\n }\n\n .review {\n color: #909BA9;\n margin: 0;\n display: flex;\n align-items: center;\n\n svg {\n font-size: 15px;\n margin-bottom: 1px;\n margin-right: 5px;\n ", "\n }\n\n p {\n font-size: 14px;\n margin: 0px;\n }\n }\n\n .dot {\n color: #909BA9;\n font-size: 12px;\n margin-right: 5px;\n ", "\n }\n\n ", "\n"])), function (props) {
77
+ var BusinessDetail = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n h5 {\n font-size: 14px;\n color: #909BA9;\n margin: 0 5px 0 0;\n font-weight: normal;\n ", "\n\n span {\n margin-right: 5px;\n ", "\n }\n }\n\n .review {\n color: #909BA9;\n margin: 0;\n display: flex;\n align-items: center;\n\n svg {\n font-size: 15px;\n margin-bottom: 1px;\n margin-right: 5px;\n ", "\n }\n\n p {\n font-size: 14px;\n margin: 0px;\n }\n }\n\n .dot {\n color: #909BA9;\n font-size: 12px;\n margin-right: 5px;\n ", "\n }\n\n ", "\n"])), function (props) {
72
78
  var _props$theme6;
73
- return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
79
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
74
80
  }, function (props) {
75
81
  var _props$theme7;
76
- return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
82
+ return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
77
83
  }, function (props) {
78
84
  var _props$theme8;
79
- return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
85
+ return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
80
86
  }, function (props) {
81
87
  var _props$theme9;
82
- return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
88
+ return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
83
89
  }, function (_ref2) {
84
90
  var isSkeleton = _ref2.isSkeleton;
85
- return isSkeleton && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n > span {\n display: flex;\n margin-right: 5px;\n ", "\n }\n "])), function (props) {
91
+ return isSkeleton && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n > span {\n display: flex;\n margin-right: 5px;\n ", "\n }\n "])), function (props) {
86
92
  var _props$theme10;
87
- return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
93
+ return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
88
94
  });
89
95
  });
90
96
  exports.BusinessDetail = BusinessDetail;
91
- var BusinessMoreDetail = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n ", "\n position: ", ";\n min-width: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n svg {\n font-size: 24px;\n color: ", ";\n }\n"])), function (_ref3) {
97
+ var BusinessMoreDetail = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n ", "\n position: ", ";\n min-width: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n svg {\n font-size: 24px;\n color: ", ";\n }\n"])), function (_ref3) {
92
98
  var position = _ref3.position;
93
- return position ? (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n width: 100% !important;\n justify-content: flex-end !important;\n top: 0px;\n right: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n top: 30px;\n right: 30px;\n "])));
99
+ return position ? (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n width: 100% !important;\n justify-content: flex-end !important;\n top: 0px;\n right: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n top: 30px;\n right: 30px;\n "])));
94
100
  }, function (props) {
95
101
  var _props$position;
96
102
  return (_props$position = props.position) !== null && _props$position !== void 0 ? _props$position : 'absolute';
@@ -98,58 +104,58 @@ var BusinessMoreDetail = _styledComponents.default.div(_templateObject25 || (_te
98
104
  return props.position ? 'black' : 'white';
99
105
  });
100
106
  exports.BusinessMoreDetail = BusinessMoreDetail;
101
- var TitleWrapper = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n\n h2 {\n font-size: 24px;\n line-height: 36px;\n margin: 0 0 10px 0;\n font-weight: 600;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n @media (min-width: 768px) {\n font-size: 32px;\n }\n }\n"])));
107
+ var TitleWrapper = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n\n h2 {\n font-size: 24px;\n line-height: 36px;\n margin: 0 0 10px 0;\n font-weight: 600;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n @media (min-width: 768px) {\n font-size: 32px;\n }\n }\n"])));
102
108
  exports.TitleWrapper = TitleWrapper;
103
- var RibbonBox = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n box-sizing: border-box;\n z-index: 10;\n color: ", ";\n font-weight: 400;\n font-size: 10px;\n line-height: 13px;\n background-color: ", ";\n max-width: 200px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n margin-left: 5px;\n margin-bottom: 10px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
109
+ var RibbonBox = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n box-sizing: border-box;\n z-index: 10;\n color: ", ";\n font-weight: 400;\n font-size: 10px;\n line-height: 13px;\n background-color: ", ";\n max-width: 200px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n margin-left: 5px;\n margin-bottom: 10px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
104
110
  return props.theme.colors.colorTextSignForm;
105
111
  }, function (props) {
106
112
  return props.theme.colors.primary;
107
113
  }, function (props) {
108
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 5px;\n "])));
114
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 5px;\n "])));
109
115
  }, function (_ref4) {
110
116
  var bgColor = _ref4.bgColor;
111
- return bgColor && (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
117
+ return bgColor && (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
112
118
  }, function (_ref5) {
113
119
  var isRoundRect = _ref5.isRoundRect;
114
- return isRoundRect && (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
120
+ return isRoundRect && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
115
121
  }, function (_ref6) {
116
122
  var isCapsule = _ref6.isCapsule;
117
- return isCapsule && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
123
+ return isCapsule && (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
118
124
  }, function (_ref7) {
119
125
  var colorText = _ref7.colorText;
120
- return colorText && (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorText ? 'black' : 'white');
126
+ return colorText && (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorText ? 'black' : 'white');
121
127
  }, function (_ref8) {
122
128
  var borderRibbon = _ref8.borderRibbon;
123
- return borderRibbon && (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), borderRibbon ? 'black' : 'white');
129
+ return borderRibbon && (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), borderRibbon ? 'black' : 'white');
124
130
  });
125
131
  exports.RibbonBox = RibbonBox;
126
- var SearchIconWrapper = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n width: 36px;\n height: 36px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n font-size: 18px;\n }\n"])), function (props) {
132
+ var SearchIconWrapper = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n width: 36px;\n height: 36px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n font-size: 18px;\n }\n"])), function (props) {
127
133
  return props.theme.colors.gray200;
128
134
  });
129
135
  exports.SearchIconWrapper = SearchIconWrapper;
130
- var SearchComponentContainer = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10px;\n right: 60px;\n color: ", ";\n #select-input {\n color: #FFFFFF !important;\n }\n svg {\n color: #FFFFFF;\n }\n"])), function (_ref9) {
136
+ var SearchComponentContainer = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10px;\n right: 60px;\n color: ", ";\n #select-input {\n color: #FFFFFF !important;\n }\n svg {\n color: #FFFFFF;\n }\n"])), function (_ref9) {
131
137
  var theme = _ref9.theme;
132
138
  return theme.colors.white;
133
139
  });
134
140
  exports.SearchComponentContainer = SearchComponentContainer;
135
- var SocialList = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: -3px;\n ", "\n"])), function (props) {
136
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n margin-right: -3px;\n margin-left: 0px;\n "])));
141
+ var SocialList = _styledComponents.default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: -3px;\n ", "\n"])), function (props) {
142
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin-right: -3px;\n margin-left: 0px;\n "])));
137
143
  });
138
144
  exports.SocialList = SocialList;
139
- var IconWrapper = _styledComponents.default.a(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin: 0px 3px 10px 3px;\n border-radius: 3px;\n border: 0.5px solid ", ";\n width: 27px;\n height: 27px;\n min-width: 27px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n\n ", "\n\n svg {\n height: 18px;\n font-size: 18px;\n transition: all 0.2s ease-in;\n color: ", ";\n }\n &:hover {\n background-color: ", ";\n svg {\n transform: scale(1.07);\n }\n }\n"])), function (props) {
145
+ var IconWrapper = _styledComponents.default.a(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n margin: 0px 3px 10px 3px;\n border-radius: 3px;\n border: 0.5px solid ", ";\n width: 27px;\n height: 27px;\n min-width: 27px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n\n ", "\n\n svg {\n height: 18px;\n font-size: 18px;\n transition: all 0.2s ease-in;\n color: ", ";\n }\n &:hover {\n background-color: ", ";\n svg {\n transform: scale(1.07);\n }\n }\n"])), function (props) {
140
146
  return props.theme.colors.gray200;
141
147
  }, function (_ref10) {
142
148
  var isSkeleton = _ref10.isSkeleton;
143
- return isSkeleton && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n border: none;\n "])));
149
+ return isSkeleton && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n border: none;\n "])));
144
150
  }, function (props) {
145
151
  return props.theme.colors.headingColor;
146
152
  }, function (props) {
147
153
  return props.theme.colors.gray200;
148
154
  });
149
155
  exports.IconWrapper = IconWrapper;
150
- var BusinessInfoWrapper = _styledComponents.default.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n @media (min-width: 768px) {\n flex-direction: column;\n }\n"])));
156
+ var BusinessInfoWrapper = _styledComponents.default.div(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n @media (min-width: 768px) {\n flex-direction: column;\n }\n"])));
151
157
  exports.BusinessInfoWrapper = BusinessInfoWrapper;
152
- var WrapperFloatingSearch = _styledComponents.default.div(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n display: flex;\n background: rgba(0,0,0,0.2);\n top: 80px;\n right: 10px;\n width: 80%;\n border-bottom: 1px solid #FFFFFF;\n #select-input {\n color: #FFFFFF !important;\n background: transparent;\n }\n svg, span {\n color: #FFFFFF !important;\n }\n @media (min-width: 681px){\n top: 23px;\n right: 60px;\n width: 300px;\n input {\n width: 80%;\n }\n }\n"])), function (_ref11) {
158
+ var WrapperFloatingSearch = _styledComponents.default.div(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n display: flex;\n background: rgba(0,0,0,0.2);\n top: 80px;\n right: 10px;\n width: 80%;\n border-bottom: 1px solid #FFFFFF;\n #select-input {\n color: #FFFFFF !important;\n background: transparent;\n }\n svg, span {\n color: #FFFFFF !important;\n }\n @media (min-width: 681px){\n top: 23px;\n right: 60px;\n width: 300px;\n input {\n width: 80%;\n }\n }\n"])), function (_ref11) {
153
159
  var theme = _ref11.theme;
154
160
  return theme.colors.white;
155
161
  });
@@ -351,7 +351,11 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
351
351
  businessId: curProduct === null || curProduct === void 0 ? void 0 : (_curProduct$business2 = curProduct.business) === null || _curProduct$business2 === void 0 ? void 0 : _curProduct$business2.id,
352
352
  categoryId: curProduct === null || curProduct === void 0 ? void 0 : (_curProduct$product = curProduct.product) === null || _curProduct$product === void 0 ? void 0 : _curProduct$product.category_id,
353
353
  productId: curProduct === null || curProduct === void 0 ? void 0 : (_curProduct$product2 = curProduct.product) === null || _curProduct$product2 === void 0 ? void 0 : _curProduct$product2.id,
354
- onSave: handleRedirectToCart
354
+ onSave: handleRedirectToCart,
355
+ handleUpdateProducts: function handleUpdateProducts(productId, changes) {
356
+ var _curProduct$product3, _curProduct$business3;
357
+ return _handleUpdateProducts(productId, curProduct === null || curProduct === void 0 ? void 0 : (_curProduct$product3 = curProduct.product) === null || _curProduct$product3 === void 0 ? void 0 : _curProduct$product3.category_id, curProduct === null || curProduct === void 0 ? void 0 : (_curProduct$business3 = curProduct.business) === null || _curProduct$business3 === void 0 ? void 0 : _curProduct$business3.id, changes);
358
+ }
355
359
  })));
356
360
  };
357
361
  exports.BusinessListingSearchUI = BusinessListingSearchUI;
@@ -10,7 +10,6 @@ var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skelet
10
10
  var _orderingComponentsExternal = require("ordering-components-external");
11
11
  var _AutoScroll = require("../../../../../components/AutoScroll");
12
12
  var _styledComponents = require("styled-components");
13
- var _useWindowSize2 = require("../../../../../hooks/useWindowSize");
14
13
  var _styles = require("./styles");
15
14
  var _Tabs = require("../../styles/Tabs");
16
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -50,8 +49,6 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
50
49
  _useState2 = _slicedToArray(_useState, 2),
51
50
  selectedCategory = _useState2[0],
52
51
  setSelectedCateogry = _useState2[1];
53
- var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),
54
- width = _useWindowSize.width;
55
52
  var scrollTopSpan = 60;
56
53
  var handleChangeCategory = function handleChangeCategory(category) {
57
54
  var _document$getElementB, _document$getElementB2;
@@ -22,9 +22,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
22
22
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
23
23
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
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
- var SPACE_CONTANT = 25;
25
+ var SPACE_CONTANT = 5;
26
26
  var categorySpace = {
27
- 1: 1,
27
+ 1: 0,
28
28
  2: 2 * SPACE_CONTANT,
29
29
  3: 3 * SPACE_CONTANT,
30
30
  4: 4 * SPACE_CONTANT,
@@ -36,25 +36,32 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
36
36
  handlerClickCategory = props.handlerClickCategory,
37
37
  categorySelected = props.categorySelected,
38
38
  featured = props.featured,
39
- openCategories = props.openCategories;
39
+ openCategories = props.openCategories,
40
+ setCategoryClicked = props.setCategoryClicked;
41
+ var _handleClickItem = function handleClickItem(category, isSelectCategory) {
42
+ handlerClickCategory(category);
43
+ if (isSelectCategory) {
44
+ setCategoryClicked(true);
45
+ }
46
+ };
40
47
  var IterateCategories = function IterateCategories(_ref) {
41
48
  var _category$level4, _category;
42
49
  var list = _ref.list,
43
50
  isSub = _ref.isSub,
44
51
  currentCat = _ref.currentCat;
45
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (list === null || list === void 0 ? void 0 : list.length) && (list === null || list === void 0 ? void 0 : list.map(function (category) {
52
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (list === null || list === void 0 ? void 0 : list.length) && (list === null || list === void 0 ? void 0 : list.map(function (category, i) {
46
53
  var _category$id, _category$subcategori, _category$subcategori2, _category$level, _category$subcategori3, _category$level2, _category$level3;
47
- return /*#__PURE__*/_react.default.createElement("div", {
54
+ return /*#__PURE__*/_react.default.createElement(_styles.IterateCategoriesContainer, {
48
55
  key: (_category$id = category === null || category === void 0 ? void 0 : category.id) !== null && _category$id !== void 0 ? _category$id : category === null || category === void 0 ? void 0 : category.name
49
56
  }, (category === null || category === void 0 ? void 0 : (_category$subcategori = category.subcategories) === null || _category$subcategori === void 0 ? void 0 : _category$subcategori.length) > 0 || isSub ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (category === null || category === void 0 ? void 0 : (_category$subcategori2 = category.subcategories) === null || _category$subcategori2 === void 0 ? void 0 : _category$subcategori2.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
50
- className: "accordion"
57
+ className: "accordion ".concat((category === null || category === void 0 ? void 0 : category.level) === 1 ? 'level-1' : '')
51
58
  }, /*#__PURE__*/_react.default.createElement(_AccordionDropdown.AccordionDropdown, {
52
59
  item: category,
53
60
  isSelected: (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.id) === category.id,
54
61
  isOpen: openCategories === null || openCategories === void 0 ? void 0 : openCategories.includes(category.id),
55
62
  spaceTab: categorySpace[(_category$level = category === null || category === void 0 ? void 0 : category.level) !== null && _category$level !== void 0 ? _category$level : 1],
56
- handleClickItem: function handleClickItem() {
57
- return handlerClickCategory(category);
63
+ handleClickItem: function handleClickItem(isSelectCategory) {
64
+ return _handleClickItem(category, isSelectCategory);
58
65
  },
59
66
  IterateCategories: IterateCategories
60
67
  }))), isSub && !(category !== null && category !== void 0 && (_category$subcategori3 = category.subcategories) !== null && _category$subcategori3 !== void 0 && _category$subcategori3.length) && /*#__PURE__*/_react.default.createElement(_styles.CategoryTab, {
@@ -62,22 +69,24 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
62
69
  className: "".concat(category.id === 'featured' ? 'special' : ''),
63
70
  categorySpace: categorySpace[(_category$level2 = category === null || category === void 0 ? void 0 : category.level) !== null && _category$level2 !== void 0 ? _category$level2 : 1],
64
71
  onClick: function onClick() {
65
- return handlerClickCategory(category);
66
- }
72
+ return _handleClickItem(category, true);
73
+ },
74
+ isSub: isSub || i + 1 === (list === null || list === void 0 ? void 0 : list.length)
67
75
  }, /*#__PURE__*/_react.default.createElement("span", null, category.name))) : /*#__PURE__*/_react.default.createElement(_styles.CategoryTab, {
68
76
  active: (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.id) === category.id,
69
77
  className: "".concat(category.id === 'featured' ? 'special' : ''),
70
78
  categorySpace: categorySpace[(_category$level3 = category === null || category === void 0 ? void 0 : category.level) !== null && _category$level3 !== void 0 ? _category$level3 : 1],
71
79
  onClick: function onClick() {
72
- return handlerClickCategory(category);
73
- }
80
+ return _handleClickItem(category, true);
81
+ },
82
+ isSub: isSub || i + 1 === (list === null || list === void 0 ? void 0 : list.length)
74
83
  }, /*#__PURE__*/_react.default.createElement("span", null, category.name)));
75
84
  })), list && (list === null || list === void 0 ? void 0 : list.length) === 0 && isSub && /*#__PURE__*/_react.default.createElement(_styles.CategoryTab, {
76
85
  active: (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.id) === category.id,
77
86
  className: "".concat(category.id === 'featured' ? 'special' : ''),
78
87
  categorySpace: categorySpace[(_category$level4 = (_category = category) === null || _category === void 0 ? void 0 : _category.level) !== null && _category$level4 !== void 0 ? _category$level4 : 1],
79
88
  onClick: function onClick() {
80
- return handlerClickCategory(category);
89
+ return _handleClickItem(category, true);
81
90
  }
82
91
  }, /*#__PURE__*/_react.default.createElement("span", null, currentCat.name)));
83
92
  };