ordering-ui-external 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/0.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
- package/_bundles/{1.ordering-ui.8b7044a2b34939a44465.js → 1.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/2.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
- package/_bundles/{4.ordering-ui.8b7044a2b34939a44465.js → 4.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{5.ordering-ui.8b7044a2b34939a44465.js → 5.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{6.ordering-ui.8b7044a2b34939a44465.js → 6.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js → 7.ordering-ui.a7de4e953ec3c5879d9b.js} +2 -2
- package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → 7.ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.8b7044a2b34939a44465.js → 8.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{9.ordering-ui.8b7044a2b34939a44465.js → 9.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/ordering-ui.a7de4e953ec3c5879d9b.js +2 -0
- package/_bundles/{ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessInformation/index.js +4 -8
- package/_modules/components/OrdersOption/styles.js +4 -2
- package/_modules/components/Pagination/index.js +100 -0
- package/_modules/components/Pagination/styles.js +56 -0
- package/_modules/components/SmartAppBanner/index.js +2 -1
- package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +92 -0
- package/_modules/components/VerticalOrdersLayout/index.js +115 -41
- package/_modules/components/VerticalOrdersLayout/styles.js +25 -11
- package/_modules/index.js +7 -0
- package/_modules/themes/five/src/components/AccordionDropdown/index.js +15 -4
- package/_modules/themes/five/src/components/AccordionDropdown/styles.js +14 -4
- package/_modules/themes/five/src/components/AddressList/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +17 -10
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -42
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +5 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +0 -3
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +22 -13
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +15 -7
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +3 -0
- package/_modules/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
- package/_modules/themes/five/src/components/BusinessesListing/index.js +6 -13
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +66 -40
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +13 -7
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +16 -7
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +21 -15
- package/_modules/themes/five/src/components/CardForm/index.js +17 -3
- package/_modules/themes/five/src/components/CardForm/styles.js +14 -6
- package/_modules/themes/five/src/components/CartPopover/index.js +6 -4
- package/_modules/themes/five/src/components/CartPopover/styles.js +4 -2
- package/_modules/themes/five/src/components/Footer/index.js +16 -6
- package/_modules/themes/five/src/components/Footer/styles.js +11 -9
- package/_modules/themes/five/src/components/Header/index.js +14 -9
- package/_modules/themes/five/src/components/Header/styles.js +64 -44
- package/_modules/themes/five/src/components/HeaderOption/index.js +9 -2
- package/_modules/themes/five/src/components/HeaderOption/styles.js +8 -2
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +9 -3
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +5 -3
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +9 -19
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +23 -19
- package/_modules/themes/five/src/components/InputPhoneNumber/index.js +1 -0
- package/_modules/themes/five/src/components/LoginForm/index.js +3 -2
- package/_modules/themes/five/src/components/MomentControl/index.js +4 -2
- package/_modules/themes/five/src/components/MyOrders/index.js +24 -56
- package/_modules/themes/five/src/components/MyOrders/styles.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +5 -2
- package/_modules/themes/five/src/components/OrderDetails/styles.js +24 -24
- package/_modules/themes/five/src/components/OrderItAgain/styles.js +6 -2
- package/_modules/themes/five/src/components/OrdersOption/index.js +18 -18
- package/_modules/themes/five/src/components/OrdersOption/styles.js +2 -2
- package/_modules/themes/five/src/components/PageBanner/index.js +50 -0
- package/_modules/themes/five/src/components/PageBanner/styles.js +18 -0
- package/_modules/themes/five/src/components/Pagination/index.js +99 -0
- package/_modules/themes/five/src/components/Pagination/styles.js +56 -0
- package/_modules/themes/five/src/components/ProductForm/index.js +39 -23
- package/_modules/themes/five/src/components/ProductForm/styles.js +74 -38
- package/_modules/themes/five/src/components/Promotions/index.js +7 -2
- package/_modules/themes/five/src/components/Promotions/styles.js +16 -14
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +31 -10
- package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +19 -11
- package/_modules/themes/five/src/components/SidebarMenu/styles.js +1 -1
- package/_modules/themes/five/src/components/SignUpForm/index.js +3 -2
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +7 -17
- package/_modules/themes/five/src/components/SingleProductCard/index.js +7 -298
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +310 -0
- package/_modules/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +36 -32
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +305 -0
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +143 -0
- package/_modules/themes/five/src/components/StripeElementsForm/index.js +1 -0
- package/_modules/themes/five/src/components/UserPopover/index.js +3 -1
- package/_modules/themes/five/src/components/UserPopover/styles.js +4 -3
- package/_modules/themes/five/src/components/UserProfileForm/styles.js +5 -8
- package/_modules/themes/six/src/components/BusinessController/index.js +81 -15
- package/_modules/themes/six/src/components/BusinessController/styles.js +58 -30
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -3
- package/_modules/themes/six/src/components/BusinessesMap/styles.js +1 -1
- package/_modules/themes/six/src/components/SearchBar/index.js +19 -10
- package/_modules/themes/six/src/components/SearchBar/styles.js +44 -16
- package/index-template.js +3 -1
- package/package.json +2 -2
- package/src/components/BusinessInformation/index.js +3 -8
- package/src/components/OrdersOption/styles.js +5 -5
- package/src/components/Pagination/index.js +107 -0
- package/src/components/Pagination/styles.js +106 -0
- package/src/components/SmartAppBanner/index.js +1 -0
- package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +89 -0
- package/src/components/VerticalOrdersLayout/index.js +86 -48
- package/src/components/VerticalOrdersLayout/styles.js +66 -22
- package/src/index.js +2 -0
- package/src/themes/five/src/components/AccordionDropdown/index.js +19 -6
- package/src/themes/five/src/components/AccordionDropdown/styles.js +25 -1
- package/src/themes/five/src/components/AddressList/styles.js +2 -0
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +21 -11
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +9 -3
- package/src/themes/five/src/components/BusinessListingSearch/index.js +1 -0
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +0 -2
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +23 -12
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +12 -4
- package/src/themes/five/src/components/BusinessProductsListing/index.js +3 -0
- package/src/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
- package/src/themes/five/src/components/BusinessesListing/index.js +5 -5
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +54 -25
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -26
- package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +19 -6
- package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +38 -3
- package/src/themes/five/src/components/CardForm/index.js +49 -8
- package/src/themes/five/src/components/CardForm/styles.js +20 -2
- package/src/themes/five/src/components/CartPopover/index.js +2 -1
- package/src/themes/five/src/components/CartPopover/styles.js +3 -3
- package/src/themes/five/src/components/Footer/index.js +15 -6
- package/src/themes/five/src/components/Footer/styles.js +15 -14
- package/src/themes/five/src/components/Header/index.js +6 -4
- package/src/themes/five/src/components/Header/styles.js +14 -11
- package/src/themes/five/src/components/HeaderOption/index.js +13 -10
- package/src/themes/five/src/components/HeaderOption/styles.js +2 -2
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +22 -10
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +8 -0
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +24 -36
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +12 -1
- package/src/themes/five/src/components/InputPhoneNumber/index.js +1 -0
- package/src/themes/five/src/components/LoginForm/index.js +2 -1
- package/src/themes/five/src/components/MomentControl/index.js +3 -2
- package/src/themes/five/src/components/MyOrders/index.js +20 -62
- package/src/themes/five/src/components/MyOrders/styles.js +1 -2
- package/src/themes/five/src/components/OrderDetails/index.js +9 -0
- package/src/themes/five/src/components/OrderDetails/styles.js +0 -55
- package/src/themes/five/src/components/OrderItAgain/styles.js +18 -0
- package/src/themes/five/src/components/OrdersOption/index.js +10 -16
- package/src/themes/five/src/components/OrdersOption/styles.js +1 -3
- package/src/themes/five/src/components/PageBanner/index.js +58 -0
- package/src/themes/five/src/components/PageBanner/styles.js +58 -0
- package/src/themes/five/src/components/Pagination/index.js +106 -0
- package/src/themes/five/src/components/Pagination/styles.js +106 -0
- package/src/themes/five/src/components/ProductForm/index.js +108 -84
- package/src/themes/five/src/components/ProductForm/styles.js +94 -12
- package/src/themes/five/src/components/Promotions/index.js +22 -16
- package/src/themes/five/src/components/Promotions/styles.js +10 -4
- package/src/themes/five/src/components/RenderProductsLayout/index.js +94 -66
- package/src/themes/five/src/components/RenderProductsLayout/styles.js +23 -22
- package/src/themes/five/src/components/SidebarMenu/styles.js +1 -1
- package/src/themes/five/src/components/SignUpForm/index.js +2 -1
- package/src/themes/five/src/components/SingleOrderCard/index.js +0 -21
- package/src/themes/five/src/components/SingleProductCard/index.js +7 -300
- package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +312 -0
- package/src/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +9 -5
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +313 -0
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +353 -0
- package/src/themes/five/src/components/StripeElementsForm/index.js +1 -0
- package/src/themes/five/src/components/UserPopover/index.js +2 -0
- package/src/themes/five/src/components/UserPopover/styles.js +2 -2
- package/src/themes/five/src/components/UserProfileForm/styles.js +3 -11
- package/src/themes/six/src/components/BusinessController/index.js +163 -62
- package/src/themes/six/src/components/BusinessController/styles.js +53 -14
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -1
- package/src/themes/six/src/components/BusinessesMap/styles.js +1 -1
- package/src/themes/six/src/components/SearchBar/index.js +27 -8
- package/src/themes/six/src/components/SearchBar/styles.js +33 -2
- package/template/app.js +364 -364
- package/template/assets/images/chew_logo.png +0 -0
- package/template/components/HelmetTags/index.js +5 -4
- package/_bundles/0.ordering-ui.8b7044a2b34939a44465.js +0 -1
- package/_bundles/2.ordering-ui.8b7044a2b34939a44465.js +0 -1
- package/_bundles/ordering-ui.8b7044a2b34939a44465.js +0 -2
|
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapperSubOption = exports.WrapperIngredients = exports.WrapperImage = exports.WeightUnitSwitch = exports.WeightUnitItem = exports.VideoGalleryWrapper = exports.SwiperWrapper = exports.SkuContent = exports.SkeletonBlock = exports.SectionTitle = exports.Properties = exports.ProductTagsListContainer = exports.ProductTagWrapper = exports.ProductTabContainer = exports.ProductShareWrapper = exports.ProductName = exports.ProductMeta = exports.ProductInfo = exports.ProductFormTitle = exports.ProductEdition = exports.ProductDescription = exports.ProductContainer = exports.ProductComment = exports.ProductActions = exports.PriceContent = exports.EstimatedPersons = exports.Divider = void 0;
|
|
7
|
+
exports.WrapperSubOption = exports.WrapperIngredients = exports.WrapperImage = exports.WeightUnitSwitch = exports.WeightUnitItem = exports.VideoGalleryWrapper = exports.TitleWrapper = exports.SwiperWrapper = exports.SkuContent = exports.SkeletonBlock = exports.SectionTitle = exports.Properties = exports.ProductTagsListContainer = exports.ProductTagWrapper = exports.ProductTabContainer = exports.ProductShareWrapper = exports.ProductName = exports.ProductMeta = exports.ProductInfo = exports.ProductFormTitle = exports.ProductEdition = exports.ProductDescription = exports.ProductContainer = exports.ProductComment = exports.ProductActions = exports.PriceContent = exports.EstimatedPersons = exports.Divider = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
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;
|
|
9
|
+
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;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -14,92 +14,128 @@ var ProductContainer = _styledComponents.default.div(_templateObject || (_templa
|
|
|
14
14
|
return !props.useKioskApp && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: 70vh;\n "])));
|
|
15
15
|
});
|
|
16
16
|
exports.ProductContainer = ProductContainer;
|
|
17
|
-
var
|
|
17
|
+
var TitleWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 15px;\n margin-top: 20px;\n .favorite {\n cursor: pointer;\n svg {\n color: ", ";\n display: flex;\n font-size: 20px;\n }\n }\n"])), function (props) {
|
|
18
|
+
return props.theme.colors.danger500;
|
|
19
|
+
});
|
|
20
|
+
exports.TitleWrapper = TitleWrapper;
|
|
21
|
+
var WrapperImage = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: -20px;\n margin-top: 20px;\n width: calc(100% + 40px);\n position: relative;\n"])));
|
|
18
22
|
exports.WrapperImage = WrapperImage;
|
|
19
|
-
var SwiperWrapper = _styledComponents.default.div(
|
|
20
|
-
return props.isSoldOut && (0, _styledComponents.css)(
|
|
23
|
+
var SwiperWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n\n img{\n ", "\n }\n .mySwiper2 {\n height: 250px;\n width: 100%;\n ", "\n .swiper-slide-active {\n border-radius: 0px;\n img {\n border-radius: 0px;\n }\n }\n\n @media (min-width: 480px){\n ", "\n }\n\n @media (min-width: 576px) {\n height: 320px;\n ", "\n }\n ", "\n }\n \n\n .swiper {\n width: 100%;\n height: 500px;\n margin-left: auto;\n margin-right: auto;\n }\n\n .swiper-slide {\n background-size: cover;\n background-position: center;\n .active-img {\n ", "\n }\n }\n\n .product-thumb {\n box-sizing: border-box;\n padding: 30px 0px;\n margin: 0px 20px;\n\n .swiper-slide {\n display: flex;\n opacity: 0.8;\n border-radius: 7.6px;\n height: auto;\n cursor: pointer;\n overflow: hidden;\n\n img {\n border-radius: 7.6px;\n max-height: 70px;\n ", "\n }\n }\n\n .swiper-slide-thumb-active {\n opacity: 1;\n }\n }\n\n .swiper-slide img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n ", "\n }\n\n .active-img {\n ", "\n }\n\n .swiper-button-next {\n background-image: url(", ");\n background-color: #d1d0d04d;\n background-repeat: no-repeat;\n background-position: 55% center;\n width: 32px;\n height: 32px;\n box-shadow: rgb(0 0 0 / 7%) 0px 4px 10px;\n border-radius: 50%;\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.05);\n }\n }\n\n .swiper-button-prev {\n background-image: url(", ");\n background-color: #d1d0d04d;\n background-repeat: no-repeat;\n background-position: 45% center;\n width: 32px;\n height: 32px;\n border-radius: 50%;\n box-shadow: rgb(0 0 0 / 7%) 0px 4px 10px;\n transition: all 0.2s ease;\n\n &:hover {\n transform: scale(1.05);\n }\n }\n\n .swiper-button-next::after, .swiper-button-prev::after {\n display: none;\n }\n"])), function (props) {
|
|
24
|
+
return props.isSoldOut && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n filter: grayscale(1);\n "])));
|
|
25
|
+
}, function (_ref) {
|
|
26
|
+
var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4;
|
|
27
|
+
var theme = _ref.theme;
|
|
28
|
+
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.layout) === null || _theme$business_view$4 === void 0 ? void 0 : _theme$business_view$4.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 290px;\n "])));
|
|
29
|
+
}, function (_ref2) {
|
|
30
|
+
var _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6;
|
|
31
|
+
var theme = _ref2.theme;
|
|
32
|
+
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.layout) === null || _theme$business_view6 === void 0 ? void 0 : _theme$business_view6.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 340px;\n "])));
|
|
33
|
+
}, function (_ref3) {
|
|
34
|
+
var _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11;
|
|
35
|
+
var theme = _ref3.theme;
|
|
36
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view7 = theme.business_view) === null || _theme$business_view7 === void 0 ? void 0 : (_theme$business_view8 = _theme$business_view7.components) === null || _theme$business_view8 === void 0 ? void 0 : (_theme$business_view9 = _theme$business_view8.products) === 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.layout) === null || _theme$business_view11 === void 0 ? void 0 : _theme$business_view11.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 60vw;\n "])));
|
|
37
|
+
}, function (_ref4) {
|
|
38
|
+
var _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16;
|
|
39
|
+
var theme = _ref4.theme;
|
|
40
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view12 = theme.business_view) === null || _theme$business_view12 === void 0 ? void 0 : (_theme$business_view13 = _theme$business_view12.components) === null || _theme$business_view13 === void 0 ? void 0 : (_theme$business_view14 = _theme$business_view13.products) === null || _theme$business_view14 === void 0 ? void 0 : (_theme$business_view15 = _theme$business_view14.components) === null || _theme$business_view15 === void 0 ? void 0 : (_theme$business_view16 = _theme$business_view15.layout) === null || _theme$business_view16 === void 0 ? void 0 : _theme$business_view16.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n @media (min-width: 768px) {\n height: 40vw;\n }\n @media (min-width: 993px) {\n height: 30vw;\n }\n @media (min-width: 1024px){\n height: 350px !important;\n }\n @media (min-width: 1200px) {\n height: 300px !important;\n width: 300px !important;\n }\n "])));
|
|
41
|
+
}, function (_ref5) {
|
|
42
|
+
var _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21;
|
|
43
|
+
var theme = _ref5.theme;
|
|
44
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view17 = theme.business_view) === null || _theme$business_view17 === void 0 ? void 0 : (_theme$business_view18 = _theme$business_view17.components) === null || _theme$business_view18 === void 0 ? void 0 : (_theme$business_view19 = _theme$business_view18.products) === null || _theme$business_view19 === void 0 ? void 0 : (_theme$business_view20 = _theme$business_view19.components) === null || _theme$business_view20 === void 0 ? void 0 : (_theme$business_view21 = _theme$business_view20.layout) === null || _theme$business_view21 === void 0 ? void 0 : _theme$business_view21.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n "])));
|
|
45
|
+
}, function (_ref6) {
|
|
46
|
+
var _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view26;
|
|
47
|
+
var theme = _ref6.theme;
|
|
48
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view22 = theme.business_view) === null || _theme$business_view22 === void 0 ? void 0 : (_theme$business_view23 = _theme$business_view22.components) === null || _theme$business_view23 === void 0 ? void 0 : (_theme$business_view24 = _theme$business_view23.products) === null || _theme$business_view24 === void 0 ? void 0 : (_theme$business_view25 = _theme$business_view24.components) === null || _theme$business_view25 === void 0 ? void 0 : (_theme$business_view26 = _theme$business_view25.layout) === null || _theme$business_view26 === void 0 ? void 0 : _theme$business_view26.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n max-width: 80px;\n max-height: 80px;\n "])));
|
|
49
|
+
}, function (_ref7) {
|
|
50
|
+
var _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31;
|
|
51
|
+
var theme = _ref7.theme;
|
|
52
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view27 = theme.business_view) === null || _theme$business_view27 === void 0 ? void 0 : (_theme$business_view28 = _theme$business_view27.components) === null || _theme$business_view28 === void 0 ? void 0 : (_theme$business_view29 = _theme$business_view28.products) === null || _theme$business_view29 === void 0 ? void 0 : (_theme$business_view30 = _theme$business_view29.components) === null || _theme$business_view30 === void 0 ? void 0 : (_theme$business_view31 = _theme$business_view30.layout) === null || _theme$business_view31 === void 0 ? void 0 : _theme$business_view31.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n border-radius: 50% !important;\n "])));
|
|
53
|
+
}, function (_ref8) {
|
|
54
|
+
var _theme$business_view32, _theme$business_view33, _theme$business_view34, _theme$business_view35, _theme$business_view36;
|
|
55
|
+
var theme = _ref8.theme;
|
|
56
|
+
return (theme === null || theme === void 0 ? void 0 : (_theme$business_view32 = theme.business_view) === 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.products) === null || _theme$business_view34 === void 0 ? void 0 : (_theme$business_view35 = _theme$business_view34.components) === null || _theme$business_view35 === void 0 ? void 0 : (_theme$business_view36 = _theme$business_view35.layout) === null || _theme$business_view36 === void 0 ? void 0 : _theme$business_view36.type) === 'starbucks' && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n height: 60vw !important;\n width: 60vw !important;\n margin: 0 auto;\n @media (min-width: 768px) {\n height: 40vw !important;\n width: 40vw !important;\n }\n @media (min-width: 993px) {\n height: 30vw !important;\n width: 30vw !important;\n }\n @media (min-width: 1024px) {\n height: 350px !important;\n width: 350px !important;\n }\n @media (min-width: 1200px) {\n height: 300px !important;\n width: 300px !important;\n }\n "])));
|
|
21
57
|
}, function (props) {
|
|
22
58
|
return props.theme.images.general.rightArrow;
|
|
23
59
|
}, function (props) {
|
|
24
60
|
return props.theme.images.general.leftArrow;
|
|
25
61
|
});
|
|
26
62
|
exports.SwiperWrapper = SwiperWrapper;
|
|
27
|
-
var ProductInfo = _styledComponents.default.div(
|
|
63
|
+
var ProductInfo = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 0px;\n /* position: relative; */\n"])));
|
|
28
64
|
exports.ProductInfo = ProductInfo;
|
|
29
|
-
var ProductFormTitle = _styledComponents.default.div(
|
|
65
|
+
var ProductFormTitle = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n overflow-wrap: break-word;\n\n .price-discount {\n text-decoration: line-through;\n }\n"])));
|
|
30
66
|
exports.ProductFormTitle = ProductFormTitle;
|
|
31
|
-
var ProductEdition = _styledComponents.default.div(
|
|
67
|
+
var ProductEdition = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-top: 20px;\n margin-bottom: 20px;\n"])));
|
|
32
68
|
exports.ProductEdition = ProductEdition;
|
|
33
|
-
var SectionTitle = _styledComponents.default.h3(
|
|
69
|
+
var SectionTitle = _styledComponents.default.h3(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n text-transform: capitalize;\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n padding: 7px 0px;\n margin-bottom: 0px;\n margin-top: 15px;\n color: ", ";\n"])), function (props) {
|
|
34
70
|
return props.theme.colors.headingColor;
|
|
35
71
|
});
|
|
36
72
|
exports.SectionTitle = SectionTitle;
|
|
37
|
-
var ProductComment = _styledComponents.default.div(
|
|
73
|
+
var ProductComment = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-bottom: 130px;\n\n textarea {\n margin-top: 8px;\n }\n\n p {\n font-weight: 300;\n margin-bottom: 5px;\n }\n\n @media (min-width: 577px) {\n margin-bottom: 62px;\n }\n\n @media (min-width: 769px) {\n margin-bottom: 0px;\n padding-bottom: 10px;\n }\n"])));
|
|
38
74
|
exports.ProductComment = ProductComment;
|
|
39
|
-
var ProductActions = _styledComponents.default.div(
|
|
75
|
+
var ProductActions = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n width: 100%;\n z-index: 9999997;\n\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n background-color: #FFF;\n\n div.price {\n padding-top: 10px;\n color: ", ";\n h4 {\n margin: 0;\n font-weight: 600;\n font-size: 20px;\n line-height: 20px;\n }\n span {\n font-size: 13px;\n color: #D83520;\n line-height: 15px;\n }\n }\n\n div.incdec-control {\n width: 135px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n position: relative;\n\n svg {\n width: 25px;\n height: 25px;\n cursor: pointer;\n }\n }\n\n div.price-amount-block {\n display: flex;\n justify-content: space-between;\n width: 80%\n }\n\n svg {\n color: ", ";\n }\n\n svg.disabled {\n pointer-events: none;\n color: #CED4DA;\n }\n\n button:disabled,\n button.disabled {\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n color: #B1BCCC;\n }\n\n button.add {\n width: 90%;\n padding: 5px 10px;\n margin-top: 10px;\n position: relative;\n\n &.soldout {\n width: 100%;\n pointer-events: none;\n }\n }\n .qty {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n height: 38px;\n min-width: 60px;\n box-sizing: border-box;\n padding: 0;\n margin: 0 10px;\n }\n\n @media (min-width: 577px) {\n position: sticky;\n }\n\n @media (min-width: 1200px) {\n bottom: 0px;\n flex-direction: row;\n justify-content: space-between;\n border-top: 1px solid #E9ECEF;\n width: calc(100% + 40px);\n transform: translateX(-20px);\n padding: 10px 20px;\n box-sizing: border-box;\n\n div.price {\n width: 25%;\n }\n\n button.add {\n width: 35%;\n margin-top: 0;\n }\n\n div.incdec-control {\n padding-right: 18%;\n &.show-weight-unit{\n width: 30%;\n }\n }\n }\n"])), function (props) {
|
|
40
76
|
var _props$theme;
|
|
41
77
|
return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.colors.darkTextColor;
|
|
42
78
|
}, function (props) {
|
|
43
79
|
return props.theme.colors.primary;
|
|
44
80
|
});
|
|
45
81
|
exports.ProductActions = ProductActions;
|
|
46
|
-
var SkeletonBlock = _styledComponents.default.div(
|
|
47
|
-
var width =
|
|
82
|
+
var SkeletonBlock = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: ", ";\n border-radius: 16px;\n margin: auto;\n\n span {\n margin-bottom: 10px;\n }\n"])), function (_ref9) {
|
|
83
|
+
var width = _ref9.width;
|
|
48
84
|
return width && "".concat(width, "%");
|
|
49
85
|
});
|
|
50
86
|
exports.SkeletonBlock = SkeletonBlock;
|
|
51
|
-
var WrapperSubOption = _styledComponents.default.div(
|
|
87
|
+
var WrapperSubOption = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n border-radius: 10px;\n\n &.soldout {\n pointer-events: none;\n background-color: hsl(0, 0%, 72%);\n }\n"])));
|
|
52
88
|
exports.WrapperSubOption = WrapperSubOption;
|
|
53
|
-
var SkuContent = _styledComponents.default.div(
|
|
89
|
+
var SkuContent = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
54
90
|
exports.SkuContent = SkuContent;
|
|
55
|
-
var WrapperIngredients = _styledComponents.default.div(
|
|
56
|
-
var isProductSoldout =
|
|
57
|
-
return isProductSoldout && (0, _styledComponents.css)(
|
|
91
|
+
var WrapperIngredients = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref10) {
|
|
92
|
+
var isProductSoldout = _ref10.isProductSoldout;
|
|
93
|
+
return isProductSoldout && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n border-radius: 10px;\n pointer-events: none;\n background: hsl(0, 0%, 72%);\n "])));
|
|
58
94
|
});
|
|
59
95
|
exports.WrapperIngredients = WrapperIngredients;
|
|
60
|
-
var ProductTabContainer = _styledComponents.default.div(
|
|
61
|
-
return props.theme.rtl && (0, _styledComponents.css)(
|
|
96
|
+
var ProductTabContainer = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n border-bottom: 1px solid #E9ECEF;\n position: sticky;\n top: 0px;\n background: white;\n z-index: 9999996;\n overflow: scroll hidden;\n width: 100%;\n ::-webkit-scrollbar {\n height: 0px;\n }\n\n #optionList {\n > div {\n white-space: nowrap;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 10px 0px;\n margin-right: 25px;\n ", "\n }\n }\n"])), function (props) {
|
|
97
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 25px;\n "])));
|
|
62
98
|
});
|
|
63
99
|
exports.ProductTabContainer = ProductTabContainer;
|
|
64
|
-
var Divider = _styledComponents.default.div(
|
|
100
|
+
var Divider = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n height: 8px;\n width: calc(100% + 40px);\n margin-left: -20px;\n background: #F8F9FA;\n"])));
|
|
65
101
|
exports.Divider = Divider;
|
|
66
|
-
var ProductShareWrapper = _styledComponents.default.div(
|
|
102
|
+
var ProductShareWrapper = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n justify-content: flex-end;\n padding-right: 20px;\n ", "\n\n > div {\n > svg {\n margin: 0px !important;\n }\n }\n\n @media (max-width: 768px) {\n > div {\n right: 16px;\n top: 25px;\n left: auto;\n }\n }\n\n"])), function (props) {
|
|
67
103
|
var _props$theme2;
|
|
68
|
-
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(
|
|
104
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n padding-left: 20px;\n padding-right: 0;\n "])));
|
|
69
105
|
});
|
|
70
106
|
exports.ProductShareWrapper = ProductShareWrapper;
|
|
71
|
-
var ProductName = _styledComponents.default.h1(
|
|
107
|
+
var ProductName = _styledComponents.default.h1(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 30px;\n color: #344050;\n display: flex;\n justify-content: space-between;\n margin: 0;\n .calories {\n font-size: 16px;\n font-weight: 100;\n color: #909BA9;\n white-space: nowrap;\n display: flex;\n align-items: flex-end;\n }\n @media (min-width: 768px) {\n font-size: 22px;\n line-height: 34px;\n }\n"])));
|
|
72
108
|
exports.ProductName = ProductName;
|
|
73
|
-
var Properties = _styledComponents.default.div(
|
|
109
|
+
var Properties = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 20px;\n"])));
|
|
74
110
|
exports.Properties = Properties;
|
|
75
|
-
var ProductDescription = _styledComponents.default.p(
|
|
111
|
+
var ProductDescription = _styledComponents.default.p(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n margin-top: 0px;\n white-space: pre-wrap;\n"])));
|
|
76
112
|
exports.ProductDescription = ProductDescription;
|
|
77
|
-
var PriceContent = _styledComponents.default.
|
|
113
|
+
var PriceContent = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 10px;\n > p {\n font-size: 18px;\n line-height: 27px;\n color: #344050;\n margin: 0;\n }\n .offer-price {\n text-decoration: line-through;\n font-size: 16px;\n color: #909BA9;\n }\n"])));
|
|
78
114
|
exports.PriceContent = PriceContent;
|
|
79
|
-
var ProductMeta = _styledComponents.default.div(
|
|
115
|
+
var ProductMeta = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n span {\n font-size: 16px;\n line-height: 24px;\n color: #909BA9;\n }\n"])));
|
|
80
116
|
exports.ProductMeta = ProductMeta;
|
|
81
|
-
var EstimatedPersons = _styledComponents.default.div(
|
|
117
|
+
var EstimatedPersons = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
82
118
|
exports.EstimatedPersons = EstimatedPersons;
|
|
83
|
-
var ProductTagsListContainer = _styledComponents.default.div(
|
|
119
|
+
var ProductTagsListContainer = _styledComponents.default.div(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 20px;\n"])));
|
|
84
120
|
exports.ProductTagsListContainer = ProductTagsListContainer;
|
|
85
|
-
var ProductTagWrapper = _styledComponents.default.div(
|
|
121
|
+
var ProductTagWrapper = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 5px 0;\n\n img {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n }\n\n span {\n font-size: 14px;\n ", "\n }\n"])), function (props) {
|
|
86
122
|
var _props$theme3;
|
|
87
|
-
return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(
|
|
123
|
+
return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n margin: 0 10px 0 20px;\n "]))) : (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin: 0 20px 0 10px;\n "])));
|
|
88
124
|
});
|
|
89
125
|
exports.ProductTagWrapper = ProductTagWrapper;
|
|
90
|
-
var WeightUnitSwitch = _styledComponents.default.div(
|
|
126
|
+
var WeightUnitSwitch = _styledComponents.default.div(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: auto;\n margin-left: 10px;\n \n ", "\n"])), function (props) {
|
|
91
127
|
var _props$theme4;
|
|
92
|
-
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(
|
|
128
|
+
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
|
|
93
129
|
});
|
|
94
130
|
exports.WeightUnitSwitch = WeightUnitSwitch;
|
|
95
|
-
var WeightUnitItem = _styledComponents.default.span(
|
|
96
|
-
var active =
|
|
97
|
-
return active && (0, _styledComponents.css)(
|
|
131
|
+
var WeightUnitItem = _styledComponents.default.span(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n display: inline-flex;\n width: fit-content;\n min-width: unset !important;\n font-size: 12px;\n line-height: 18px;\n padding: 2px 6px;\n cursor: pointer;\n \n ", "\n"])), function (_ref11) {
|
|
132
|
+
var active = _ref11.active;
|
|
133
|
+
return active && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n background-color: ", "15;\n border-radius: 3px;\n color: ", ";\n "])), function (props) {
|
|
98
134
|
return props.theme.colors.primary;
|
|
99
135
|
}, function (props) {
|
|
100
136
|
return props.theme.colors.primary;
|
|
101
137
|
});
|
|
102
138
|
});
|
|
103
139
|
exports.WeightUnitItem = WeightUnitItem;
|
|
104
|
-
var VideoGalleryWrapper = _styledComponents.default.div(
|
|
140
|
+
var VideoGalleryWrapper = _styledComponents.default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n\n svg {\n position: absolute;\n fill: #fff;\n font-size: 28px;\n }\n"])));
|
|
105
141
|
exports.VideoGalleryWrapper = VideoGalleryWrapper;
|
|
@@ -14,6 +14,7 @@ var _Modal = require("../Modal");
|
|
|
14
14
|
var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
|
|
15
15
|
var _NotFoundSource = require("../NotFoundSource");
|
|
16
16
|
var _utils = require("../../../../../utils");
|
|
17
|
+
var _styledComponents = require("styled-components");
|
|
17
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
19
|
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); }
|
|
19
20
|
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; }
|
|
@@ -42,6 +43,7 @@ var PromotionsUI = function PromotionsUI(props) {
|
|
|
42
43
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
43
44
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
44
45
|
t = _useLanguage2[1];
|
|
46
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
45
47
|
var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
|
|
46
48
|
_useUtils2 = _slicedToArray(_useUtils, 1),
|
|
47
49
|
_useUtils2$ = _useUtils2[0],
|
|
@@ -104,16 +106,19 @@ var PromotionsUI = function PromotionsUI(props) {
|
|
|
104
106
|
})), (!(offersState !== null && offersState !== void 0 && offersState.loading) && (filteredOffers === null || filteredOffers === void 0 ? void 0 : filteredOffers.length) === 0 || (offersState === null || offersState === void 0 ? void 0 : offersState.error)) && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
105
107
|
content: (offersState === null || offersState === void 0 ? void 0 : offersState.error) || t('NOT_FOUND_OFFERS', 'Not found offers')
|
|
106
108
|
}), !(offersState !== null && offersState !== void 0 && offersState.loading) && ((_offersState$offers2 = offersState.offers) === null || _offersState$offers2 === void 0 ? void 0 : _offersState$offers2.length) > 0 && (filteredOffers === null || filteredOffers === void 0 ? void 0 : filteredOffers.map(function (offer) {
|
|
109
|
+
var _theme$images, _theme$images$dummies;
|
|
107
110
|
return /*#__PURE__*/_react.default.createElement(_styles.SingleOfferContainer, {
|
|
108
111
|
key: offer.id
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.OfferInfoWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
|
|
113
|
+
bgimage: (offer === null || offer === void 0 ? void 0 : offer.image) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo)
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement(_styles.OfferInformation, null, /*#__PURE__*/_react.default.createElement("h2", null, offer === null || offer === void 0 ? void 0 : offer.name), /*#__PURE__*/_react.default.createElement(_styles.Description, null, offer === null || offer === void 0 ? void 0 : offer.description), /*#__PURE__*/_react.default.createElement(_styles.ExpiresAt, null, t('EXPIRES', 'Expires'), " ", parseDate(offer === null || offer === void 0 ? void 0 : offer.end, {
|
|
110
115
|
outputFormat: 'MMM DD, YYYY'
|
|
111
116
|
})), /*#__PURE__*/_react.default.createElement(_styles.AvailableBusinesses, null, /*#__PURE__*/_react.default.createElement("p", null, t('APPLY_FOR', 'Apply for'), ":"), /*#__PURE__*/_react.default.createElement("p", null, offer.businesses.map(function (business, i) {
|
|
112
117
|
var _offer$businesses;
|
|
113
118
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
114
119
|
key: business === null || business === void 0 ? void 0 : business.id
|
|
115
120
|
}, ' ', business === null || business === void 0 ? void 0 : business.name, i + 1 < ((_offer$businesses = offer.businesses) === null || _offer$businesses === void 0 ? void 0 : _offer$businesses.length) ? ',' : '');
|
|
116
|
-
})))), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
121
|
+
}))))), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
117
122
|
color: "primary",
|
|
118
123
|
onClick: function onClick() {
|
|
119
124
|
return handleClickOffer(offer);
|
|
@@ -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.ValueOfOffer = exports.SingleOfferContainer = exports.SingleBusinessOffer = exports.SearchBarContainer = exports.PromotionsContainer = exports.PromotionTitle = exports.OfferView = exports.OfferInformation = exports.OfferData = exports.ExpiresAt = exports.Description = exports.Code = exports.BusinessLogo = exports.BusinessInfo = exports.AvailableBusinesses = void 0;
|
|
7
|
+
exports.ValueOfOffer = exports.SingleOfferContainer = exports.SingleBusinessOffer = exports.SearchBarContainer = exports.PromotionsContainer = exports.PromotionTitle = exports.OfferView = exports.OfferInformation = exports.OfferInfoWrapper = exports.OfferData = exports.ExpiresAt = exports.Description = exports.Code = exports.BusinessLogo = exports.BusinessInfo = exports.AvailableBusinesses = 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;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
|
|
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 }; }
|
|
@@ -23,16 +23,18 @@ var Description = _styledComponents.default.p(_templateObject4 || (_templateObje
|
|
|
23
23
|
exports.Description = Description;
|
|
24
24
|
var ExpiresAt = _styledComponents.default.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: #414954;\n"])));
|
|
25
25
|
exports.ExpiresAt = ExpiresAt;
|
|
26
|
-
var
|
|
26
|
+
var OfferInfoWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n gap: 10px;\n max-width: 70%;\n align-items: center;\n"])));
|
|
27
|
+
exports.OfferInfoWrapper = OfferInfoWrapper;
|
|
28
|
+
var OfferInformation = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 50%;\n ", "\n h2{\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n font-size: 14px;\n }\n @media (min-width: 720px){\n width: 70%;\n h2{\n font-size: 16px;\n }\n }\n"])), function (_ref) {
|
|
27
29
|
var isSkeleton = _ref.isSkeleton;
|
|
28
|
-
return isSkeleton && (0, _styledComponents.css)(
|
|
30
|
+
return isSkeleton && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
29
31
|
});
|
|
30
32
|
exports.OfferInformation = OfferInformation;
|
|
31
|
-
var SearchBarContainer = _styledComponents.default.div(
|
|
33
|
+
var SearchBarContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n justify-content: flex-start;\n margin-bottom: 20px;\n .search-bar {\n justify-content: flex-start;\n input {\n width: 100%;\n }\n }\n .clear {\n right: 0;\n }\n"])));
|
|
32
34
|
exports.SearchBarContainer = SearchBarContainer;
|
|
33
|
-
var BusinessLogoStyled = _styledComponents.default.div(
|
|
35
|
+
var BusinessLogoStyled = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 65px;\n height: 65px;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n min-height: 65px;\n border-radius: 7.6px;\n\n @media (min-width: 481px){\n min-width: 75px;\n min-height: 75px;\n height: 75px;\n width: 75px;\n min-height: 75px;\n ", "\n }\n"])), function (_ref2) {
|
|
34
36
|
var isCustomerMode = _ref2.isCustomerMode;
|
|
35
|
-
return isCustomerMode && (0, _styledComponents.css)(
|
|
37
|
+
return isCustomerMode && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "])));
|
|
36
38
|
});
|
|
37
39
|
var BusinessLogo = function BusinessLogo(props) {
|
|
38
40
|
var style = {};
|
|
@@ -44,20 +46,20 @@ var BusinessLogo = function BusinessLogo(props) {
|
|
|
44
46
|
}), props.children);
|
|
45
47
|
};
|
|
46
48
|
exports.BusinessLogo = BusinessLogo;
|
|
47
|
-
var SingleBusinessOffer = _styledComponents.default.div(
|
|
49
|
+
var SingleBusinessOffer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n button{\n font-size: 12px;\n }\n @media (min-width: 720px){\n button{\n font-size: 16px;\n }\n }\n"])));
|
|
48
50
|
exports.SingleBusinessOffer = SingleBusinessOffer;
|
|
49
|
-
var AvailableBusinesses = _styledComponents.default.div(
|
|
51
|
+
var AvailableBusinesses = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n white-space: pre;\n width: 80%;\n p:nth-child(2){\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])));
|
|
50
52
|
exports.AvailableBusinesses = AvailableBusinesses;
|
|
51
|
-
var OfferData = _styledComponents.default.div(
|
|
53
|
+
var OfferData = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-direction: column;\n p{\n color: #909BA9;\n margin: 3px;\n font-size: 14px;\n }\n"])));
|
|
52
54
|
exports.OfferData = OfferData;
|
|
53
|
-
var Code = _styledComponents.default.div(
|
|
55
|
+
var Code = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n span{\n color: ", ";\n font-size: 24px;\n margin-bottom: 20px;\n }\n p{\n font-size: 16px;\n }\n"])), function (_ref3) {
|
|
54
56
|
var theme = _ref3.theme;
|
|
55
57
|
return theme.colors.primary;
|
|
56
58
|
});
|
|
57
59
|
exports.Code = Code;
|
|
58
|
-
var ValueOfOffer = _styledComponents.default.div(
|
|
60
|
+
var ValueOfOffer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n p{\n font-size: 16px;\n }\n span{\n font-size: 20px;\n }\n"])));
|
|
59
61
|
exports.ValueOfOffer = ValueOfOffer;
|
|
60
|
-
var BusinessInfo = _styledComponents.default.div(
|
|
62
|
+
var BusinessInfo = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-left: 10px;\n button{\n height: 44px;\n }\n p{\n font-size: 12px;\n width: 50%;\n text-align: left;\n }\n @media(min-width: 720px){\n p{\n font-size: 16px;\n width: 70%;\n }\n }\n"])));
|
|
61
63
|
exports.BusinessInfo = BusinessInfo;
|
|
62
|
-
var OfferView = _styledComponents.default.div(
|
|
64
|
+
var OfferView = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin-top: 20px;\n text-align: center;\n h2 {\n font-size: 16px;\n }\n @media(min-width: 720px){\n h2 {\n font-size: 20px;\n }\n }\n"])));
|
|
63
65
|
exports.OfferView = OfferView;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _styledComponents = require("styled-components");
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
11
11
|
var _CgSearch = _interopRequireDefault(require("@meronex/icons/cg/CgSearch"));
|
|
12
|
+
var _BsCaretLeftFill = _interopRequireDefault(require("@meronex/icons/bs/BsCaretLeftFill"));
|
|
12
13
|
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
13
14
|
var _BusinessBasicInformation = require("../BusinessBasicInformation");
|
|
14
15
|
var _seven = require("../../../../seven");
|
|
@@ -30,6 +31,8 @@ var _ProfessionalFilter = require("../ProfessionalFilter");
|
|
|
30
31
|
var _styles2 = require("../BusinessBasicInformation/styles");
|
|
31
32
|
var _OrderItAgain = require("../OrderItAgain");
|
|
32
33
|
var _ProfessionalBusinessFilter = require("../ProfessionalBusinessFilter");
|
|
34
|
+
var _PageBanner = require("../PageBanner");
|
|
35
|
+
var _useWindowSize = require("../../../../../hooks/useWindowSize");
|
|
33
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
34
37
|
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); }
|
|
35
38
|
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; }
|
|
@@ -46,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
46
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
50
|
var layoutOne = 'groceries';
|
|
48
51
|
var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
49
|
-
var _configs$use_parent_c, _configs$use_parent_c2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13,
|
|
52
|
+
var _configs$use_parent_c, _configs$use_parent_c2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _theme$business_view$5, _theme$business_view7, _theme$business_view8, _theme$business_view9, _businessState$busine, _businessState$busine2, _business$professiona, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _business$professiona2, _business$previously_, _theme$defaultLanguag3, _theme$defaultLanguag4, _business$professiona3, _currentCart$products, _business$professiona4, _business$categories2, _theme$defaultLanguag5, _theme$defaultLanguag6, _business$previously_2, _theme$defaultLanguag7, _theme$defaultLanguag8, _currentCart$products2, _currentCart$products3;
|
|
50
53
|
var errors = props.errors,
|
|
51
54
|
isError = props.isError,
|
|
52
55
|
isLoading = props.isLoading,
|
|
@@ -96,6 +99,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
96
99
|
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
97
100
|
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
98
101
|
orderingTheme = _useOrderingTheme2[0];
|
|
102
|
+
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
99
103
|
var _useState = (0, _react.useState)(false),
|
|
100
104
|
_useState2 = _slicedToArray(_useState, 2),
|
|
101
105
|
isCartModal = _useState2[0],
|
|
@@ -104,18 +108,25 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
104
108
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
105
109
|
openSearchProducts = _useState4[0],
|
|
106
110
|
setOpenSearchProducts = _useState4[1];
|
|
111
|
+
var _useState5 = (0, _react.useState)(false),
|
|
112
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
113
|
+
categoryClicked = _useState6[0],
|
|
114
|
+
setCategoryClicked = _useState6[1];
|
|
107
115
|
var isUseParentCategory = ((configs === null || configs === void 0 ? void 0 : (_configs$use_parent_c = configs.use_parent_category) === null || _configs$use_parent_c === void 0 ? void 0 : _configs$use_parent_c.value) === 'true' || (configs === null || configs === void 0 ? void 0 : (_configs$use_parent_c2 = configs.use_parent_category) === null || _configs$use_parent_c2 === void 0 ? void 0 : _configs$use_parent_c2.value) === '1') && !useKioskApp;
|
|
108
116
|
var BusinessBasicInformationComponent = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.business_view) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.header) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.type) === 'red' ? _seven.BusinessBasicInformation : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.business_view) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.header) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.components) === null || _orderingTheme$theme6 === void 0 ? void 0 : (_orderingTheme$theme7 = _orderingTheme$theme6.layout) === null || _orderingTheme$theme7 === void 0 ? void 0 : _orderingTheme$theme7.type) === 'starbucks' ? _six.BusinessBasicInformation : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme8 = orderingTheme.theme) === null || _orderingTheme$theme8 === void 0 ? void 0 : (_orderingTheme$theme9 = _orderingTheme$theme8.business_view) === null || _orderingTheme$theme9 === void 0 ? void 0 : (_orderingTheme$theme10 = _orderingTheme$theme9.components) === null || _orderingTheme$theme10 === void 0 ? void 0 : (_orderingTheme$theme11 = _orderingTheme$theme10.header) === null || _orderingTheme$theme11 === void 0 ? void 0 : (_orderingTheme$theme12 = _orderingTheme$theme11.components) === null || _orderingTheme$theme12 === void 0 ? void 0 : (_orderingTheme$theme13 = _orderingTheme$theme12.layout) === null || _orderingTheme$theme13 === void 0 ? void 0 : _orderingTheme$theme13.type) === 'old' ? _BusinessBasicInformation2.BusinessBasicInformation : _BusinessBasicInformation.BusinessBasicInformation;
|
|
109
|
-
var SearchProductsComponent = (
|
|
117
|
+
var SearchProductsComponent = (theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$ = _theme$business_view.components) === null || _theme$business_view$ === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view$.product_search) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.components) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.layout) === null || _theme$business_view$4 === void 0 ? void 0 : _theme$business_view$4.type) === 'old' ? _SearchProducts2.SearchProducts : (theme === null || theme === void 0 ? void 0 : (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 ? void 0 : (_theme$business_view3 = _theme$business_view2.components) === null || _theme$business_view3 === void 0 ? void 0 : (_theme$business_view4 = _theme$business_view3.product_search) === null || _theme$business_view4 === void 0 ? void 0 : (_theme$business_view5 = _theme$business_view4.components) === null || _theme$business_view5 === void 0 ? void 0 : (_theme$business_view6 = _theme$business_view5.layout) === null || _theme$business_view6 === void 0 ? void 0 : _theme$business_view6.type) === 'starbucks' ? _SearchProducts3.SearchProducts : null;
|
|
110
118
|
var frontLayout = business === null || business === void 0 ? void 0 : business.front_layout;
|
|
111
119
|
var businessLayout = {
|
|
112
120
|
layoutOne: frontLayout === layoutOne && isUseParentCategory
|
|
113
121
|
};
|
|
114
|
-
var showCartOnProductList = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$
|
|
115
|
-
var hideBusinessNearCity = (_theme$business_view$ = theme === null || theme === void 0 ? void 0 : (_theme$
|
|
122
|
+
var showCartOnProductList = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme14 = orderingTheme.theme) !== null && _orderingTheme$theme14 !== void 0 && (_orderingTheme$theme15 = _orderingTheme$theme14.business_view) !== null && _orderingTheme$theme15 !== void 0 && (_orderingTheme$theme16 = _orderingTheme$theme15.components) !== null && _orderingTheme$theme16 !== void 0 && (_orderingTheme$theme17 = _orderingTheme$theme16.cart) !== null && _orderingTheme$theme17 !== void 0 && (_orderingTheme$theme18 = _orderingTheme$theme17.components) !== null && _orderingTheme$theme18 !== void 0 && _orderingTheme$theme18.hidden);
|
|
123
|
+
var hideBusinessNearCity = (_theme$business_view$5 = theme === null || theme === void 0 ? void 0 : (_theme$business_view7 = theme.business_view) === null || _theme$business_view7 === void 0 ? void 0 : (_theme$business_view8 = _theme$business_view7.components) === null || _theme$business_view8 === void 0 ? void 0 : (_theme$business_view9 = _theme$business_view8.near_business) === null || _theme$business_view9 === void 0 ? void 0 : _theme$business_view9.hidden) !== null && _theme$business_view$5 !== void 0 ? _theme$business_view$5 : true;
|
|
116
124
|
var BusinessLayoutCategories = businessLayout.layoutOne ? _groceries.BusinessProductsCategories : _BusinessProductsCategories.BusinessProductsCategories;
|
|
117
125
|
var BusinessLayoutProductsList = businessLayout.layoutOne ? _groceries2.BusinessProductsList : _BusinessProductsList.BusinessProductsList;
|
|
118
126
|
var handleSaveProduct = function handleSaveProduct() {
|
|
127
|
+
if (windowSize.width < 993) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
119
130
|
var productContainer = document.getElementsByClassName('bp-list')[0];
|
|
120
131
|
scrollTo(productContainer, 500, 1250);
|
|
121
132
|
};
|
|
@@ -142,7 +153,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
142
153
|
handleChangeSortBy: handleChangeSortBy,
|
|
143
154
|
categoryState: categoryState,
|
|
144
155
|
errorQuantityProducts: errorQuantityProducts,
|
|
145
|
-
sortByValue: sortByValue
|
|
156
|
+
sortByValue: sortByValue,
|
|
157
|
+
categoryClicked: categoryClicked
|
|
158
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.PageBannerWrapper, null, /*#__PURE__*/_react.default.createElement(_PageBanner.PageBanner, {
|
|
159
|
+
position: "web_business_page"
|
|
146
160
|
})), !errorQuantityProducts && SearchProductsComponent && !useKioskApp && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(SearchProductsComponent, {
|
|
147
161
|
handleChangeSearch: handleChangeSearch,
|
|
148
162
|
searchValue: searchValue,
|
|
@@ -278,7 +292,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
278
292
|
handleChangeProfessionalSelected: handleChangeProfessionalSelected
|
|
279
293
|
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, {
|
|
280
294
|
offSticky: true
|
|
281
|
-
}, !((business === null || business === void 0 ? void 0 : (_business$categories2 = business.categories) === null || _business$categories2 === void 0 ? void 0 : _business$categories2.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(BusinessLayoutCategories, {
|
|
295
|
+
}, !((business === null || business === void 0 ? void 0 : (_business$categories2 = business.categories) === null || _business$categories2 === void 0 ? void 0 : _business$categories2.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !categoryClicked || windowSize.width >= 993 ? /*#__PURE__*/_react.default.createElement(BusinessLayoutCategories, {
|
|
282
296
|
component: "categories",
|
|
283
297
|
categories: [{
|
|
284
298
|
id: null,
|
|
@@ -296,9 +310,15 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
296
310
|
openCategories: openCategories,
|
|
297
311
|
business: business,
|
|
298
312
|
currentCart: currentCart,
|
|
299
|
-
useKioskApp: useKioskApp
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
useKioskApp: useKioskApp,
|
|
314
|
+
setCategoryClicked: setCategoryClicked
|
|
315
|
+
}) : /*#__PURE__*/_react.default.createElement(_styles.CategorySelectedContainer, {
|
|
316
|
+
onClick: function onClick() {
|
|
317
|
+
return setCategoryClicked(false);
|
|
318
|
+
}
|
|
319
|
+
}, /*#__PURE__*/_react.default.createElement(_BsCaretLeftFill.default, null), " ", categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.name))), (categoryClicked || windowSize.width >= 993) && /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoryProductWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.WrapContent, {
|
|
320
|
+
isGroceries: true,
|
|
321
|
+
id: "groceries"
|
|
302
322
|
}, !(business !== null && business !== void 0 && business.loading) && (business === null || business === void 0 ? void 0 : (_business$previously_2 = business.previously_products) === null || _business$previously_2 === void 0 ? void 0 : _business$previously_2.length) > 0 && /*#__PURE__*/_react.default.createElement(_OrderItAgain.OrderItAgain, {
|
|
303
323
|
onProductClick: onProductClick,
|
|
304
324
|
productList: business === null || business === void 0 ? void 0 : business.previously_products,
|
|
@@ -353,12 +373,13 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
353
373
|
isSkeleton: true,
|
|
354
374
|
categories: [],
|
|
355
375
|
openBusinessInformation: openBusinessInformation
|
|
356
|
-
})))), /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
|
|
376
|
+
})))), (categoryClicked || windowSize.width >= 993) && /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
|
|
357
377
|
categories: [],
|
|
358
378
|
useKioskApp: useKioskApp,
|
|
359
379
|
category: categorySelected,
|
|
360
380
|
categoryState: categoryState,
|
|
361
381
|
isBusinessLoading: isLoading,
|
|
382
|
+
handleUpdateProducts: handleUpdateProducts,
|
|
362
383
|
errorQuantityProducts: errorQuantityProducts
|
|
363
384
|
}))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
364
385
|
width: "40%",
|