ordering-ui-external 2.1.4 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/_bundles/0.ordering-ui.95882a524750766186cd.js +1 -0
  2. package/_bundles/{1.ordering-ui.28ae84b35994ed466773.js → 1.ordering-ui.95882a524750766186cd.js} +1 -1
  3. package/_bundles/{2.ordering-ui.28ae84b35994ed466773.js → 2.ordering-ui.95882a524750766186cd.js} +1 -1
  4. package/_bundles/4.ordering-ui.95882a524750766186cd.js +1 -0
  5. package/_bundles/{5.ordering-ui.28ae84b35994ed466773.js → 5.ordering-ui.95882a524750766186cd.js} +1 -1
  6. package/_bundles/{6.ordering-ui.28ae84b35994ed466773.js → 6.ordering-ui.95882a524750766186cd.js} +1 -1
  7. package/_bundles/{7.ordering-ui.28ae84b35994ed466773.js → 7.ordering-ui.95882a524750766186cd.js} +2 -2
  8. package/_bundles/{7.ordering-ui.28ae84b35994ed466773.js.LICENSE.txt → 7.ordering-ui.95882a524750766186cd.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.28ae84b35994ed466773.js → 8.ordering-ui.95882a524750766186cd.js} +1 -1
  10. package/_bundles/{9.ordering-ui.28ae84b35994ed466773.js → 9.ordering-ui.95882a524750766186cd.js} +1 -1
  11. package/_bundles/{ordering-ui.28ae84b35994ed466773.js → ordering-ui.95882a524750766186cd.js} +2 -2
  12. package/_bundles/{ordering-ui.28ae84b35994ed466773.js.LICENSE.txt → ordering-ui.95882a524750766186cd.js.LICENSE.txt} +0 -0
  13. package/_modules/hooks/useIntersectionObserver.js +6 -5
  14. package/_modules/styles/Toast/index.js +4 -3
  15. package/_modules/themes/callcenterOriginal/src/components/Header/index.js +1 -1
  16. package/_modules/themes/five/src/components/AddressDetails/index.js +1 -1
  17. package/_modules/themes/five/src/components/AddressDetails/styles.js +1 -1
  18. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +1 -1
  19. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +1 -1
  20. package/_modules/themes/five/src/components/BusinessListingSearch/Accordion/index.js +43 -0
  21. package/_modules/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +16 -4
  22. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +26 -13
  23. package/_modules/themes/five/src/components/BusinessListingSearch/styles.js +43 -41
  24. package/_modules/themes/five/src/components/BusinessPreorder/index.js +23 -4
  25. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +38 -22
  26. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +2 -2
  27. package/_modules/themes/five/src/components/BusinessProductsList/styles.js +1 -1
  28. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +10 -1
  29. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +23 -17
  30. package/_modules/themes/five/src/components/Cart/index.js +2 -1
  31. package/_modules/themes/five/src/components/Cart/styles.js +1 -1
  32. package/_modules/themes/five/src/components/Checkout/index.js +23 -18
  33. package/_modules/themes/five/src/components/Checkout/styles.js +1 -1
  34. package/_modules/themes/five/src/components/DriverTips/index.js +6 -2
  35. package/_modules/themes/five/src/components/Header/styles.js +2 -2
  36. package/_modules/themes/five/src/components/Help/index.js +1 -1
  37. package/_modules/themes/five/src/components/LastOrders/index.js +3 -8
  38. package/_modules/themes/five/src/components/MessagesListing/index.js +2 -2
  39. package/_modules/themes/five/src/components/MessagesListing/styles.js +1 -1
  40. package/_modules/themes/five/src/components/MultiCheckout/index.js +20 -8
  41. package/_modules/themes/five/src/components/MultiCheckout/styles.js +15 -13
  42. package/_modules/themes/five/src/components/MyOrders/index.js +1 -3
  43. package/_modules/themes/five/src/components/NotFoundSource/index.js +3 -11
  44. package/_modules/themes/five/src/components/NotFoundSource/styles.js +2 -2
  45. package/_modules/themes/five/src/components/OrderContextUI/index.js +2 -1
  46. package/_modules/themes/five/src/components/OrderContextUI/styles.js +14 -11
  47. package/_modules/themes/five/src/components/OrderProgress/index.js +4 -3
  48. package/_modules/themes/five/src/components/PageBanner/styles.js +1 -1
  49. package/_modules/themes/five/src/components/PaymentOptions/index.js +1 -1
  50. package/_modules/themes/five/src/components/ReviewProduct/styles.js +1 -1
  51. package/_modules/themes/five/src/components/ServiceForm/index.js +16 -11
  52. package/_modules/themes/five/src/components/ServiceForm/styles.js +16 -5
  53. package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
  54. package/_modules/themes/five/src/components/UserDetails/styles.js +1 -1
  55. package/_modules/themes/five/src/components/UserFormDetails/index.js +1 -1
  56. package/_modules/themes/five/src/components/UserPopover/index.js +6 -0
  57. package/_modules/themes/five/src/components/UserProfileForm/index.js +0 -2
  58. package/_modules/themes/five/src/components/UserProfileForm/styles.js +1 -1
  59. package/_modules/themes/five/src/components/WalletTransactionItem/index.js +4 -2
  60. package/_modules/themes/five/src/components/Wallets/index.js +4 -4
  61. package/_modules/themes/five/src/components/Wallets/styles.js +33 -12
  62. package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
  63. package/_modules/themes/pwa/src/components/MomentControl/index.js +7 -9
  64. package/_modules/utils/index.js +28 -2
  65. package/package.json +2 -2
  66. package/src/hooks/useIntersectionObserver.js +7 -6
  67. package/src/styles/Toast/index.js +4 -2
  68. package/src/themes/callcenterOriginal/src/components/Header/index.js +1 -2
  69. package/src/themes/five/src/components/AddressDetails/index.js +1 -1
  70. package/src/themes/five/src/components/AddressDetails/styles.js +4 -1
  71. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +3 -1
  72. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +9 -3
  73. package/src/themes/five/src/components/BusinessListingSearch/Accordion/index.js +23 -0
  74. package/src/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +28 -17
  75. package/src/themes/five/src/components/BusinessListingSearch/index.js +65 -66
  76. package/src/themes/five/src/components/BusinessListingSearch/styles.js +21 -2
  77. package/src/themes/five/src/components/BusinessPreorder/index.js +24 -0
  78. package/src/themes/five/src/components/BusinessPreorder/styles.js +11 -1
  79. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -3
  80. package/src/themes/five/src/components/BusinessProductsList/styles.js +3 -1
  81. package/src/themes/five/src/components/BusinessProductsListing/index.js +11 -1
  82. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +11 -1
  83. package/src/themes/five/src/components/Cart/index.js +5 -1
  84. package/src/themes/five/src/components/Cart/styles.js +3 -1
  85. package/src/themes/five/src/components/Checkout/index.js +48 -61
  86. package/src/themes/five/src/components/Checkout/styles.js +3 -1
  87. package/src/themes/five/src/components/DriverTips/index.js +7 -2
  88. package/src/themes/five/src/components/Header/styles.js +4 -2
  89. package/src/themes/five/src/components/Help/index.js +0 -1
  90. package/src/themes/five/src/components/LastOrders/index.js +25 -28
  91. package/src/themes/five/src/components/MessagesListing/index.js +2 -2
  92. package/src/themes/five/src/components/MessagesListing/styles.js +3 -1
  93. package/src/themes/five/src/components/MultiCheckout/index.js +34 -14
  94. package/src/themes/five/src/components/MultiCheckout/styles.js +9 -0
  95. package/src/themes/five/src/components/MyOrders/index.js +0 -3
  96. package/src/themes/five/src/components/NotFoundSource/index.js +5 -10
  97. package/src/themes/five/src/components/NotFoundSource/styles.js +7 -2
  98. package/src/themes/five/src/components/OrderContextUI/index.js +1 -1
  99. package/src/themes/five/src/components/OrderContextUI/styles.js +4 -2
  100. package/src/themes/five/src/components/OrderProgress/index.js +8 -2
  101. package/src/themes/five/src/components/PageBanner/styles.js +1 -0
  102. package/src/themes/five/src/components/PaymentOptions/index.js +1 -1
  103. package/src/themes/five/src/components/ReviewProduct/styles.js +3 -3
  104. package/src/themes/five/src/components/ServiceForm/index.js +20 -14
  105. package/src/themes/five/src/components/ServiceForm/styles.js +11 -3
  106. package/src/themes/five/src/components/UserDetails/index.js +2 -2
  107. package/src/themes/five/src/components/UserDetails/styles.js +3 -1
  108. package/src/themes/five/src/components/UserFormDetails/index.js +0 -1
  109. package/src/themes/five/src/components/UserPopover/index.js +2 -0
  110. package/src/themes/five/src/components/UserProfileForm/index.js +0 -3
  111. package/src/themes/five/src/components/UserProfileForm/styles.js +0 -5
  112. package/src/themes/five/src/components/WalletTransactionItem/index.js +4 -1
  113. package/src/themes/five/src/components/Wallets/index.js +101 -95
  114. package/src/themes/five/src/components/Wallets/styles.js +37 -17
  115. package/src/themes/five/src/styles/Buttons/index.js +4 -0
  116. package/src/themes/pwa/src/components/MomentControl/index.js +6 -11
  117. package/src/utils/index.js +38 -12
  118. package/template/pages/Home/index.js +3 -0
  119. package/_bundles/0.ordering-ui.28ae84b35994ed466773.js +0 -1
  120. package/_bundles/4.ordering-ui.28ae84b35994ed466773.js +0 -1
