ordering-ui-external 2.0.4 → 2.1.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 (101) hide show
  1. package/_bundles/{0.ordering-ui.a228aa8797d9d0fc5a6c.js → 0.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  2. package/_bundles/{1.ordering-ui.a228aa8797d9d0fc5a6c.js → 1.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  3. package/_bundles/{2.ordering-ui.a228aa8797d9d0fc5a6c.js → 2.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  4. package/_bundles/{4.ordering-ui.a228aa8797d9d0fc5a6c.js → 4.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  5. package/_bundles/{5.ordering-ui.a228aa8797d9d0fc5a6c.js → 5.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  6. package/_bundles/{6.ordering-ui.a228aa8797d9d0fc5a6c.js → 6.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  7. package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js → 7.ordering-ui.3861d1cf52cf041c74c5.js} +1 -1
  8. package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → 7.ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.a228aa8797d9d0fc5a6c.js → 8.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  10. package/_bundles/{9.ordering-ui.a228aa8797d9d0fc5a6c.js → 9.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  11. package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js → ordering-ui.3861d1cf52cf041c74c5.js} +2 -2
  12. package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
  13. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +36 -28
  14. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -34
  15. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +3 -1
  16. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +8 -1
  17. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +1 -1
  18. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +2 -1
  19. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
  20. package/_modules/themes/five/src/components/Cart/index.js +73 -25
  21. package/_modules/themes/five/src/components/CartContent/index.js +3 -1
  22. package/_modules/themes/five/src/components/Checkout/index.js +25 -15
  23. package/_modules/themes/five/src/components/DriverTips/index.js +26 -15
  24. package/_modules/themes/five/src/components/GiftCard/GiftCardUI/index.js +63 -0
  25. package/_modules/themes/five/src/components/GiftCard/GiftCardUI/styles.js +27 -0
  26. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +69 -0
  27. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +29 -0
  28. package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +123 -0
  29. package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +20 -0
  30. package/_modules/themes/five/src/components/GiftCard/SendGiftCard/index.js +114 -0
  31. package/_modules/themes/five/src/components/GiftCard/SendGiftCard/styles.js +14 -0
  32. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +8 -56
  33. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
  34. package/_modules/themes/five/src/components/LoginForm/index.js +6 -0
  35. package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +69 -0
  36. package/_modules/themes/five/src/components/OrderDetails/index.js +84 -76
  37. package/_modules/themes/five/src/components/OrderDetails/styles.js +1 -1
  38. package/_modules/themes/five/src/components/OrderItAgain/styles.js +3 -3
  39. package/_modules/themes/five/src/components/OrderProgress/index.js +5 -14
  40. package/_modules/themes/five/src/components/PageBanner/index.js +120 -6
  41. package/_modules/themes/five/src/components/PaymentOptions/index.js +22 -8
  42. package/_modules/themes/five/src/components/PaymentOptions/styles.js +9 -7
  43. package/_modules/themes/five/src/components/ProductOptionSubOption/styles.js +20 -14
  44. package/_modules/themes/five/src/components/ProfessionalFilter/index.js +23 -25
  45. package/_modules/themes/five/src/components/ProfessionalFilter/styles.js +6 -32
  46. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +38 -22
  47. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +3 -9
  48. package/_modules/themes/five/src/components/ServiceForm/index.js +10 -4
  49. package/_modules/themes/five/src/components/ServiceForm/styles.js +23 -25
  50. package/_modules/themes/five/src/components/SignUpForm/index.js +6 -0
  51. package/_modules/themes/five/src/components/SingleOrderCard/index.js +22 -16
  52. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +13 -2
  53. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +73 -51
  54. package/_modules/themes/five/src/components/SingleProfessionalCard/index.js +23 -7
  55. package/_modules/themes/five/src/components/SingleProfessionalCard/styles.js +29 -10
  56. package/_modules/themes/five/src/components/Wallets/index.js +2 -1
  57. package/package.json +2 -2
  58. package/src/themes/five/src/components/BusinessBasicInformation/index.js +49 -35
  59. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +26 -4
  60. package/src/themes/five/src/components/BusinessItemAccordion/index.js +1 -1
  61. package/src/themes/five/src/components/BusinessProductsCategories/index.js +7 -1
  62. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +2 -2
  63. package/src/themes/five/src/components/BusinessProductsListing/index.js +1 -0
  64. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
  65. package/src/themes/five/src/components/Cart/index.js +44 -14
  66. package/src/themes/five/src/components/CartContent/index.js +1 -0
  67. package/src/themes/five/src/components/Checkout/index.js +67 -51
  68. package/src/themes/five/src/components/DriverTips/index.js +52 -40
  69. package/src/themes/five/src/components/GiftCard/GiftCardUI/index.js +59 -0
  70. package/src/themes/five/src/components/GiftCard/GiftCardUI/styles.js +41 -0
  71. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +70 -0
  72. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +52 -0
  73. package/src/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +122 -0
  74. package/src/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +41 -0
  75. package/src/themes/five/src/components/GiftCard/SendGiftCard/index.js +103 -0
  76. package/src/themes/five/src/components/GiftCard/SendGiftCard/styles.js +27 -0
  77. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +33 -79
  78. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +0 -1
  79. package/src/themes/five/src/components/LoginForm/index.js +7 -0
  80. package/src/themes/five/src/components/OrderDetails/OrderEta.js +59 -0
  81. package/src/themes/five/src/components/OrderDetails/index.js +141 -133
  82. package/src/themes/five/src/components/OrderDetails/styles.js +0 -1
  83. package/src/themes/five/src/components/OrderItAgain/styles.js +6 -6
  84. package/src/themes/five/src/components/OrderProgress/index.js +3 -12
  85. package/src/themes/five/src/components/PageBanner/index.js +96 -4
  86. package/src/themes/five/src/components/PaymentOptions/index.js +26 -5
  87. package/src/themes/five/src/components/PaymentOptions/styles.js +4 -0
  88. package/src/themes/five/src/components/ProductOptionSubOption/styles.js +24 -4
  89. package/src/themes/five/src/components/ProfessionalFilter/index.js +18 -30
  90. package/src/themes/five/src/components/ProfessionalFilter/styles.js +1 -57
  91. package/src/themes/five/src/components/RenderProductsLayout/index.js +33 -17
  92. package/src/themes/five/src/components/RenderProductsLayout/styles.js +0 -18
  93. package/src/themes/five/src/components/ServiceForm/index.js +11 -5
  94. package/src/themes/five/src/components/ServiceForm/styles.js +1 -9
  95. package/src/themes/five/src/components/SignUpForm/index.js +7 -0
  96. package/src/themes/five/src/components/SingleOrderCard/index.js +43 -26
  97. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +12 -2
  98. package/src/themes/five/src/components/SingleProductCard/layouts/original/styles.js +51 -4
  99. package/src/themes/five/src/components/SingleProfessionalCard/index.js +17 -6
  100. package/src/themes/five/src/components/SingleProfessionalCard/styles.js +33 -6
  101. package/src/themes/five/src/components/Wallets/index.js +2 -1
@@ -4,67 +4,83 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.WrapLogo = exports.TitleWrapper = exports.SoldOut = exports.SkeletonCardLogo = exports.SkeletonCardInfo = exports.RibbonBox = exports.QuantityContainer = exports.PriceWrapper = exports.LastOrder = exports.CardLogo = exports.CardInfo = exports.CardContainer = void 0;
7
+ exports.WrapTags = exports.WrapLogo = exports.TitleWrapper = exports.SoldOut = exports.SkeletonCardLogo = exports.SkeletonCardInfo = exports.RibbonBox = exports.QuantityContainer = exports.PriceWrapper = exports.LastOrder = exports.CardLogo = exports.CardInfo = exports.CardContainer = 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;
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 }; }
14
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
15
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
- var CardContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n background: ", ";\n border: 1px solid #E9ECEF;\n padding: 10px;\n border-radius: 7.6px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n position: relative;\n > div {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n button {\n width: 100%;\n margin-top: 10px;\n padding: 4px;\n }\n ", "\n"])), function (_ref) {
16
+ var CardContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n background: ", ";\n border: 1px solid #E9ECEF;\n padding: 10px;\n border-radius: 7.6px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n position: relative;\n > div {\n display: flex;\n justify-content: space-between;\n ", "\n align-items: center;\n width: 100%;\n }\n button {\n width: 100%;\n margin-top: 10px;\n padding: 4px;\n }\n ", "\n"])), function (_ref) {
17
17
  var isShowAddButt = _ref.isShowAddButt;
18
18
  return (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-height: ", ";\n "])), isShowAddButt ? '162px' : '110px');
19
19
  }, function (_ref2) {
20
20
  var soldOut = _ref2.soldOut;
21
21
  return soldOut ? '#6c757d33' : '#FFF';
22
22
  }, function (_ref3) {
23
- var productsRows = _ref3.productsRows;
24
- return productsRows ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n margin: 10px;\n "])), function () {
23
+ var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6;
24
+ var theme = _ref3.theme;
25
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$ = _theme$business_view.components) === null || _theme$business_view$ === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view$.products) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.components) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.product) === null || _theme$business_view$4 === void 0 ? void 0 : (_theme$business_view$5 = _theme$business_view$4.components) === null || _theme$business_view$5 === void 0 ? void 0 : (_theme$business_view$6 = _theme$business_view$5.image) === null || _theme$business_view$6 === void 0 ? void 0 : _theme$business_view$6.position) === 'right' ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-direction: row-reverse;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-direction: row;\n "])));
26
+ }, function (_ref4) {
27
+ var productsRows = _ref4.productsRows;
28
+ return productsRows ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", ";\n margin: 10px;\n "])), function () {
25
29
  return productsRows === 3 ? 'calc(33% - 20px)' : 'calc(50% - 20px)';
26
- }) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 10px 0px;\n @media (min-width: 576px) {\n margin: 10px;\n width: calc(100% - 20px);\n }\n ", "\n \n "])), function (_ref4) {
27
- var isCartOnProductsList = _ref4.isCartOnProductsList;
28
- return isCartOnProductsList ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media (min-width: 993px) {\n width: calc(50% - 20px);\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
30
+ }) : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 10px;\n @media (min-width: 576px) {\n margin: 10px;\n width: calc(100% - 20px);\n }\n ", "\n \n "])), function (_ref5) {
31
+ var isCartOnProductsList = _ref5.isCartOnProductsList;
32
+ return isCartOnProductsList ? (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n @media (min-width: 993px) {\n width: calc(50% - 20px);\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
29
33
  var _props$theme;
30
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
31
- }) : (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n @media (min-width: 681px) {\n width: calc(49% - 20px);\n }\n @media (min-width: 1440px) {\n width: calc(33% - 20px);\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
34
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
35
+ }) : (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n @media (min-width: 681px) {\n width: calc(49% - 20px);\n }\n @media (min-width: 1440px) {\n width: calc(33% - 20px);\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
32
36
  var _props$theme2;
33
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
37
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
34
38
  });
