ordering-ui-external 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/{0.ordering-ui.a228aa8797d9d0fc5a6c.js → 0.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{1.ordering-ui.a228aa8797d9d0fc5a6c.js → 1.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{2.ordering-ui.a228aa8797d9d0fc5a6c.js → 2.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{4.ordering-ui.a228aa8797d9d0fc5a6c.js → 4.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{5.ordering-ui.a228aa8797d9d0fc5a6c.js → 5.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{6.ordering-ui.a228aa8797d9d0fc5a6c.js → 6.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js → 7.ordering-ui.3861d1cf52cf041c74c5.js} +1 -1
- package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → 7.ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.a228aa8797d9d0fc5a6c.js → 8.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{9.ordering-ui.a228aa8797d9d0fc5a6c.js → 9.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
- package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js → ordering-ui.3861d1cf52cf041c74c5.js} +2 -2
- package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +36 -28
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -34
- package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +3 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +8 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +2 -1
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
- package/_modules/themes/five/src/components/Cart/index.js +73 -25
- package/_modules/themes/five/src/components/CartContent/index.js +3 -1
- package/_modules/themes/five/src/components/Checkout/index.js +25 -15
- package/_modules/themes/five/src/components/DriverTips/index.js +26 -15
- package/_modules/themes/five/src/components/GiftCard/GiftCardUI/index.js +63 -0
- package/_modules/themes/five/src/components/GiftCard/GiftCardUI/styles.js +27 -0
- package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +69 -0
- package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +29 -0
- package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +123 -0
- package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +20 -0
- package/_modules/themes/five/src/components/GiftCard/SendGiftCard/index.js +114 -0
- package/_modules/themes/five/src/components/GiftCard/SendGiftCard/styles.js +14 -0
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +3 -1
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
- package/_modules/themes/five/src/components/LoginForm/index.js +6 -0
- package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +69 -0
- package/_modules/themes/five/src/components/OrderDetails/index.js +84 -76
- package/_modules/themes/five/src/components/OrderDetails/styles.js +1 -1
- package/_modules/themes/five/src/components/OrderItAgain/styles.js +3 -3
- package/_modules/themes/five/src/components/OrderProgress/index.js +5 -14
- package/_modules/themes/five/src/components/PaymentOptions/index.js +22 -8
- package/_modules/themes/five/src/components/PaymentOptions/styles.js +9 -7
- package/_modules/themes/five/src/components/ProductOptionSubOption/styles.js +20 -14
- package/_modules/themes/five/src/components/ProfessionalFilter/index.js +23 -25
- package/_modules/themes/five/src/components/ProfessionalFilter/styles.js +6 -32
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +38 -22
- package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +3 -9
- package/_modules/themes/five/src/components/ServiceForm/index.js +10 -4
- package/_modules/themes/five/src/components/ServiceForm/styles.js +23 -25
- package/_modules/themes/five/src/components/SignUpForm/index.js +6 -0
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +22 -16
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +13 -2
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +73 -51
- package/_modules/themes/five/src/components/SingleProfessionalCard/index.js +23 -7
- package/_modules/themes/five/src/components/SingleProfessionalCard/styles.js +29 -10
- package/_modules/themes/five/src/components/Wallets/index.js +2 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +49 -35
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +26 -4
- package/src/themes/five/src/components/BusinessItemAccordion/index.js +1 -1
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +7 -1
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +2 -2
- package/src/themes/five/src/components/BusinessProductsListing/index.js +1 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
- package/src/themes/five/src/components/Cart/index.js +44 -14
- package/src/themes/five/src/components/CartContent/index.js +1 -0
- package/src/themes/five/src/components/Checkout/index.js +67 -51
- package/src/themes/five/src/components/DriverTips/index.js +52 -40
- package/src/themes/five/src/components/GiftCard/GiftCardUI/index.js +59 -0
- package/src/themes/five/src/components/GiftCard/GiftCardUI/styles.js +41 -0
- package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +70 -0
- package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +52 -0
- package/src/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +122 -0
- package/src/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +41 -0
- package/src/themes/five/src/components/GiftCard/SendGiftCard/index.js +103 -0
- package/src/themes/five/src/components/GiftCard/SendGiftCard/styles.js +27 -0
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +7 -4
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +0 -1
- package/src/themes/five/src/components/LoginForm/index.js +7 -0
- package/src/themes/five/src/components/OrderDetails/OrderEta.js +59 -0
- package/src/themes/five/src/components/OrderDetails/index.js +141 -133
- package/src/themes/five/src/components/OrderDetails/styles.js +0 -1
- package/src/themes/five/src/components/OrderItAgain/styles.js +6 -6
- package/src/themes/five/src/components/OrderProgress/index.js +3 -12
- package/src/themes/five/src/components/PaymentOptions/index.js +26 -5
- package/src/themes/five/src/components/PaymentOptions/styles.js +4 -0
- package/src/themes/five/src/components/ProductOptionSubOption/styles.js +24 -4
- package/src/themes/five/src/components/ProfessionalFilter/index.js +18 -30
- package/src/themes/five/src/components/ProfessionalFilter/styles.js +1 -57
- package/src/themes/five/src/components/RenderProductsLayout/index.js +33 -17
- package/src/themes/five/src/components/RenderProductsLayout/styles.js +0 -18
- package/src/themes/five/src/components/ServiceForm/index.js +11 -5
- package/src/themes/five/src/components/ServiceForm/styles.js +1 -9
- package/src/themes/five/src/components/SignUpForm/index.js +7 -0
- package/src/themes/five/src/components/SingleOrderCard/index.js +43 -26
- package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +12 -2
- package/src/themes/five/src/components/SingleProductCard/layouts/original/styles.js +51 -4
- package/src/themes/five/src/components/SingleProfessionalCard/index.js +17 -6
- package/src/themes/five/src/components/SingleProfessionalCard/styles.js +33 -6
- package/src/themes/five/src/components/Wallets/index.js +2 -1
|
File without changes
|
|
@@ -26,6 +26,7 @@ var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
|
26
26
|
var _timezone = _interopRequireDefault(require("dayjs/plugin/timezone"));
|
|
27
27
|
var _isBetween = _interopRequireDefault(require("dayjs/plugin/isBetween"));
|
|
28
28
|
var _useWindowSize = require("../../../../../hooks/useWindowSize");
|
|
29
|
+
var _BsCaretLeftFill = _interopRequireDefault(require("@meronex/icons/bs/BsCaretLeftFill"));
|
|
29
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
31
|
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); }
|
|
31
32
|
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; }
|
|
@@ -44,7 +45,7 @@ _dayjs.default.extend(_timezone.default);
|
|
|
44
45
|
_dayjs.default.extend(_isBetween.default);
|
|
45
46
|
var types = ['food', 'laundry', 'alcohol', 'groceries'];
|
|
46
47
|
var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
47
|
-
var _configs$preorder_sta,
|
|
48
|
+
var _configs$preorder_sta, _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, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16, _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21, _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view26, _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31, _theme$business_view32, _theme$business_view33, _theme$business_view34, _theme$business_view35, _theme$business_view36, _theme$business_view37, _theme$business_view38, _theme$business_view39, _theme$business_view40, _theme$business_view41, _theme$business_view42, _theme$business_view43, _theme$business_view44, _theme$business_view45, _theme$business_view46, _theme$business_view47, _theme$business_view48, _theme$business_view49, _theme$business_view50, _theme$business_view51, _theme$business_view52, _theme$business_view53, _theme$business_view54, _theme$business_view55, _theme$business_view56, _theme$business_view57, _theme$business_view58, _theme$business_view59, _theme$business_view60, _theme$business_view61, _theme$business_view62, _theme$business_view63, _theme$business_view64, _theme$business_view65, _theme$business_view66, _theme$business_view67, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _theme$business_view68, _theme$business_view69, _theme$business_view70, _theme$business_view71, _theme$business_view72, _props$beforeElements, _props$beforeComponen, _business$reviews3, _business$reviews4, _props$afterComponent, _props$afterElements;
|
|
48
49
|
var isSkeleton = props.isSkeleton,
|
|
49
50
|
businessState = props.businessState,
|
|
50
51
|
setOpenBusinessInformation = props.setOpenBusinessInformation,
|
|
@@ -57,7 +58,9 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
57
58
|
categoryState = props.categoryState,
|
|
58
59
|
errorQuantityProducts = props.errorQuantityProducts,
|
|
59
60
|
isCustomerMode = props.isCustomerMode,
|
|
60
|
-
categoryClicked = props.categoryClicked
|
|
61
|
+
categoryClicked = props.categoryClicked,
|
|
62
|
+
categorySelected = props.categorySelected,
|
|
63
|
+
setCategoryClicked = props.setCategoryClicked;
|
|
61
64
|
var business = businessState.business,
|
|
62
65
|
loading = businessState.loading;
|
|
63
66
|
var theme = (0, _styledComponents.useTheme)();
|
|
@@ -74,9 +77,6 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
74
77
|
parseDistance = _useUtils2$.parseDistance,
|
|
75
78
|
optimizeImage = _useUtils2$.optimizeImage;
|
|
76
79
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
77
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
78
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
79
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
80
80
|
var _useState = (0, _react.useState)(false),
|
|
81
81
|
_useState2 = _slicedToArray(_useState, 2),
|
|
82
82
|
isBusinessReviews = _useState2[0],
|
|
@@ -93,18 +93,20 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
93
93
|
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
94
94
|
configs = _useConfig2[0].configs;
|
|
95
95
|
var isPreOrderSetting = (configs === null || configs === void 0 ? void 0 : (_configs$preorder_sta = configs.preorder_status_enabled) === null || _configs$preorder_sta === void 0 ? void 0 : _configs$preorder_sta.value) === '1';
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
96
|
+
var hideLogo = 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$.header) === 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.business) === 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.logo) === null || _theme$business_view$6 === void 0 ? void 0 : _theme$business_view$6.hidden;
|
|
97
|
+
var hideDeliveryFee = 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.header) === 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.business) === 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.fee) === null || _theme$business_view8 === void 0 ? void 0 : _theme$business_view8.hidden;
|
|
98
|
+
var hideTime = theme === null || theme === void 0 ? void 0 : (_theme$business_view9 = theme.business_view) === null || _theme$business_view9 === void 0 ? void 0 : (_theme$business_view10 = _theme$business_view9.components) === null || _theme$business_view10 === void 0 ? void 0 : (_theme$business_view11 = _theme$business_view10.header) === null || _theme$business_view11 === void 0 ? void 0 : (_theme$business_view12 = _theme$business_view11.components) === null || _theme$business_view12 === void 0 ? void 0 : (_theme$business_view13 = _theme$business_view12.business) === null || _theme$business_view13 === void 0 ? void 0 : (_theme$business_view14 = _theme$business_view13.components) === null || _theme$business_view14 === void 0 ? void 0 : (_theme$business_view15 = _theme$business_view14.time) === null || _theme$business_view15 === void 0 ? void 0 : _theme$business_view15.hidden;
|
|
99
|
+
var hideReviews = theme === null || theme === void 0 ? void 0 : (_theme$business_view16 = theme.business_view) === null || _theme$business_view16 === void 0 ? void 0 : (_theme$business_view17 = _theme$business_view16.components) === null || _theme$business_view17 === void 0 ? void 0 : (_theme$business_view18 = _theme$business_view17.header) === null || _theme$business_view18 === void 0 ? void 0 : (_theme$business_view19 = _theme$business_view18.components) === null || _theme$business_view19 === void 0 ? void 0 : (_theme$business_view20 = _theme$business_view19.business) === null || _theme$business_view20 === void 0 ? void 0 : (_theme$business_view21 = _theme$business_view20.components) === null || _theme$business_view21 === void 0 ? void 0 : (_theme$business_view22 = _theme$business_view21.reviews) === null || _theme$business_view22 === void 0 ? void 0 : _theme$business_view22.hidden;
|
|
100
|
+
var hideReviewsPopup = theme === null || theme === void 0 ? void 0 : (_theme$business_view23 = theme.business_view) === null || _theme$business_view23 === void 0 ? void 0 : (_theme$business_view24 = _theme$business_view23.components) === null || _theme$business_view24 === void 0 ? void 0 : (_theme$business_view25 = _theme$business_view24.header) === null || _theme$business_view25 === void 0 ? void 0 : (_theme$business_view26 = _theme$business_view25.components) === null || _theme$business_view26 === void 0 ? void 0 : (_theme$business_view27 = _theme$business_view26.reviews) === null || _theme$business_view27 === void 0 ? void 0 : _theme$business_view27.hidden;
|
|
101
|
+
var hideDistance = theme === null || theme === void 0 ? void 0 : (_theme$business_view28 = theme.business_view) === null || _theme$business_view28 === void 0 ? void 0 : (_theme$business_view29 = _theme$business_view28.components) === null || _theme$business_view29 === void 0 ? void 0 : (_theme$business_view30 = _theme$business_view29.header) === null || _theme$business_view30 === void 0 ? void 0 : (_theme$business_view31 = _theme$business_view30.components) === null || _theme$business_view31 === void 0 ? void 0 : (_theme$business_view32 = _theme$business_view31.business) === null || _theme$business_view32 === void 0 ? void 0 : (_theme$business_view33 = _theme$business_view32.components) === null || _theme$business_view33 === void 0 ? void 0 : (_theme$business_view34 = _theme$business_view33.distance) === null || _theme$business_view34 === void 0 ? void 0 : _theme$business_view34.hidden;
|
|
102
|
+
var hideSort = theme === null || theme === void 0 ? void 0 : (_theme$business_view35 = theme.business_view) === null || _theme$business_view35 === void 0 ? void 0 : (_theme$business_view36 = _theme$business_view35.components) === null || _theme$business_view36 === void 0 ? void 0 : (_theme$business_view37 = _theme$business_view36.header) === null || _theme$business_view37 === void 0 ? void 0 : (_theme$business_view38 = _theme$business_view37.components) === null || _theme$business_view38 === void 0 ? void 0 : (_theme$business_view39 = _theme$business_view38.business) === null || _theme$business_view39 === void 0 ? void 0 : (_theme$business_view40 = _theme$business_view39.components) === null || _theme$business_view40 === void 0 ? void 0 : (_theme$business_view41 = _theme$business_view40.sort) === null || _theme$business_view41 === void 0 ? void 0 : _theme$business_view41.hidden;
|
|
103
|
+
var hideInfoIcon = theme === null || theme === void 0 ? void 0 : (_theme$business_view42 = theme.business_view) === null || _theme$business_view42 === void 0 ? void 0 : (_theme$business_view43 = _theme$business_view42.components) === null || _theme$business_view43 === void 0 ? void 0 : (_theme$business_view44 = _theme$business_view43.header) === null || _theme$business_view44 === void 0 ? void 0 : (_theme$business_view45 = _theme$business_view44.components) === null || _theme$business_view45 === void 0 ? void 0 : (_theme$business_view46 = _theme$business_view45.business) === null || _theme$business_view46 === void 0 ? void 0 : (_theme$business_view47 = _theme$business_view46.components) === null || _theme$business_view47 === void 0 ? void 0 : (_theme$business_view48 = _theme$business_view47.business_info) === null || _theme$business_view48 === void 0 ? void 0 : _theme$business_view48.hidden;
|
|
104
|
+
var isInfoShrunken = (theme === null || theme === void 0 ? void 0 : (_theme$business_view49 = theme.business_view) === null || _theme$business_view49 === void 0 ? void 0 : (_theme$business_view50 = _theme$business_view49.components) === null || _theme$business_view50 === void 0 ? void 0 : (_theme$business_view51 = _theme$business_view50.header) === null || _theme$business_view51 === void 0 ? void 0 : (_theme$business_view52 = _theme$business_view51.components) === null || _theme$business_view52 === void 0 ? void 0 : (_theme$business_view53 = _theme$business_view52.business) === null || _theme$business_view53 === void 0 ? void 0 : (_theme$business_view54 = _theme$business_view53.components) === null || _theme$business_view54 === void 0 ? void 0 : (_theme$business_view55 = _theme$business_view54.layout) === null || _theme$business_view55 === void 0 ? void 0 : _theme$business_view55.position) === 'shrunken';
|
|
105
|
+
var searchLayout = theme === null || theme === void 0 ? void 0 : (_theme$business_view56 = theme.business_view) === null || _theme$business_view56 === void 0 ? void 0 : (_theme$business_view57 = _theme$business_view56.components) === null || _theme$business_view57 === void 0 ? void 0 : (_theme$business_view58 = _theme$business_view57.product_search) === null || _theme$business_view58 === void 0 ? void 0 : (_theme$business_view59 = _theme$business_view58.components) === null || _theme$business_view59 === void 0 ? void 0 : (_theme$business_view60 = _theme$business_view59.layout) === null || _theme$business_view60 === void 0 ? void 0 : _theme$business_view60.type;
|
|
106
|
+
var hideCity = theme === null || theme === void 0 ? void 0 : (_theme$business_view61 = theme.business_view) === null || _theme$business_view61 === void 0 ? void 0 : (_theme$business_view62 = _theme$business_view61.components) === null || _theme$business_view62 === void 0 ? void 0 : (_theme$business_view63 = _theme$business_view62.header) === null || _theme$business_view63 === void 0 ? void 0 : (_theme$business_view64 = _theme$business_view63.components) === null || _theme$business_view64 === void 0 ? void 0 : (_theme$business_view65 = _theme$business_view64.business) === null || _theme$business_view65 === void 0 ? void 0 : (_theme$business_view66 = _theme$business_view65.components) === null || _theme$business_view66 === void 0 ? void 0 : (_theme$business_view67 = _theme$business_view66.city) === null || _theme$business_view67 === void 0 ? void 0 : _theme$business_view67.hidden;
|
|
107
|
+
var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
|
|
106
108
|
var layoutsWithOldSearch = ['starbucks', 'old', 'floating'];
|
|
107
|
-
var hideSearch = layoutsWithOldSearch.includes(theme === null || theme === void 0 ? void 0 : (_theme$
|
|
109
|
+
var hideSearch = layoutsWithOldSearch.includes(theme === null || theme === void 0 ? void 0 : (_theme$business_view68 = theme.business_view) === null || _theme$business_view68 === void 0 ? void 0 : (_theme$business_view69 = _theme$business_view68.components) === null || _theme$business_view69 === void 0 ? void 0 : (_theme$business_view70 = _theme$business_view69.product_search) === null || _theme$business_view70 === void 0 ? void 0 : (_theme$business_view71 = _theme$business_view70.components) === null || _theme$business_view71 === void 0 ? void 0 : (_theme$business_view72 = _theme$business_view71.layout) === null || _theme$business_view72 === void 0 ? void 0 : _theme$business_view72.type);
|
|
108
110
|
var getBusinessType = function getBusinessType() {
|
|
109
111
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
|
|
110
112
|
var _types = [];
|
|
@@ -167,12 +169,17 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
167
169
|
}, [sortByValue]);
|
|
168
170
|
var SearchComponent = function SearchComponent() {
|
|
169
171
|
return /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, {
|
|
170
|
-
id: "search-component"
|
|
171
|
-
|
|
172
|
+
id: "search-component",
|
|
173
|
+
isFlexEnd: windowSize.width >= 768
|
|
174
|
+
}, (categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.name) && windowSize.width < 768 && /*#__PURE__*/_react.default.createElement(_styles.CategorySelectedContainer, {
|
|
175
|
+
onClick: function onClick() {
|
|
176
|
+
return setCategoryClicked(false);
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_BsCaretLeftFill.default, null), " ", categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.name), /*#__PURE__*/_react.default.createElement(_styles.SearchWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.SearchIconWrapper, {
|
|
172
179
|
onClick: function onClick() {
|
|
173
180
|
return setOpenSearchProducts(true);
|
|
174
181
|
}
|
|
175
|
-
}, /*#__PURE__*/_react.default.createElement(_CgSearch.default, null)),
|
|
182
|
+
}, /*#__PURE__*/_react.default.createElement(_CgSearch.default, null)), !hideSort && /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
176
183
|
notAsync: true,
|
|
177
184
|
notReload: true,
|
|
178
185
|
options: sortByOptions,
|
|
@@ -180,7 +187,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
180
187
|
onChange: function onChange(val) {
|
|
181
188
|
return handleChangeSortBy && handleChangeSortBy(val);
|
|
182
189
|
}
|
|
183
|
-
}));
|
|
190
|
+
})));
|
|
184
191
|
};
|
|
185
192
|
var SocialNetWork = function SocialNetWork(_ref) {
|
|
186
193
|
var url = _ref.url,
|
|
@@ -194,7 +201,8 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
194
201
|
var BusinessInfoComponent = function BusinessInfoComponent() {
|
|
195
202
|
var _business$ribbon, _business$ribbon2, _business$ribbon3, _business$ribbon4, _business$ribbon5, _business$ribbon6, _business$ribbon7, _business$city, _business$city2, _orderState$options, _business$reviews, _business$reviews2, _categoryState$produc, _business$professiona;
|
|
196
203
|
return /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContainer, {
|
|
197
|
-
isChew: isChew
|
|
204
|
+
isChew: isChew,
|
|
205
|
+
isFlexEnd: windowSize.width >= 768
|
|
198
206
|
}, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfo, {
|
|
199
207
|
className: "info"
|
|
200
208
|
}, /*#__PURE__*/_react.default.createElement(_styles.BusinessInfoItem, {
|
|
@@ -242,21 +250,21 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
242
250
|
}));
|
|
243
251
|
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessDetail, {
|
|
244
252
|
isSkeleton: loading
|
|
245
|
-
}, (orderState === null || orderState === void 0 ? void 0 : orderState.options.type) === 1 &&
|
|
253
|
+
}, (orderState === null || orderState === void 0 ? void 0 : orderState.options.type) === 1 && !hideDeliveryFee && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, /*#__PURE__*/_react.default.createElement("span", null, t('DELIVERY_FEE', 'Delivery fee')), business && parsePrice((business === null || business === void 0 ? void 0 : business.delivery_price) || 0)), /*#__PURE__*/_react.default.createElement("span", {
|
|
246
254
|
className: "dot"
|
|
247
255
|
}, "\u2022")) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
248
256
|
width: isCustomerMode ? 70 : 50
|
|
249
|
-
})),
|
|
257
|
+
})), !hideTime && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)), /*#__PURE__*/_react.default.createElement("span", {
|
|
250
258
|
className: "dot"
|
|
251
259
|
}, "\u2022")) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time)), /*#__PURE__*/_react.default.createElement("span", {
|
|
252
260
|
className: "dot"
|
|
253
261
|
}, "\u2022"))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
254
262
|
width: isCustomerMode ? 70 : 50
|
|
255
|
-
})),
|
|
263
|
+
})), !hideDistance && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, parseDistance((business === null || business === void 0 ? void 0 : business.distance) || 0)), /*#__PURE__*/_react.default.createElement("span", {
|
|
256
264
|
className: "dot"
|
|
257
265
|
}, "\u2022")) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
258
266
|
width: isCustomerMode ? 70 : 50
|
|
259
|
-
})),
|
|
267
|
+
})), !hideReviews && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
260
268
|
className: "review"
|
|
261
269
|
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, {
|
|
262
270
|
className: "start"
|
|
@@ -270,7 +278,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
270
278
|
}
|
|
271
279
|
}, t('PREORDER', 'Preorder')), /*#__PURE__*/_react.default.createElement("span", {
|
|
272
280
|
className: "dot"
|
|
273
|
-
}, "\u2022")), ((_business$reviews2 = business.reviews) === null || _business$reviews2 === void 0 ? void 0 : _business$reviews2.reviews) && /*#__PURE__*/_react.default.createElement("span", {
|
|
281
|
+
}, "\u2022")), ((_business$reviews2 = business.reviews) === null || _business$reviews2 === void 0 ? void 0 : _business$reviews2.reviews) && !hideReviewsPopup && /*#__PURE__*/_react.default.createElement("span", {
|
|
274
282
|
onClick: function onClick() {
|
|
275
283
|
return setIsBusinessReviews(true);
|
|
276
284
|
}
|
|
@@ -302,7 +310,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
302
310
|
id: "container",
|
|
303
311
|
isClosed: !(business !== null && business !== void 0 && business.open),
|
|
304
312
|
isChew: isChew
|
|
305
|
-
}, !loading && !(business !== null && business !== void 0 && business.open) && /*#__PURE__*/_react.default.createElement("h1", null, t('CLOSED', 'Closed')),
|
|
313
|
+
}, !loading && !(business !== null && business !== void 0 && business.open) && /*#__PURE__*/_react.default.createElement("h1", null, t('CLOSED', 'Closed')), !hideLogo && (business === null || business === void 0 ? void 0 : business.logo) && !isChew && /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperBusinessLogo, null, !loading && /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
|
|
306
314
|
bgimage: optimizeImage(business === null || business === void 0 ? void 0 : business.logo, 'h_200,c_limit')
|
|
307
315
|
}))), (isInfoShrunken || isChew) && /*#__PURE__*/_react.default.createElement(BusinessInfoComponent, null), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isInfoShrunken && /*#__PURE__*/_react.default.createElement(_styles.SearchComponentContainer, null, /*#__PURE__*/_react.default.createElement(SearchComponent, null)), searchLayout === 'floating' && /*#__PURE__*/_react.default.createElement(_styles.WrapperFloatingSearch, null, /*#__PURE__*/_react.default.createElement(_SearchProducts2.SearchProducts, {
|
|
308
316
|
handleChangeSearch: handleChangeSearch,
|
|
@@ -318,7 +326,7 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
318
326
|
onClick: function onClick() {
|
|
319
327
|
return setOpenBusinessInformation(true);
|
|
320
328
|
}
|
|
321
|
-
})))), !(business !== null && business !== void 0 && business.header) && !(business !== null && business !== void 0 && business.logo) && !loading && !isInfoShrunken && /*#__PURE__*/_react.default.createElement(_styles.BusinessMoreDetail, {
|
|
329
|
+
})))), !(business !== null && business !== void 0 && business.header) && !(business !== null && business !== void 0 && business.logo) && !loading && !isInfoShrunken && !hideInfoIcon && /*#__PURE__*/_react.default.createElement(_styles.BusinessMoreDetail, {
|
|
322
330
|
position: "relative"
|
|
323
331
|
}, /*#__PURE__*/_react.default.createElement(_BsInfoCircle.default, {
|
|
324
332
|
onClick: function onClick() {
|
|
@@ -4,10 +4,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapperSearch = exports.WrapperFloatingSearch = exports.WrapperBusinessLogo = exports.TitleWrapper = exports.SocialList = exports.SearchIconWrapper = exports.SearchComponentContainer = exports.RibbonBox = exports.IconWrapper = exports.BusinessMoreDetail = exports.BusinessLogo = exports.BusinessInfoWrapper = exports.BusinessInfoItem = exports.BusinessInfoContent = exports.BusinessInfoContainer = exports.BusinessInfo = exports.BusinessDetail = exports.BusinessContent = exports.BusinessContainer = void 0;
|
|
7
|
+
exports.WrapperSearch = exports.WrapperFloatingSearch = exports.WrapperBusinessLogo = exports.TitleWrapper = exports.SocialList = exports.SearchWrapper = exports.SearchIconWrapper = exports.SearchComponentContainer = exports.RibbonBox = exports.IconWrapper = exports.CategorySelectedContainer = exports.BusinessMoreDetail = exports.BusinessLogo = exports.BusinessInfoWrapper = exports.BusinessInfoItem = exports.BusinessInfoContent = exports.BusinessInfoContainer = exports.BusinessInfo = exports.BusinessDetail = exports.BusinessContent = exports.BusinessContainer = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46;
|
|
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 }; }
|
|
@@ -56,47 +56,55 @@ var BusinessInfoItem = _styledComponents.default.div(_templateObject10 || (_temp
|
|
|
56
56
|
return isInfoShrunken && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n color: #FFFFFF;\n span, p, h5, svg {\n color: #FFFFFF !important;\n }\n "])));
|
|
57
57
|
});
|
|
58
58
|
exports.BusinessInfoItem = BusinessInfoItem;
|
|
59
|
-
var BusinessInfoContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: ", ";\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content:
|
|
59
|
+
var BusinessInfoContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: ", ";\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content: ", ";\n flex-direction: column;\n box-sizing: border-box;\n align-items: ", ";\n\n @media (min-width: 576px) {\n padding-top: 0px;\n padding-left: 0px;\n padding-right: 0px;\n margin-top: 10px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n margin-bottom: 25px;\n margin-left: ", ";\n }\n"])), function (props) {
|
|
60
60
|
return props.isChew && '100%';
|
|
61
|
+
}, function (props) {
|
|
62
|
+
return props.isFlexEnd ? 'flex-end' : 'space-between';
|
|
63
|
+
}, function (props) {
|
|
64
|
+
return props.isFlexEnd ? 'flex-end' : 'space-between';
|
|
61
65
|
}, function (props) {
|
|
62
66
|
return props.isChew && '25px';
|
|
63
67
|
});
|
|
64
68
|
exports.BusinessInfoContainer = BusinessInfoContainer;
|
|
65
69
|
var BusinessInfoContent = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
|
|
66
70
|
exports.BusinessInfoContent = BusinessInfoContent;
|
|
67
|
-
var
|
|
71
|
+
var SearchWrapper = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
72
|
+
exports.SearchWrapper = SearchWrapper;
|
|
73
|
+
var WrapperSearch = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: center;\n justify-content: ", ";\n box-sizing: border-box;\n\n .search-bar {\n margin-right: 10px;\n ", "\n input {\n width: 100%;\n\n @media (min-width: 500px) {\n width: 250px;\n }\n }\n }\n\n div:last-child {\n text-align: right;\n\n ", "\n }\n\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #748194 !important;\n\n #list {\n border-radius: 8px;\n }\n }\n &.fixed-search {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1002;\n width: 100vw;\n margin-top: 0px;\n background-color: ", ";\n padding: 10px;\n }\n"])), function (props) {
|
|
74
|
+
return props.isFlexEnd ? 'flex-end' : 'space-between';
|
|
75
|
+
}, function (props) {
|
|
68
76
|
var _props$theme4;
|
|
69
|
-
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(
|
|
77
|
+
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
|
|
70
78
|
}, function (props) {
|
|
71
79
|
var _props$theme5;
|
|
72
|
-
return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(
|
|
80
|
+
return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n text-align: left;\n "])));
|
|
73
81
|
}, function (props) {
|
|
74
82
|
return props.theme.colors.backgroundPage;
|
|
75
83
|
});
|
|
76
84
|
exports.WrapperSearch = WrapperSearch;
|
|
77
|
-
var BusinessDetail = _styledComponents.default.div(
|
|
85
|
+
var BusinessDetail = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n h5 {\n font-size: 14px;\n color: #909BA9;\n margin: 0 5px 0 0;\n font-weight: normal;\n ", "\n\n span {\n margin-right: 5px;\n ", "\n }\n }\n\n .review {\n color: #909BA9;\n margin: 0;\n display: flex;\n align-items: center;\n\n svg {\n font-size: 15px;\n margin-bottom: 1px;\n margin-right: 5px;\n ", "\n }\n\n p {\n font-size: 14px;\n margin: 0px;\n }\n }\n\n .dot {\n color: #909BA9;\n font-size: 12px;\n margin-right: 5px;\n ", "\n }\n\n ", "\n"])), function (props) {
|
|
78
86
|
var _props$theme6;
|
|
79
|
-
return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(
|
|
87
|
+
return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
80
88
|
}, function (props) {
|
|
81
89
|
var _props$theme7;
|
|
82
|
-
return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(
|
|
90
|
+
return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
83
91
|
}, function (props) {
|
|
84
92
|
var _props$theme8;
|
|
85
|
-
return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(
|
|
93
|
+
return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
86
94
|
}, function (props) {
|
|
87
95
|
var _props$theme9;
|
|
88
|
-
return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(
|
|
96
|
+
return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
89
97
|
}, function (_ref2) {
|
|
90
98
|
var isSkeleton = _ref2.isSkeleton;
|
|
91
|
-
return isSkeleton && (0, _styledComponents.css)(
|
|
99
|
+
return isSkeleton && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n > span {\n display: flex;\n margin-right: 5px;\n ", "\n }\n "])), function (props) {
|
|
92
100
|
var _props$theme10;
|
|
93
|
-
return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(
|
|
101
|
+
return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
94
102
|
});
|
|
95
103
|
});
|
|
96
104
|
exports.BusinessDetail = BusinessDetail;
|
|
97
|
-
var BusinessMoreDetail = _styledComponents.default.div(
|
|
105
|
+
var BusinessMoreDetail = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n ", "\n position: ", ";\n min-width: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n svg {\n font-size: 24px;\n color: ", ";\n }\n"])), function (_ref3) {
|
|
98
106
|
var position = _ref3.position;
|
|
99
|
-
return position ? (0, _styledComponents.css)(
|
|
107
|
+
return position ? (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n width: 100% !important;\n justify-content: flex-end !important;\n top: 0px;\n right: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n top: 30px;\n right: 30px;\n "])));
|
|
100
108
|
}, function (props) {
|
|
101
109
|
var _props$position;
|
|
102
110
|
return (_props$position = props.position) !== null && _props$position !== void 0 ? _props$position : 'absolute';
|
|
@@ -104,59 +112,65 @@ var BusinessMoreDetail = _styledComponents.default.div(_templateObject26 || (_te
|
|
|
104
112
|
return props.position ? 'black' : 'white';
|
|
105
113
|
});
|
|
106
114
|
exports.BusinessMoreDetail = BusinessMoreDetail;
|
|
107
|
-
var TitleWrapper = _styledComponents.default.div(
|
|
115
|
+
var TitleWrapper = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n\n h2 {\n font-size: 24px;\n line-height: 36px;\n margin: 0 0 10px 0;\n font-weight: 600;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n @media (min-width: 768px) {\n font-size: 32px;\n }\n }\n"])));
|
|
108
116
|
exports.TitleWrapper = TitleWrapper;
|
|
109
|
-
var RibbonBox = _styledComponents.default.div(
|
|
117
|
+
var RibbonBox = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n box-sizing: border-box;\n z-index: 10;\n color: ", ";\n font-weight: 400;\n font-size: 10px;\n line-height: 13px;\n background-color: ", ";\n max-width: 200px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n margin-left: 5px;\n margin-bottom: 10px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
110
118
|
return props.theme.colors.colorTextSignForm;
|
|
111
119
|
}, function (props) {
|
|
112
120
|
return props.theme.colors.primary;
|
|
113
121
|
}, function (props) {
|
|
114
|
-
return props.theme.rtl && (0, _styledComponents.css)(
|
|
122
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 5px;\n "])));
|
|
115
123
|
}, function (_ref4) {
|
|
116
124
|
var bgColor = _ref4.bgColor;
|
|
117
|
-
return bgColor && (0, _styledComponents.css)(
|
|
125
|
+
return bgColor && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
|
|
118
126
|
}, function (_ref5) {
|
|
119
127
|
var isRoundRect = _ref5.isRoundRect;
|
|
120
|
-
return isRoundRect && (0, _styledComponents.css)(
|
|
128
|
+
return isRoundRect && (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
|
|
121
129
|
}, function (_ref6) {
|
|
122
130
|
var isCapsule = _ref6.isCapsule;
|
|
123
|
-
return isCapsule && (0, _styledComponents.css)(
|
|
131
|
+
return isCapsule && (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
|
|
124
132
|
}, function (_ref7) {
|
|
125
133
|
var colorText = _ref7.colorText;
|
|
126
|
-
return colorText && (0, _styledComponents.css)(
|
|
134
|
+
return colorText && (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorText ? 'black' : 'white');
|
|
127
135
|
}, function (_ref8) {
|
|
128
136
|
var borderRibbon = _ref8.borderRibbon;
|
|
129
|
-
return borderRibbon && (0, _styledComponents.css)(
|
|
137
|
+
return borderRibbon && (0, _styledComponents.css)(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), borderRibbon ? 'black' : 'white');
|
|
130
138
|
});
|
|
131
139
|
exports.RibbonBox = RibbonBox;
|
|
132
|
-
var SearchIconWrapper = _styledComponents.default.div(
|
|
140
|
+
var SearchIconWrapper = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n width: 36px;\n height: 36px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n font-size: 18px;\n }\n"])), function (props) {
|
|
133
141
|
return props.theme.colors.gray200;
|
|
134
142
|
});
|
|
135
143
|
exports.SearchIconWrapper = SearchIconWrapper;
|
|
136
|
-
var SearchComponentContainer = _styledComponents.default.div(
|
|
144
|
+
var SearchComponentContainer = _styledComponents.default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10px;\n right: 60px;\n color: ", ";\n #select-input {\n color: #FFFFFF !important;\n }\n svg {\n color: #FFFFFF;\n }\n"])), function (_ref9) {
|
|
137
145
|
var theme = _ref9.theme;
|
|
138
146
|
return theme.colors.white;
|
|
139
147
|
});
|
|
140
148
|
exports.SearchComponentContainer = SearchComponentContainer;
|
|
141
|
-
var SocialList = _styledComponents.default.div(
|
|
142
|
-
return props.theme.rtl && (0, _styledComponents.css)(
|
|
149
|
+
var SocialList = _styledComponents.default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: -3px;\n ", "\n"])), function (props) {
|
|
150
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n margin-right: -3px;\n margin-left: 0px;\n "])));
|
|
143
151
|
});
|
|
144
152
|
exports.SocialList = SocialList;
|
|
145
|
-
var
|
|
153
|
+
var CategorySelectedContainer = _styledComponents.default.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n display: inline;\n margin-left: 10px;\n color: ", ";\n padding-right: 5px;\n cursor: pointer;\n p{\n margin: 0;\n }\n svg {\n position: relative;\n top: 2px;\n margin-right: 3px;\n width: 14px;\n height: 14px;\n }\n"])), function (_ref10) {
|
|
154
|
+
var _theme$colors;
|
|
155
|
+
var theme = _ref10.theme;
|
|
156
|
+
return theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.primary;
|
|
157
|
+
});
|
|
158
|
+
exports.CategorySelectedContainer = CategorySelectedContainer;
|
|
159
|
+
var IconWrapper = _styledComponents.default.a(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n margin: 0px 3px 10px 3px;\n border-radius: 3px;\n border: 0.5px solid ", ";\n width: 27px;\n height: 27px;\n min-width: 27px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n\n ", "\n\n svg {\n height: 18px;\n font-size: 18px;\n transition: all 0.2s ease-in;\n color: ", ";\n }\n &:hover {\n background-color: ", ";\n svg {\n transform: scale(1.07);\n }\n }\n"])), function (props) {
|
|
146
160
|
return props.theme.colors.gray200;
|
|
147
|
-
}, function (
|
|
148
|
-
var isSkeleton =
|
|
149
|
-
return isSkeleton && (0, _styledComponents.css)(
|
|
161
|
+
}, function (_ref11) {
|
|
162
|
+
var isSkeleton = _ref11.isSkeleton;
|
|
163
|
+
return isSkeleton && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n border: none;\n "])));
|
|
150
164
|
}, function (props) {
|
|
151
165
|
return props.theme.colors.headingColor;
|
|
152
166
|
}, function (props) {
|
|
153
167
|
return props.theme.colors.gray200;
|
|
154
168
|
});
|
|
155
169
|
exports.IconWrapper = IconWrapper;
|
|
156
|
-
var BusinessInfoWrapper = _styledComponents.default.div(
|
|
170
|
+
var BusinessInfoWrapper = _styledComponents.default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n @media (min-width: 768px) {\n flex-direction: column;\n }\n"])));
|
|
157
171
|
exports.BusinessInfoWrapper = BusinessInfoWrapper;
|
|
158
|
-
var WrapperFloatingSearch = _styledComponents.default.div(
|
|
159
|
-
var theme =
|
|
172
|
+
var WrapperFloatingSearch = _styledComponents.default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n display: flex;\n background: rgba(0,0,0,0.2);\n top: 80px;\n right: 10px;\n width: 80%;\n border-bottom: 1px solid #FFFFFF;\n #select-input {\n color: #FFFFFF !important;\n background: transparent;\n }\n svg, span {\n color: #FFFFFF !important;\n }\n @media (min-width: 681px){\n top: 23px;\n right: 60px;\n width: 300px;\n input {\n width: 80%;\n }\n }\n"])), function (_ref12) {
|
|
173
|
+
var theme = _ref12.theme;
|
|
160
174
|
return theme.colors.white;
|
|
161
175
|
});
|
|
162
176
|
exports.WrapperFloatingSearch = WrapperFloatingSearch;
|
|
@@ -202,7 +202,9 @@ var BusinessItemAccordion = function BusinessItemAccordion(props) {
|
|
|
202
202
|
onClick: handleChangeStore,
|
|
203
203
|
className: "change-store"
|
|
204
204
|
}, t('CHANGE_STORE', 'Change store')))), props.children), !setActive && !isClosed && !!isProducts && !checkoutButtonDisabled && !isMultiCheckout && !checkoutMultiBusinessEnabled && /*#__PURE__*/_react.default.createElement(_styles.PriceContainer, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(total)), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
205
|
-
onClick:
|
|
205
|
+
onClick: function onClick() {
|
|
206
|
+
return handleClickCheckout(uuid);
|
|
207
|
+
},
|
|
206
208
|
color: "primary"
|
|
207
209
|
}, t('CHECKOUT', 'Checkout')))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
208
210
|
return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
|
|
@@ -12,6 +12,7 @@ var _AutoScroll = require("../../../../../components/AutoScroll");
|
|
|
12
12
|
var _styledComponents = require("styled-components");
|
|
13
13
|
var _styles = require("./styles");
|
|
14
14
|
var _Tabs = require("../../styles/Tabs");
|
|
15
|
+
var _useWindowSize = require("../../../../../hooks/useWindowSize");
|
|
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); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -43,6 +44,7 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
|
|
|
43
44
|
useKioskApp = props.useKioskApp,
|
|
44
45
|
isProfessional = props.isProfessional;
|
|
45
46
|
var theme = (0, _styledComponents.useTheme)();
|
|
47
|
+
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
46
48
|
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
47
49
|
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
48
50
|
orderingTheme = _useOrderingTheme2[0];
|
|
@@ -133,14 +135,19 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
|
|
|
133
135
|
}
|
|
134
136
|
};
|
|
135
137
|
(0, _react.useEffect)(function () {
|
|
138
|
+
var _Object$values;
|
|
136
139
|
if (typeof useKioskApp === 'undefined') return;
|
|
137
140
|
var styleSheet = document.getElementById('styles').sheet;
|
|
141
|
+
if ((_Object$values = Object.values(styleSheet.cssRules)) !== null && _Object$values !== void 0 && _Object$values.length) {
|
|
142
|
+
styleSheet === null || styleSheet === void 0 ? void 0 : styleSheet.deleteRule(0);
|
|
143
|
+
}
|
|
138
144
|
var disabledCustomWidth = isChew || !useKioskApp;
|
|
139
145
|
var style0 = '.sticky-prod-cat {';
|
|
140
146
|
style0 += 'position: fixed !important;';
|
|
141
147
|
style0 += 'top: 0px !important;';
|
|
142
148
|
style0 += 'left: 0px !important;';
|
|
143
149
|
style0 += 'padding: 5px 5px 0px 5px !important;';
|
|
150
|
+
style0 += "width: calc(100% - ".concat(useKioskApp ? '50px' : windowSize.width >= 993 ? '155px' : '0px', ")!important;");
|
|
144
151
|
!disabledCustomWidth && (style0 += "width: calc(100% - ".concat(useKioskApp ? '50px' : '155px', ") !important;"));
|
|
145
152
|
style0 += '}';
|
|
146
153
|
var style1 = '.sticky-search {';
|
|
@@ -157,7 +164,7 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
|
|
|
157
164
|
return function () {
|
|
158
165
|
return window.removeEventListener('scroll', handleScroll);
|
|
159
166
|
};
|
|
160
|
-
}, [useKioskApp, isChew]);
|
|
167
|
+
}, [useKioskApp, isChew, windowSize.width]);
|
|
161
168
|
(0, _react.useEffect)(function () {
|
|
162
169
|
var _business$professiona;
|
|
163
170
|
if ((business === null || business === void 0 ? void 0 : (_business$professiona = business.professionals) === null || _business$professiona === void 0 ? void 0 : _business$professiona.length) > 0 && !useKioskApp) {
|
package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
13
|
var CategoriesWrap = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 7.6px;\n @media (min-width: 993){\n width: calc(100% - 40px);\n border: 0;\n padding: 0;\n }\n"])));
|
|
14
14
|
exports.CategoriesWrap = CategoriesWrap;
|
|
15
|
-
var CategoriesContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding:
|
|
15
|
+
var CategoriesContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 15px 0 0 0;\n padding-bottom: 0;\n background: ", ";\n z-index: 1000;\n text-align: center;\n width: 100%;\n top: 45px;\n position: sticky;\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n div.special{\n ", "\n }\n\n @media (min-width: 381px) {\n padding: 5px;\n }\n"])), function (props) {
|
|
16
16
|
return props.theme.colors.backgroundPage;
|
|
17
17
|
}, function (props) {
|
|
18
18
|
return !props.featured && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none;\n "])));
|
|
@@ -437,7 +437,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
437
437
|
onBusinessClick: onBusinessClick,
|
|
438
438
|
priceFilterValues: priceFilterValues,
|
|
439
439
|
handleChangePriceFilterValues: handleChangePriceFilterValues,
|
|
440
|
-
productToIdLoading: productToIdLoading
|
|
440
|
+
productToIdLoading: productToIdLoading,
|
|
441
|
+
handleUpdateProfessionals: handleUpdateProfessionals
|
|
441
442
|
}), isMounted && !loading && business && !Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
442
443
|
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.'),
|
|
443
444
|
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'),
|
|
@@ -62,7 +62,7 @@ var BusinessHeroImg = function BusinessHeroImg(props) {
|
|
|
62
62
|
exports.BusinessHeroImg = BusinessHeroImg;
|
|
63
63
|
var HightestRatedWrapper = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding: 50px 0 30px 0;\n"])));
|
|
64
64
|
exports.HightestRatedWrapper = HightestRatedWrapper;
|
|
65
|
-
var Divider = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background:
|
|
65
|
+
var Divider = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background: rgb(230, 234, 233);\n height: 8px;\n width: 100%;\n"])));
|
|
66
66
|
exports.Divider = Divider;
|
|
67
67
|
var SearchContainer = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
68
68
|
exports.SearchContainer = SearchContainer;
|