@@ -57,11 +57,12 @@ function useIntersectionObserver() {
57
57
  }();
58
58
  if (!window.IntersectionObserver) loadPollyFill();
59
59
  var observer = new window.IntersectionObserver(function (entries) {
60
- var isIntersecting = entries[0].isIntersecting;
61
- if (isIntersecting) {
62
- setIsObserved(true);
63
- observer.disconnect();
64
- }
60
+ entries.forEach(function (entry) {
61
+ if (entry.isIntersecting) {
62
+ setIsObserved(true);
63
+ observer.disconnect();
64
+ }
65
+ });
65
66
  });
66
67
  if ($element !== null && $element !== void 0 && $element.current) {
67
68
  observer.observe($element.current);
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Toast = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
10
  var _orderingComponentsExternal = require("ordering-components-external");
11
11
  var _templateObject, _templateObject2;
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
12
  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); }
14
13
  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; }
15
14
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -25,11 +24,13 @@ var ToastBar = _styledComponents.default.div(_templateObject || (_templateObject
25
24
  });
26
25
  var ToastContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n justify-content: center;\n"])));
27
26
  var Toast = function Toast() {
27
+ var _theme$colors$primary;
28
28
  var _useToast = (0, _orderingComponentsExternal.useToast)(),
29
29
  _useToast2 = _slicedToArray(_useToast, 2),
30
30
  toastConfig = _useToast2[0],
31
31
  hideToast = _useToast2[1].hideToast;
32
32
  var toastRef = (0, _react.useRef)();
33
+ var theme = (0, _styledComponents.useTheme)();
33
34
  (0, _react.useEffect)(function () {
34
35
  if (!toastConfig && !toastRef.current) {
35
36
  return;
@@ -51,7 +52,7 @@ var Toast = function Toast() {
51
52
  var backgroundColor = '#6ba4ff';
52
53
  switch (type) {
53
54
  case _orderingComponentsExternal.ToastType.Info:
54
- backgroundColor = '#6ba4ff';
55
+ backgroundColor = (_theme$colors$primary = theme.colors.primary) !== null && _theme$colors$primary !== void 0 ? _theme$colors$primary : backgroundColor;
55
56
  break;
56
57
  case _orderingComponentsExternal.ToastType.Error:
57
58
  backgroundColor = '#D83520';
@@ -250,7 +250,7 @@ var Header = function Header(props) {
250
250
  }
251
251
  }, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("p", null, userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.name, " ", userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.lastname)), /*#__PURE__*/_react.default.createElement("span", {
252
252
  ref: clearCustomer
253
- }, /*#__PURE__*/_react.default.createElement(_AiOutlineClose.default, null))), /*#__PURE__*/_react.default.createElement(_styles.Divider, null), onlineStatus && windowSize.width > 820 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isCustomerMode && (isPreOrderSetting || (configState === null || configState === void 0 ? void 0 : (_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 ? void 0 : (_configState$configs5 = _configState$configs4.preorder_status_enabled) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) === undefined) && /*#__PURE__*/_react.default.createElement(_styles.MomentMenu, {
253
+ }, /*#__PURE__*/_react.default.createElement(_AiOutlineClose.default, null))), onlineStatus && windowSize.width > 820 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (isPreOrderSetting || (configState === null || configState === void 0 ? void 0 : (_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 ? void 0 : (_configState$configs5 = _configState$configs4.preorder_status_enabled) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) === undefined) && /*#__PURE__*/_react.default.createElement(_styles.MomentMenu, {
254
254
  onClick: (configState === null || configState === void 0 ? void 0 : (_configState$configs6 = configState.configs) === null || _configState$configs6 === void 0 ? void 0 : (_configState$configs7 = _configState$configs6.max_days_preorder) === null || _configState$configs7 === void 0 ? void 0 : _configState$configs7.value) === -1 || (configState === null || configState === void 0 ? void 0 : (_configState$configs8 = configState.configs) === null || _configState$configs8 === void 0 ? void 0 : (_configState$configs9 = _configState$configs8.max_days_preorder) === null || _configState$configs9 === void 0 ? void 0 : _configState$configs9.value) === 0 ? null : function () {
255
255
  return openModal('moment');
256
256
  }
@@ -71,7 +71,7 @@ var AddressDetailsUI = function AddressDetailsUI(props) {
71
71
  onClick: function onClick() {
72
72
  return setOpenModal(true);
73
73
  }
74
- }, t('CHANGE', 'Change')))), apiKey && /*#__PURE__*/_react.default.createElement(_styles.WrappMap, null, /*#__PURE__*/_react.default.createElement(_styles.Map, null, /*#__PURE__*/_react.default.createElement("img", {
74
+ }, t('CHANGE_ADDRESS', 'Change address')))), apiKey && /*#__PURE__*/_react.default.createElement(_styles.WrappMap, null, /*#__PURE__*/_react.default.createElement(_styles.Map, null, /*#__PURE__*/_react.default.createElement("img", {
75
75
  src: googleMapsUrl,
76
76
  id: "google-maps-image",
77
77
  alt: "google-maps-location",
@@ -18,7 +18,7 @@ var WrappMap = _styledComponents.default.div(_templateObject3 || (_templateObjec
18
18
  exports.WrappMap = WrappMap;
19
19
  var Map = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 100%;\n\n img {\n width: 100%;\n height: auto;\n display: block;\n border-radius: 15px;\n -webkit-user-drag: none;\n aspect-ratio: attr(width) / attr(height)\n }\n"])));
20
20
  exports.Map = Map;
21
- var Text = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n h1{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n font-weight: 600;\n font-size: 16px;\n }\n\n span {\n font-size: 13px!important;\n text-decoration: underline;\n cursor: pointer;\n user-select: none;\n color: ", ";\n margin-left: 10px;\n font-weight: normal;\n\n ", "\n }\n"])), function (props) {
21
+ var Text = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n h1{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n font-weight: 600;\n font-size: 16px;\n }\n\n span {\n font-size: 13px!important;\n cursor: pointer;\n user-select: none;\n color: ", ";\n margin-left: 10px;\n font-weight: normal;\n\n &:hover {\n text-decoration: underline;\n }\n\n ", "\n }\n"])), function (props) {
22
22
  return props.theme.colors.primary;
23
23
  }, function (props) {
24
24
  var _props$theme;
@@ -40,7 +40,7 @@ var BusinessLogo = function BusinessLogo(props) {
40
40
  exports.BusinessLogo = BusinessLogo;
41
41
  var BusinessInfo = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n"])));
42
42
  exports.BusinessInfo = BusinessInfo;
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) {
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 &:not(:last-child) {\n margin-right: 5px;\n ", "\n }\n &:hover {\n text-decoration: underline;\n }\n\n &.dot {\n font-size: 12px;\n text-decoration: none;\n color: #909BA9;\n }\n }\n }\n\n ", "\n"])), function (props) {
44
44
  var _props$theme;
45
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 "])));
46
46
  }, function (props) {
@@ -25,7 +25,7 @@ var Accordion = _styledComponents.default.div(_templateObject3 || (_templateObje
25
25
  return props.isClosed && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));\n padding: 10px 5px;\n "])));
26
26
  });
27
27
  exports.Accordion = Accordion;
28
- var ContentInfo = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n\n > div {\n display: flex;\n align-items: center;\n\n .go-store {\n user-select: none;\n text-decoration: underline;\n color: ", ";\n margin-right: 5px;\n ", "\n }\n\n .clear-cart {\n user-select: none;\n text-decoration: underline;\n color: #d81212;\n margin-left: 5px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n }\n\n ", "\n }\n .change-store {\n cursor: pointer;\n text-decoration: underline;\n color: ", ";\n font-size: 12px;\n &:first-letter {\n text-transform: uppercase;\n }\n }\n ", "\n\n span {\n cursor: pointer;\n }\n\n h2, span {\n margin: 0px;\n }\n\n h2 {\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n }\n\n @media (min-width: 576px) {\n h2 {\n font-size: 18px;\n }\n span {\n font-size: 13px;\n }\n }\n"])), function (props) {
28
+ var ContentInfo = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n\n > div {\n display: flex;\n align-items: center;\n\n .go-store {\n user-select: none;\n color: ", ";\n margin-right: 5px;\n ", "\n &:hover {\n text-decoration: underline;\n }\n }\n\n .clear-cart {\n user-select: none;\n color: #d81212;\n margin-left: 5px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n\n ", "\n }\n .change-store {\n cursor: pointer;\n color: ", ";\n font-size: 12px;\n &:first-letter {\n text-transform: uppercase;\n }\n &:hover {\n text-decoration: underline;\n }\n }\n ", "\n\n span {\n cursor: pointer;\n }\n\n h2, span {\n margin: 0px;\n }\n\n h2 {\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n }\n\n @media (min-width: 576px) {\n h2 {\n font-size: 18px;\n }\n span {\n font-size: 13px;\n }\n }\n"])), function (props) {
29
29
  return props.theme.colors.primary;
30
30
  }, function (props) {
31
31
  var _props$theme;
@@ -0,0 +1,43 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.FilterAccordion = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _styles = require("../styles");
10
+ var _BisUpArrow = _interopRequireDefault(require("@meronex/icons/bi/BisUpArrow"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ 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); }
13
+ 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; }
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ 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."); }
16
+ 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); }
17
+ 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; }
18
+ 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; } }
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ var FilterAccordion = function FilterAccordion(_ref) {
21
+ var title = _ref.title,
22
+ children = _ref.children;
23
+ var _useState = (0, _react.useState)(false),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ open = _useState2[0],
26
+ setOpen = _useState2[1];
27
+ var _useState3 = (0, _react.useState)("accordion__icon"),
28
+ _useState4 = _slicedToArray(_useState3, 2),
29
+ setRotate = _useState4[0],
30
+ setRotateState = _useState4[1];
31
+ var activeAccordion = function activeAccordion(value) {
32
+ setRotateState(value ? 'accordion__icon rotate' : 'accordion__icon');
33
+ setOpen(value);
34
+ };
35
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Title, {
36
+ onClick: function onClick() {
37
+ return activeAccordion(!open);
38
+ }
39
+ }, /*#__PURE__*/_react.default.createElement("h3", null, title), /*#__PURE__*/_react.default.createElement(_BisUpArrow.default, {
40
+ className: "".concat(setRotate)
41
+ })), open && children);
42
+ };
43
+ exports.FilterAccordion = FilterAccordion;
@@ -7,6 +7,8 @@ exports.MaxSectionItem = void 0;
7
7
  var _orderingComponentsExternal = require("ordering-components-external");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styles = require("../styles");
10
+ var _utils = require("../../../../../../utils");
11
+ var _Accordion = require("../Accordion");
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
14
  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."); }
@@ -15,7 +17,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
15
17
  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; } }
16
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
19
  var MaxSectionItem = function MaxSectionItem(props) {
18
- var _ref;
20
+ var _configs$distance_uni, _ref;
19
21
  var filters = props.filters,
20
22
  handleChangeFilters = props.handleChangeFilters,
21
23
  title = props.title,
@@ -27,10 +29,20 @@ var MaxSectionItem = function MaxSectionItem(props) {
27
29
  var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
28
30
  _useUtils2 = _slicedToArray(_useUtils, 1),
29
31
  parsePrice = _useUtils2[0].parsePrice;
32
+ var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
33
+ _useConfig2 = _slicedToArray(_useConfig, 1),
34
+ configs = _useConfig2[0].configs;
35
+ var distanceUnit = configs === null || configs === void 0 ? void 0 : (_configs$distance_uni = configs.distance_unit) === null || _configs$distance_uni === void 0 ? void 0 : _configs$distance_uni.value;
36
+ var units = {
37
+ mi: 1609,
38
+ km: 1000
39
+ };
30
40
  var parseValue = function parseValue(option) {
31
- return filter === 'max_distance' ? "".concat(option / 1000, " ").concat(t('KM', 'Km')) : filter === 'max_eta' ? "".concat(option, " ").concat(t('MIN', 'min')) : parsePrice(option);
41
+ return filter === 'max_distance' ? "".concat((option / units[distanceUnit]).toFixed(0), " ").concat(t("".concat(distanceUnit === null || distanceUnit === void 0 ? void 0 : distanceUnit.toUpperCase()), (0, _utils.capitalize)(distanceUnit))) : filter === 'max_eta' ? "".concat(option, " ").concat(t('MIN', 'min')) : parsePrice(option);
32
42
  };
33
- return /*#__PURE__*/_react.default.createElement(_styles.MaxFilterContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, title), /*#__PURE__*/_react.default.createElement(_styles.ProgressContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.ProgressBar, {
43
+ return /*#__PURE__*/_react.default.createElement(_styles.MaxFilterContainer, null, /*#__PURE__*/_react.default.createElement(_Accordion.FilterAccordion, {
44
+ title: title
45
+ }, /*#__PURE__*/_react.default.createElement(_styles.ProgressContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.ProgressBar, {
34
46
  style: {
35
47
  width: "".concat((_ref = options.indexOf(filters === null || filters === void 0 ? void 0 : filters[filter]) / 3 * 100) !== null && _ref !== void 0 ? _ref : 100, "%")
36
48
  }
@@ -42,6 +54,6 @@ var MaxSectionItem = function MaxSectionItem(props) {
42
54
  return handleChangeFilters(filter, option);
43
55
  }
44
56
  }, option === 'default' ? "".concat(parseValue(options[i - 1]), "+") : parseValue(option));
45
- })));
57
+ }))));
46
58
  };