35
39
  });
36
40
  });
37
41
  exports.CardContainer = CardContainer;
38
- var SoldOut = _styledComponents.default.span(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-weight: bold;\n position: absolute;\n background: #495057 0% 0% no-repeat padding-box;\n padding: 5px 10px;\n top: 7px;\n border-radius: 2px 0px 0px 2px;\n right: 0px;\n color: white;\n font-size: 12px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n ", "\n"])), function (props) {
42
+ var SoldOut = _styledComponents.default.span(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-weight: bold;\n position: absolute;\n background: #495057 0% 0% no-repeat padding-box;\n padding: 5px 10px;\n top: 7px;\n border-radius: 2px 0px 0px 2px;\n right: 0px;\n color: white;\n font-size: 12px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n ", "\n"])), function (props) {
39
43
  var _props$theme3;
40
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n left: 0px;\n right: initial;\n "])));
41
- }, function (_ref5) {
42
- var isBottom = _ref5.isBottom;
43
- return isBottom && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n bottom: 7px;\n top: initial;\n "])));
44
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n left: 0px;\n right: initial;\n "])));
45
+ }, function (_ref6) {
46
+ var isBottom = _ref6.isBottom;
47
+ return isBottom && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n bottom: 7px;\n top: initial;\n "])));
44
48
  });
