ordering-ui-external 1.2.3 → 1.3.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 (99) hide show
  1. package/_bundles/{0.ordering-ui.fc62fe574704c7c4d033.js → 0.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  2. package/_bundles/{1.ordering-ui.fc62fe574704c7c4d033.js → 1.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  3. package/_bundles/{3.ordering-ui.fc62fe574704c7c4d033.js → 3.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  4. package/_bundles/{4.ordering-ui.fc62fe574704c7c4d033.js → 4.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  5. package/_bundles/5.ordering-ui.51c00e5a30bb4c51b2e4.js +1 -0
  6. package/_bundles/{6.ordering-ui.fc62fe574704c7c4d033.js → 6.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  7. package/_bundles/7.ordering-ui.51c00e5a30bb4c51b2e4.js +2 -0
  8. package/_bundles/{7.ordering-ui.fc62fe574704c7c4d033.js.LICENSE.txt → 7.ordering-ui.51c00e5a30bb4c51b2e4.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.fc62fe574704c7c4d033.js → 8.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  10. package/_bundles/{9.ordering-ui.fc62fe574704c7c4d033.js → 9.ordering-ui.51c00e5a30bb4c51b2e4.js} +1 -1
  11. package/_bundles/ordering-ui.51c00e5a30bb4c51b2e4.js +2 -0
  12. package/_bundles/{ordering-ui.fc62fe574704c7c4d033.js.LICENSE.txt → ordering-ui.51c00e5a30bb4c51b2e4.js.LICENSE.txt} +0 -0
  13. package/_modules/components/AutoScroll/styles.js +3 -3
  14. package/_modules/hooks/useIsMounted.js +24 -0
  15. package/_modules/index.js +8 -0
  16. package/_modules/themes/five/index.js +33 -1
  17. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +2 -2
  18. package/_modules/themes/five/src/components/BusinessController/styles.js +42 -42
  19. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +12 -2
  20. package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +5 -2
  21. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +10 -3
  22. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +7 -3
  23. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -0
  24. package/_modules/themes/five/src/components/Checkout/index.js +1 -1
  25. package/_modules/themes/five/src/components/MultiCheckout/styles.js +1 -1
  26. package/_modules/themes/five/src/components/MyOrders/index.js +9 -3
  27. package/_modules/themes/five/src/components/NavigationBar/index.js +159 -0
  28. package/_modules/themes/five/src/components/NavigationBar/styles.js +33 -0
  29. package/_modules/themes/five/src/components/OrderDetails/index.js +71 -41
  30. package/_modules/themes/five/src/components/ProfessionalBusinessFilter/index.js +96 -0
  31. package/_modules/themes/five/src/components/ProfessionalBusinessFilter/styles.js +48 -0
  32. package/_modules/themes/five/src/components/ProfessionalFilter/index.js +35 -7
  33. package/_modules/themes/five/src/components/ProfessionalFilter/styles.js +10 -4
  34. package/_modules/themes/five/src/components/ProfessionalInfo/index.js +120 -0
  35. package/_modules/themes/five/src/components/ProfessionalInfo/styles.js +100 -0
  36. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +36 -13
  37. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +21 -18
  38. package/_modules/themes/five/src/components/ReviewProfessional/index.js +314 -0
  39. package/_modules/themes/five/src/components/ReviewProfessional/styles.js +137 -0
  40. package/_modules/themes/five/src/components/SignUpApproval/index.js +106 -0
  41. package/_modules/themes/five/src/components/SignUpApproval/styles.js +71 -0
  42. package/_modules/themes/five/src/components/SignUpBusiness/index.js +7 -383
  43. package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +405 -0
  44. package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/styles.js +110 -0
  45. package/_modules/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +400 -0
  46. package/_modules/themes/five/src/components/SignUpBusiness/{styles.js → layouts/OldSignUpBusiness/styles.js} +0 -0
  47. package/_modules/themes/five/src/components/SignUpDriver/index.js +7 -383
  48. package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +405 -0
  49. package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/styles.js +106 -0
  50. package/_modules/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +400 -0
  51. package/_modules/themes/five/src/components/SignUpDriver/{styles.js → layouts/OldSignUpDriver/styles.js} +0 -0
  52. package/_modules/themes/five/src/components/SingleProductCard/styles.js +1 -1
  53. package/_modules/utils/index.js +103 -0
  54. package/package.json +2 -2
  55. package/src/components/AutoScroll/styles.js +11 -12
  56. package/src/hooks/useIsMounted.js +18 -0
  57. package/src/index.js +2 -0
  58. package/src/themes/five/index.js +9 -1
  59. package/src/themes/five/src/components/BusinessBasicInformation/index.js +1 -1
  60. package/src/themes/five/src/components/BusinessController/styles.js +3 -6
  61. package/src/themes/five/src/components/BusinessProductsCategories/index.js +10 -2
  62. package/src/themes/five/src/components/BusinessProductsCategories/styles.js +5 -0
  63. package/src/themes/five/src/components/BusinessProductsListing/index.js +8 -2
  64. package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
  65. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +2 -0
  66. package/src/themes/five/src/components/Checkout/index.js +1 -1
  67. package/src/themes/five/src/components/MultiCheckout/index.js +1 -0
  68. package/src/themes/five/src/components/MultiCheckout/styles.js +1 -0
  69. package/src/themes/five/src/components/MyOrders/index.js +6 -3
  70. package/src/themes/five/src/components/NavigationBar/index.js +104 -0
  71. package/src/themes/five/src/components/NavigationBar/styles.js +44 -0
  72. package/src/themes/five/src/components/OrderDetails/index.js +19 -11
  73. package/src/themes/five/src/components/ProfessionalBusinessFilter/index.js +82 -0
  74. package/src/themes/five/src/components/ProfessionalBusinessFilter/styles.js +71 -0
  75. package/src/themes/five/src/components/ProfessionalFilter/index.js +30 -7
  76. package/src/themes/five/src/components/ProfessionalFilter/styles.js +15 -2
  77. package/src/themes/five/src/components/ProfessionalInfo/index.js +133 -0
  78. package/src/themes/five/src/components/ProfessionalInfo/styles.js +140 -0
  79. package/src/themes/five/src/components/RenderProductsLayout/index.js +37 -16
  80. package/src/themes/five/src/components/RenderProductsLayout/styles.js +6 -1
  81. package/src/themes/five/src/components/ReviewProfessional/index.js +239 -0
  82. package/src/themes/five/src/components/ReviewProfessional/styles.js +233 -0
  83. package/src/themes/five/src/components/SignUpApproval/index.js +108 -0
  84. package/src/themes/five/src/components/SignUpApproval/styles.js +98 -0
  85. package/src/themes/five/src/components/SignUpBusiness/index.js +10 -374
  86. package/src/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +382 -0
  87. package/src/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/styles.js +256 -0
  88. package/src/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +378 -0
  89. package/src/themes/five/src/components/SignUpBusiness/{styles.js → layouts/OldSignUpBusiness/styles.js} +0 -0
  90. package/src/themes/five/src/components/SignUpDriver/index.js +10 -374
  91. package/src/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +382 -0
  92. package/src/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/styles.js +262 -0
  93. package/src/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +378 -0
  94. package/src/themes/five/src/components/SignUpDriver/{styles.js → layouts/OldSignUpDriver/styles.js} +0 -0
  95. package/src/themes/five/src/components/SingleProductCard/styles.js +3 -1
  96. package/src/utils/index.js +54 -0
  97. package/_bundles/5.ordering-ui.fc62fe574704c7c4d033.js +0 -1
  98. package/_bundles/7.ordering-ui.fc62fe574704c7c4d033.js +0 -2
  99. package/_bundles/ordering-ui.fc62fe574704c7c4d033.js +0 -2
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
 
18
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
19
 
20
- var AutoscrollContainer = _styledComponents.default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: ", ";\n width: ", ";\n \n svg{\n background: #D9D9D9;\n display: inline-block;\n border-radius: 50%;\n width: 16px;\n min-width: 16px;\n height: 16px;\n align-self: center;\n top: ", ";\n position: sticky;\n color: #000000;\n border: 1px solid #D9D9D9;\n opacity: 0.8;\n }\n\n #right-autoscroll{\n ", "\n }\n #left-autoscroll{\n ", " \n }\n svg:active{\n border: 0\n }\n svg.hidden{\n opacity: 0;\n }\n\n @media (min-width: 480px){\n #right-autoscroll{\n ", "\n }\n #left-autoscroll{\n ", "\n }\n }\n\n @media (min-width: 768px){\n width: ", ";\n display: inherit;\n ", "\n }\n\n @media (min-width: 1024px){\n #right-autoscroll{\n ", "\n }\n #left-autoscroll{\n ", "\n }\n }\n"])), function (props) {
20
+ var AutoscrollContainer = _styledComponents.default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: ", ";\n width: ", ";\n \n svg{\n background: #D9D9D9;\n display: inline-block;\n border-radius: 50%;\n width: 16px;\n min-width: 16px;\n height: 16px;\n align-self: center;\n top: ", ";\n position: sticky;\n color: #000000;\n border: 1px solid #D9D9D9;\n opacity: 0.8;\n z-index: 120;\n }\n\n #right-autoscroll{\n ", "\n }\n #left-autoscroll{\n ", " \n }\n svg:active{\n border: 0\n }\n svg.hidden{\n opacity: 0;\n }\n\n @media (min-width: 480px){\n #right-autoscroll{\n ", "\n }\n #left-autoscroll{\n ", "\n }\n }\n\n @media (min-width: 768px){\n width: ", ";\n display: inherit;\n ", "\n }\n\n @media (min-width: 1024px){\n #right-autoscroll {\n ", "\n }\n #left-autoscroll {\n ", "\n }\n }\n"])), function (props) {
21
21
  return props.modal ? 'flex' : 'inherit';
22
22
  }, function (props) {
23
23
  return props.modal ? '300vw' : 'initial';
@@ -42,11 +42,11 @@ var AutoscrollContainer = _styledComponents.default.span(_templateObject || (_te
42
42
  }, function (props) {
43
43
  return props.modal && '100%';
44
44
  }, function (props) {
45
- return props.modal && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n #left-autoscroll{\n opacity: 0;\n }\n #right-autoscroll{\n opacity: 0;\n }\n "])));
45
+ return props.modal && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n #left-autoscroll {\n opacity: 0;\n }\n #right-autoscroll {\n opacity: 0;\n }\n "])));
46
46
  }, function (props) {
47
47
  var _props$theme5;
48
48
 
49
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n left: 97%;\n "])));
49
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n left: 97%;\n "])));
50
50
  }, function (props) {
51
51
  var _props$theme6;
52
52
 
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useIsMounted = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ var useIsMounted = function useIsMounted() {
11
+ var isMounted = (0, _react.useRef)(false);
12
+ (0, _react.useEffect)(function () {
13
+ isMounted.current = true;
14
+ return function () {
15
+ isMounted.current = false;
16
+ };
17
+ }, []);
18
+ var mounted = (0, _react.useCallback)(function () {
19
+ return isMounted.current;
20
+ }, []);
21
+ return mounted();
22
+ };
23
+
24
+ exports.useIsMounted = useIsMounted;
package/_modules/index.js CHANGED
@@ -813,6 +813,12 @@ Object.defineProperty(exports, "useIntersectionObserver", {
813
813
  return _useIntersectionObserver.useIntersectionObserver;
814
814
  }
815
815
  });
816
+ Object.defineProperty(exports, "useIsMounted", {
817
+ enumerable: true,
818
+ get: function get() {
819
+ return _useIsMounted.useIsMounted;
820
+ }
821
+ });
816
822
  Object.defineProperty(exports, "useOnlineStatus", {
817
823
  enumerable: true,
818
824
  get: function get() {
@@ -1038,6 +1044,8 @@ var _useCountdownTimer = require("./hooks/useCountdownTimer");
1038
1044
 
1039
1045
  var _useIntersectionObserver = require("./hooks/useIntersectionObserver");
1040
1046
 
1047
+ var _useIsMounted = require("./hooks/useIsMounted");
1048
+
1041
1049
  var _Buttons = require("./styles/Buttons");
1042
1050
 
1043
1051
  var _Inputs = require("./styles/Inputs");
@@ -339,6 +339,12 @@ Object.defineProperty(exports, "MyOrders", {
339
339
  return _MyOrders.MyOrders;
340
340
  }
341
341
  });
342
+ Object.defineProperty(exports, "NavigationBar", {
343
+ enumerable: true,
344
+ get: function get() {
345
+ return _NavigationBar.NavigationBar;
346
+ }
347
+ });
342
348
  Object.defineProperty(exports, "NotFoundSource", {
343
349
  enumerable: true,
344
350
  get: function get() {
@@ -471,6 +477,12 @@ Object.defineProperty(exports, "ProfessionalFilter", {
471
477
  return _ProfessionalFilter.ProfessionalFilter;
472
478
  }
473
479
  });
480
+ Object.defineProperty(exports, "ProfessionalInfo", {
481
+ enumerable: true,
482
+ get: function get() {
483
+ return _ProfessionalInfo.ProfessionalInfo;
484
+ }
485
+ });
474
486
  Object.defineProperty(exports, "ProfessionalProfile", {
475
487
  enumerable: true,
476
488
  get: function get() {
@@ -519,6 +531,12 @@ Object.defineProperty(exports, "ReviewProduct", {
519
531
  return _ReviewProduct.ReviewProduct;
520
532
  }
521
533
  });
534
+ Object.defineProperty(exports, "ReviewProfessional", {
535
+ enumerable: true,
536
+ get: function get() {
537
+ return _ReviewProfessional.ReviewProfessional;
538
+ }
539
+ });
522
540
  Object.defineProperty(exports, "ReviewTrigger", {
523
541
  enumerable: true,
524
542
  get: function get() {
@@ -561,6 +579,12 @@ Object.defineProperty(exports, "SidebarMenu", {
561
579
  return _SidebarMenu.SidebarMenu;
562
580
  }
563
581
  });
582
+ Object.defineProperty(exports, "SignUpApproval", {
583
+ enumerable: true,
584
+ get: function get() {
585
+ return _SignUpApproval.SignUpApproval;
586
+ }
587
+ });
564
588
  Object.defineProperty(exports, "SignUpBusiness", {
565
589
  enumerable: true,
566
590
  get: function get() {
@@ -800,8 +824,12 @@ var _ProfileOptions = require("./src/components/UserProfileForm/ProfileOptions")
800
824
 
801
825
  var _Promotions = require("./src/components/Promotions");
802
826
 
827
+ var _ProfessionalInfo = require("./src/components/ProfessionalInfo");
828
+
803
829
  var _RenderProductsLayout = require("./src/components/RenderProductsLayout");
804
830
 
831
+ var _ReviewProfessional = require("./src/components/ReviewProfessional");
832
+
805
833
  var _ResetPassword = require("./src/components/ResetPassword");
806
834
 
807
835
  var _SearchBar = require("./src/components/SearchBar");
@@ -816,6 +844,8 @@ var _SignUpBusiness = require("./src/components/SignUpBusiness");
816
844
 
817
845
  var _SignUpDriver = require("./src/components/SignUpDriver");
818
846
 
847
+ var _SignUpApproval = require("./src/components/SignUpApproval");
848
+
819
849
  var _SingleProductCard = require("./src/components/SingleProductCard");
820
850
 
821
851
  var _StripeElementsForm = require("./src/components/StripeElementsForm");
@@ -864,4 +894,6 @@ var _Inputs = require("./src/styles/Inputs");
864
894
 
865
895
  var _Select = require("./src/styles/Select");
866
896
 
867
- var _Checkbox = require("../../styles/Checkbox");
897
+ var _Checkbox = require("../../styles/Checkbox");
898
+
899
+ var _NavigationBar = require("./src/components/NavigationBar");
@@ -247,7 +247,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
247
247
  };
248
248
 
249
249
  var BusinessInfoComponent = function BusinessInfoComponent() {
250
- var _business$ribbon, _business$ribbon2, _business$ribbon3, _business$ribbon4, _business$ribbon5, _business$city, _business$city2, _orderState$options, _business$reviews, _business$reviews2, _categoryState$produc;
250
+ var _business$ribbon, _business$ribbon2, _business$ribbon3, _business$ribbon4, _business$ribbon5, _business$city, _business$city2, _orderState$options, _business$reviews, _business$reviews2, _categoryState$produc, _business$professiona;
251
251
 
252
252
  return /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, {
253
253
  className: "info"
@@ -332,7 +332,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
332
332
  }
333
333
  }, t('REVIEWS', 'Reviews'))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
334
334
  width: isCustomerMode ? 100 : 150
335
- })))), ((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 && /*#__PURE__*/_react.default.createElement(SearchComponent, null));
335
+ })))), ((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));
336
336
  };
337
337
 
338
338
  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) {
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
13
13
 
14
- 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, _templateObject45, _templateObject46, _templateObject47;
14
+ 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, _templateObject45, _templateObject46;
15
15
 
16
16
  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); }
17
17
 
@@ -43,28 +43,28 @@ var ContainerCard = _styledComponents.default.div(_templateObject || (_templateO
43
43
  return firstCard && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: 0;\n "])));
44
44
  }, function (_ref7) {
45
45
  var businessRows = _ref7.businessRows;
46
- return businessRows ? (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: ", ";\n "])), function () {
47
- return businessRows === 4 ? 'calc(25% - 40px)' : businessRows === 3 ? 'calc(33% - 40px)' : 'calc(50% - 40px)';
48
- }) : (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: calc(100% - 40px);\n\n @media (min-width: 481px) {\n max-height: ", ";\n }\n\n @media (min-width: 681px) {\n width: calc(50% - 40px);\n }\n\n @media (min-width: 993px) {\n width: calc(33% - 40px);\n }\n\n @media (min-width: 1200px) {\n width: calc(25% - 40px);\n }\n "])), function (_ref8) {
46
+ return (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 40px);\n\n @media (min-width: 481px) {\n max-height: ", ";\n }\n\n @media (min-width: 681px) {\n width: calc(50% - 40px);\n }\n\n @media (min-width: 993px) {\n width: calc(33% - 40px);\n }\n\n @media (min-width: 1200px) {\n width: ", ";\n }\n "])), function (_ref8) {
49
47
  var isCustomerMode = _ref8.isCustomerMode;
50
48
  return isCustomerMode ? '360px' : '320px';
49
+ }, function () {
50
+ return businessRows === 4 ? 'calc(25% - 40px)' : businessRows === 3 ? 'calc(33% - 40px)' : 'calc(50% - 40px)';
51
51
  });
52
52
  });
53
53
 
54
54
  exports.ContainerCard = ContainerCard;
55
55
 
56
- var WrapperBusinessCard = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 100%;\n position: relative;\n cursor: ", ";\n"])), function (_ref9) {
56
+ var WrapperBusinessCard = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 100%;\n position: relative;\n cursor: ", ";\n"])), function (_ref9) {
57
57
  var isSkeleton = _ref9.isSkeleton;
58
58
  return isSkeleton ? 'default' : 'pointer';
59
59
  });
60
60
 
61
61
  exports.WrapperBusinessCard = WrapperBusinessCard;
62
62
 
63
- var BusinessHero = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-radius: 10px;\n\n > span {\n display: flex;\n }\n"])));
63
+ var BusinessHero = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-radius: 10px;\n\n > span {\n display: flex;\n }\n"])));
64
64
 
65
65
  exports.BusinessHero = BusinessHero;
66
66
 
67
- var BusinessHeaderStyled = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _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: 145px;\n justify-content: center;\n align-items: center;\n border-radius: 7.6px 7.6px 0px 0px;\n\n h1 {\n color: #FFF;\n opacity: 0.7;\n }\n\n .closed {\n text-transform: uppercase;\n font-weight: 600;\n font-size: 28px;\n line-height: 42px;\n opacity: 1;\n position: relative;\n z-index: 2;\n }\n\n @media (min-width: 481px) {\n min-height: 165px;\n }\n"])));
67
+ var BusinessHeaderStyled = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _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: 145px;\n justify-content: center;\n align-items: center;\n border-radius: 7.6px 7.6px 0px 0px;\n\n h1 {\n color: #FFF;\n opacity: 0.7;\n }\n\n .closed {\n text-transform: uppercase;\n font-weight: 600;\n font-size: 28px;\n line-height: 42px;\n opacity: 1;\n position: relative;\n z-index: 2;\n }\n\n @media (min-width: 481px) {\n min-height: 165px;\n }\n"])));
68
68
 
69
69
  var BusinessHeader = function BusinessHeader(props) {
70
70
  var style = {};
@@ -82,38 +82,38 @@ var BusinessHeader = function BusinessHeader(props) {
82
82
 
83
83
  exports.BusinessHeader = BusinessHeader;
84
84
 
85
- var BusinessTags = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n justify-content: space-between;\n align-items: center;\n top: 0;\n margin: 15px;\n width: calc(100% - 35px);\n\n span.crown {\n background-color: rgba(0, 0, 0, 0.5);\n font-size: 20px;\n display: flex;\n align-items: center;\n color: #FFC917;\n }\n\n div {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n\n span {\n font-size: 11px;\n padding: 3px 8px;\n color: #748194;\n background: #DEE2E6;\n border-radius: 50px;\n margin-right: 10px;\n ", "\n &:last-child {\n ", "\n }\n }\n"])), function (props) {
85
+ var BusinessTags = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n justify-content: space-between;\n align-items: center;\n top: 0;\n margin: 15px;\n width: calc(100% - 35px);\n\n span.crown {\n background-color: rgba(0, 0, 0, 0.5);\n font-size: 20px;\n display: flex;\n align-items: center;\n color: #FFC917;\n }\n\n div {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n\n span {\n font-size: 11px;\n padding: 3px 8px;\n color: #748194;\n background: #DEE2E6;\n border-radius: 50px;\n margin-right: 10px;\n ", "\n &:last-child {\n ", "\n }\n }\n"])), function (props) {
86
86
  var _props$theme;
87
87
 
88
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
88
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
89
89
  }, function (props) {
90
90
  var _props$theme2;
91
91
 
92
- return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-left: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-right: 0px;\n "])));
92
+ return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-right: 0px;\n "])));
93
93
  });
94
94
 
95
95
  exports.BusinessTags = BusinessTags;
96
96
 
97
- var BusinessContent = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n max-height: 135px;\n padding: 0 20px 20px 20px;\n height: calc(100% - 145px);\n\n @media (min-width: 481px) {\n height: calc(100% - 165px);\n }\n"])));
97
+ var BusinessContent = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n max-height: 135px;\n padding: 0 20px 20px 20px;\n height: calc(100% - 145px);\n\n @media (min-width: 481px) {\n height: calc(100% - 165px);\n }\n"])));
98
98
 
99
99
  exports.BusinessContent = BusinessContent;
100
100
 
101
- var WrapperBusinessLogo = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n align-self: center;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n\n ", "\n\n ", "\n"])), function (_ref10) {
101
+ var WrapperBusinessLogo = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n align-self: center;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n\n ", "\n\n ", "\n"])), function (_ref10) {
102
102
  var isCustomerMode = _ref10.isCustomerMode;
103
- return isCustomerMode && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: 65px;\n height: 65px;\n min-height: 65px;\n min-width: 65px;\n "])));
103
+ return isCustomerMode && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 65px;\n height: 65px;\n min-height: 65px;\n min-width: 65px;\n "])));
104
104
  }, function (_ref11) {
105
105
  var isSkeleton = _ref11.isSkeleton;
106
- return isSkeleton && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n height: auto;\n width: auto;\n > span {\n display: flex;\n }\n @media (min-width: 481px){\n ", "\n }\n "])), function (_ref12) {
106
+ return isSkeleton && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n height: auto;\n width: auto;\n > span {\n display: flex;\n }\n @media (min-width: 481px){\n ", "\n }\n "])), function (_ref12) {
107
107
  var isCustomerMode = _ref12.isCustomerMode;
108
- return isCustomerMode && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n "])));
108
+ return isCustomerMode && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n "])));
109
109
  });
110
110
  });
111
111
 
112
112
  exports.WrapperBusinessLogo = WrapperBusinessLogo;
113
113
 
114
- var BusinessLogoStyled = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n width: 65px;\n height: 65px;\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: 65px;\n border-radius: 7.6px;\n\n @media (min-width: 481px){\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n ", "\n }\n"])), function (_ref13) {
114
+ var BusinessLogoStyled = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n width: 65px;\n height: 65px;\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: 65px;\n border-radius: 7.6px;\n\n @media (min-width: 481px){\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n ", "\n }\n"])), function (_ref13) {
115
115
  var isCustomerMode = _ref13.isCustomerMode;
116
- return isCustomerMode && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "])));
116
+ return isCustomerMode && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "])));
117
117
  });