47
59
  exports.MaxSectionItem = MaxSectionItem;
@@ -27,6 +27,7 @@ var _BisUpArrow = _interopRequireDefault(require("@meronex/icons/bi/BisUpArrow")
27
27
  var _Modal = require("../Modal");
28
28
  var _ProductForm = require("../ProductForm");
29
29
  var _MaxSectionItem = require("./MaxSectionItem");
30
+ var _Accordion = require("./Accordion");
30
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
32
  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); }
32
33
  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; }
@@ -47,7 +48,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
47
48
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48
49
  var PIXELS_TO_SCROLL = 300;
49
50
  var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
50
- var _businessesSearchList, _Object$values$find, _sortItems$filter, _brandList$brands, _brandList$brands$fil, _orderState$options3, _orderState$options4, _orderState$options5, _businessesSearchList3, _businessesSearchList4, _businessesSearchList6, _curProduct$business2, _curProduct$business3, _curProduct$product, _curProduct$product2, _currentCart$products;
51
+ var _configs$format_numbe, _configs$distance_uni, _businessesSearchList, _Object$values$find, _sortItems$filter, _brandList$brands, _brandList$brands$fil, _orderState$options3, _orderState$options4, _orderState$options5, _businessesSearchList3, _businessesSearchList4, _businessesSearchList6, _curProduct$business2, _curProduct$business3, _curProduct$product, _curProduct$product2, _currentCart$products;
51
52
  var businessesSearchList = props.businessesSearchList,