45
49
  exports.SoldOut = SoldOut;
46
- var CardInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-height: 86px;\n ", "\n > * {\n margin: 3px;\n }\n p {\n color: #909BA9;\n text-align: left;\n font-size: 10px;\n ", "\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n white-space: pre-wrap;\n }\n span {\n color: ", ";\n font-size: 14px;\n }\n ", "\n @media (min-width: 1024px) {\n p {\n font-size: 12px;\n }\n span {\n font-size: 14px;\n }\n }\n"])), function (_ref6) {
47
- var isBgimage = _ref6.isBgimage;
48
- return (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: ", ";\n "])), isBgimage ? 'calc(100% - 90px)' : '100%');
50
+ var CardInfo = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-height: 86px;\n ", "\n > * {\n margin: 3px;\n }\n p {\n color: #909BA9;\n text-align: left;\n font-size: 10px;\n ", "\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n white-space: pre-wrap;\n }\n span {\n color: ", ";\n font-size: 14px;\n }\n ", "\n @media (min-width: 1024px) {\n p {\n font-size: 12px;\n }\n span {\n font-size: 14px;\n }\n }\n"])), function (_ref7) {
51
+ var isBgimage = _ref7.isBgimage;
52
+ return (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: ", ";\n "])), isBgimage ? 'calc(100% - 90px)' : '100%');
49
53
  }, function (props) {
50
54
  var _props$theme4;
51
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
55
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
52
56
  }, function (props) {
53
57
  return props.theme.colors.darkTextColor;
54
- }, function (_ref7) {
55
- var oneLine = _ref7.oneLine;
56
- return oneLine && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n p {\n -webkit-line-clamp: 1;\n }\n "])));
58
+ }, function (_ref8) {
59
+ var oneLine = _ref8.oneLine;
60
+ return oneLine && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n p {\n -webkit-line-clamp: 1;\n }\n "])));
57
61
  });
58
62
  exports.CardInfo = CardInfo;
59
- var WrapLogo = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n position: relative;\n max-width: 86px;\n max-height: 86px;\n height: 86px;\n ", "\n margin-left: 5px;\n ", "\n"])), function (_ref8) {
60
- var isBgimage = _ref8.isBgimage;
61
- return isBgimage && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: 86px;\n "])));
63
+ var WrapLogo = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n position: relative;\n max-width: 86px;\n max-height: 86px;\n height: 86px;\n ", "\n ", "\n ", "\n"])), function (_ref9) {
64
+ var isBgimage = _ref9.isBgimage;
65
+ return isBgimage && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 86px;\n "])));
66
+ }, function (_ref10) {
67
+ var _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8;
68
+ var theme = _ref10.theme;
69
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 ? void 0 : (_theme$business_view3 = _theme$business_view2.components) === null || _theme$business_view3 === void 0 ? void 0 : (_theme$business_view4 = _theme$business_view3.products) === null || _theme$business_view4 === void 0 ? void 0 : (_theme$business_view5 = _theme$business_view4.components) === null || _theme$business_view5 === void 0 ? void 0 : (_theme$business_view6 = _theme$business_view5.product) === null || _theme$business_view6 === void 0 ? void 0 : (_theme$business_view7 = _theme$business_view6.components) === null || _theme$business_view7 === void 0 ? void 0 : (_theme$business_view8 = _theme$business_view7.image) === null || _theme$business_view8 === void 0 ? void 0 : _theme$business_view8.position) === 'right' ? (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 5px;\n "]))) : (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-right: 5px;\n "])));
62
70
  }, function (props) {
63
71
  var _props$theme5;
64
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
72
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
65
73
  });
66
74
  exports.WrapLogo = WrapLogo;
67
- var CardLogoStyled = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n background-position: center;\n object-fit: cover;\n min-height: 86px;\n border-radius: 10px;\n"])));
75
+ var WrapTags = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n margin-left: 10px;\n margin-right: 10px;\n overflow-x: auto;\n ", "\n ", "\n div {\n display: flex;\n margin: auto;\n }\n ::-webkit-scrollbar {\n display: none;\n }\n img {\n width: 30px;\n height: 30px;\n margin-right: 5px;\n }\n"])), function (_ref11) {
76
+ var isBgimage = _ref11.isBgimage;
77
+ return isBgimage && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n width: 50px;\n "])));
78
+ }, function (props) {
79
+ var _props$theme6;
80
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
81
+ });
82
+ exports.WrapTags = WrapTags;
83
+ var CardLogoStyled = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n background-position: center;\n object-fit: cover;\n min-height: 86px;\n border-radius: 10px;\n"])));
68
84
  var CardLogo = function CardLogo(props) {
69
85
  var style = {};
70
86
  if (props.bgimage) {
@@ -78,49 +94,55 @@ var CardLogo = function CardLogo(props) {
78
94
  }), props.children);
