ordering-ui-external 1.4.4 → 1.5.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.a7a2180d81ab27bb0e20.js → 0.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{1.ordering-ui.a7a2180d81ab27bb0e20.js → 1.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{2.ordering-ui.a7a2180d81ab27bb0e20.js → 2.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{4.ordering-ui.a7a2180d81ab27bb0e20.js → 4.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{5.ordering-ui.a7a2180d81ab27bb0e20.js → 5.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{6.ordering-ui.a7a2180d81ab27bb0e20.js → 6.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{7.ordering-ui.a7a2180d81ab27bb0e20.js → 7.ordering-ui.b1e32f04828ea3f944e1.js} +2 -2
- package/_bundles/{7.ordering-ui.a7a2180d81ab27bb0e20.js.LICENSE.txt → 7.ordering-ui.b1e32f04828ea3f944e1.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.a7a2180d81ab27bb0e20.js → 8.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/{9.ordering-ui.a7a2180d81ab27bb0e20.js → 9.ordering-ui.b1e32f04828ea3f944e1.js} +1 -1
- package/_bundles/ordering-ui.b1e32f04828ea3f944e1.js +2 -0
- package/_bundles/{ordering-ui.a7a2180d81ab27bb0e20.js.LICENSE.txt → ordering-ui.b1e32f04828ea3f944e1.js.LICENSE.txt} +0 -0
- package/_modules/components/LogoutButton/index.js +9 -4
- package/_modules/components/PaymentOptions/index.js +14 -7
- package/_modules/components/SpinnerLoader/styles.js +1 -1
- package/_modules/components/UserProfileForm/index.js +15 -2
- package/_modules/components/UserProfileForm/styles.js +1 -1
- package/_modules/hooks/useRecaptcha.js +62 -0
- package/_modules/themes/five/src/components/AddressForm/styles.js +3 -3
- package/_modules/themes/five/src/components/AddressList/index.js +1 -1
- package/_modules/themes/five/src/components/AddressList/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +5 -5
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +12 -10
- package/_modules/themes/five/src/components/BusinessController/index.js +6 -4
- package/_modules/themes/five/src/components/BusinessController/styles.js +10 -4
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +21 -6
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +6 -17
- package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +3 -4
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -3
- package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessReviews/index.js +16 -8
- package/_modules/themes/five/src/components/BusinessReviews/styles.js +6 -4
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +58 -34
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -23
- package/_modules/themes/five/src/components/DriverTips/styles.js +1 -1
- package/_modules/themes/five/src/components/Footer/index.js +2 -1
- package/_modules/themes/five/src/components/Footer/styles.js +1 -1
- package/_modules/themes/five/src/components/Header/index.js +18 -11
- package/_modules/themes/five/src/components/Header/styles.js +7 -7
- package/_modules/themes/five/src/components/HomeHero/index.js +0 -15
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +116 -31
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +36 -37
- package/_modules/themes/five/src/components/LoginForm/index.js +62 -21
- package/_modules/themes/five/src/components/LoginForm/styles.js +1 -1
- package/_modules/themes/five/src/components/Messages/index.js +19 -3
- package/_modules/themes/five/src/components/MultiOrdersDetails/styles.js +6 -6
- package/_modules/themes/five/src/components/MyOrders/index.js +4 -4
- package/_modules/themes/five/src/components/NavigationBar/index.js +145 -34
- package/_modules/themes/five/src/components/NavigationBar/styles.js +1 -1
- package/_modules/themes/five/src/components/PaymentOptionStripe/index.js +2 -14
- package/_modules/themes/five/src/components/PaymentOptions/index.js +23 -16
- package/_modules/themes/five/src/components/PaymentOptions/styles.js +1 -1
- package/_modules/themes/five/src/components/ProductForm/index.js +9 -7
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +10 -4
- package/_modules/themes/five/src/components/ProductItemAccordion/styles.js +11 -3
- package/_modules/themes/five/src/components/ProductShare/ProductCopyURL.js +61 -0
- package/_modules/themes/five/src/components/ProductShare/index.js +107 -0
- package/_modules/themes/five/src/components/ProductShare/styles.js +40 -0
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +3 -2
- package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +18 -16
- package/_modules/themes/five/src/components/ReviewProduct/index.js +5 -3
- package/_modules/themes/five/src/components/ReviewProduct/styles.js +19 -3
- package/_modules/themes/five/src/components/SearchProducts/index.js +13 -2
- package/_modules/themes/five/src/components/SignUpApproval/index.js +6 -6
- package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +57 -17
- package/_modules/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +57 -17
- package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +57 -17
- package/_modules/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +57 -17
- package/_modules/themes/five/src/components/SignUpForm/index.js +60 -20
- package/_modules/themes/five/src/components/SignUpForm/styles.js +2 -2
- package/_modules/themes/five/src/components/SingleProductCard/index.js +36 -2
- package/_modules/themes/five/src/components/UserProfileForm/index.js +105 -8
- package/_modules/themes/five/src/components/UserProfileForm/styles.js +30 -17
- package/_modules/utils/index.js +26 -11
- package/index-template.js +11 -1
- package/package.json +2 -2
- package/src/components/LogoutButton/index.js +10 -8
- package/src/components/PaymentOptions/index.js +16 -11
- package/src/components/SpinnerLoader/styles.js +1 -0
- package/src/components/UserProfileForm/index.js +12 -2
- package/src/components/UserProfileForm/styles.js +1 -1
- package/src/hooks/useRecaptcha.js +40 -0
- package/src/themes/five/src/components/AddressForm/styles.js +3 -2
- package/src/themes/five/src/components/AddressList/index.js +1 -1
- package/src/themes/five/src/components/AddressList/styles.js +2 -2
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +74 -71
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +69 -20
- package/src/themes/five/src/components/BusinessController/index.js +3 -1
- package/src/themes/five/src/components/BusinessController/styles.js +8 -0
- package/src/themes/five/src/components/BusinessListingSearch/index.js +16 -1
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +6 -18
- package/src/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
- package/src/themes/five/src/components/BusinessProductsListing/index.js +2 -0
- package/src/themes/five/src/components/BusinessProductsListing/styles.js +2 -3
- package/src/themes/five/src/components/BusinessReviews/index.js +17 -10
- package/src/themes/five/src/components/BusinessReviews/styles.js +7 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +64 -19
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +99 -1
- package/src/themes/five/src/components/DriverTips/styles.js +1 -1
- package/src/themes/five/src/components/Footer/index.js +9 -5
- package/src/themes/five/src/components/Footer/styles.js +2 -6
- package/src/themes/five/src/components/Header/index.js +16 -8
- package/src/themes/five/src/components/Header/styles.js +49 -8
- package/src/themes/five/src/components/HomeHero/index.js +0 -6
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +163 -60
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +145 -82
- package/src/themes/five/src/components/LoginForm/index.js +30 -4
- package/src/themes/five/src/components/LoginForm/styles.js +8 -0
- package/src/themes/five/src/components/Messages/index.js +8 -2
- package/src/themes/five/src/components/MultiOrdersDetails/styles.js +34 -1
- package/src/themes/five/src/components/MyOrders/index.js +4 -4
- package/src/themes/five/src/components/NavigationBar/index.js +153 -39
- package/src/themes/five/src/components/NavigationBar/styles.js +2 -2
- package/src/themes/five/src/components/PaymentOptionStripe/index.js +2 -14
- package/src/themes/five/src/components/PaymentOptions/index.js +13 -7
- package/src/themes/five/src/components/PaymentOptions/styles.js +5 -0
- package/src/themes/five/src/components/ProductForm/index.js +9 -7
- package/src/themes/five/src/components/ProductItemAccordion/index.js +67 -53
- package/src/themes/five/src/components/ProductItemAccordion/styles.js +26 -0
- package/src/themes/five/src/components/ProductShare/ProductCopyURL.js +53 -0
- package/src/themes/five/src/components/ProductShare/index.js +104 -0
- package/src/themes/five/src/components/ProductShare/styles.js +165 -0
- package/src/themes/five/src/components/RenderProductsLayout/index.js +2 -8
- package/src/themes/five/src/components/RenderProductsLayout/styles.js +5 -0
- package/src/themes/five/src/components/ReviewProduct/index.js +10 -3
- package/src/themes/five/src/components/ReviewProduct/styles.js +43 -0
- package/src/themes/five/src/components/SearchProducts/index.js +16 -3
- package/src/themes/five/src/components/SignUpApproval/index.js +8 -7
- package/src/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +26 -2
- package/src/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +26 -2
- package/src/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +26 -2
- package/src/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +26 -2
- package/src/themes/five/src/components/SignUpForm/index.js +26 -1
- package/src/themes/five/src/components/SignUpForm/styles.js +9 -2
- package/src/themes/five/src/components/SingleProductCard/index.js +26 -1
- package/src/themes/five/src/components/UserPopover/index.js +1 -1
- package/src/themes/five/src/components/UserProfileForm/index.js +83 -5
- package/src/themes/five/src/components/UserProfileForm/styles.js +49 -0
- package/src/utils/index.js +36 -9
- package/template/app.js +12 -11
- package/template/assets/images/amex.svg +30 -0
- package/template/assets/images/diners.svg +16 -0
- package/template/assets/images/discover.svg +17 -0
- package/template/assets/images/jcb.svg +33 -0
- package/template/assets/images/unionpay.svg +25 -0
- package/template/components/HelmetTags/index.js +1 -1
- package/template/components/ScrollToTop/index.js +7 -5
- package/template/pages/BusinessProductsList/index.js +8 -4
- package/template/pages/MyOrders/index.js +4 -1
- package/template/pages/OrderDetails/index.js +11 -2
- package/template/pages/Profile/index.js +8 -2
- package/_bundles/ordering-ui.a7a2180d81ab27bb0e20.js +0 -2
|
@@ -13,11 +13,14 @@ var _styles = require("./styles");
|
|
|
13
13
|
var _Modal = require("../../../Modal");
|
|
14
14
|
var _Buttons = require("../../../../styles/Buttons");
|
|
15
15
|
var _AddressForm = require("../../../AddressForm");
|
|
16
|
+
var _LoginForm = require("../../../LoginForm");
|
|
17
|
+
var _SignUpForm = require("../../../SignUpForm");
|
|
18
|
+
var _ForgotPasswordForm = require("../../../ForgotPasswordForm");
|
|
16
19
|
var _AddressList = require("../../../AddressList");
|
|
20
|
+
var _useWindowSize = require("../../../../../../../hooks/useWindowSize");
|
|
17
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
22
|
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
23
|
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; }
|
|
20
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
24
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
25
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
26
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -28,12 +31,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
28
31
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
29
32
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
33
|
var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
31
|
-
var
|
|
32
|
-
var onFindBusiness = props.onFindBusiness
|
|
33
|
-
contentPosition = props.contentPosition;
|
|
34
|
+
var _theme$images, _theme$images$general, _theme$images2, _theme$images2$logos, _theme$defaultLanguag, _theme$defaultLanguag2, _orderState$options2, _orderState$options2$, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _orderState$options3, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10;
|
|
35
|
+
var onFindBusiness = props.onFindBusiness;
|
|
34
36
|
var _useSession = (0, _orderingComponentsExternal.useSession)(),
|
|
35
|
-
_useSession2 = _slicedToArray(_useSession,
|
|
36
|
-
auth = _useSession2[0].auth
|
|
37
|
+
_useSession2 = _slicedToArray(_useSession, 2),
|
|
38
|
+
auth = _useSession2[0].auth,
|
|
39
|
+
login = _useSession2[1].login;
|
|
37
40
|
var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
|
|
38
41
|
_useOrder2 = _slicedToArray(_useOrder, 1),
|
|
39
42
|
orderState = _useOrder2[0];
|
|
@@ -49,6 +52,15 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
|
49
52
|
setModals = _useState2[1];
|
|
50
53
|
var theme = (0, _styledComponents.useTheme)();
|
|
51
54
|
var userCustomer = parseInt(window.localStorage.getItem('user-customer'));
|
|
55
|
+
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
56
|
+
var _useState3 = (0, _react.useState)(false),
|
|
57
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
+
authModalOpen = _useState4[0],
|
|
59
|
+
setAuthModalOpen = _useState4[1];
|
|
60
|
+
var _useState5 = (0, _react.useState)(null),
|
|
61
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
62
|
+
modalPageToShow = _useState6[0],
|
|
63
|
+
setModalPageToShow = _useState6[1];
|
|
52
64
|
var handleFindBusinesses = function handleFindBusinesses() {
|
|
53
65
|
var _orderState$options, _orderState$options$a;
|
|
54
66
|
if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options$a = _orderState$options.address) !== null && _orderState$options$a !== void 0 && _orderState$options$a.location)) {
|
|
@@ -74,6 +86,31 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
|
74
86
|
}));
|
|
75
87
|
}
|
|
76
88
|
};
|
|
89
|
+
var handleOpenLoginSignUp = function handleOpenLoginSignUp(index) {
|
|
90
|
+
setModalPageToShow(index);
|
|
91
|
+
setAuthModalOpen(true);
|
|
92
|
+
};
|
|
93
|
+
var handleCustomModalClick = function handleCustomModalClick(e, _ref) {
|
|
94
|
+
var page = _ref.page;
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
setModalPageToShow(page);
|
|
97
|
+
};
|
|
98
|
+
var closeAuthModal = function closeAuthModal() {
|
|
99
|
+
setAuthModalOpen(false);
|
|
100
|
+
setModalPageToShow(null);
|
|
101
|
+
};
|
|
102
|
+
var handleSuccessLogin = function handleSuccessLogin(user) {
|
|
103
|
+
if (user) {
|
|
104
|
+
closeAuthModal();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var handleSuccessSignup = function handleSuccessSignup(user) {
|
|
108
|
+
var _user$session;
|
|
109
|
+
login({
|
|
110
|
+
user: user,
|
|
111
|
+
token: user === null || user === void 0 ? void 0 : (_user$session = user.session) === null || _user$session === void 0 ? void 0 : _user$session.access_token
|
|
112
|
+
});
|
|
113
|
+
};
|
|
77
114
|
(0, _react.useEffect)(function () {
|
|
78
115
|
return function () {
|
|
79
116
|
return setModals({
|
|
@@ -82,27 +119,32 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
|
82
119
|
});
|
|
83
120
|
};
|
|
84
121
|
}, []);
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}), /*#__PURE__*/_react.default.createElement(_styles.HeroContainer, {
|
|
94
|
-
bgimage: (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.homeHero
|
|
95
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, {
|
|
96
|
-
contentPosition: contentPosition
|
|
97
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, t('TITLE_HOME', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.TITLE_HOME) || 'All We need is Food.')), /*#__PURE__*/_react.default.createElement(_styles.Slogan, null, t('SUBTITLE_HOME', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.SUBTITLE_HOME) || 'Let\'s start to order food now')), /*#__PURE__*/_react.default.createElement(_styles.WrapInput, {
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(_styles.HeroContainer, {
|
|
123
|
+
bgimage: (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.homeHero,
|
|
124
|
+
mb: !auth && '30vh'
|
|
125
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_styles.LogoWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
126
|
+
alt: "Logotype",
|
|
127
|
+
src: theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$logos = _theme$images2.logos) === null || _theme$images2$logos === void 0 ? void 0 : _theme$images2$logos.logotypeInvert,
|
|
128
|
+
loading: "lazy"
|
|
129
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.HeroContent, null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, t('TITLE_HOME', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.TITLE_HOME) || 'All We need is Food.')), /*#__PURE__*/_react.default.createElement(_styles.Slogan, null, t('SUBTITLE_HOME', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.SUBTITLE_HOME) || 'Let\'s start to order food now')), /*#__PURE__*/_react.default.createElement(_styles.WrapInput, {
|
|
98
130
|
onClick: handleAddressInput,
|
|
99
131
|
withIcon: true
|
|
100
|
-
}, /*#__PURE__*/_react.default.createElement(_HiOutlineLocationMarker.default, null), /*#__PURE__*/_react.default.createElement("p", null, (orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : (_orderState$options2$ = _orderState$options2.address) === null || _orderState$options2$ === void 0 ? void 0 : _orderState$options2$.address) || t('
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(_HiOutlineLocationMarker.default, null), /*#__PURE__*/_react.default.createElement("p", null, (orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : (_orderState$options2$ = _orderState$options2.address) === null || _orderState$options2$ === void 0 ? void 0 : _orderState$options2$.address) || t('WHERE_DO_WE_DELIVERY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.WHERE_DO_WE_DELIVERY) || 'Where do we delivery?'))), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
101
133
|
color: "primary",
|
|
102
134
|
name: "find-business",
|
|
103
135
|
onClick: handleFindBusinesses
|
|
104
|
-
}, t('FIND_BUSINESSES', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
105
|
-
|
|
136
|
+
}, t('FIND_BUSINESSES', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.FIND_BUSINESSES) || 'Find businesses')))), windowSize.width < 576 && !auth && /*#__PURE__*/_react.default.createElement(_styles.UseAccount, null, /*#__PURE__*/_react.default.createElement(_styles.SectionHeader, null, t('YOUR_ACCOUNT', 'Use your account')), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
137
|
+
color: "primary",
|
|
138
|
+
onClick: function onClick() {
|
|
139
|
+
return handleOpenLoginSignUp('login');
|
|
140
|
+
}
|
|
141
|
+
}, "login"), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
142
|
+
color: "primary",
|
|
143
|
+
onClick: function onClick() {
|
|
144
|
+
return handleOpenLoginSignUp('signup');
|
|
145
|
+
}
|
|
146
|
+
}, "signUp")), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
147
|
+
title: t('WHERE_DO_WE_DELIVERY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.WHERE_DO_WE_DELIVERY) || 'Where do we delivery?'),
|
|
106
148
|
open: modals.formOpen,
|
|
107
149
|
onClose: function onClose() {
|
|
108
150
|
return setModals(_objectSpread(_objectSpread({}, modals), {}, {
|
|
@@ -128,6 +170,7 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
|
128
170
|
}));
|
|
129
171
|
}
|
|
130
172
|
})), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
173
|
+
title: t('WHERE_DO_WE_DELIVERY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.WHERE_DO_WE_DELIVERY) || 'Where do we delivery?'),
|
|
131
174
|
open: modals.listOpen,
|
|
132
175
|
width: "70%",
|
|
133
176
|
onClose: function onClose() {
|
|
@@ -147,14 +190,56 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
|
|
|
147
190
|
onAccept: function onAccept() {
|
|
148
191
|
return handleFindBusinesses();
|
|
149
192
|
}
|
|
150
|
-
}))
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
193
|
+
})), authModalOpen && !auth && /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
194
|
+
open: authModalOpen,
|
|
195
|
+
onRemove: function onRemove() {
|
|
196
|
+
return closeAuthModal();
|
|
197
|
+
},
|
|
198
|
+
width: "50%",
|
|
199
|
+
authModal: true
|
|
200
|
+
}, modalPageToShow === 'login' && /*#__PURE__*/_react.default.createElement(_LoginForm.LoginForm, {
|
|
201
|
+
handleSuccessLogin: handleSuccessLogin,
|
|
202
|
+
elementLinkToSignup: /*#__PURE__*/_react.default.createElement("a", {
|
|
203
|
+
onClick: function onClick(e) {
|
|
204
|
+
return handleCustomModalClick(e, {
|
|
205
|
+
page: 'signup'
|
|
206
|
+
});
|
|
207
|
+
},
|
|
208
|
+
href: "#"
|
|
209
|
+
}, t('CREATE_ACCOUNT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.CREATE_ACCOUNT) || 'Create account')),
|
|
210
|
+
elementLinkToForgotPassword: /*#__PURE__*/_react.default.createElement("a", {
|
|
211
|
+
onClick: function onClick(e) {
|
|
212
|
+
return handleCustomModalClick(e, {
|
|
213
|
+
page: 'forgotpassword'
|
|
214
|
+
});
|
|
215
|
+
},
|
|
216
|
+
href: "#"
|
|
217
|
+
}, t('RESET_PASSWORD', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.RESET_PASSWORD) || 'Reset password')),
|
|
218
|
+
useLoginByCellphone: true,
|
|
219
|
+
isPopup: true
|
|
220
|
+
}), modalPageToShow === 'signup' && /*#__PURE__*/_react.default.createElement(_SignUpForm.SignUpForm, {
|
|
221
|
+
elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
|
|
222
|
+
onClick: function onClick(e) {
|
|
223
|
+
return handleCustomModalClick(e, {
|
|
224
|
+
page: 'login'
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
href: "#"
|
|
228
|
+
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.LOGIN) || 'Login')),
|
|
229
|
+
useLoginByCellphone: true,
|
|
230
|
+
useChekoutFileds: true,
|
|
231
|
+
handleSuccessSignup: handleSuccessSignup,
|
|
232
|
+
isPopup: true
|
|
233
|
+
}), modalPageToShow === 'forgotpassword' && /*#__PURE__*/_react.default.createElement(_ForgotPasswordForm.ForgotPasswordForm, {
|
|
234
|
+
elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
|
|
235
|
+
onClick: function onClick(e) {
|
|
236
|
+
return handleCustomModalClick(e, {
|
|
237
|
+
page: 'login'
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
href: "#"
|
|
241
|
+
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.LOGIN) || 'Login')),
|
|
242
|
+
isPopup: true
|
|
243
|
+
})));
|
|
159
244
|
};
|
|
160
245
|
exports.OriginalHomeHero = OriginalHomeHero;
|
|
@@ -4,18 +4,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapInput = exports.Title = exports.Slogan = exports.HeroContainerStyled = exports.HeroContainer = exports.ContentWrapper = void 0;
|
|
7
|
+
exports.WrapInput = exports.UseAccount = exports.Title = exports.Slogan = exports.SectionHeader = exports.LogoWrapper = exports.HeroContent = exports.HeroContainerStyled = exports.HeroContainer = exports.ContentWrapper = 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;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
-
var HeroContainerStyled = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height:
|
|
17
|
-
var
|
|
18
|
-
return
|
|
16
|
+
var HeroContainerStyled = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: fit-content;\n height: 374px;\n position:relative;\n ", "\n\n\n ", "\n\n @media (min-width: 375px) {\n height: 374px;\n }\n\n @media (min-width: 567px) {\n height: calc(100vh - 65px);\n margin-bottom: 0;\n }\n"])), function (_ref) {
|
|
17
|
+
var mb = _ref.mb;
|
|
18
|
+
return mb && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n "])), mb);
|
|
19
|
+
}, function (_ref2) {
|
|
20
|
+
var bgimage = _ref2.bgimage;
|
|
21
|
+
return bgimage && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n "])));
|
|
19
22
|
});
|
|
20
23
|
exports.HeroContainerStyled = HeroContainerStyled;
|
|
21
24
|
var HeroContainer = function HeroContainer(props) {
|
|
@@ -30,50 +33,46 @@ var HeroContainer = function HeroContainer(props) {
|
|
|
30
33
|
}), props.children);
|
|
31
34
|
};
|
|
32
35
|
exports.HeroContainer = HeroContainer;
|
|
33
|
-
var
|
|
34
|
-
var _props$theme$colors$t;
|
|
35
|
-
return (_props$theme$colors$t = props.theme.colors.titleHomeColor) !== null && _props$theme$colors$t !== void 0 ? _props$theme$colors$t : '#FFFFFF';
|
|
36
|
-
}, function (props) {
|
|
36
|
+
var ContentWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n height: 100%;\n padding: 0px 10vw 0px;\n background-color: #0000004D;\n\n input {\n width: 90%;\n margin-bottom: 15px;\n }\n\n @media (min-width: 576px) {\n justify-content: center;\n padding: 0px 40px 0px;\n input {\n width: 97%;\n }\n }\n\n @media (min-width: 768px) {\n ", "\n }\n"])), function (props) {
|
|
37
37
|
var _props$theme;
|
|
38
|
-
return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(
|
|
38
|
+
return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: 0px 40px 0px;\n "])));
|
|
39
39
|
});
|
|
40
|
-
exports.
|
|
41
|
-
var
|
|
42
|
-
var _props$theme$colors$s;
|
|
43
|
-
return (_props$theme$colors$s = props.theme.colors.subtitleHomeColor) !== null && _props$theme$colors$s !== void 0 ? _props$theme$colors$s : '#FFFFFF';
|
|
44
|
-
}, function (props) {
|
|
40
|
+
exports.ContentWrapper = ContentWrapper;
|
|
41
|
+
var Title = _styledComponents.default.h1(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0px;\n text-align: left;\n font-weight: 600;\n font-size: 30px;\n line-height: 36px;\n letter-spacing: 0px;\n color: #FFFFFF;\n text-shadow: 0px 3px 6px #2c2e33;\n opacity: 1;\n\n ", "\n\n @media (min-width: 381px) {\n font-size: 35px;\n }\n\n\n @media (min-width: 576px) {\n font-size: 40px;\n line-height: initial;\n }\n\n @media (min-width: 850px) {\n font-size: 72px;\n }\n"])), function (props) {
|
|
45
42
|
var _props$theme2;
|
|
46
|
-
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(
|
|
43
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
44
|
+
});
|
|
45
|
+
exports.Title = Title;
|
|
46
|
+
var Slogan = _styledComponents.default.p(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 0px;\n text-align: left;\n font-size: .96rem;\n line-height: 24px;\n letter-spacing: 0px;\n color: #FFFFFF;\n opacity: 1;\n text-shadow: 0px 3px 6px #2c2e33;\n margin-bottom: 30px;\n\n ", "\n\n @media (min-width: 480px) {\n font-size: 24px;\n line-height: initial;\n margin-bottom: 37px;\n }\n"])), function (props) {
|
|
47
|
+
var _props$theme3;
|
|
48
|
+
return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
47
49
|
});
|
|
48
50
|
exports.Slogan = Slogan;
|
|
49
|
-
var WrapInput = _styledComponents.default.div(
|
|
50
|
-
var withIcon =
|
|
51
|
-
return withIcon && (0, _styledComponents.css)(
|
|
52
|
-
var _props$
|
|
53
|
-
return ((_props$
|
|
51
|
+
var WrapInput = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n background: #FFFFFF;\n padding: 8px 16px;\n border: 1px solid #DEE2E6;\n box-sizing: border-box;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 50px;\n display: flex;\n align-items: center;\n margin-bottom: 22px;\n\n ", "\n\n p{\n color: ", ";\n position: relative;\n margin: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 12px;\n line-height: 18px;\n @media (min-width: 576px) {\n font-size: 1rem;\n line-height: initial;\n }\n }\n\n svg {\n color: ", ";\n font-size: 22px;\n ", "\n\n @media (min-width: 576px) {\n ", "\n }\n }\n"])), function (_ref3) {
|
|
52
|
+
var withIcon = _ref3.withIcon;
|
|
53
|
+
return withIcon && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: calc(100% - 20px);\n box-sizing: border-box;\n\n &::before {\n content: \"\";\n position: absolute;\n right: 5px;\n top: 0;\n bottom: 18px;\n width: 15px;\n\n ", "\n }\n\n @media (min-width: 576px) {\n padding: 10px 25px;\n margin-bottom: 27px;\n }\n\n @media (min-width: 1024px) {\n width: calc(50% - 20px);\n }\n "])), function (props) {
|
|
54
|
+
var _props$theme4;
|
|
55
|
+
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n left: 5px;\n right: initial;\n "])));
|
|
54
56
|
});
|
|
55
57
|
}, function (props) {
|
|
56
58
|
return props.theme.colors.darkTextColor;
|
|
57
59
|
}, function (props) {
|
|
58
60
|
return props.theme.colors.primary;
|
|
59
|
-
}, function (props) {
|
|
60
|
-
var _props$theme4;
|
|
61
|
-
return (_props$theme4 = props.theme) !== null && _props$theme4 !== void 0 && _props$theme4.rtl ? (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: 20px;\n "]))) : (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-right: 20px;\n "])));
|
|
62
|
-
});
|
|
63
|
-
exports.WrapInput = WrapInput;
|
|
64
|
-
var ContentWrapper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: #0000004D;\n align-items: center;\n justify-content: center;\n \n ", "\n\n ", "\n\n ", "\n\n ", "\n\n > div {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: calc(100% - 40px);\n position: relative;\n padding: 20px;\n\n ", "\n\n button {\n width: 180px;\n font-size: 18px;\n padding-top: 5px;\n padding-bottom: 5px;\n }\n\n input {\n width: 90%;\n margin-bottom: 15px;\n }\n\n @media (min-width: 425px) {\n input {\n width: 97%;\n }\n }\n\n @media (min-width: 768px) {\n padding: 40px;\n width: 50%;\n ", "\n }\n }\n\n"])), function (props) {
|
|
65
|
-
return props.contentPosition === 'left' && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: left;\n "])));
|
|
66
|
-
}, function (props) {
|
|
67
|
-
return props.contentPosition === 'right' && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: right;\n "])));
|
|
68
|
-
}, function (props) {
|
|
69
|
-
return props.contentPosition === 'top' && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n align-items: start;\n justify-content: center;\n "])));
|
|
70
|
-
}, function (props) {
|
|
71
|
-
return props.contentPosition === 'bottom' && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n align-items: end;\n justify-content: center;\n "])));
|
|
72
61
|
}, function (props) {
|
|
73
62
|
var _props$theme5;
|
|
74
|
-
return (
|
|
63
|
+
return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.rtl ? (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-left: 12px;\n "]))) : (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-right: 12px;\n "])));
|
|
75
64
|
}, function (props) {
|
|
76
65
|
var _props$theme6;
|
|
77
|
-
return (
|
|
66
|
+
return (_props$theme6 = props.theme) !== null && _props$theme6 !== void 0 && _props$theme6.rtl ? (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 20px;\n "]))) : (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-right: 20px;\n "])));
|
|
67
|
+
});
|
|
68
|
+
exports.WrapInput = WrapInput;
|
|
69
|
+
var UseAccount = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n width: 100%;\n min-height: 30vh;\n padding: 10vw;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n > button {\n width: 100%;\n padding-top: 10px;\n padding-bottom: 10px;\n font-size: 14px;\n line-height: 24px;\n }\n\n > *:last-child {\n margin-top: 14px;\n background-color: #E9F2FE;\n color: ", ";\n }\n\n @media (min-width: 576px) {\n display: none;\n }\n"])), function (props) {
|
|
70
|
+
return props.theme.colors.primary;
|
|
78
71
|
});
|
|
79
|
-
exports.
|
|
72
|
+
exports.UseAccount = UseAccount;
|
|
73
|
+
var SectionHeader = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n font-size: 24px;\n font-weight: 600;\n line-height: 30px;\n color: #344050;\n margin: 0;\n margin-bottom: 27px;\n width: 100%;\n"])));
|
|
74
|
+
exports.SectionHeader = SectionHeader;
|
|
75
|
+
var LogoWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 150px;\n margin: 53px auto;\n display: flex;\n justify-content: center;\n img {\n width: 100%;\n object-fit: fill;\n }\n"])));
|
|
76
|
+
exports.LogoWrapper = LogoWrapper;
|
|
77
|
+
var HeroContent = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n button{\n font-size: 12px;\n line-height: 18px;\n padding: 10px 16px;\n margin-bottom: 45px;\n white-space: nowrap;\n\n @media (min-width: 576px) {\n padding-top: 5px;\n padding-bottom: 5px;\n font-size: 18px;\n width: 180px;\n line-height: initial;\n }\n }\n"])));
|
|
78
|
+
exports.HeroContent = HeroContent;
|
|
@@ -23,6 +23,7 @@ var _FacebookLogin = require("../FacebookLogin");
|
|
|
23
23
|
var _AppleLogin = require("../AppleLogin");
|
|
24
24
|
var _SmsLogin = require("../../../../../components/SmsLogin");
|
|
25
25
|
var _useCountdownTimer3 = require("../../../../../hooks/useCountdownTimer");
|
|
26
|
+
var _useRecaptcha3 = require("../../../../../hooks/useRecaptcha");
|
|
26
27
|
var _utils = require("../../../../../utils");
|
|
27
28
|
var _GoogleLogin = require("../GoogleLogin");
|
|
28
29
|
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
@@ -88,6 +89,9 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
88
89
|
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
89
90
|
configs = _useConfig2[0].configs;
|
|
90
91
|
var formMethods = (0, _reactHookForm.useForm)();
|
|
92
|
+
var _useRecaptcha = (0, _useRecaptcha3.useRecaptcha)(enableReCaptcha),
|
|
93
|
+
_useRecaptcha2 = _slicedToArray(_useRecaptcha, 1),
|
|
94
|
+
recaptchaConfig = _useRecaptcha2[0];
|
|
91
95
|
var _useState = (0, _react.useState)({
|
|
92
96
|
open: false,
|
|
93
97
|
content: []
|
|
@@ -95,37 +99,43 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
95
99
|
_useState2 = _slicedToArray(_useState, 2),
|
|
96
100
|
alertState = _useState2[0],
|
|
97
101
|
setAlertState = _useState2[1];
|
|
102
|
+
var _useState3 = (0, _react.useState)({
|
|
103
|
+
version: '',
|
|
104
|
+
siteKey: ''
|
|
105
|
+
}),
|
|
106
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
107
|
+
reCaptchaVersion = _useState4[0],
|
|
108
|
+
setRecaptchaVersion = _useState4[1];
|
|
98
109
|
var _useSession = (0, _orderingComponentsExternal.useSession)(),
|
|
99
110
|
_useSession2 = _slicedToArray(_useSession, 2),
|
|
100
111
|
login = _useSession2[1].login;
|
|
101
|
-
var _useState3 = (0, _react.useState)(false),
|
|
102
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
103
|
-
passwordSee = _useState4[0],
|
|
104
|
-
setPasswordSee = _useState4[1];
|
|
105
112
|
var _useState5 = (0, _react.useState)(false),
|
|
106
113
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
passwordSee = _useState6[0],
|
|
115
|
+
setPasswordSee = _useState6[1];
|
|
109
116
|
var _useState7 = (0, _react.useState)(false),
|
|
110
117
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
111
|
-
|
|
112
|
-
|
|
118
|
+
loginWithOtpState = _useState8[0],
|
|
119
|
+
setLoginWithOtpState = _useState8[1];
|
|
113
120
|
var _useState9 = (0, _react.useState)(false),
|
|
114
121
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
var _useState11 = (0, _react.useState)(
|
|
122
|
+
willVerifyOtpState = _useState10[0],
|
|
123
|
+
setWillVerifyOtpState = _useState10[1];
|
|
124
|
+
var _useState11 = (0, _react.useState)(false),
|
|
118
125
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
var _useState13 = (0, _react.useState)(
|
|
126
|
+
validPhoneFieldState = _useState12[0],
|
|
127
|
+
setValidPhoneField = _useState12[1];
|
|
128
|
+
var _useState13 = (0, _react.useState)(null),
|
|
122
129
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
projectName = _useState14[0],
|
|
131
|
+
setProjectName = _useState14[1];
|
|
132
|
+
var _useState15 = (0, _react.useState)(false),
|
|
133
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
134
|
+
submitted = _useState16[0],
|
|
135
|
+
setSubmitted = _useState16[1];
|
|
125
136
|
var _useCountdownTimer = (0, _useCountdownTimer3.useCountdownTimer)(600, !(checkPhoneCodeState !== null && checkPhoneCodeState !== void 0 && checkPhoneCodeState.loading) && willVerifyOtpState),
|
|
126
137
|
_useCountdownTimer2 = _slicedToArray(_useCountdownTimer, 3),
|
|
127
138
|
otpLeftTime = _useCountdownTimer2[0],
|
|
128
|
-
_ = _useCountdownTimer2[1],
|
|
129
139
|
resetOtpLeftTime = _useCountdownTimer2[2];
|
|
130
140
|
var isOtpEmail = loginTab === 'otp' && otpType === 'email';
|
|
131
141
|
var isOtpCellphone = loginTab === 'otp' && otpType === 'cellphone';
|
|
@@ -288,10 +298,32 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
288
298
|
(0, _react.useEffect)(function () {
|
|
289
299
|
var _formState$result;
|
|
290
300
|
if (!formState.loading && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error) {
|
|
291
|
-
var _formState$result2;
|
|
301
|
+
var _formState$result2, _formState$result2$re, _formState$result3;
|
|
302
|
+
if (((_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : (_formState$result2$re = _formState$result2.result) === null || _formState$result2$re === void 0 ? void 0 : _formState$result2$re[0]) === 'ERROR_AUTH_VERIFICATION_CODE') {
|
|
303
|
+
var _configs$security_rec;
|
|
304
|
+
if (configs !== null && configs !== void 0 && (_configs$security_rec = configs.security_recaptcha_site_key) !== null && _configs$security_rec !== void 0 && _configs$security_rec.value) {
|
|
305
|
+
var _configs$security_rec2;
|
|
306
|
+
setRecaptchaVersion({
|
|
307
|
+
version: 'v2',
|
|
308
|
+
siteKey: configs === null || configs === void 0 ? void 0 : (_configs$security_rec2 = configs.security_recaptcha_site_key) === null || _configs$security_rec2 === void 0 ? void 0 : _configs$security_rec2.value
|
|
309
|
+
});
|
|
310
|
+
setAlertState({
|
|
311
|
+
open: true,
|
|
312
|
+
content: [t('TRY_AGAIN', 'Please try again')]
|
|
313
|
+
});
|
|
314
|
+
setSubmitted(false);
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
setAlertState({
|
|
318
|
+
open: true,
|
|
319
|
+
content: [t('CONFIG_DOESNOT_RECAPTCHA_KEY', 'the config doesn\'t have recaptcha site key')]
|
|
320
|
+
});
|
|
321
|
+
setSubmitted(false);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
292
324
|
setAlertState({
|
|
293
325
|
open: true,
|
|
294
|
-
content: ((_formState$
|
|
326
|
+
content: ((_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.result) || [t('ERROR', 'Error')]
|
|
295
327
|
});
|
|
296
328
|
setSubmitted(false);
|
|
297
329
|
}
|
|
@@ -368,6 +400,14 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
368
400
|
if (ordering.project === null || !submitted || !useRootPoint) return;
|
|
369
401
|
handleButtonLoginClick();
|
|
370
402
|
}, [ordering, submitted]);
|
|
403
|
+
(0, _react.useEffect)(function () {
|
|
404
|
+
if (recaptchaConfig !== null && recaptchaConfig !== void 0 && recaptchaConfig.siteKey) {
|
|
405
|
+
setRecaptchaVersion({
|
|
406
|
+
version: recaptchaConfig === null || recaptchaConfig === void 0 ? void 0 : recaptchaConfig.version,
|
|
407
|
+
siteKey: recaptchaConfig === null || recaptchaConfig === void 0 ? void 0 : recaptchaConfig.siteKey
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}, [recaptchaConfig]);
|
|
371
411
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
|
|
372
412
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
373
413
|
key: i
|
|
@@ -513,7 +553,8 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
513
553
|
}), !loginWithOtpState && loginTab !== 'otp' && elementLinkToForgotPassword && /*#__PURE__*/_react.default.createElement(_styles.RedirectLink, {
|
|
514
554
|
isPopup: isPopup
|
|
515
555
|
}, /*#__PURE__*/_react.default.createElement("span", null, t('FORGOT_YOUR_PASSWORD', 'Forgot your password?')), elementLinkToForgotPassword), props.isRecaptchaEnable && enableReCaptcha && /*#__PURE__*/_react.default.createElement(_styles.ReCaptchaWrapper, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReCaptcha, {
|
|
516
|
-
handleReCaptcha: handleReCaptcha
|
|
556
|
+
handleReCaptcha: handleReCaptcha,
|
|
557
|
+
reCaptchaVersion: reCaptchaVersion
|
|
517
558
|
})), !willVerifyOtpState && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
518
559
|
color: "primary",
|
|
519
560
|
onClick: formMethods.handleSubmit(onSubmit),
|
|
@@ -525,7 +566,7 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
525
566
|
onClick: function onClick() {
|
|
526
567
|
setLoginWithOtpState(false);
|
|
527
568
|
}
|
|
528
|
-
}, t('CANCEL', 'Cancel'))), elementLinkToSignup && !loginWithOtpState && /*#__PURE__*/_react.default.createElement(_styles.RedirectLink, {
|
|
569
|
+
}, t('CANCEL', 'Cancel'))), elementLinkToSignup && !loginWithOtpState && loginTab !== 'otp' && /*#__PURE__*/_react.default.createElement(_styles.RedirectLink, {
|
|
529
570
|
register: true,
|
|
530
571
|
isPopup: isPopup,
|
|
531
572
|
className: "new-account"
|
|
@@ -32,7 +32,7 @@ var Title = _styledComponents.default.h1(_templateObject5 || (_templateObject5 =
|
|
|
32
32
|
return props.theme.colors.darkTextColor;
|
|
33
33
|
});
|
|
34
34
|
exports.Title = Title;
|
|
35
|
-
var LoginWith = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: ", ";\n border-bottom: 1px solid #E9ECEF;\n font-size: 14px;\n margin-bottom: 10px;\n\n @media (min-width: 425px) {\n font-size: 18px;\n }\n\n @media (min-width: 768px) {\n font-size: 14px;\n }\n\n @media (min-width: 992px) {\n font-size: ", ";\n }\n\n @media (min-width: 1200px) {\n ", ";\n }\n"])), function (_ref5) {
|
|
35
|
+
var LoginWith = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: ", ";\n border-bottom: 1px solid #E9ECEF;\n font-size: 14px;\n margin-bottom: 10px;\n overflow-x: auto;\n\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: 425px) {\n font-size: 18px;\n }\n\n @media (min-width: 768px) {\n font-size: 14px;\n }\n\n @media (min-width: 992px) {\n font-size: ", ";\n }\n\n @media (min-width: 1200px) {\n ", ";\n }\n"])), function (_ref5) {
|
|
36
36
|
var isPopup = _ref5.isPopup;
|
|
37
37
|
return isPopup ? '100%' : '80%';
|
|
38
38
|
}, function (_ref6) {
|
|
@@ -38,7 +38,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
var filterSpecialStatus = ['prepared_in', 'delivered_in', 'delivery_datetime'];
|
|
40
40
|
var MessagesUI = function MessagesUI(props) {
|
|
41
|
-
var _messages$messages, _order$business, _theme$images, _theme$images$dummies, _order$business2, _order$driver, _order$driver2, _order$business3, _theme$images2, _theme$images2$dummie, _order$driver3, _order$business4, _order$driver4, _order$
|
|
41
|
+
var _messages$messages, _order$business, _theme$images, _theme$images$dummies, _order$business2, _order$driver, _order$driver2, _order$business3, _theme$images2, _theme$images2$dummie, _order$driver3, _order$business4, _order$driver4, _order$business6, _theme$images3, _theme$images3$dummie, _order$driver5, _messagesToShow$messa2;
|
|
42
42
|
var order = props.order,
|
|
43
43
|
messages = props.messages,
|
|
44
44
|
handleSend = props.handleSend,
|
|
@@ -74,6 +74,9 @@ var MessagesUI = function MessagesUI(props) {
|
|
|
74
74
|
var _useSession = (0, _orderingComponentsExternal.useSession)(),
|
|
75
75
|
_useSession2 = _slicedToArray(_useSession, 1),
|
|
76
76
|
user = _useSession2[0].user;
|
|
77
|
+
var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
|
|
78
|
+
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
79
|
+
events = _useEvent2[0];
|
|
77
80
|
var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
|
|
78
81
|
_useUtils2 = _slicedToArray(_useUtils, 1),
|
|
79
82
|
_useUtils2$ = _useUtils2[0],
|
|
@@ -296,6 +299,14 @@ var MessagesUI = function MessagesUI(props) {
|
|
|
296
299
|
content: []
|
|
297
300
|
});
|
|
298
301
|
};
|
|
302
|
+
var goToBusiness = function goToBusiness(slug) {
|
|
303
|
+
events.emit('go_to_page', {
|
|
304
|
+
page: 'business',
|
|
305
|
+
params: {
|
|
306
|
+
business_slug: slug
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
};
|
|
299
310
|
var MapMessages = function MapMessages(_ref) {
|
|
300
311
|
var _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
301
312
|
var messages = _ref.messages;
|
|
@@ -403,8 +414,13 @@ var MessagesUI = function MessagesUI(props) {
|
|
|
403
414
|
});
|
|
404
415
|
},
|
|
405
416
|
isCursor: true
|
|
406
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.Image,
|
|
407
|
-
|
|
417
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.Image, {
|
|
418
|
+
onClick: function onClick() {
|
|
419
|
+
var _order$business5;
|
|
420
|
+
return goToBusiness(order === null || order === void 0 ? void 0 : (_order$business5 = order.business) === null || _order$business5 === void 0 ? void 0 : _order$business5.slug);
|
|
421
|
+
}
|
|
422
|
+
}, /*#__PURE__*/_react.default.createElement(_Image.Image, {
|
|
423
|
+
src: ((_order$business6 = order.business) === null || _order$business6 === void 0 ? void 0 : _order$business6.logo) || ((_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.businessLogo),
|
|
408
424
|
fallback: /*#__PURE__*/_react.default.createElement(_FaUserAlt.default, null)
|
|
409
425
|
}))), (order === null || order === void 0 ? void 0 : order.driver) && /*#__PURE__*/_react.default.createElement(_styles.MessageType, {
|
|
410
426
|
active: driver,
|
|
@@ -14,13 +14,13 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
14
14
|
exports.Container = Container;
|
|
15
15
|
var HeaderContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n h1 {\n font-size: 24px;\n line-height: 36px;\n font-weight: 400;\n margin: 0;\n span.name {\n font-weight: 700;\n margin: 0 10px;\n }\n }\n p {\n font-size: 14px;\n margin: 6px 0;\n }\n"])));
|
|
16
16
|
exports.HeaderContainer = HeaderContainer;
|
|
17
|
-
var CustomerInfoContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n border: 1px solid ", ";\n padding: 30px 25px;\n margin-top: 48px;\n display: flex;\n"])), function (props) {
|
|
17
|
+
var CustomerInfoContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n border: 1px solid ", ";\n padding: 30px 25px;\n margin-top: 48px;\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n @media (min-width: 576px) {\n flex-direction: row;\n }\n"])), function (props) {
|
|
18
18
|
return props.theme.colors.gray200;
|
|
19
19
|
});
|
|
20
20
|
exports.CustomerInfoContainer = CustomerInfoContainer;
|
|
21
|
-
var CustomerDetails = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1;\n > div {\n display: flex;\n margin-top: 24px;\n }\n"])));
|
|
21
|
+
var CustomerDetails = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1;\n > div {\n display: flex;\n flex-direction: column;\n margin-top: 24px;\n }\n\n @media (min-width: 576px) {\n > div {\n flex-direction: row;\n }\n }\n"])));
|
|
22
22
|
exports.CustomerDetails = CustomerDetails;
|
|
23
|
-
var PaymentDetails = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex: 1;\n h3
|
|
23
|
+
var PaymentDetails = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex: 1;\n h3 {\n margin-top: 30px;\n }\n p {\n font-size: 14px;\n line-height: 24px;\n margin: 10px 0;\n }\n\n @media (min-width: 576px) {\n h3:not(.address) {\n margin-top: 0;\n }\n }\n"])));
|
|
24
24
|
exports.PaymentDetails = PaymentDetails;
|
|
25
25
|
var PhotoWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 75px;\n height: 75px;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n display: flex;\n align-items: center;\n justify-content: center;\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: 7.6px;\n }\n svg {\n width: 80%;\n height: 80%;\n }\n ", "\n"])), function (props) {
|
|
26
26
|
var _props$theme;
|
|
@@ -49,13 +49,13 @@ var SingleOrderContainer = _styledComponents.default.div(_templateObject14 || (_
|
|
|
49
49
|
return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n text-align: left;\n "]))) : (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
50
50
|
});
|
|
51
51
|
exports.SingleOrderContainer = SingleOrderContainer;
|
|
52
|
-
var SingleOrderHeader = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n > div {\n > div {\n display: flex;\n align-items: center;\n p {\n line-height: 24px;\n font-size: 14px;\n margin: 3px 0;\n &.date {\n margin: 0 5px;\n }\n }\n }\n }\n\n button {\n height: 43px;\n }\n"])));
|
|
52
|
+
var SingleOrderHeader = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: column;\n\n > div {\n > div {\n display: flex;\n align-items: center;\n p {\n line-height: 24px;\n font-size: 14px;\n margin: 3px 0;\n &.date {\n margin: 0 5px;\n }\n }\n }\n }\n\n button {\n height: 43px;\n }\n\n @media (min-width: 576px) {\n flex-direction: row;\n }\n"])));
|
|
53
53
|
exports.SingleOrderHeader = SingleOrderHeader;
|
|
54
54
|
var OrderBusinessDetails = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 50px 0;\n"])));
|
|
55
55
|
exports.OrderBusinessDetails = OrderBusinessDetails;
|
|
56
|
-
var OrderBusinessWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
56
|
+
var OrderBusinessWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: 576px) {\n flex-direction: row;\n }\n"])));
|
|
57
57
|
exports.OrderBusinessWrapper = OrderBusinessWrapper;
|
|
58
|
-
var BusinessData = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n p {\n font-size: 14px;\n line-height: 21px;\n margin: 2px 0;\n &.bold {\n font-weight: 500;\n }\n }\n"])));
|
|
58
|
+
var BusinessData = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-top: 10px;\n p {\n font-size: 14px;\n line-height: 21px;\n margin: 2px 0;\n &.bold {\n font-weight: 500;\n }\n }\n @media (min-width: 576px) {\n margin-top: 0px;\n }\n"])));
|
|
59
59
|
exports.BusinessData = BusinessData;
|
|
60
60
|
var ActionsBlock = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n span {\n cursor: pointer;\n font-size: 16px;\n color: ", ";\n ", "\n }\n"])), function (props) {
|
|
61
61
|
return props.theme.colors.lightGray;
|