52
53
  onBusinessClick = props.onBusinessClick,
53
54
  handleChangeFilters = props.handleChangeFilters,
@@ -86,9 +87,13 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
86
87
  auth = _useSession2[0].auth;
87
88
  var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),
88
89
  width = _useWindowSize.width;
90
+ var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
91
+ _useConfig2 = _slicedToArray(_useConfig, 1),
92
+ configs = _useConfig2[0].configs;
89
93
  var maxDeliveryFeeOptions = [15, 25, 35, 'default'];
90
94
  // const maxProductPriceOptions = [5, 10, 15, 'default']
91
- var maxDistanceOptions = [1000, 2000, 5000, 'default'];
95
+ var currency = (_configs$format_numbe = configs.format_number_currency) === null || _configs$format_numbe === void 0 ? void 0 : _configs$format_numbe.value;
96
+ var maxDistanceOptions = (configs === null || configs === void 0 ? void 0 : (_configs$distance_uni = configs.distance_unit) === null || _configs$distance_uni === void 0 ? void 0 : _configs$distance_uni.value) === 'km' ? [1000, 2000, 5000, 'default'] : [1609, 3218, 8046, 'default'];
92
97
  var maxTimeOptions = [5, 15, 30, 'default'];
93
98
  var sortItems = [{
94
99
  text: t('PICKED_FOR_YOU', 'Picked for you (default)'),
@@ -102,19 +107,19 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
102
107
  }];
103
108
  var priceList = [{
104
109
  level: '1',
105
- content: '$'
110
+ content: "".concat(currency)
106
111
  }, {
107
112
  level: '2',
108
- content: '$$'
113
+ content: "".concat(Array(2).fill(currency).join(''))
109
114
  }, {
110
115
  level: '3',
111
- content: '$$$'
116
+ content: "".concat(Array(3).fill(currency).join(''))
112
117
  }, {
113
118
  level: '4',
114
- content: '$$$$'
119
+ content: "".concat(Array(4).fill(currency).join(''))
115
120
  }, {
116
121
  level: '5',
117
- content: '$$$$$'
122
+ content: "".concat(Array(5).fill(currency).join(''))
118
123
  }];