79
95
  };
80
96
  exports.CardLogo = CardLogo;
81
- var PriceWrapper = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n .off-price {\n font-size: 10px;\n color: #909BA9;\n margin-left: 5px;\n text-decoration: line-through;\n ", "\n @media (min-width: 1024px) {\n font-size: 13px;\n }\n }\n"])), function (props) {
82
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0;\n "])));
97
+ var PriceWrapper = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n .current-price {\n min-width: 64px\n }\n .off-price {\n font-size: 10px;\n color: #909BA9;\n margin-left: 5px;\n text-decoration: line-through;\n ", "\n ", "\n @media (min-width: 1024px) {\n font-size: 13px;\n ", "\n }\n }\n"])), function (_ref12) {
98
+ var isOffPrice = _ref12.isOffPrice;
99
+ return isOffPrice && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n min-width: 46px;\n "])));
100
+ }, function (props) {
101
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0;\n "])));
102
+ }, function (_ref13) {
103
+ var isOffPrice = _ref13.isOffPrice;
104
+ return isOffPrice && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n min-width: 64px;\n "])));
83
105
  });
84
106
  exports.PriceWrapper = PriceWrapper;
85
- var QuantityContainer = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n position: absolute;\n left: 100%;\n bottom: 100%;\n width: 25px;\n height: 25px;\n text-align: center;\n border-radius: 50%;\n transform: translate(-20px, 50%);\n\n @media (min-width: 768px) {\n transform: translate(-50%, 50%);\n }\n"])), function (_ref9) {
86
- var theme = _ref9.theme;
107
+ var QuantityContainer = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n position: absolute;\n left: 100%;\n bottom: 100%;\n width: 25px;\n height: 25px;\n text-align: center;\n border-radius: 50%;\n transform: translate(-20px, 50%);\n @media (min-width: 768px) {\n transform: translate(-50%, 50%);\n }\n"])), function (_ref14) {
108
+ var theme = _ref14.theme;
87
109
  return theme.colors.primary;
88
- }, function (_ref10) {
89
- var theme = _ref10.theme;
110
+ }, function (_ref15) {
111
+ var theme = _ref15.theme;
90
112
  return theme.colors.primaryContrast;
91
113
  });
92
114
  exports.QuantityContainer = QuantityContainer;
93
- var RibbonBox = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _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 display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n max-width: 70px;\n word-break: break-all;\n\n ", "\n ", "\n ", "\n ", "\n"])), function (props) {
115
+ var RibbonBox = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _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 display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n max-width: 70px;\n word-break: break-all;\n ", "\n ", "\n ", "\n ", "\n"])), function (props) {
94
116
  return props.theme.colors.colorTextSignForm;
95
117
  }, function (props) {
96
118
  return props.theme.colors.primary;
97
119
  }, function (props) {
98
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n left: -3px;\n right: initial;\n "])));
99
- }, function (_ref11) {
100
- var bgColor = _ref11.bgColor;
101
- return bgColor && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
102
- }, function (_ref12) {
103
- var isRoundRect = _ref12.isRoundRect;
104
- return isRoundRect && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
105
- }, function (_ref13) {
106
- var isCapsule = _ref13.isCapsule;
107
- return isCapsule && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
120
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n left: -3px;\n right: initial;\n "])));
121
+ }, function (_ref16) {
122
+ var bgColor = _ref16.bgColor;
123
+ return bgColor && (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
124
+ }, function (_ref17) {
125
+ var isRoundRect = _ref17.isRoundRect;
126
+ return isRoundRect && (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
127
+ }, function (_ref18) {
128
+ var isCapsule = _ref18.isCapsule;
129
+ return isCapsule && (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
108
130
  });
109
131
  exports.RibbonBox = RibbonBox;
110
- var LastOrder = _styledComponents.default.span(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n font-size: 10px !important;\n margin: 0px 3px;\n"])), function (props) {
132
+ var LastOrder = _styledComponents.default.span(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n font-size: 10px !important;\n margin: 0px 3px;\n"])), function (props) {
111
133
  return props.theme.colors.primary;
112
134
  });
113
135
  exports.LastOrder = LastOrder;
114
- var TitleWrapper = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n h1 {\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0px;\n }\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n svg {\n color: ", ";\n font-size: 16px;\n }\n }\n"])), function (props) {
136
+ var TitleWrapper = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n h1 {\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0px;\n }\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n svg {\n color: ", ";\n font-size: 16px;\n }\n }\n"])), function (props) {
115
137
  return props.theme.colors.headingColor;
116
138
  }, function (props) {
117
139
  return props.theme.colors.danger500;
118
140
  });
119
141
  exports.TitleWrapper = TitleWrapper;
120
- var SkeletonCardInfo = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: calc(100% - 90px);\n > * {\n margin: 3px;\n }\n"])));
142
+ var SkeletonCardInfo = _styledComponents.default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: calc(100% - 90px);\n > * {\n margin: 3px;\n }\n"])));
121
143
  exports.SkeletonCardInfo = SkeletonCardInfo;
122
- var SkeletonCardLogo = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n max-width: 86px;\n max-height: 86px;\n width: 86px;\n height: 86px;\n margin-left: 5px;\n ", "\n"])), function (props) {
123
- var _props$theme6;
124
- return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
144
+ var SkeletonCardLogo = _styledComponents.default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n max-width: 86px;\n max-height: 86px;\n width: 86px;\n height: 86px;\n margin-left: 5px;\n ", "\n"])), function (props) {
145
+ var _props$theme7;
146
+ return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
125
147
  });