118
118
 
119
119
  var BusinessLogo = function BusinessLogo(props) {
@@ -130,49 +130,49 @@ var BusinessLogo = function BusinessLogo(props) {
130
130
 
131
131
  exports.BusinessLogo = BusinessLogo;
132
132
 
133
- var BusinessInfo = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
133
+ var BusinessInfo = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
134
134
 
135
135
  exports.BusinessInfo = BusinessInfo;
136
136
 
137
- var BusinessInfoItem = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n font-size: 12px;\n\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"])), function (props) {
137
+ var BusinessInfoItem = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n font-size: 12px;\n\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"])), function (props) {
138
138
  var _props$theme3;
139
139
 
140
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
140
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
141
141
  });
142
142
 
143
143
  exports.BusinessInfoItem = BusinessInfoItem;
144
144
 
145
- var BusinessName = _styledComponents.default.h6(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n font-size: 16px;\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"])), function (props) {
145
+ var BusinessName = _styledComponents.default.h6(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n font-size: 16px;\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"])), function (props) {
146
146
  return props.theme.colors.darkTextColor;
147
147
  });
148
148
 
149
149
  exports.BusinessName = BusinessName;
150
150
 
151
- var Categories = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n font-size: 14px;\n font-weight: 300;\n color: #6C6C6C;\n\n @media (min-width: 481px) {\n font-size: 16px;\n }\n"])));
151
+ var Categories = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n font-size: 14px;\n font-weight: 300;\n color: #6C6C6C;\n\n @media (min-width: 481px) {\n font-size: 16px;\n }\n"])));
152
152
 