119
124
  var noResults = !businessesSearchList.loading && !businessesSearchList.lengthError && (businessesSearchList === null || businessesSearchList === void 0 ? void 0 : (_businessesSearchList = businessesSearchList.businesses) === null || _businessesSearchList === void 0 ? void 0 : _businessesSearchList.length) === 0;
120
125
  var currentCart = (_Object$values$find = Object.values(orderState === null || orderState === void 0 ? void 0 : orderState.carts).find(function (cart) {
@@ -174,7 +179,9 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
174
179
  return handleChangeTermValue(val);
175
180
  },
176
181
  search: termValue
177
- }), /*#__PURE__*/_react.default.createElement(_styles.FiltersContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Filters, null, /*#__PURE__*/_react.default.createElement(_styles.SortContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, t('SORT', 'Sort')), sortItems === null || sortItems === void 0 ? void 0 : (_sortItems$filter = sortItems.filter(function (item) {
182
+ }), /*#__PURE__*/_react.default.createElement(_styles.FiltersContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Filters, null, /*#__PURE__*/_react.default.createElement(_styles.SortContainer, null, /*#__PURE__*/_react.default.createElement(_Accordion.FilterAccordion, {
183
+ title: t('SORT', 'Sort')
184
+ }, sortItems === null || sortItems === void 0 ? void 0 : (_sortItems$filter = sortItems.filter(function (item) {
178
185
  var _orderState$options, _orderState$options2;
179
186
  return !((orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 && (item === null || item === void 0 ? void 0 : item.value) === 'pickup_time') && !((orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 2 && (item === null || item === void 0 ? void 0 : item.value) === 'delivery_time');
180
187
  })) === null || _sortItems$filter === void 0 ? void 0 : _sortItems$filter.map(function (item) {
@@ -186,7 +193,9 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
186
193
  },
187
194
  active: filters === null || filters === void 0 ? void 0 : (_filters$orderBy = filters.orderBy) === null || _filters$orderBy === void 0 ? void 0 : _filters$orderBy.includes(item === null || item === void 0 ? void 0 : item.value)
188
195
  }, item === null || item === void 0 ? void 0 : item.text, " ", (filters === null || filters === void 0 ? void 0 : (_filters$orderBy2 = filters.orderBy) === null || _filters$orderBy2 === void 0 ? void 0 : _filters$orderBy2.includes(item === null || item === void 0 ? void 0 : item.value)) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, filters !== null && filters !== void 0 && (_filters$orderBy3 = filters.orderBy) !== null && _filters$orderBy3 !== void 0 && _filters$orderBy3.includes('-') ? /*#__PURE__*/_react.default.createElement(_BisUpArrow.default, null) : /*#__PURE__*/_react.default.createElement(_BisDownArrow.default, null)));
189
- })), /*#__PURE__*/_react.default.createElement(_styles.BrandContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, t('BRANDS', 'Brands')), /*#__PURE__*/_react.default.createElement(_styles.BrandListWrapper, null, (brandList === null || brandList === void 0 ? void 0 : brandList.loading) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, _toConsumableArray(Array(5).keys()).map(function (index) {
196
+ }))), /*#__PURE__*/_react.default.createElement(_styles.BrandContainer, null, /*#__PURE__*/_react.default.createElement(_Accordion.FilterAccordion, {
197
+ title: t('BRANDS', 'Brands')
198
+ }, /*#__PURE__*/_react.default.createElement(_styles.BrandListWrapper, null, (brandList === null || brandList === void 0 ? void 0 : brandList.loading) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, _toConsumableArray(Array(5).keys()).map(function (index) {
190
199
  return /*#__PURE__*/_react.default.createElement(_styles.BrandItem, {
191
200
  key: index
192
201
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
@@ -206,7 +215,9 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
206
215
  }, /*#__PURE__*/_react.default.createElement("span", null, brand === null || brand === void 0 ? void 0 : brand.name), (filters === null || filters === void 0 ? void 0 : (_filters$franchise_id3 = filters.franchise_ids) === null || _filters$franchise_id3 === void 0 ? void 0 : _filters$franchise_id3.includes(brand === null || brand === void 0 ? void 0 : brand.id)) && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Check2, null));
207
216
  })), !(brandList !== null && brandList !== void 0 && brandList.loading) && (brandList === null || brandList === void 0 ? void 0 : (_brandList$brands = brandList.brands) === null || _brandList$brands === void 0 ? void 0 : (_brandList$brands$fil = _brandList$brands.filter(function (brand) {
208
217
  return brand === null || brand === void 0 ? void 0 : brand.enabled;
209
- })) === null || _brandList$brands$fil === void 0 ? void 0 : _brandList$brands$fil.length) === 0 && /*#__PURE__*/_react.default.createElement(_styles.NoResult, null, t('NO_RESULTS_FOUND', 'Sorry, no results found')))), /*#__PURE__*/_react.default.createElement(_styles.PriceFilterWrapper, null, /*#__PURE__*/_react.default.createElement("h3", null, t('PRICE_RANGE', 'Price range')), /*#__PURE__*/_react.default.createElement(_styles.PriceFilterListWrapper, null, priceList.map(function (price, i) {
218
+ })) === null || _brandList$brands$fil === void 0 ? void 0 : _brandList$brands$fil.length) === 0 && /*#__PURE__*/_react.default.createElement(_styles.NoResult, null, t('NO_RESULTS_FOUND', 'Sorry, no results found'))))), /*#__PURE__*/_react.default.createElement(_styles.PriceFilterWrapper, null, /*#__PURE__*/_react.default.createElement(_Accordion.FilterAccordion, {
219
+ title: t('PRICE_RANGE', 'Price range')
220
+ }, /*#__PURE__*/_react.default.createElement(_styles.PriceFilterListWrapper, null, priceList.map(function (price, i) {
210
221
  return /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
211
222
  key: i,
212
223
  color: (filters === null || filters === void 0 ? void 0 : filters.price_level) === (price === null || price === void 0 ? void 0 : price.level) ? 'primary' : 'lightGray',
@@ -214,7 +225,7 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
214
225
  return handleChangePriceRange(price === null || price === void 0 ? void 0 : price.level);
215
226
  }
216
227
  }, price.content, (filters === null || filters === void 0 ? void 0 : filters.price_level) === (price === null || price === void 0 ? void 0 : price.level) && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null));
217
- }))), (orderState === null || orderState === void 0 ? void 0 : (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type) === 1 && /*#__PURE__*/_react.default.createElement(_MaxSectionItem.MaxSectionItem, {
228
+ })))), (orderState === null || orderState === void 0 ? void 0 : (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type) === 1 && /*#__PURE__*/_react.default.createElement(_MaxSectionItem.MaxSectionItem, {
218
229
  title: t('MAX_DELIVERY_FEE', 'Max delivery fee'),
219
230
  options: maxDeliveryFeeOptions,
220
231
  filter: "max_delivery_price",
@@ -232,11 +243,13 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
232
243
  filter: "max_distance",
233
244
  filters: filters,
234
245
  handleChangeFilters: handleChangeFilters
235
- }), /*#__PURE__*/_react.default.createElement(_styles.TagsContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, t('BUSINESS_CATEGORIES', 'Business categories')), /*#__PURE__*/_react.default.createElement(_BusinessTypeFilter.BusinessTypeFilter, {
246
+ }), /*#__PURE__*/_react.default.createElement(_styles.TagsContainer, null, /*#__PURE__*/_react.default.createElement(_Accordion.FilterAccordion, {
247
+ title: t('BUSINESS_CATEGORIES', 'Business categories')
248
+ }, /*#__PURE__*/_react.default.createElement(_BusinessTypeFilter.BusinessTypeFilter, {
236
249
  isSearchMode: true,
237
250
  filters: filters,
238
251
  handleChangeFilters: handleChangeFilters
239
- }))), /*#__PURE__*/_react.default.createElement(_styles.FiltersResultContainer, null, auth && (termValue === null || termValue === void 0 ? void 0 : termValue.length) === 0 && /*#__PURE__*/_react.default.createElement(_styles.PreviouslyOrderedContainer, null, /*#__PURE__*/_react.default.createElement(_MyOrders.MyOrders, {
252
+ })))), /*#__PURE__*/_react.default.createElement(_styles.FiltersResultContainer, null, auth && (termValue === null || termValue === void 0 ? void 0 : termValue.length) === 0 && /*#__PURE__*/_react.default.createElement(_styles.PreviouslyOrderedContainer, null, /*#__PURE__*/_react.default.createElement(_MyOrders.MyOrders, {
240
253
  hideOrders: true,
241
254
  businessesSearchList: businessesSearchList,
242
255
  onRedirectPage: onRedirectPage,
@@ -4,10 +4,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.TagsContainer = exports.SortItem = exports.SortContainer = exports.SingleBusinessSearch = exports.ProgressContentWrapper = exports.ProgressBar = exports.ProductsList = exports.PriceFilterWrapper = exports.PriceFilterListWrapper = exports.PreviouslyOrderedContainer = exports.NotFoundWrapper = exports.NoResult = exports.Metadata = exports.MaxItemContainer = exports.MaxItem = exports.MaxFilterContainer = exports.FiltersResultContainer = exports.FiltersContainer = exports.Filters = exports.BusinessesTitle = exports.BusinessProductsListWrapper = exports.BusinessProductsListContainer = exports.BusinessName = exports.BusinessLogo = exports.BusinessListingSearchContainer = exports.BusinessListWrapper = exports.BusinessList = exports.BusinessInfoItem = exports.BusinessInfo = exports.BusinessControllerSkeleton = exports.BrandListWrapper = exports.BrandItem = exports.BrandContainer = void 0;
7
+ exports.Title = exports.TagsContainer = exports.SortItem = exports.SortContainer = exports.SingleBusinessSearch = exports.ProgressContentWrapper = exports.ProgressBar = exports.ProductsList = exports.PriceFilterWrapper = exports.PriceFilterListWrapper = exports.PreviouslyOrderedContainer = exports.NotFoundWrapper = exports.NoResult = exports.Metadata = exports.MaxItemContainer = exports.MaxItem = exports.MaxFilterContainer = exports.FiltersResultContainer = exports.FiltersContainer = exports.Filters = exports.BusinessesTitle = exports.BusinessProductsListWrapper = exports.BusinessProductsListContainer = exports.BusinessName = exports.BusinessLogo = exports.BusinessListingSearchContainer = exports.BusinessListWrapper = exports.BusinessList = exports.BusinessInfoItem = exports.BusinessInfo = exports.BusinessControllerSkeleton = exports.BrandListWrapper = exports.BrandItem = exports.BrandContainer = 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;
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;
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 }; }
@@ -15,71 +15,73 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
15
15
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
16
  var BusinessListingSearchContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n padding: 20px;\n box-sizing: border-box;\n\n h3{\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 10px;\n margin-top: 20px;\n }\n"])));
17
17
  exports.BusinessListingSearchContainer = BusinessListingSearchContainer;
18
- var FiltersContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n \n flex-direction: column;\n @media (min-width: 993px){\n flex-direction: row;\n display: flex;\n width: 100%;\n }\n"])));
18
+ var Title = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 20px 0;\n cursor: pointer;\n\n h3 {\n margin: 0 10px 0 0;\n }\n\n .rotate {\n transform: rotate(180deg);\n }\n\n .accordion__icon {\n transition: transform 0.6s ease;\n }\n"])));
19
+ exports.Title = Title;
20
+ var FiltersContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-direction: column;\n @media (min-width: 993px){\n flex-direction: row;\n display: flex;\n width: 100%;\n }\n"])));
19
21
  exports.FiltersContainer = FiltersContainer;
20
- var Filters = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 100%;\n @media (min-width: 993px){\n width: 25%;\n max-width: 25%;\n margin-right: 20px;\n }\n"])));
22
+ var Filters = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 100%;\n @media (min-width: 993px){\n width: 25%;\n max-width: 25%;\n margin-right: 70px;\n }\n"])));
21
23
  exports.Filters = Filters;
22
- var FiltersResultContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 100%;\n @media (min-width: 993px){\n width: 75%;\n max-width: 75%;\n }\n"])));
24
+ var FiltersResultContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 100%;\n @media (min-width: 993px){\n width: 75%;\n max-width: 75%;\n }\n"])));
23
25
  exports.FiltersResultContainer = FiltersResultContainer;
24
- var SortContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\n"])));
26
+ var SortContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\n"])));
25
27
  exports.SortContainer = SortContainer;
26
- var MaxFilterContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\n"])));
28
+ var MaxFilterContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\n"])));
27
29
  exports.MaxFilterContainer = MaxFilterContainer;
28
- var TagsContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\n"])));
30
+ var TagsContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\n"])));
29
31
  exports.TagsContainer = TagsContainer;
30
- var ProgressContentWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 100%;\n height: 12px;\n background: #F8F9FA;\n"])));
32
+ var ProgressContentWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n height: 12px;\n background: #F8F9FA;\n"])));
31
33
  exports.ProgressContentWrapper = ProgressContentWrapper;
32
- var ProgressBar = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 4px;\n border-radius: 50px;\n background: #344050;\n"])));
34
+ var ProgressBar = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n height: 4px;\n border-radius: 50px;\n background: #344050;\n"])));
33
35
  exports.ProgressBar = ProgressBar;
34
- var MaxItemContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
36
+ var MaxItemContainer = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
35
37
  exports.MaxItemContainer = MaxItemContainer;
36
- var BusinessList = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n align-items: center;\n ", "\n @media (min-width: 480px){\n flex-direction: row;\n }\n #searchlist {\n > div {\n width: calc(100vw - 40px);\n min-width: calc(100vw - 40px);\n\n @media (min-width: 681px) {\n width: calc(50vw - 40px);\n min-width: calc(50vw - 40px);\n }\n @media (min-width: 993px) {\n width: calc(33vw - 40px);\n min-width: calc(33vw - 40px);\n }\n @media (min-width: 1200px) {\n width: calc(25vw - 40px);\n min-width: calc(25vw - 40px);\n }\n }\n }\n"])), function (_ref) {
38
+ var BusinessList = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n align-items: center;\n ", "\n @media (min-width: 480px){\n flex-direction: row;\n }\n #searchlist {\n > div {\n width: calc(100vw - 40px);\n min-width: calc(100vw - 40px);\n\n @media (min-width: 681px) {\n width: calc(50vw - 40px);\n min-width: calc(50vw - 40px);\n }\n @media (min-width: 993px) {\n width: calc(33vw - 40px);\n min-width: calc(33vw - 40px);\n }\n @media (min-width: 1200px) {\n width: calc(25vw - 40px);\n min-width: calc(25vw - 40px);\n }\n }\n }\n"])), function (_ref) {
37
39
  var noResults = _ref.noResults;
38
- return noResults && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n justify-content: center;\n "])));
40
+ return noResults && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n justify-content: center;\n "])));
39
41
  });