126
148
  exports.SkeletonCardLogo = SkeletonCardLogo;
@@ -11,6 +11,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
11
11
  var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
12
12
  var _ProfessionalInfo = require("../ProfessionalInfo");
13
13
  var _Modal = require("../Modal");
14
+ var _FaUserAlt = _interopRequireDefault(require("@meronex/icons/fa/FaUserAlt"));
14
15
  var _styles = require("./styles");
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -30,7 +31,10 @@ var SingleProfessionalCardUI = function SingleProfessionalCardUI(props) {
30
31
  var _professional$occupat, _professional$occupat2;
31
32
  var professional = props.professional,
32
33
  isSkeleton = props.isSkeleton,
33
- handleFavoriteProfessional = props.handleFavoriteProfessional;
34
+ handleFavoriteProfessional = props.handleFavoriteProfessional,
35
+ isSmallPhoto = props.isSmallPhoto,
36
+ active = props.active,
37
+ handleProfessionalClick = props.handleProfessionalClick;
34
38
  var _useSession = (0, _orderingComponentsExternal.useSession)(),
35
39
  _useSession2 = _slicedToArray(_useSession, 1),
36
40
  auth = _useSession2[0].auth;
@@ -46,20 +50,31 @@ var SingleProfessionalCardUI = function SingleProfessionalCardUI(props) {
46
50
  var handleOpenProfileInfo = function handleOpenProfileInfo() {
47
51
  setOpen(true);
48
52
  };
49
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Container, null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
53
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Container, {
54
+ active: active,
55
+ isCursor: !!handleProfessionalClick,
56
+ onClick: function onClick(e) {
57
+ return handleProfessionalClick && handleProfessionalClick(e, professional);
58
+ }
59
+ }, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
50
60
  style: {
51
61
  width: '86px',
52
62
  height: '86px'
53
63
  }
54
- }) : /*#__PURE__*/_react.default.createElement(_styles.UserPhoto, {
55
- bgimage: professional === null || professional === void 0 ? void 0 : professional.photo
56
- }), /*#__PURE__*/_react.default.createElement(_styles.InfoWrapper, null, /*#__PURE__*/_react.default.createElement("h4", null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
64
+ }) : professional !== null && professional !== void 0 && professional.photo ? /*#__PURE__*/_react.default.createElement(_styles.UserPhoto, {
65
+ bgimage: professional === null || professional === void 0 ? void 0 : professional.photo,
66
+ isSmallPhoto: isSmallPhoto
67
+ }) : /*#__PURE__*/_react.default.createElement(_styles.UserDummyAvatarWrapper, {
68
+ isSmallPhoto: isSmallPhoto
69
+ }, /*#__PURE__*/_react.default.createElement(_FaUserAlt.default, null)), /*#__PURE__*/_react.default.createElement(_styles.InfoWrapper, null, /*#__PURE__*/_react.default.createElement("h4", null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
57
70
  height: 18,
58
71
  width: 120
59
72
  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, professional === null || professional === void 0 ? void 0 : professional.name, " ", professional === null || professional === void 0 ? void 0 : professional.last_name)), isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
60
73
  height: 15,
61
74
  width: 80
62
- }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (professional === null || professional === void 0 ? void 0 : (_professional$occupat = professional.occupation) === null || _professional$occupat === void 0 ? void 0 : _professional$occupat.name) && /*#__PURE__*/_react.default.createElement("p", null, professional === null || professional === void 0 ? void 0 : (_professional$occupat2 = professional.occupation) === null || _professional$occupat2 === void 0 ? void 0 : _professional$occupat2.name)), /*#__PURE__*/_react.default.createElement(_styles.ActionWrapper, null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
75
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (professional === null || professional === void 0 ? void 0 : (_professional$occupat = professional.occupation) === null || _professional$occupat === void 0 ? void 0 : _professional$occupat.name) && /*#__PURE__*/_react.default.createElement("p", null, professional === null || professional === void 0 ? void 0 : (_professional$occupat2 = professional.occupation) === null || _professional$occupat2 === void 0 ? void 0 : _professional$occupat2.name)), /*#__PURE__*/_react.default.createElement(_styles.ActionWrapper, {
76
+ isSmallPhoto: isSmallPhoto
77
+ }, isSkeleton ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
63
78
  width: 16,
64
79
  height: 16
65
80
  }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
@@ -76,7 +91,8 @@ var SingleProfessionalCardUI = function SingleProfessionalCardUI(props) {
76
91
  }), /*#__PURE__*/_react.default.createElement("span", {
77
92
  onClick: function onClick() {
78
93
  return handleChangeFavorite();
79
- }
94
+ },
95
+ className: "favorite"
80
96
  }, professional !== null && professional !== void 0 && professional.favorite ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.HeartFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Heart, null)))))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
81
97
  open: open,
82
98
  width: "760px",
@@ -4,24 +4,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.UserPhoto = exports.InfoWrapper = exports.Container = exports.ActionWrapper = void 0;
7
+ exports.UserPhoto = exports.UserDummyAvatarWrapper = exports.InfoWrapper = exports.Container = exports.ActionWrapper = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
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
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
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
15
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n padding: 12px 14px;\n display: flex;\n align-items: center;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n margin: 10px;\n"])), function (props) {
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n padding: 12px 14px;\n display: flex;\n align-items: center;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n margin: 10px;\n min-width: 205px;\n ", "\n ", "\n"])), function (props) {
17
17
  return props.theme.colors.backgroundPage;