153
153
  exports.Categories = Categories;
154
154
 
155
- var Medadata = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n font-weight: 300;\n font-size: 12px;\n color: #909BA9;\n flex-wrap: wrap;\n \n\n ", "\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 (_ref14) {
155
+ var Medadata = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-top: 5px;\n display: flex;\n font-weight: 300;\n font-size: 12px;\n color: #909BA9;\n flex-wrap: wrap;\n \n\n ", "\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 (_ref14) {
156
156
  var isCustomerMode = _ref14.isCustomerMode;
157
- return isCustomerMode && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n > div {\n flex-direction: column;\n }\n "])));
157
+ return isCustomerMode && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n > div {\n flex-direction: column;\n }\n "])));
158
158
  }, function (_ref15) {
159
159
  var isSkeleton = _ref15.isSkeleton;
160
- return isSkeleton && (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n "])));
160
+ return isSkeleton && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n "])));
161
161
  }, function (props) {
162
162
  var _props$theme4;
163
163
 
164
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
164
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
165
165
  });
166
166
 
167
167
  exports.Medadata = Medadata;
168
168
 
169
- var CallCenterInformation = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n div{\n justify-content: space-evenly;\n }\n"])));
169
+ var CallCenterInformation = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n div{\n justify-content: space-evenly;\n }\n"])));
170
170
 