40
42
  exports.BusinessList = BusinessList;
41
- var MaxItem = _styledComponents.default.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n cursor: pointer;\n margin-top: 0;\n font-size: 14px;\n font-weight: ", ";\n"])), function (_ref2) {
43
+ var MaxItem = _styledComponents.default.p(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n cursor: pointer;\n margin-top: 0;\n font-size: 14px;\n font-weight: ", ";\n"])), function (_ref2) {
42
44
  var active = _ref2.active;
43
45
  return active ? '600' : '400';
44
46
  });
45
47
  exports.MaxItem = MaxItem;
46
- var SortItem = _styledComponents.default.p(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n font-weight: ", ";\n"])), function (_ref3) {
48
+ var SortItem = _styledComponents.default.p(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 14px;\n font-weight: ", ";\n"])), function (_ref3) {
47
49
  var active = _ref3.active;
48
50
  return active ? '600' : '400';
49
51
  });
50
52
  exports.SortItem = SortItem;
51
- var ProductsList = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-top: 10px;\n"])));
53
+ var ProductsList = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-top: 10px;\n"])));
52
54
  exports.ProductsList = ProductsList;
53
- var BusinessInfo = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n button {\n height: 25px;\n font-size: 10px;\n white-space: nowrap;\n line-height: 0;\n max-width: 80px;\n }\n @media (min-width: 380px){\n button{\n max-width: initial;\n }\n }\n @media (min-width: 480px){\n button {\n line-height: 30px;\n height: 44px;\n overflow: initial;\n font-size: 16px;\n }\n }\n"])));
55
+ var BusinessInfo = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n button {\n height: 25px;\n font-size: 10px;\n white-space: nowrap;\n line-height: 0;\n max-width: 80px;\n }\n @media (min-width: 380px){\n button{\n max-width: initial;\n }\n }\n @media (min-width: 480px){\n button {\n line-height: 30px;\n height: 44px;\n overflow: initial;\n font-size: 16px;\n }\n }\n"])));
54
56
  exports.BusinessInfo = BusinessInfo;