18
18
  }, function (props) {
19
19
  return props.theme.colors.gray200;
20
+ }, function (_ref) {
21
+ var active = _ref.active;
22
+ return active && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), function (props) {
23
+ return props.theme.colors.primary;
24
+ });
25
+ }, function (_ref2) {
26
+ var isCursor = _ref2.isCursor;
27
+ return isCursor && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n "])));
20
28
  });
21
29
  exports.Container = Container;
22
- var UserPhotoStyled = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n background-position: center;\n object-fit: cover;\n min-height: 86px;\n width: 86px;\n height: 86px;\n border-radius: 4px;\n\n ", "\n"])), function (_ref) {
23
- var isSkeleton = _ref.isSkeleton;
24
- return isSkeleton && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), function (props) {
30
+ var UserPhotoStyled = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n background-position: center;\n object-fit: cover;\n border-radius: 4px;\n\n ", "\n\n ", "\n"])), function (_ref3) {
31
+ var isSmallPhoto = _ref3.isSmallPhoto;
32
+ return isSmallPhoto ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n min-height: 42px;\n width: 42px;\n height: 42px;\n "]))) : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n min-height: 86px;\n width: 86px;\n height: 86px;\n "])));
33
+ }, function (_ref4) {
34
+ var isSkeleton = _ref4.isSkeleton;
35
+ return isSkeleton && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), function (props) {
25
36
  return props.theme.colors.gray200;
26
37
  });
27
38
  });
@@ -35,12 +46,20 @@ var UserPhoto = function UserPhoto(props) {
35
46
  }), props.children);
36
47
  };
37
48
  exports.UserPhoto = UserPhoto;
38
- var InfoWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: calc(100% - 106px);\n margin-left: 20px;\n ", "\n > h4 {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n margin: 0px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n p {\n margin-top: 2px;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n }\n"])), function (props) {
39
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 20px;\n "])));
49
+ var UserDummyAvatarWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n svg {\n ", "\n }\n"])), function (_ref5) {
50
+ var isSmallPhoto = _ref5.isSmallPhoto;
51
+ return isSmallPhoto ? (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 42px;\n height: 42px;\n "]))) : (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 86px;\n height: 86px;\n "])));
52
+ });
53
+ exports.UserDummyAvatarWrapper = UserDummyAvatarWrapper;
54
+ var InfoWrapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: calc(100% - 60px);\n margin-left: 20px;\n ", "\n > h4 {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n margin: 0px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n p {\n margin-top: 2px;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n }\n"])), function (props) {
55
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 20px;\n "])));
40
56
  });
41
57
  exports.InfoWrapper = InfoWrapper;
42
- var ActionWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-top: 15px;\n display: flex;\n align-items: center;\n > .info {\n cursor: pointer;\n font-size: 16px;\n margin-right: 7px;\n ", "\n }\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n svg {\n color: ", ";\n font-size: 16px;\n margin-top: 2px;\n }\n }\n"])), function (props) {
43
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 7px;\n "])));
58
+ var ActionWrapper = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n display: flex;\n align-items: center;\n > .info {\n cursor: pointer;\n font-size: 16px;\n margin-right: 7px;\n ", "\n }\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n svg {\n color: ", ";\n font-size: 16px;\n margin-top: 2px;\n }\n }\n"])), function (_ref6) {
59
+ var isSmallPhoto = _ref6.isSmallPhoto;
60
+ return !isSmallPhoto && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: 15px;\n "])));
61
+ }, function (props) {
62
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 7px;\n "])));
44
63
  }, function (props) {
45
64
  return props.theme.colors.danger500;
46
65
  });
@@ -13,6 +13,7 @@ var _styles = require("./styles");
13
13
  var _WalletTransactionItem = require("../WalletTransactionItem");
14
14
  var _NotFoundSource = require("../../../../../components/NotFoundSource");
15
15
  var _Tabs = require("../../styles/Tabs");
16
+ var _GiftCardUI = require("../GiftCard/GiftCardUI");
16
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
18
  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); }
18
19
  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; }
@@ -89,7 +90,7 @@ var WalletsUI = function WalletsUI(props) {
89
90
  }, (_walletName$wallet$ty2 = walletName[wallet.type]) === null || _walletName$wallet$ty2 === void 0 ? void 0 : _walletName$wallet$ty2.name);