171
171
  exports.CallCenterInformation = CallCenterInformation;
172
172
 
173
- var CallCenterInformationBullet = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n display: flex;\n padding: 2px;\n margin-bottom: 2px;\n border-radius: 16px;\n svg{\n font-size: 18px;\n }\n ", "\n"])), function (_ref16) {
173
+ var CallCenterInformationBullet = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n display: flex;\n padding: 2px;\n margin-bottom: 2px;\n border-radius: 16px;\n svg{\n font-size: 18px;\n }\n ", "\n"])), function (_ref16) {
174
174
  var isCustomerMode = _ref16.isCustomerMode;
175
- return isCustomerMode ? (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n flex-direction: column;\n "]))) : (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n width: 50px;\n background: ", ";\n color: #fff;\n "])), function (_ref17) {
175
+ return isCustomerMode ? (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n flex-direction: column;\n "]))) : (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n width: 50px;\n background: ", ";\n color: #fff;\n "])), function (_ref17) {
176
176
  var bgcolor = _ref17.bgcolor;
177
177
  return bgcolor;
178
178
  });
@@ -180,51 +180,51 @@ var CallCenterInformationBullet = _styledComponents.default.div(_templateObject3
180
180
 
181
181
  exports.CallCenterInformationBullet = CallCenterInformationBullet;
182
182
 
183
- var BusinessLogoWrapper = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: -20px;\n margin-bottom: 10px;\n"])));
183
+ var BusinessLogoWrapper = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: -20px;\n margin-bottom: 10px;\n"])));
184
184
 
185
185
  exports.BusinessLogoWrapper = BusinessLogoWrapper;
186
186
 
187
- var BusinessStarInfo = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n .reviews {\n display: flex;\n align-items: center;\n svg {\n margin-right: 3px;\n font-size: 22px;\n color: #414954;\n ", "\n }\n span {\n font-size: 15px;\n color: #414954;\n }\n }\n"])), function (props) {
187
+ var BusinessStarInfo = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n .reviews {\n display: flex;\n align-items: center;\n svg {\n margin-right: 3px;\n font-size: 22px;\n color: #414954;\n ", "\n }\n span {\n font-size: 15px;\n color: #414954;\n }\n }\n"])), function (props) {
188
188
  var _props$theme5;
189
189
 
190
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n margin-left: 3px;\n margin-right: 0;\n "])));
190
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n margin-left: 3px;\n margin-right: 0;\n "])));
191
191
  });
192
192
 
193
193
  exports.BusinessStarInfo = BusinessStarInfo;
194
194
 
195
- var CardOverlay = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n border-radius: 7.6px;\n z-index: 1;\n"])));
195
+ var CardOverlay = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n border-radius: 7.6px;\n z-index: 1;\n"])));
196
196
 
197
197
  exports.CardOverlay = CardOverlay;
198
198
 
199
- var InfoLength = _styledComponents.default.p(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n font-size: 16px;\n font-weight: 600;\n"])));
199
+ var InfoLength = _styledComponents.default.p(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n font-size: 16px;\n font-weight: 600;\n"])));
200
200
 
201
201
  exports.InfoLength = InfoLength;
202
202
 
203
- var InfoDescription = _styledComponents.default.p(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n font-size: 12px;\n"])));
203
+ var InfoDescription = _styledComponents.default.p(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n font-size: 12px;\n"])));
204
204
 
205
205
  exports.InfoDescription = InfoDescription;
206
206
 
207
- var RibbonBox = _styledComponents.default.div(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n position: absolute;\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 top: -4px;\n right: -3px;\n background-color: ", ";\n max-width: 180px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
207
+ var RibbonBox = _styledComponents.default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n position: absolute;\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 top: -4px;\n right: -3px;\n background-color: ", ";\n max-width: 180px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
208
208
  return props.theme.colors.colorTextSignForm;
209
209
  }, function (props) {
210
210
  return props.theme.colors.primary;
211
211
  }, function (props) {
212
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n left: -3px;\n right: initial;\n "])));
212
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n left: -3px;\n right: initial;\n "])));
213
213
  }, function (_ref18) {
214
214
  var bgColor = _ref18.bgColor;
215
- return bgColor && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
215
+ return bgColor && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
216
216
  }, function (_ref19) {
217
217
  var isRoundRect = _ref19.isRoundRect;
218
- return isRoundRect && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
218
+ return isRoundRect && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
219
219
  }, function (_ref20) {
220
220
  var isCapsule = _ref20.isCapsule;
221
- return isCapsule && (0, _styledComponents.css)(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
221
+ return isCapsule && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
222
222
  });
223
223
 
224
224
  exports.RibbonBox = RibbonBox;
225
225
 
226
- var FavoriteWrapper = _styledComponents.default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-left: 15px;\n ", "\n\n svg {\n font-size: 16px;\n color: ", ";\n }\n"])), function (props) {
227
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n margin-right: 15px;\n margin-left: 0px;\n "])));
226
+ var FavoriteWrapper = _styledComponents.default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-left: 15px;\n ", "\n\n svg {\n font-size: 16px;\n color: ", ";\n }\n"])), function (props) {
227
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n margin-right: 15px;\n margin-left: 0px;\n "])));
228
228
  }, function (props) {
229
229
  return props.theme.colors.danger500;
230
230
  });
@@ -67,7 +67,8 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
67
67
  business = props.business,
68
68
  handlerClickCategory = props.handlerClickCategory,
69
69
  categorySelected = props.categorySelected,
70
- useKioskApp = props.useKioskApp;
70
+ useKioskApp = props.useKioskApp,
71
+ isProfessional = props.isProfessional;
71
72
  var theme = (0, _styledComponents.useTheme)();
72
73
 
73
74
  var _useState = (0, _react.useState)({
@@ -215,6 +216,14 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
215
216
  return window.removeEventListener('scroll', handleScroll);
216
217
  };
217
218
  }, [useKioskApp]);
219
+ (0, _react.useEffect)(function () {
220
+ var _business$professiona;
221
+
222
+ if ((business === null || business === void 0 ? void 0 : (_business$professiona = business.professionals) === null || _business$professiona === void 0 ? void 0 : _business$professiona.length) > 0 && !useKioskApp) {
223
+ var element = document.getElementById('category-lists');
224
+ element.setAttribute('style', 'width: 100% !important');
225
+ }
226
+ }, [business === null || business === void 0 ? void 0 : business.professionals, useKioskApp]);
218
227
  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) {
219
228
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
220
229
  key: i
@@ -227,7 +236,8 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
227
236
  id: "category-lists",
228
237
  className: "category-lists",
229
238
  featured: featured,
230
- w: props.wContainerStyle
239
+ w: props.wContainerStyle,
240
+ isProfessional: isProfessional
231
241
  }, !isSkeleton ? /*#__PURE__*/_react.default.createElement(_Tabs.Tabs, {
232
242
  variant: "primary"
233
243
  }, openBusinessInformation ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ProductCategories, null)) : /*#__PURE__*/_react.default.createElement(_AutoScroll.AutoScroll, null, /*#__PURE__*/_react.default.createElement(ProductCategories, null))) : /*#__PURE__*/_react.default.createElement(_Tabs.Tabs, {
@@ -9,7 +9,7 @@ exports.CategoriesContainer = void 0;
9
9
 
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
12
- var _templateObject, _templateObject2, _templateObject3;
12
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
13
13
 
14
14
  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); }
15
15
 
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
 
18
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
19
 
20
- var CategoriesContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 5px 0px 0px 0px;\n background: ", ";\n z-index: 1002;\n position: absolute;\n top: 0;\n border-bottom: 1px solid #D9D9D9;\n text-align: center;\n width: ", ";\n\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding: 10px 0px;\n margin: 0 15px;\n &:nth-of-type(1) {\n margin-left: 0;\n ", "\n }\n }\n\n div.special {\n ", "\n }\n\n /* @media (min-width: 381px) {\n padding: 15px 0px 0px 0px;\n } */\n @media (min-width: 992px) {\n width: ", ";\n }\n"])), function (props) {
20
+ var CategoriesContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 5px 0px 0px 0px;\n background: ", ";\n z-index: 1002;\n position: absolute;\n top: 0;\n border-bottom: 1px solid #D9D9D9;\n text-align: center;\n width: ", ";\n\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding: 10px 0px;\n margin: 0 15px;\n &:nth-of-type(1) {\n margin-left: 0;\n ", "\n }\n }\n\n div.special {\n ", "\n }\n\n /* @media (min-width: 381px) {\n padding: 15px 0px 0px 0px;\n } */\n @media (min-width: 769px) {\n ", "\n }\n @media (min-width: 992px) {\n width: ", ";\n }\n"])), function (props) {
21
21
  return props.theme.colors.backgroundPage;
22
22
  }, function (props) {
23
23
  var _props$w;
@@ -27,6 +27,9 @@ var CategoriesContainer = _styledComponents.default.div(_templateObject || (_tem
27
27
  return props.theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 15px;\n margin-right: 15px;\n "])));
28
28
  }, function (props) {
29
29
  return !props.featured && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none\n "])));
30
+ }, function (_ref) {
31
+ var isProfessional = _ref.isProfessional;
32
+ return isProfessional && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
30
33
  }, function (props) {
31
34
  var _props$w2;
32
35
 
@@ -33,6 +33,8 @@ var _Buttons = require("../../styles/Buttons");
33
33
 
34
34
  var _useWindowSize = require("../../../../../hooks/useWindowSize");
35
35
 
36
+ var _useIsMounted = require("../../../../../hooks/useIsMounted");
37
+
36
38
  var _RenderProductsLayout = require("../RenderProductsLayout");
37
39
 
38
40
  var _Cart = require("../Cart");
@@ -110,7 +112,9 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
110
112
  professionalSelected = props.professionalSelected,
111
113
  handleChangeProfessionalSelected = props.handleChangeProfessionalSelected,
112
114
  onChangeMetaTag = props.onChangeMetaTag,
113
- onBusinessClick = props.onBusinessClick;
115
+ onBusinessClick = props.onBusinessClick,
116
+ handleChangePriceFilterValues = props.handleChangePriceFilterValues,
117
+ priceFilterValues = props.priceFilterValues;
114
118
  var business = businessState.business,
115
119
  loading = businessState.loading,
116
120
  error = businessState.error;
@@ -187,6 +191,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
187
191
  subcategoriesSelected = _useState16[0],
188
192
  setSubcategoriesSelected = _useState16[1];
189
193
 
194
+ var isMounted = (0, _useIsMounted.useIsMounted)();
190
195
  var currentCart = (_Object$values$find = Object.values(carts).find(function (cart) {
191
196
  var _cart$business;
192
197
 
@@ -449,8 +454,10 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
449
454
  handleUpdateProducts: handleUpdateProducts,
450
455
  professionalSelected: professionalSelected,
451
456
  handleChangeProfessionalSelected: handleChangeProfessionalSelected,
452
- onBusinessClick: onBusinessClick
453
- }), !loading && business && !Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
457
+ onBusinessClick: onBusinessClick,
458
+ priceFilterValues: priceFilterValues,
459
+ handleChangePriceFilterValues: handleChangePriceFilterValues
460
+ }), isMounted && !loading && business && !Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
454
461
  content: t('NOT_FOUND_BUSINESS_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.NOT_FOUND_BUSINESS_PRODUCTS) || 'No products to show at this business, please try with other business.'),
455
462
  btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.SEARCH_REDIRECT) || 'Go to Businesses'),
456
463
  onClickButton: function onClickButton() {
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.Title = exports.SkeletonItem = exports.ProductsContainer = exports.ProductLoading = exports.MobileCartViewWrapper = exports.EmptyCart = exports.EmptyBtnWrapper = exports.BusinessCartContent = void 0;
7
9
 
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
11
 
10
12
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
11
13
 
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ 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); }
15
+
16
+ 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
17
 