55
- var Metadata = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n font-weight: 300;\n font-size: 10px;\n color: #909BA9;\n flex-wrap: wrap;\n ", "\n p {\n color: #909BA9;\n svg {\n font-size: 7px;\n min-width: 6px;\n margin: 0 3px;\n }\n\n span {\n margin-right: 10px;\n ", "\n }\n }\n\n @media (min-width: 481px) {\n font-size: 14px;\n }\n"])), function (_ref4) {
57
+ var Metadata = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n font-weight: 300;\n font-size: 10px;\n color: #909BA9;\n flex-wrap: wrap;\n ", "\n p {\n color: #909BA9;\n svg {\n font-size: 7px;\n min-width: 6px;\n margin: 0 3px;\n }\n\n span {\n margin-right: 10px;\n ", "\n }\n }\n\n @media (min-width: 481px) {\n font-size: 14px;\n }\n"])), function (_ref4) {
56
58
  var isSkeleton = _ref4.isSkeleton;
57
- return isSkeleton && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n "])));
59
+ return isSkeleton && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n "])));
58
60
  }, function (props) {
59
61
  var _props$theme;
60
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
62
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
61
63
  });
62
64
  exports.Metadata = Metadata;
63
- var BusinessInfoItem = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: 60%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 12px;\n margin-left: 10px;\n div {\n display: flex;\n p {\n margin-right: 5px;\n ", "\n text-transform: capitalize;\n display: flex;\n align-items: center;\n margin: 0px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n p.bold {\n font-weight: bold;\n }\n }\n @media (min-width: 480px) {\n width: 100%;\n }\n"])), function (props) {
65
+ var BusinessInfoItem = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 60%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 12px;\n margin-left: 10px;\n div {\n display: flex;\n p {\n margin-right: 5px;\n ", "\n text-transform: capitalize;\n display: flex;\n align-items: center;\n margin: 0px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n p.bold {\n font-weight: bold;\n }\n }\n @media (min-width: 480px) {\n width: 100%;\n }\n"])), function (props) {
64
66
  var _props$theme2;
65
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
67
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
66
68
  });
67
69
  exports.BusinessInfoItem = BusinessInfoItem;
68
- var SingleBusinessSearch = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n margin: 20px 0;\n"])));
70
+ var SingleBusinessSearch = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n margin: 20px 0;\n"])));
69
71
  exports.SingleBusinessSearch = SingleBusinessSearch;
70
- var BusinessProductsListContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n\n .product-card {\n width: 270px;\n max-width: 270px;\n }\n\n @media(min-width: 480px){\n .product-card {\n width: 400px;\n max-width: 400px;\n }\n }\n"])));
72
+ var BusinessProductsListContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n\n .product-card {\n width: 270px;\n max-width: 270px;\n }\n\n @media(min-width: 480px){\n .product-card {\n width: 400px;\n max-width: 400px;\n }\n }\n"])));
71
73
  exports.BusinessProductsListContainer = BusinessProductsListContainer;