90
91
  })), /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_styles.Transactions, {
91
92
  isLoyaltyLevel: !!loyaltyLevel
92
- }, /*#__PURE__*/_react.default.createElement(_styles.SectionWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.BalanceElement, null, /*#__PURE__*/_react.default.createElement("h1", null, (currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.type) === 'cash' ? parsePrice(currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.balance) : currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.balance), /*#__PURE__*/_react.default.createElement("span", null, (currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.type) === 'cash' ? configs === null || configs === void 0 ? void 0 : (_configs$stripe_curre = configs.stripe_currency) === null || _configs$stripe_curre === void 0 ? void 0 : _configs$stripe_curre.value : t('POINTS', 'Points')))), /*#__PURE__*/_react.default.createElement("div", {
93
+ }, /*#__PURE__*/_react.default.createElement(_styles.SectionWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.BalanceElement, null, /*#__PURE__*/_react.default.createElement("h1", null, (currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.type) === 'cash' ? parsePrice(currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.balance) : currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.balance), /*#__PURE__*/_react.default.createElement("span", null, (currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.type) === 'cash' ? configs === null || configs === void 0 ? void 0 : (_configs$stripe_curre = configs.stripe_currency) === null || _configs$stripe_curre === void 0 ? void 0 : _configs$stripe_curre.value : t('POINTS', 'Points')))), /*#__PURE__*/_react.default.createElement(_GiftCardUI.GiftCardUI, null), /*#__PURE__*/_react.default.createElement("div", {
93
94
  className: "transactions_list"
94
95
  }, !(transactionsList !== null && transactionsList !== void 0 && transactionsList.loading) && ((_transactionsList$lis = transactionsList.list) === null || _transactionsList$lis === void 0 ? void 0 : (_transactionsList$lis2 = _transactionsList$lis["wallet:".concat(currentWalletSelected === null || currentWalletSelected === void 0 ? void 0 : currentWalletSelected.id)]) === null || _transactionsList$lis2 === void 0 ? void 0 : _transactionsList$lis2.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h2", {
95
96
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "2.0.4",
3
+ "version": "2.1.1",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -86,7 +86,7 @@
86
86
  "libphonenumber-js": "^1.9.4",
87
87
  "lodash": "^4.17.19",
88
88
  "moment": "^2.29.4",
89
- "ordering-components-external": "2.0.1",
89
+ "ordering-components-external": "2.0.2",
90
90
  "polished": "^3.6.6",
91
91
  "react-bootstrap-icons": "^1.7.2",
92
92
  "react-calendar": "^3.3.1",
@@ -8,7 +8,7 @@ import { BusinessInformation } from '../BusinessInformation'
8
8
  import { BusinessReviews } from '../BusinessReviews'
9
9
  import BsInfoCircle from '@meronex/icons/bs/BsInfoCircle'
10
10
 
11
- import { useUtils, useOrder, useLanguage, useConfig, useOrderingTheme } from 'ordering-components-external'
11
+ import { useUtils, useOrder, useLanguage, useConfig } from 'ordering-components-external'
12
12
 
13
13
  import { convertHoursToMinutes, shape, lightenDarkenColor } from '../../../../../utils'
14
14
  import { Select } from '../../styles/Select'
@@ -35,7 +35,9 @@ import {
35
35
  SocialList,
36
36
  IconWrapper,
37
37
  BusinessInfoWrapper,
38
- WrapperFloatingSearch
38
+ WrapperFloatingSearch,
39
+ CategorySelectedContainer,
40
+ SearchWrapper
39
41
  } from './styles'
40
42
  import { BusinessPreorder } from '../BusinessPreorder'
41
43
 
@@ -43,6 +45,7 @@ import dayjs from 'dayjs'
43
45
  import timezone from 'dayjs/plugin/timezone'
44
46
  import isBetween from 'dayjs/plugin/isBetween'
45
47
  import { useWindowSize } from '../../../../../hooks/useWindowSize'
48
+ import BsCaretLeftFill from '@meronex/icons/bs/BsCaretLeftFill'
46
49
 
47
50
  dayjs.extend(timezone)
48
51
  dayjs.extend(isBetween)
@@ -63,7 +66,9 @@ export const BusinessBasicInformation = (props) => {
63
66
  categoryState,
64
67
  errorQuantityProducts,
65
68
  isCustomerMode,
66
- categoryClicked
69
+ categoryClicked,
70
+ categorySelected,
71
+ setCategoryClicked
67
72
  } = props
68
73
  const { business, loading } = businessState
69
74
 
@@ -72,23 +77,25 @@ export const BusinessBasicInformation = (props) => {
72
77
  const [, t] = useLanguage()
73
78
  const [{ parsePrice, parseDistance, optimizeImage }] = useUtils()
74
79
  const windowSize = useWindowSize()
75
- const [orderingTheme] = useOrderingTheme()
76
80
  const [isBusinessReviews, setIsBusinessReviews] = useState(false)
77
81
  const [isPreOrder, setIsPreOrder] = useState(false)
78
82
  const [openSearchProducts, setOpenSearchProducts] = useState(false)
79
83
  const [{ configs }] = useConfig()
80
84
  const isPreOrderSetting = configs?.preorder_status_enabled?.value === '1'
81
85
 
82
- const showLogo = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.logo?.hidden
83
- const showDeliveryFee = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.fee?.hidden
84
- const showTime = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.time?.hidden
85
- const showReviews = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.reviews?.hidden
86
- const showDistance = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.distance?.hidden
87
- const showSort = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.sort?.hidden
88
- const isInfoShrunken = orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.layout?.position === 'shrunken'
86
+ const hideLogo = theme?.business_view?.components?.header?.components?.business?.components?.logo?.hidden
87
+ const hideDeliveryFee = theme?.business_view?.components?.header?.components?.business?.components?.fee?.hidden
88
+ const hideTime = theme?.business_view?.components?.header?.components?.business?.components?.time?.hidden
89
+ const hideReviews = theme?.business_view?.components?.header?.components?.business?.components?.reviews?.hidden
90
+ const hideReviewsPopup = theme?.business_view?.components?.header?.components?.reviews?.hidden
91
+ const hideDistance = theme?.business_view?.components?.header?.components?.business?.components?.distance?.hidden
92
+ const hideSort = theme?.business_view?.components?.header?.components?.business?.components?.sort?.hidden
93
+ const hideInfoIcon = theme?.business_view?.components?.header?.components?.business?.components?.business_info?.hidden
94
+
95
+ const isInfoShrunken = theme?.business_view?.components?.header?.components?.business?.components?.layout?.position === 'shrunken'
89
96
  const searchLayout = theme?.business_view?.components?.product_search?.components?.layout?.type
90
- const hideCity = orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.city?.hidden
91
- const isChew = orderingTheme?.theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
97
+ const hideCity = theme?.business_view?.components?.header?.components?.business?.components?.city?.hidden
98
+ const isChew = theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
92
99
  const layoutsWithOldSearch = ['starbucks', 'old', 'floating']
93
100
  const hideSearch = layoutsWithOldSearch.includes(theme?.business_view?.components?.product_search?.components?.layout?.type)
94
101
  const getBusinessType = () => {
@@ -154,21 +161,28 @@ export const BusinessBasicInformation = (props) => {
154
161
 
155
162
  const SearchComponent = () => {
156
163
  return (
157
- <WrapperSearch id='search-component'>
158
- <SearchIconWrapper
159
- onClick={() => setOpenSearchProducts(true)}
160
- >
161
- <CgSearch />
162
- </SearchIconWrapper>
163
- {showSort && (
164
- <Select
165
- notAsync
166
- notReload
167
- options={sortByOptions}
168
- defaultValue={sortByValue}
169
- onChange={(val) => handleChangeSortBy && handleChangeSortBy(val)}
170
- />
164
+ <WrapperSearch id='search-component' isFlexEnd={windowSize.width >= 768}>
165
+ {categorySelected?.name && windowSize.width < 768 && (
166
+ <CategorySelectedContainer onClick={() => setCategoryClicked(false)}>
167
+ <BsCaretLeftFill /> {categorySelected?.name}
168
+ </CategorySelectedContainer>
171
169
  )}
170
+ <SearchWrapper>
171
+ <SearchIconWrapper
172
+ onClick={() => setOpenSearchProducts(true)}
173
+ >
174
+ <CgSearch />
175
+ </SearchIconWrapper>
176
+ {!hideSort && (
177
+ <Select
178
+ notAsync
179
+ notReload
180
+ options={sortByOptions}
181
+ defaultValue={sortByValue}
182
+ onChange={(val) => handleChangeSortBy && handleChangeSortBy(val)}
183
+ />
184
+ )}
185
+ </SearchWrapper>
172
186
  </WrapperSearch>
173
187
  )
174
188
  }
@@ -183,7 +197,7 @@ export const BusinessBasicInformation = (props) => {
183
197
 
184
198
  const BusinessInfoComponent = () => {
185
199
  return (
186
- <BusinessInfoContainer isChew={isChew}>
200
+ <BusinessInfoContainer isChew={isChew} isFlexEnd={windowSize.width >= 768}>
187
201
  <BusinessInfoContent>
188
202
  <BusinessInfo className='info'>
189
203
  <BusinessInfoItem isInfoShrunken={isInfoShrunken}>
@@ -263,7 +277,7 @@ export const BusinessBasicInformation = (props) => {
263
277
  </SocialList>
264
278
  )}
265
279
  <BusinessDetail isSkeleton={loading}>
266
- {orderState?.options.type === 1 && showDeliveryFee && (
280
+ {orderState?.options.type === 1 && !hideDeliveryFee && (
267
281
  <>
268
282
  {!loading ? (
269
283
  <>
@@ -278,7 +292,7 @@ export const BusinessBasicInformation = (props) => {
278
292
  )}
279
293
  </>
280
294
  )}
281
- {showTime && (
295
+ {!hideTime && (
282
296
  <>
283
297
  {!loading ? (
284
298
  <>
@@ -303,7 +317,7 @@ export const BusinessBasicInformation = (props) => {
303
317
  )}
304
318
  </>
305
319
  )}
306
- {showDistance && (
320
+ {!hideDistance && (
307
321
  <>
308
322
  {!loading ? (
309
323
  <>
@@ -317,7 +331,7 @@ export const BusinessBasicInformation = (props) => {
317
331
  )}
318
332
  </>
319
333
  )}
320
- {showReviews && (
334
+ {!hideReviews && (
321
335
  <>
322
336
  {!loading ? (
323
337
  <div className='review'>
@@ -339,7 +353,7 @@ export const BusinessBasicInformation = (props) => {
339
353
  <span className='dot'>•</span>
340
354
  </>
341
355
  )}
342
- {business.reviews?.reviews && <span onClick={() => setIsBusinessReviews(true)}>{t('REVIEWS', 'Reviews')}</span>}
356
+ {business.reviews?.reviews && !hideReviewsPopup && <span onClick={() => setIsBusinessReviews(true)}>{t('REVIEWS', 'Reviews')}</span>}
343
357
  </div>
344
358
  ) : (
345
359
  <Skeleton width={isCustomerMode ? 100 : 150} />
@@ -390,7 +404,7 @@ export const BusinessBasicInformation = (props) => {
390
404
  {(business?.header || business?.logo || loading || isInfoShrunken) && (
391
405
  <BusinessContainer bgimage={business?.header} isSkeleton={isSkeleton} id='container' isClosed={!business?.open} isChew={isChew}>
392
406
  {(!loading && !business?.open) && <h1>{t('CLOSED', 'Closed')}</h1>}
393
- {(showLogo && business?.logo && !isChew) && (
407
+ {(!hideLogo && business?.logo && !isChew) && (
394
408
  <BusinessContent>
395
409
  <WrapperBusinessLogo>
396
410
  {!loading && (
@@ -429,7 +443,7 @@ export const BusinessBasicInformation = (props) => {
429
443
  )}
430
444
  </BusinessContainer>
431
445
  )}
432
- {!business?.header && !business?.logo && !loading && !isInfoShrunken && (
446
+ {!business?.header && !business?.logo && !loading && !isInfoShrunken && !hideInfoIcon && (
433
447
  <BusinessMoreDetail position='relative'>
434
448
  <BsInfoCircle onClick={() => setOpenBusinessInformation(true)} />
435
449
  </BusinessMoreDetail>