14
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
19
 
@@ -36,7 +40,7 @@ var BusinessCartContent = _styledComponents.default.div(_templateObject5 || (_te
36
40
  return "".concat(maxHeight, "px");
37
41
  }, function (_ref2) {
38
42
  var isModal = _ref2.isModal;
39
- return !isModal && css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border: 1px solid #E9ECEF;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n "])));
43
+ return !isModal && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border: 1px solid #E9ECEF;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n "])));
40
44
  });
41
45
 
42
46
  exports.BusinessCartContent = BusinessCartContent;
@@ -126,6 +126,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
126
126
  _useConfig2 = _slicedToArray(_useConfig, 1),
127
127
  configs = _useConfig2[0].configs;
128
128
 
129
+ var orderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)();
129
130
  var theme = (0, _styledComponents.useTheme)();
130
131
 
131
132
  var _useState = (0, _react.useState)({
@@ -486,7 +486,7 @@ var CheckoutUI = function CheckoutUI(props) {
486
486
 
487
487
  return (cart === null || cart === void 0 ? void 0 : (_cart$business2 = cart.business) === null || _cart$business2 === void 0 ? void 0 : _cart$business2.slug) && handleStoreRedirect && handleStoreRedirect(cart === null || cart === void 0 ? void 0 : (_cart$business3 = cart.business) === null || _cart$business3 === void 0 ? void 0 : _cart$business3.slug);
488
488
  }
489
- }, ('ADD_PRODUCTS', 'Add products'))), /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
489
+ }, t('ADD_PRODUCTS', 'Add products'))), /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
490
490
  isCartPending: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
491
491
  cart: cart,
492
492
  useKioskApp: useKioskApp,
@@ -67,7 +67,7 @@ var WrapperPlaceOrderButton = _styledComponents.default.div(_templateObject12 ||
67
67
 
68
68
  exports.WrapperPlaceOrderButton = WrapperPlaceOrderButton;
69
69
 
70
- var WarningText = _styledComponents.default.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin: 10px auto;\n text-align: center;\n color: ", ";\n"])), function (props) {
70
+ var WarningText = _styledComponents.default.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin: 10px auto;\n text-align: center;\n color: ", ";\n font-size: 14px;\n"])), function (props) {
71
71
  return props.theme.colors.danger500;
72
72
  });
73
73