72
- var BusinessListWrapper = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n overflow: scroll hidden;\n width: 100%;\n"])));
74
+ var BusinessListWrapper = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n overflow: scroll hidden;\n width: 100%;\n"])));
73
75
  exports.BusinessListWrapper = BusinessListWrapper;
74
- var BusinessProductsListWrapper = (0, _styledComponents.default)(BusinessListWrapper)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral([""])));
76
+ var BusinessProductsListWrapper = (0, _styledComponents.default)(BusinessListWrapper)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral([""])));
75
77
  exports.BusinessProductsListWrapper = BusinessProductsListWrapper;
76
- var BusinessControllerSkeleton = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n flex-direction: column;\n > div {\n flex: 1;\n }\n @media (min-width: 681px){\n flex-direction: row;\n }\n"])));
78
+ var BusinessControllerSkeleton = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n flex-direction: column;\n > div {\n flex: 1;\n }\n @media (min-width: 681px){\n flex-direction: row;\n }\n"])));
77
79
  exports.BusinessControllerSkeleton = BusinessControllerSkeleton;
78
- var NotFoundWrapper = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n padding-top: 50px;\n"])));
80
+ var NotFoundWrapper = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n padding-top: 50px;\n"])));
79
81
  exports.NotFoundWrapper = NotFoundWrapper;
80
- var BusinessLogoStyled = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n display: flex;\n width: 48px;\n height: 48px;\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: 48px;\n border-radius: 7.6px;\n\n ", "\n\n @media (min-width: 681px){\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n }\n\n"])), function (_ref5) {
82
+ var BusinessLogoStyled = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n display: flex;\n width: 48px;\n height: 48px;\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: 48px;\n border-radius: 7.6px;\n\n ", "\n\n @media (min-width: 681px){\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n }\n\n"])), function (_ref5) {
81
83
  var isSkeleton = _ref5.isSkeleton;
82
- return isSkeleton && (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n span {\n min-width: 45px;\n min-height: 45px;\n height: 45px;\n width: 45px;\n min-height: 45px;\n }\n @media (min-width: 681px){\n span {\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n }\n }\n "])));
84
+ return isSkeleton && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n span {\n min-width: 45px;\n min-height: 45px;\n height: 45px;\n width: 45px;\n min-height: 45px;\n }\n @media (min-width: 681px){\n span {\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n }\n }\n "])));
83
85
  });
84
86
  var BusinessLogo = function BusinessLogo(props) {
85
87
  var style = {};
@@ -91,34 +93,34 @@ var BusinessLogo = function BusinessLogo(props) {
91
93
  }), props.children);
92
94
  };
93
95
  exports.BusinessLogo = BusinessLogo;
94
- var BusinessName = _styledComponents.default.h6(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 500;\n margin-block-start: 0;\n margin-block-end: 0;\n color: ", ";\n @media (min-width: 681px){\n font-size: 16px;\n }\n"])), function (props) {
96
+ var BusinessName = _styledComponents.default.h6(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 500;\n margin-block-start: 0;\n margin-block-end: 0;\n color: ", ";\n @media (min-width: 681px){\n font-size: 16px;\n }\n"])), function (props) {
95
97
  return props.theme.colors.darkTextColor;
96
98
  });
97
99
  exports.BusinessName = BusinessName;
98
- var BusinessesTitle = _styledComponents.default.h1(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin-bottom: 20px;\n"])), function (props) {
100
+ var BusinessesTitle = _styledComponents.default.h1(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin-bottom: 20px;\n"])), function (props) {
99
101
  var _props$theme3;
100
102
  return (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.colors.headingColor;
101
103
  });
102
104
  exports.BusinessesTitle = BusinessesTitle;
103
- var BrandContainer = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n > h3 {\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n margin-top: 0px;\n margin-bottom: 10px;\n }\n"])));
105
+ var BrandContainer = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n > h3 {\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n margin-top: 0px;\n margin-bottom: 10px;\n }\n"])));
104
106
  exports.BrandContainer = BrandContainer;
105
- var BrandListWrapper = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n max-height: 300px;\n overflow: auto;\n"])));
107
+ var BrandListWrapper = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n max-height: 300px;\n overflow: auto;\n"])));
106
108
  exports.BrandListWrapper = BrandListWrapper;
107
- var BrandItem = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n margin-bottom: 8px;\n\n span {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n transition: all 0.3s linear;\n }\n\n svg {\n color: ", ";\n font-size: 16px;\n }\n &:hover {\n span {\n color: ", ";\n }\n }\n"])), function (props) {
109
+ var BrandItem = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n margin-bottom: 8px;\n\n span {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n transition: all 0.3s linear;\n }\n\n svg {\n color: ", ";\n font-size: 16px;\n }\n &:hover {\n span {\n color: ", ";\n }\n }\n"])), function (props) {
108
110
  return props.theme.colors.success500;
109
111
  }, function (props) {
110
112
  return props.theme.colors.secundaryContrast;
111
113
  });
112
114
  exports.BrandItem = BrandItem;
113
- var NoResult = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n text-align: center;\n"])));
115
+ var NoResult = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n text-align: center;\n"])));
114
116
  exports.NoResult = NoResult;
115
- var PriceFilterWrapper = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral([""])));
117
+ var PriceFilterWrapper = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral([""])));
116
118
  exports.PriceFilterWrapper = PriceFilterWrapper;
117
- var PriceFilterListWrapper = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n width: calc(100% + 10px);\n margin-left: -5px;\n ", "\n\n > button {\n border-radius: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n line-height: 24px;\n margin: 5px;\n\n svg {\n margin-left: 5px;\n font-size: 12px;\n ", "\n }\n }\n"])), function (props) {
118
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: -5px;\n "])));
119
+ var PriceFilterListWrapper = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n width: calc(100% + 10px);\n margin-left: -5px;\n ", "\n\n > button {\n border-radius: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n line-height: 24px;\n margin: 5px;\n\n svg {\n margin-left: 5px;\n font-size: 12px;\n ", "\n }\n }\n"])), function (props) {
120
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: -5px;\n "])));
119
121
  }, function (props) {
120
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
122
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
121
123
  });
122
124
  exports.PriceFilterListWrapper = PriceFilterListWrapper;
123
- var PreviouslyOrderedContainer = _styledComponents.default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n\n"])));
125
+ var PreviouslyOrderedContainer = _styledComponents.default.div(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n\n"])));
124
126
  exports.PreviouslyOrderedContainer = PreviouslyOrderedContainer;