ordering-ui-external 1.9.5 → 2.0.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.55652fab015bca672f9d.js → 0.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{1.ordering-ui.55652fab015bca672f9d.js → 1.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{2.ordering-ui.55652fab015bca672f9d.js → 2.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{4.ordering-ui.55652fab015bca672f9d.js → 4.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{5.ordering-ui.55652fab015bca672f9d.js → 5.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{6.ordering-ui.55652fab015bca672f9d.js → 6.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{7.ordering-ui.55652fab015bca672f9d.js → 7.ordering-ui.32113e17b220a7b5ae09.js} +2 -2
- package/_bundles/{7.ordering-ui.55652fab015bca672f9d.js.LICENSE.txt → 7.ordering-ui.32113e17b220a7b5ae09.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.55652fab015bca672f9d.js → 8.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/{9.ordering-ui.55652fab015bca672f9d.js → 9.ordering-ui.32113e17b220a7b5ae09.js} +1 -1
- package/_bundles/ordering-ui.32113e17b220a7b5ae09.js +2 -0
- package/_bundles/{ordering-ui.55652fab015bca672f9d.js.LICENSE.txt → ordering-ui.32113e17b220a7b5ae09.js.LICENSE.txt} +0 -0
- package/_modules/components/Confirm/index.js +4 -2
- package/_modules/components/Header/index.js +4 -2
- package/_modules/components/SmartAppBanner/index.js +4 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +32 -11
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +60 -0
- package/_modules/themes/five/src/components/Cart/index.js +5 -5
- package/_modules/themes/five/src/components/Checkout/index.js +4 -0
- package/_modules/themes/five/src/components/Footer/index.js +4 -2
- package/_modules/themes/five/src/components/Header/layouts/Kiosk/index.js +4 -2
- package/_modules/themes/five/src/components/Modal/index.js +4 -2
- package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +1 -1
- package/_modules/themes/five/src/components/MultiCheckout/index.js +12 -10
- package/_modules/themes/five/src/components/MultiOrdersDetails/SingleOrderCard.js +1 -1
- package/_modules/themes/five/src/components/MultiOrdersDetails/index.js +1 -0
- package/_modules/themes/five/src/components/NavigationBar/index.js +4 -2
- package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +4 -2
- package/_modules/themes/five/src/components/OrdersOption/index.js +26 -97
- package/_modules/themes/five/src/components/ProductForm/index.js +27 -26
- package/_modules/themes/five/src/components/ReviewDriver/index.js +4 -2
- package/_modules/themes/five/src/components/ReviewOrder/index.js +4 -2
- package/_modules/themes/five/src/components/ReviewProduct/index.js +4 -2
- package/_modules/themes/five/src/components/ReviewTrigger/index.js +4 -2
- package/_modules/themes/five/src/components/SignUpApproval/index.js +4 -2
- package/_modules/themes/five/src/styles/Buttons/index.js +5 -3
- package/_modules/themes/five/src/styles/Inputs/index.js +1 -1
- package/_modules/themes/seven/src/components/Header/index.js +4 -2
- package/_modules/themes/six/src/components/Header/index.js +4 -2
- package/package.json +2 -2
- package/src/components/CancellationComponent/index.js +31 -27
- package/src/components/Confirm/index.js +2 -0
- package/src/components/Header/index.js +2 -0
- package/src/components/SmartAppBanner/index.js +2 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +43 -19
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +1 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +52 -0
- package/src/themes/five/src/components/Cart/index.js +9 -4
- package/src/themes/five/src/components/Checkout/index.js +2 -0
- package/src/themes/five/src/components/Footer/index.js +2 -0
- package/src/themes/five/src/components/Header/layouts/Kiosk/index.js +2 -0
- package/src/themes/five/src/components/Modal/index.js +2 -0
- package/src/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +1 -1
- package/src/themes/five/src/components/MultiCheckout/index.js +11 -6
- package/src/themes/five/src/components/MultiOrdersDetails/SingleOrderCard.js +1 -1
- package/src/themes/five/src/components/MultiOrdersDetails/index.js +1 -0
- package/src/themes/five/src/components/NavigationBar/index.js +2 -0
- package/src/themes/five/src/components/NotNetworkConnectivity/index.js +2 -0
- package/src/themes/five/src/components/OrdersOption/index.js +14 -48
- package/src/themes/five/src/components/ProductForm/index.js +11 -11
- package/src/themes/five/src/components/ReviewDriver/index.js +2 -0
- package/src/themes/five/src/components/ReviewOrder/index.js +2 -0
- package/src/themes/five/src/components/ReviewProduct/index.js +2 -0
- package/src/themes/five/src/components/ReviewTrigger/index.js +2 -0
- package/src/themes/five/src/components/SignUpApproval/index.js +2 -0
- package/src/themes/five/src/styles/Buttons/index.js +3 -1
- package/src/themes/five/src/styles/Inputs/index.js +1 -1
- package/src/themes/seven/src/components/Header/index.js +2 -0
- package/src/themes/six/src/components/Header/index.js +2 -0
- package/template/components/HelmetTags/index.js +2 -0
- package/template/components/ListenPageChanges/index.js +2 -0
- package/template/components/ScrollToTop/index.js +2 -0
- package/template/components/SubdomainComponent/index.js +4 -39
- package/template/config.json +2 -1
- package/template/pages/AddressList/index.js +2 -0
- package/template/pages/BusinessListingSearch/index.js +2 -0
- package/template/pages/BusinessProductsList/index.js +2 -0
- package/template/pages/BusinessesList/index.js +2 -0
- package/template/pages/Checkout/index.js +2 -0
- package/template/pages/Cms/index.js +2 -0
- package/template/pages/Favorite/index.js +2 -0
- package/template/pages/Help/index.js +2 -0
- package/template/pages/Home/index.js +2 -0
- package/template/pages/MessagesList/index.js +2 -0
- package/template/pages/MultiCheckout/index.js +5 -0
- package/template/pages/MultiOrdersDetails/index.js +2 -0
- package/template/pages/MyOrders/index.js +2 -0
- package/template/pages/OrderDetails/index.js +2 -0
- package/template/pages/PageNotFound/index.js +2 -0
- package/template/pages/PagesList/index.js +2 -0
- package/template/pages/Profile/index.js +2 -0
- package/template/pages/Promotions/index.js +2 -0
- package/template/pages/ResetPassword/index.js +2 -0
- package/template/pages/SessionsList/index.js +2 -0
- package/template/pages/SignUpBusiness/index.js +2 -0
- package/template/pages/SignUpDriver/index.js +2 -0
- package/template/pages/UserVerification/index.js +2 -0
- package/template/pages/Wallets/index.js +2 -0
- package/_bundles/ordering-ui.55652fab015bca672f9d.js +0 -2
|
@@ -11,7 +11,6 @@ var _moment3 = _interopRequireDefault(require("moment"));
|
|
|
11
11
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
12
12
|
var _HorizontalOrdersLayout = require("../HorizontalOrdersLayout");
|
|
13
13
|
var _VerticalOrdersLayout = require("../../../../../components/VerticalOrdersLayout");
|
|
14
|
-
var _styledComponents = require("styled-components");
|
|
15
14
|
var _styles = require("./styles");
|
|
16
15
|
var _PreviousBusinessOrdered = require("./PreviousBusinessOrdered");
|
|
17
16
|
var _PreviousProductsOrdered = require("./PreviousProductsOrdered");
|
|
@@ -20,6 +19,7 @@ var _SingleProductCard = require("../SingleProductCard");
|
|
|
20
19
|
var _useWindowSize2 = require("../../../../../hooks/useWindowSize");
|
|
21
20
|
var _Confirm = require("../Confirm");
|
|
22
21
|
var _PreviousProfessionalOrdered = require("./PreviousProfessionalOrdered");
|
|
22
|
+
var _utils = require("../../../../../utils");
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
24
|
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); }
|
|
25
25
|
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; }
|
|
@@ -81,7 +81,6 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
81
81
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
82
82
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
83
83
|
t = _useLanguage2[1];
|
|
84
|
-
var theme = (0, _styledComponents.useTheme)();
|
|
85
84
|
var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
|
|
86
85
|
_useOrder2 = _slicedToArray(_useOrder, 1),
|
|
87
86
|
carts = _useOrder2[0].carts;
|
|
@@ -96,20 +95,31 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
96
95
|
var _orders = customArray || values || [];
|
|
97
96
|
var uniqueOrders = [];
|
|
98
97
|
var ordersReduced = _orders.map(function (order) {
|
|
99
|
-
|
|
100
|
-
return order !== null && order !== void 0 && order.cart_group_id ? (_orders$filter = _orders.filter(function (_order) {
|
|
98
|
+
return order !== null && order !== void 0 && order.cart_group_id ? _orders.filter(function (_order) {
|
|
101
99
|
return (_order === null || _order === void 0 ? void 0 : _order.cart_group_id) === (order === null || order === void 0 ? void 0 : order.cart_group_id);
|
|
102
|
-
})
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
}).map(function (_o, _, _ordersList) {
|
|
101
|
+
var obj = _objectSpread(_objectSpread({}, _o), {}, {
|
|
102
|
+
id: _ordersList.map(function (o) {
|
|
103
|
+
return o.id;
|
|
104
|
+
}),
|
|
105
|
+
review: _o.review,
|
|
106
|
+
user_review: _o.user_review,
|
|
107
|
+
total: _ordersList.reduce(function (acc, o) {
|
|
108
|
+
return acc + o.summary.total;
|
|
109
|
+
}, 0),
|
|
110
|
+
business: _ordersList.map(function (o) {
|
|
111
|
+
return o.business;
|
|
112
|
+
}),
|
|
113
|
+
business_id: _ordersList.map(function (o) {
|
|
114
|
+
return o.business_id;
|
|
115
|
+
}),
|
|
116
|
+
products: _ordersList.map(function (o) {
|
|
117
|
+
return o.products;
|
|
118
|
+
})
|
|
112
119
|
});
|
|
120
|
+
return obj;
|
|
121
|
+
}).find(function (o) {
|
|
122
|
+
return o;
|
|
113
123
|
}) : order;
|
|
114
124
|
});
|
|
115
125
|
var orders = ordersReduced === null || ordersReduced === void 0 ? void 0 : ordersReduced.filter(function (order) {
|
|
@@ -155,87 +165,6 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
155
165
|
getPage(page);
|
|
156
166
|
};
|
|
157
167
|
var showSkeletons = !isBusiness && !isProducts && loading || (businesses === null || businesses === void 0 ? void 0 : businesses.loading) && isBusiness || (products === null || products === void 0 ? void 0 : products.length) === 0 && isProducts && (!businessesSearchList && loading || (businessesSearchList === null || businessesSearchList === void 0 ? void 0 : businessesSearchList.loading));
|
|
158
|
-
var getOrderStatus = function getOrderStatus(s) {
|
|
159
|
-
var _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _theme$defaultLanguag17, _theme$defaultLanguag18, _theme$defaultLanguag19, _theme$defaultLanguag20, _theme$defaultLanguag21, _theme$defaultLanguag22, _theme$defaultLanguag23, _theme$defaultLanguag24;
|
|
160
|
-
var status = parseInt(s);
|
|
161
|
-
var orderStatus = [{
|
|
162
|
-
key: 0,
|
|
163
|
-
value: t('PENDING', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.PENDING) || 'Pending')
|
|
164
|
-
}, {
|
|
165
|
-
key: 1,
|
|
166
|
-
value: t('COMPLETED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.COMPLETED) || 'Completed')
|
|
167
|
-
}, {
|
|
168
|
-
key: 2,
|
|
169
|
-
value: t('REJECTED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.REJECTED) || 'Rejected')
|
|
170
|
-
}, {
|
|
171
|
-
key: 3,
|
|
172
|
-
value: t('DRIVER_IN_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.DRIVER_IN_BUSINESS) || 'Driver in business')
|
|
173
|
-
}, {
|
|
174
|
-
key: 4,
|
|
175
|
-
value: t('PREPARATION_COMPLETED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.PREPARATION_COMPLETED) || 'Preparation Completed')
|
|
176
|
-
}, {
|
|
177
|
-
key: 5,
|
|
178
|
-
value: t('REJECTED_BY_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.REJECTED_BY_BUSINESS) || 'Rejected by business')
|
|
179
|
-
}, {
|
|
180
|
-
key: 6,
|
|
181
|
-
value: t('REJECTED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.REJECTED_BY_DRIVER) || 'Rejected by Driver')
|
|
182
|
-
}, {
|
|
183
|
-
key: 7,
|
|
184
|
-
value: t('ACCEPTED_BY_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.ACCEPTED_BY_BUSINESS) || 'Accepted by business')
|
|
185
|
-
}, {
|
|
186
|
-
key: 8,
|
|
187
|
-
value: t('ACCEPTED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.ACCEPTED_BY_DRIVER) || 'Accepted by driver')
|
|
188
|
-
}, {
|
|
189
|
-
key: 9,
|
|
190
|
-
value: t('PICK_UP_COMPLETED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.PICK_UP_COMPLETED_BY_DRIVER) || 'Pick up completed by driver')
|
|
191
|
-
}, {
|
|
192
|
-
key: 10,
|
|
193
|
-
value: t('PICK_UP_FAILED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag11 = theme.defaultLanguages) === null || _theme$defaultLanguag11 === void 0 ? void 0 : _theme$defaultLanguag11.PICK_UP_FAILED_BY_DRIVER) || 'Pick up Failed by driver')
|
|
194
|
-
}, {
|
|
195
|
-
key: 11,
|
|
196
|
-
value: t('DELIVERY_COMPLETED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag12 = theme.defaultLanguages) === null || _theme$defaultLanguag12 === void 0 ? void 0 : _theme$defaultLanguag12.DELIVERY_COMPLETED_BY_DRIVER) || 'Delivery completed by driver')
|
|
197
|
-
}, {
|
|
198
|
-
key: 12,
|
|
199
|
-
value: t('DELIVERY_FAILED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag13 = theme.defaultLanguages) === null || _theme$defaultLanguag13 === void 0 ? void 0 : _theme$defaultLanguag13.DELIVERY_FAILED_BY_DRIVER) || 'Delivery Failed by driver')
|
|
200
|
-
}, {
|
|
201
|
-
key: 13,
|
|
202
|
-
value: t('PREORDER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag14 = theme.defaultLanguages) === null || _theme$defaultLanguag14 === void 0 ? void 0 : _theme$defaultLanguag14.PREORDER) || 'PreOrder')
|
|
203
|
-
}, {
|
|
204
|
-
key: 14,
|
|
205
|
-
value: t('ORDER_NOT_READY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag15 = theme.defaultLanguages) === null || _theme$defaultLanguag15 === void 0 ? void 0 : _theme$defaultLanguag15.ORDER_NOT_READY) || 'Order not ready')
|
|
206
|
-
}, {
|
|
207
|
-
key: 15,
|
|
208
|
-
value: t('ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag16 = theme.defaultLanguages) === null || _theme$defaultLanguag16 === void 0 ? void 0 : _theme$defaultLanguag16.ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER) || 'Order picked up completed by customer')
|
|
209
|
-
}, {
|
|
210
|
-
key: 16,
|
|
211
|
-
value: t('ORDER_STATUS_CANCELLED_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag17 = theme.defaultLanguages) === null || _theme$defaultLanguag17 === void 0 ? void 0 : _theme$defaultLanguag17.ORDER_STATUS_CANCELLED_BY_CUSTOMER) || 'Order cancelled by customer')
|
|
212
|
-
}, {
|
|
213
|
-
key: 17,
|
|
214
|
-
value: t('ORDER_NOT_PICKEDUP_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag18 = theme.defaultLanguages) === null || _theme$defaultLanguag18 === void 0 ? void 0 : _theme$defaultLanguag18.ORDER_NOT_PICKEDUP_BY_CUSTOMER) || 'Order not picked up by customer')
|
|
215
|
-
}, {
|
|
216
|
-
key: 18,
|
|
217
|
-
value: t('ORDER_DRIVER_ALMOST_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag19 = theme.defaultLanguages) === null || _theme$defaultLanguag19 === void 0 ? void 0 : _theme$defaultLanguag19.ORDER_DRIVER_ALMOST_ARRIVED_BUSINESS) || 'Driver almost arrived to business')
|
|
218
|
-
}, {
|
|
219
|
-
key: 19,
|
|
220
|
-
value: t('ORDER_DRIVER_ALMOST_ARRIVED_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag20 = theme.defaultLanguages) === null || _theme$defaultLanguag20 === void 0 ? void 0 : _theme$defaultLanguag20.ORDER_DRIVER_ALMOST_ARRIVED_CUSTOMER) || 'Driver almost arrived to customer')
|
|
221
|
-
}, {
|
|
222
|
-
key: 20,
|
|
223
|
-
value: t('ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag21 = theme.defaultLanguages) === null || _theme$defaultLanguag21 === void 0 ? void 0 : _theme$defaultLanguag21.ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS) || 'Customer almost arrived to business')
|
|
224
|
-
}, {
|
|
225
|
-
key: 21,
|
|
226
|
-
value: t('ORDER_CUSTOMER_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag22 = theme.defaultLanguages) === null || _theme$defaultLanguag22 === void 0 ? void 0 : _theme$defaultLanguag22.ORDER_CUSTOMER_ARRIVED_BUSINESS) || 'Customer arrived to business')
|
|
227
|
-
}, {
|
|
228
|
-
key: 22,
|
|
229
|
-
value: t('ORDER_LOOKING_FOR_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag23 = theme.defaultLanguages) === null || _theme$defaultLanguag23 === void 0 ? void 0 : _theme$defaultLanguag23.ORDER_LOOKING_FOR_DRIVER) || 'Looking for driver')
|
|
230
|
-
}, {
|
|
231
|
-
key: 23,
|
|
232
|
-
value: t('ORDER_DRIVER_ON_WAY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag24 = theme.defaultLanguages) === null || _theme$defaultLanguag24 === void 0 ? void 0 : _theme$defaultLanguag24.ORDER_DRIVER_ON_WAY) || 'Driver on way')
|
|
233
|
-
}];
|
|
234
|
-
var objectStatus = orderStatus.find(function (o) {
|
|
235
|
-
return o.key === status;
|
|
236
|
-
});
|
|
237
|
-
return objectStatus && objectStatus;
|
|
238
|
-
};
|
|
239
168
|
var onProductClick = function onProductClick(product, slug) {
|
|
240
169
|
if (slug) {
|
|
241
170
|
onProductRedirect({
|
|
@@ -394,7 +323,7 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
394
323
|
isBusinessesPage: isBusinessesPage,
|
|
395
324
|
reorderLoading: reorderState === null || reorderState === void 0 ? void 0 : reorderState.loading,
|
|
396
325
|
customArray: customArray,
|
|
397
|
-
getOrderStatus: getOrderStatus,
|
|
326
|
+
getOrderStatus: _utils.getOrderStatus,
|
|
398
327
|
handleReorder: handleReorder,
|
|
399
328
|
activeOrders: activeOrders,
|
|
400
329
|
handleUpdateOrderList: handleUpdateOrderList,
|
|
@@ -414,7 +343,7 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
|
|
|
414
343
|
customArray: customArray,
|
|
415
344
|
loadMoreOrders: loadMoreOrders,
|
|
416
345
|
onRedirectPage: onRedirectPage,
|
|
417
|
-
getOrderStatus: getOrderStatus,
|
|
346
|
+
getOrderStatus: _utils.getOrderStatus,
|
|
418
347
|
handleReorder: handleReorder,
|
|
419
348
|
handleUpdateOrderList: handleUpdateOrderList
|
|
420
349
|
})), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
|
|
@@ -54,7 +54,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
54
54
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
55
|
_swiper.default.use([_swiper.Navigation, _swiper.Thumbs]);
|
|
56
56
|
var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
57
|
-
var _configs$unaddressed_, _theme$defaultLanguag,
|
|
57
|
+
var _configs$unaddressed_, _theme$defaultLanguag, _product$ingredients2, _product$extras, _product$ingredients3, _product$ingredients4, _product$ingredients5, _product$extras2, _theme$defaultLanguag2, _theme$defaultLanguag3, _props$afterMidElemen, _props$afterMidCompon, _orderState$options, _orderState$options2, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _orderState$options3, _orderState$options4, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _error$;
|
|
58
58
|
var businessSlug = props.businessSlug,
|
|
59
59
|
editMode = props.editMode,
|
|
60
60
|
isSoldOut = props.isSoldOut,
|
|
@@ -179,7 +179,8 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
var handleSaveProduct = function handleSaveProduct() {
|
|
182
|
-
var
|
|
182
|
+
var _Object$values;
|
|
183
|
+
var isErrors = ((_Object$values = Object.values(errors)) === null || _Object$values === void 0 ? void 0 : _Object$values.length) > 0;
|
|
183
184
|
if (!isErrors) {
|
|
184
185
|
handleSave && handleSave();
|
|
185
186
|
return;
|
|
@@ -236,7 +237,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
236
237
|
};
|
|
237
238
|
var getOverFlowImage = function getOverFlowImage(url) {
|
|
238
239
|
var keys = url.split('/');
|
|
239
|
-
var _videoId = keys[keys.length - 1];
|
|
240
|
+
var _videoId = keys[(keys === null || keys === void 0 ? void 0 : keys.length) - 1];
|
|
240
241
|
var overFlowImg = 'http://img.youtube.com/vi/' + _videoId + '/0.jpg';
|
|
241
242
|
return overFlowImg;
|
|
242
243
|
};
|
|
@@ -251,9 +252,9 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
251
252
|
handleChangeProductCartQuantity(quantity);
|
|
252
253
|
};
|
|
253
254
|
var scrollDown = function scrollDown() {
|
|
254
|
-
var _document$getElements, _document$getElements2;
|
|
255
|
+
var _Object$values2, _document$getElements, _document$getElements2;
|
|
255
256
|
var adjustHeight = (windowSize === null || windowSize === void 0 ? void 0 : windowSize.width) > 768 ? 50 : 55;
|
|
256
|
-
var isErrors = Object.values(errors).length > 0;
|
|
257
|
+
var isErrors = ((_Object$values2 = Object.values(errors)) === null || _Object$values2 === void 0 ? void 0 : _Object$values2.length) > 0;
|
|
257
258
|
if (!isErrors) {
|
|
258
259
|
return;
|
|
259
260
|
}
|
|
@@ -289,19 +290,18 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
289
290
|
var handleScroll = function handleScroll() {
|
|
290
291
|
var extraHeight = 60;
|
|
291
292
|
if ((product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 || (product === null || product === void 0 ? void 0 : product.extras.length) > 0) {
|
|
292
|
-
var _product$ingredients
|
|
293
|
+
var _product$ingredients;
|
|
293
294
|
var menuList = [];
|
|
294
295
|
if ((product === null || product === void 0 ? void 0 : (_product$ingredients = product.ingredients) === null || _product$ingredients === void 0 ? void 0 : _product$ingredients.length) > 0) menuList.push('ingredients');
|
|
295
|
-
(product === null || product === void 0 ? void 0 :
|
|
296
|
+
(product === null || product === void 0 ? void 0 : product.extras.length) > 0 && (product === null || product === void 0 ? void 0 : product.extras.sort(function (a, b) {
|
|
296
297
|
return a.rank - b.rank;
|
|
297
298
|
}).forEach(function (extra) {
|
|
298
|
-
|
|
299
|
-
((_extra$options = extra.options) === null || _extra$options === void 0 ? void 0 : _extra$options.length) > 0 && extra.options.sort(function (a, b) {
|
|
299
|
+
(extra === null || extra === void 0 ? void 0 : extra.options.length) > 0 && (extra === null || extra === void 0 ? void 0 : extra.options.sort(function (a, b) {
|
|
300
300
|
return a.rank - b.rank;
|
|
301
301
|
}).forEach(function (option) {
|
|
302
302
|
showOption(option) && menuList.push("id_".concat(option === null || option === void 0 ? void 0 : option.id));
|
|
303
|
-
});
|
|
304
|
-
});
|
|
303
|
+
}));
|
|
304
|
+
}));
|
|
305
305
|
menuList.forEach(function (menu) {
|
|
306
306
|
var elementTop = scrollElement.scrollTop;
|
|
307
307
|
var topPos = document.getElementById(menu).offsetTop;
|
|
@@ -525,11 +525,11 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
525
525
|
src: optimizeImage((tag === null || tag === void 0 ? void 0 : tag.image) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.product), 'h_40,c_limit'),
|
|
526
526
|
alt: ""
|
|
527
527
|
}), /*#__PURE__*/_react.default.createElement("span", null, tag.name));
|
|
528
|
-
})), /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_styles.ProductEdition, null, ((product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 || (product === null || product === void 0 ? void 0 : product.extras.length) > 0) && /*#__PURE__*/_react.default.createElement(_styles.ProductTabContainer, {
|
|
528
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_styles.ProductEdition, null, ((product === null || product === void 0 ? void 0 : (_product$ingredients2 = product.ingredients) === null || _product$ingredients2 === void 0 ? void 0 : _product$ingredients2.length) > 0 || (product === null || product === void 0 ? void 0 : (_product$extras = product.extras) === null || _product$extras === void 0 ? void 0 : _product$extras.length) > 0) && /*#__PURE__*/_react.default.createElement(_styles.ProductTabContainer, {
|
|
529
529
|
id: "all"
|
|
530
530
|
}, /*#__PURE__*/_react.default.createElement(_Tabs.Tabs, null, /*#__PURE__*/_react.default.createElement(_AutoScroll.AutoScroll, {
|
|
531
531
|
scrollId: "optionList"
|
|
532
|
-
}, (product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 && /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
|
|
532
|
+
}, (product === null || product === void 0 ? void 0 : (_product$ingredients3 = product.ingredients) === null || _product$ingredients3 === void 0 ? void 0 : _product$ingredients3.length) > 0 && /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
|
|
533
533
|
key: "ingredients",
|
|
534
534
|
id: "menu_ingredients",
|
|
535
535
|
active: tabValue === 'ingredients',
|
|
@@ -540,7 +540,8 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
540
540
|
}, t('INGREDIENTS', 'ingredients')), product === null || product === void 0 ? void 0 : product.extras.sort(function (a, b) {
|
|
541
541
|
return a.rank - b.rank;
|
|
542
542
|
}).map(function (extra) {
|
|
543
|
-
|
|
543
|
+
var _extra$options;
|
|
544
|
+
return (_extra$options = extra.options) === null || _extra$options === void 0 ? void 0 : _extra$options.sort(function (a, b) {
|
|
544
545
|
return a.rank - b.rank;
|
|
545
546
|
}).map(function (option) {
|
|
546
547
|
return showOption(option) && /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
|
|
@@ -553,9 +554,9 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
553
554
|
borderBottom: true
|
|
554
555
|
}, option === null || option === void 0 ? void 0 : option.name);
|
|
555
556
|
});
|
|
556
|
-
})))), (product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
557
|
+
})))), (product === null || product === void 0 ? void 0 : (_product$ingredients4 = product.ingredients) === null || _product$ingredients4 === void 0 ? void 0 : _product$ingredients4.length) > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
557
558
|
id: "ingredients"
|
|
558
|
-
}, (product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('INGREDIENTS', (theme === null || theme === void 0 ? void 0 :
|
|
559
|
+
}, (product === null || product === void 0 ? void 0 : (_product$ingredients5 = product.ingredients) === null || _product$ingredients5 === void 0 ? void 0 : _product$ingredients5.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('INGREDIENTS', (theme === null || theme === void 0 ? void 0 : theme.defaultLanguages.INGREDIENTS) || 'Ingredients')), /*#__PURE__*/_react.default.createElement(_styles.WrapperIngredients, {
|
|
559
560
|
isProductSoldout: isSoldOut || maxProductQuantity <= 0
|
|
560
561
|
}, product === null || product === void 0 ? void 0 : product.ingredients.map(function (ingredient) {
|
|
561
562
|
return /*#__PURE__*/_react.default.createElement(_ProductIngredient.ProductIngredient, {
|
|
@@ -565,7 +566,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
565
566
|
onChange: handleChangeIngredientState,
|
|
566
567
|
isSoldOut: isSoldOut
|
|
567
568
|
});
|
|
568
|
-
}))), /*#__PURE__*/_react.default.createElement("div", null, product === null || product === void 0 ? void 0 : product.extras.sort(function (a, b) {
|
|
569
|
+
}))), /*#__PURE__*/_react.default.createElement("div", null, product === null || product === void 0 ? void 0 : (_product$extras2 = product.extras) === null || _product$extras2 === void 0 ? void 0 : _product$extras2.sort(function (a, b) {
|
|
569
570
|
return a.rank - b.rank;
|
|
570
571
|
}).map(function (extra) {
|
|
571
572
|
return extra.options.sort(function (a, b) {
|
|
@@ -601,9 +602,9 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
601
602
|
});
|
|
602
603
|
}))));
|
|
603
604
|
});
|
|
604
|
-
})), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('COMMENTS', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
605
|
+
})), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('COMMENTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.SPECIAL_COMMENT) || 'COMMENTS')), /*#__PURE__*/_react.default.createElement(_Inputs.TextArea, {
|
|
605
606
|
rows: 4,
|
|
606
|
-
placeholder: t('SPECIAL_COMMENT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
607
|
+
placeholder: t('SPECIAL_COMMENT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.SPECIAL_COMMENT) || 'Special comment'),
|
|
607
608
|
defaultValue: productCart.comment,
|
|
608
609
|
onChange: handleChangeCommentState,
|
|
609
610
|
disabled: !(productCart && !isSoldOut && maxProductQuantity)
|
|
@@ -658,11 +659,11 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
658
659
|
return handleSaveProduct();
|
|
659
660
|
},
|
|
660
661
|
disabled: orderState.loading || (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) === 0 || (product === null || product === void 0 ? void 0 : product.minimum_per_order) && (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) + productAddedToCartLength < (product === null || product === void 0 ? void 0 : product.minimum_per_order) || (product === null || product === void 0 ? void 0 : product.maximum_per_order) && (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) + productAddedToCartLength > (product === null || product === void 0 ? void 0 : product.maximum_per_order)
|
|
661
|
-
}, orderState.loading ? /*#__PURE__*/_react.default.createElement("span", null, t('LOADING', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
662
|
+
}, orderState.loading ? /*#__PURE__*/_react.default.createElement("span", null, t('LOADING', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.LOADING) || 'Loading')) : /*#__PURE__*/_react.default.createElement("span", null, editMode ? t('UPDATE', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.UPDATE) || 'Update') : t('ADD', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.ADD) || 'Add'))), auth && !((_orderState$options3 = orderState.options) !== null && _orderState$options3 !== void 0 && _orderState$options3.address_id || unaddressedTypes.includes(orderState === null || orderState === void 0 ? void 0 : (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.type)) && (orderState.loading ? /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
662
663
|
className: "add",
|
|
663
664
|
color: "primary",
|
|
664
665
|
disabled: true
|
|
665
|
-
}, t('LOADING', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
666
|
+
}, t('LOADING', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.LOADING) || 'Loading')) : /*#__PURE__*/_react.default.createElement(_AddressList.AddressList, {
|
|
666
667
|
isModal: true,
|
|
667
668
|
userId: isNaN(userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.id) ? null : userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.id,
|
|
668
669
|
addressList: isNaN(userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.id) ? user.addresses : null,
|
|
@@ -675,7 +676,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
675
676
|
onClick: function onClick() {
|
|
676
677
|
return setModalIsOpen(true);
|
|
677
678
|
}
|
|
678
|
-
}, isSoldOut || maxProductQuantity <= 0 ? t('SOLD_OUT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
679
|
+
}, isSoldOut || maxProductQuantity <= 0 ? t('SOLD_OUT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.SOLD_OUT) || 'Sold out') : t('LOGIN_SIGNUP', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.LOGIN_SIGNUP) || 'Login / Sign Up'))))), modalIsOpen && !auth && /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
679
680
|
open: modalIsOpen,
|
|
680
681
|
onClose: function onClose() {
|
|
681
682
|
return closeModal();
|
|
@@ -690,7 +691,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
690
691
|
});
|
|
691
692
|
},
|
|
692
693
|
href: "#"
|
|
693
|
-
}, t('CREATE_ACCOUNT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
694
|
+
}, t('CREATE_ACCOUNT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.CREATE_ACCOUNT) || 'Create account')),
|
|
694
695
|
elementLinkToForgotPassword: /*#__PURE__*/_react.default.createElement("a", {
|
|
695
696
|
onClick: function onClick(e) {
|
|
696
697
|
return handleCustomModalClick(e, {
|
|
@@ -698,7 +699,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
698
699
|
});
|
|
699
700
|
},
|
|
700
701
|
href: "#"
|
|
701
|
-
}, t('RESET_PASSWORD', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
702
|
+
}, t('RESET_PASSWORD', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag11 = theme.defaultLanguages) === null || _theme$defaultLanguag11 === void 0 ? void 0 : _theme$defaultLanguag11.RESET_PASSWORD) || 'Reset password')),
|
|
702
703
|
useLoginByCellphone: true,
|
|
703
704
|
isPopup: true,
|
|
704
705
|
useKioskApp: props.useKioskApp
|
|
@@ -710,7 +711,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
710
711
|
});
|
|
711
712
|
},
|
|
712
713
|
href: "#"
|
|
713
|
-
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
714
|
+
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag12 = theme.defaultLanguages) === null || _theme$defaultLanguag12 === void 0 ? void 0 : _theme$defaultLanguag12.LOGIN) || 'Login')),
|
|
714
715
|
useLoginByCellphone: true,
|
|
715
716
|
useChekoutFileds: true,
|
|
716
717
|
handleSuccessSignup: handleSuccessSignup,
|
|
@@ -723,7 +724,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
723
724
|
});
|
|
724
725
|
},
|
|
725
726
|
href: "#"
|
|
726
|
-
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
727
|
+
}, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag13 = theme.defaultLanguages) === null || _theme$defaultLanguag13 === void 0 ? void 0 : _theme$defaultLanguag13.LOGIN) || 'Login')),
|
|
727
728
|
isPopup: true
|
|
728
729
|
})), error && error.length > 0 && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
729
730
|
content: ((_error$ = error[0]) === null || _error$ === void 0 ? void 0 : _error$.message) || error[0]
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ReviewDriver = void 0;
|
|
7
|
+
exports.default = exports.ReviewDriver = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactHookForm = require("react-hook-form");
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
@@ -273,4 +273,6 @@ var ReviewDriver = function ReviewDriver(props) {
|
|
|
273
273
|
});
|
|
274
274
|
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReviewDriver, reviewDriverProps);
|
|
275
275
|
};
|
|
276
|
-
exports.ReviewDriver = ReviewDriver;
|
|
276
|
+
exports.ReviewDriver = ReviewDriver;
|
|
277
|
+
var _default = ReviewDriver;
|
|
278
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ReviewOrder = void 0;
|
|
7
|
+
exports.default = exports.ReviewOrder = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactHookForm = require("react-hook-form");
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
@@ -292,4 +292,6 @@ var ReviewOrder = function ReviewOrder(props) {
|
|
|
292
292
|
});
|
|
293
293
|
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.OrderReview, ReviewOrderProps);
|
|
294
294
|
};
|
|
295
|
-
exports.ReviewOrder = ReviewOrder;
|
|
295
|
+
exports.ReviewOrder = ReviewOrder;
|
|
296
|
+
var _default = ReviewOrder;
|
|
297
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ReviewProduct = void 0;
|
|
7
|
+
exports.default = exports.ReviewProduct = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
10
10
|
var _reactHookForm = require("react-hook-form");
|
|
@@ -266,4 +266,6 @@ var ReviewProduct = function ReviewProduct(props) {
|
|
|
266
266
|
});
|
|
267
267
|
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReviewProduct, reviewProductProps);
|
|
268
268
|
};
|
|
269
|
-
exports.ReviewProduct = ReviewProduct;
|
|
269
|
+
exports.ReviewProduct = ReviewProduct;
|
|
270
|
+
var _default = ReviewProduct;
|
|
271
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ReviewTrigger = void 0;
|
|
7
|
+
exports.default = exports.ReviewTrigger = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
10
10
|
var _BsArrowRight = _interopRequireDefault(require("@meronex/icons/bs/BsArrowRight"));
|
|
@@ -97,4 +97,6 @@ var ReviewTrigger = function ReviewTrigger(props) {
|
|
|
97
97
|
}, AfterElement);
|
|
98
98
|
}));
|
|
99
99
|
};
|
|
100
|
-
exports.ReviewTrigger = ReviewTrigger;
|
|
100
|
+
exports.ReviewTrigger = ReviewTrigger;
|
|
101
|
+
var _default = ReviewTrigger;
|
|
102
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SignUpApproval = void 0;
|
|
6
|
+
exports.default = exports.SignUpApproval = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = require("styled-components");
|
|
9
9
|
var _Buttons = require("../../styles/Buttons");
|
|
@@ -86,4 +86,6 @@ var SignUpApproval = function SignUpApproval(props) {
|
|
|
86
86
|
href: "mailto:".concat(t('SIGNUP_DRIVER_EMAIL', contactEmail))
|
|
87
87
|
}, t('SIGNUP_DRIVER_EMAIL', contactEmail)))));
|
|
88
88
|
};
|
|
89
|
-
exports.SignUpApproval = SignUpApproval;
|
|
89
|
+
exports.SignUpApproval = SignUpApproval;
|
|
90
|
+
var _default = SignUpApproval;
|
|
91
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Button = void 0;
|
|
7
|
+
exports.default = exports.Button = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _polished = require("polished");
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
@@ -23,7 +23,7 @@ var Button = _styledComponents.default.button(_templateObject || (_templateObjec
|
|
|
23
23
|
return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
24
24
|
}, function (props) {
|
|
25
25
|
var _props$theme2;
|
|
26
|
-
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-right: 15%;\n padding-left: 0
|
|
26
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-right: 15%;\n padding-left: 0;\n "])));
|
|
27
27
|
});
|
|
28
28
|
}, function (_ref3) {
|
|
29
29
|
var outline = _ref3.outline;
|
|
@@ -212,4 +212,6 @@ var Button = _styledComponents.default.button(_templateObject || (_templateObjec
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
|
-
exports.Button = Button;
|
|
215
|
+
exports.Button = Button;
|
|
216
|
+
var _default = Button;
|
|
217
|
+
exports.default = _default;
|
|
@@ -50,7 +50,7 @@ var InputGroupRight = (0, _styledComponents.default)(InputGroupLeft)(_templateOb
|
|
|
50
50
|
return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n border-left-width: 1px;\n border-right-width: 0;\n border-radius: 0 0 34px 34px;\n "])));
|
|
51
51
|
}, _Buttons.Button, function (props) {
|
|
52
52
|
var _props$theme4;
|
|
53
|
-
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-left: -7px;\n margin-right: 0
|
|
53
|
+
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-left: -7px;\n margin-right: 0;\n "])));
|
|
54
54
|
});
|
|
55
55
|
exports.InputGroupRight = InputGroupRight;
|
|
56
56
|
var InputPrimary = (0, _styledComponents.default)(Input)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n background: #FFF;\n color: ", ";\n border-color: ", ";\n &:focus {\n border-color: ", ";\n }\n"])), function (props) {
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.SignUpIcon = exports.SignInIcon = exports.Header = void 0;
|
|
7
|
+
exports.default = exports.SignUpIcon = exports.SignInIcon = exports.Header = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactRouterDom = require("react-router-dom");
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
@@ -391,4 +391,6 @@ var SignUpIcon = function SignUpIcon() {
|
|
|
391
391
|
d: "M492,397h-55v-55c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v55h-55c-11.046,0-20,8.954-20,20 c0,11.046,8.954,20,20,20h55v55c0,11.046,8.954,20,20,20c11.046,0,20-8.954,20-20v-55h55c11.046,0,20-8.954,20-20 C512,405.954,503.046,397,492,397z"
|
|
392
392
|
}))));
|
|
393
393
|
};
|
|
394
|
-
exports.SignUpIcon = SignUpIcon;
|
|
394
|
+
exports.SignUpIcon = SignUpIcon;
|
|
395
|
+
var _default = Header;
|
|
396
|
+
exports.default = _default;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Header = void 0;
|
|
7
|
+
exports.default = exports.Header = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactRouterDom = require("react-router-dom");
|
|
10
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
@@ -349,4 +349,6 @@ var styles = {
|
|
|
349
349
|
};
|
|
350
350
|
Header.defaultProps = {
|
|
351
351
|
isShowOrderOptions: true
|
|
352
|
-
};
|
|
352
|
+
};
|
|
353
|
+
var _default = Header;
|
|
354
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"libphonenumber-js": "^1.9.4",
|
|
87
87
|
"lodash": "^4.17.19",
|
|
88
88
|
"moment": "^2.29.4",
|
|
89
|
-
"ordering-components-external": "
|
|
89
|
+
"ordering-components-external": "2.0.0",
|
|
90
90
|
"polished": "^3.6.6",
|
|
91
91
|
"react-bootstrap-icons": "^1.7.2",
|
|
92
92
|
"react-calendar": "^3.3.1",
|