ordering-components-external 13.2.6 → 13.2.8
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-component.f315afd771830efc8429.js +1 -0
- package/_bundles/{1.ordering-component.24891a9b9a91079dd323.js → 1.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/{2.ordering-component.24891a9b9a91079dd323.js → 2.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/{4.ordering-component.24891a9b9a91079dd323.js → 4.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/{5.ordering-component.24891a9b9a91079dd323.js → 5.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/{6.ordering-component.24891a9b9a91079dd323.js → 6.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/{7.ordering-component.24891a9b9a91079dd323.js → 7.ordering-component.f315afd771830efc8429.js} +2 -2
- package/_bundles/{8.ordering-component.24891a9b9a91079dd323.js → 8.ordering-component.f315afd771830efc8429.js} +1 -1
- package/_bundles/ordering-component.f315afd771830efc8429.js +2 -0
- package/_bundles/{ordering-component.24891a9b9a91079dd323.js.LICENSE.txt → ordering-component.f315afd771830efc8429.js.LICENSE.txt} +0 -9
- package/_modules/components/AddressDetails/index.js +1 -1
- package/_modules/components/AddressForm/index.js +4 -4
- package/_modules/components/AddressList/index.js +4 -4
- package/_modules/components/AnalyticsSegment/index.js +1 -1
- package/_modules/components/AppleLogin/index.js +2 -2
- package/_modules/components/BusinessAndProductList/index.js +9 -9
- package/_modules/components/BusinessBasicInformation/index.js +2 -2
- package/_modules/components/BusinessController/index.js +3 -3
- package/_modules/components/BusinessList/index.js +3 -3
- package/_modules/components/BusinessMenuListing/index.js +1 -1
- package/_modules/components/BusinessReviews/index.js +1 -1
- package/_modules/components/BusinessSearchList/index.js +4 -4
- package/_modules/components/BusinessTypeFilter/index.js +1 -1
- package/_modules/components/Cart/index.js +1 -1
- package/_modules/components/CartStoresListing/index.js +2 -2
- package/_modules/components/Checkout/index.js +11 -11
- package/_modules/components/CmsContent/index.js +1 -1
- package/_modules/components/Contacts/index.js +9 -9
- package/_modules/components/DriverList/index.js +1 -1
- package/_modules/components/FacebookLoginButton/index.js +1 -1
- package/_modules/components/FavoriteList/index.js +3 -3
- package/_modules/components/FirebaseGoogleLoginButton/index.js +2 -2
- package/_modules/components/ForgotPasswordForm/index.js +1 -1
- package/_modules/components/GiftCard/GiftCardOrdersList/index.js +3 -3
- package/_modules/components/GiftCard/PurchaseGiftCard/index.js +2 -2
- package/_modules/components/GiftCard/RedeemGiftCard/index.js +1 -1
- package/_modules/components/GiftCard/SendGiftCard/index.js +1 -1
- package/_modules/components/GoogleIdentity/index.js +1 -1
- package/_modules/components/GoogleLoginButton/index.js +3 -3
- package/_modules/components/LanguageSelector/index.js +1 -1
- package/_modules/components/LoginForm/index.js +5 -5
- package/_modules/components/LogoutAction/index.js +2 -2
- package/_modules/components/MainSearch/index.js +1 -1
- package/_modules/components/MapView/index.js +2 -2
- package/_modules/components/Messages/index.js +1 -1
- package/_modules/components/MultiCartCreate/index.js +1 -1
- package/_modules/components/MultiCartsPaymethodsAndWallets/index.js +2 -2
- package/_modules/components/MultiCheckout/index.js +23 -22
- package/_modules/components/MultiOrdersDetails/index.js +1 -1
- package/_modules/components/MyOrders/index.js +2 -2
- package/_modules/components/MyOrdersList/index.js +1 -1
- package/_modules/components/OrderChange/index.js +1 -1
- package/_modules/components/OrderDetails/index.js +11 -11
- package/_modules/components/OrderList/index.js +11 -11
- package/_modules/components/OrderListGroups/index.js +13 -13
- package/_modules/components/OrderReview/index.js +4 -4
- package/_modules/components/OrderVerticalList/index.js +4 -4
- package/_modules/components/OrdersControlFilters/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/Appointments/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/BusinessProductsListing/index.js +7 -7
- package/_modules/components/OrdersDashboardComponents/CheckPassword/index.js +2 -2
- package/_modules/components/OrdersDashboardComponents/CityList/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/CountryList/index.js +3 -3
- package/_modules/components/OrdersDashboardComponents/CustomOrderDetails/index.js +4 -4
- package/_modules/components/OrdersDashboardComponents/DashboardBusinessList/index.js +8 -8
- package/_modules/components/OrdersDashboardComponents/DashboardOrdersList/index.js +6 -6
- package/_modules/components/OrdersDashboardComponents/DriversList/index.js +4 -4
- package/_modules/components/OrdersDashboardComponents/ExportCSV/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/GiftCardsList/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/GoogleMapsApiKeySetting/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/LogisticInformation/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/Logistics/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/Messages/index.js +3 -3
- package/_modules/components/OrdersDashboardComponents/MetaFields/index.js +3 -3
- package/_modules/components/OrdersDashboardComponents/OrderDetails/index.js +7 -7
- package/_modules/components/OrdersDashboardComponents/OrdersManage/index.js +6 -6
- package/_modules/components/OrdersDashboardComponents/PointsWalletLevels/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/ReviewCustomer/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/SettingsList/index.js +1 -1
- package/_modules/components/OrdersDashboardComponents/UserFormDetails/index.js +2 -2
- package/_modules/components/OrdersDashboardComponents/UsersList/index.js +7 -7
- package/_modules/components/PageBanner/index.js +1 -1
- package/_modules/components/PaymentOptionPaypal/index.js +3 -3
- package/_modules/components/PaymentOptionSquare/index.js +12 -12
- package/_modules/components/PaymentOptionStripe/index.js +4 -4
- package/_modules/components/PaymentOptionStripeDirect/index.js +2 -2
- package/_modules/components/PaymentOptionStripeRedirect/StripeRedirectForm/index.js +1 -1
- package/_modules/components/PaymentOptionStripeRedirect/index.js +1 -1
- package/_modules/components/PaymentOptionWallet/index.js +3 -3
- package/_modules/components/PaymentOptions/index.js +1 -1
- package/_modules/components/PaymethodList/index.js +1 -1
- package/_modules/components/PhoneAutocomplete/index.js +3 -3
- package/_modules/components/PlaceSpot/index.js +2 -2
- package/_modules/components/Popup/index.js +1 -1
- package/_modules/components/ProductForm/index.js +19 -16
- package/_modules/components/ProductsListing/index.js +2 -2
- package/_modules/components/ProfessionalInfo/index.js +2 -2
- package/_modules/components/PromotionsController/index.js +2 -2
- package/_modules/components/QueryLoginSpoonity/index.js +1 -1
- package/_modules/components/ResetPassword/index.js +1 -1
- package/_modules/components/ReviewCustomer/index.js +1 -1
- package/_modules/components/ReviewDriver/index.js +4 -4
- package/_modules/components/ReviewProduct/index.js +4 -4
- package/_modules/components/Sessions/index.js +3 -3
- package/_modules/components/SignupForm/index.js +5 -5
- package/_modules/components/SingleOrderCard/index.js +2 -2
- package/_modules/components/SingleProductCard/index.js +1 -1
- package/_modules/components/SingleProfessionalCard/index.js +1 -1
- package/_modules/components/StoreProductList/index.js +4 -4
- package/_modules/components/StripeElementsForm/CardForm/index.js +2 -2
- package/_modules/components/StripeElementsForm/index.js +1 -1
- package/_modules/components/UpsellingPage/index.js +1 -1
- package/_modules/components/UserFormDetails/index.js +6 -6
- package/_modules/components/UserVerification/index.js +4 -4
- package/_modules/components/WalletList/index.js +3 -3
- package/_modules/contexts/BusinessContext/index.js +2 -2
- package/_modules/contexts/ConfigContext/index.js +2 -2
- package/_modules/contexts/CustomerContext/index.js +3 -3
- package/_modules/contexts/LanguageContext/index.js +8 -8
- package/_modules/contexts/OptimizationLoadContext/index.js +1 -1
- package/_modules/contexts/OrderContext/index.js +25 -25
- package/_modules/contexts/OrderingThemeContext/index.js +1 -1
- package/_modules/contexts/SessionContext/index.js +7 -7
- package/_modules/contexts/SiteContext/index.js +2 -2
- package/_modules/contexts/ValidationsFieldsContext/index.js +2 -2
- package/_modules/contexts/WebsocketContext/index.js +1 -1
- package/_modules/native/src/NativeStrategy/index.js +3 -3
- package/_modules/webStrategy/index.js +3 -3
- package/package.json +1 -1
- package/src/components/MultiCheckout/index.js +4 -1
- package/src/components/ProductForm/index.js +4 -0
- package/_bundles/0.ordering-component.24891a9b9a91079dd323.js +0 -1
- package/_bundles/ordering-component.24891a9b9a91079dd323.js +0 -2
- /package/_bundles/{7.ordering-component.24891a9b9a91079dd323.js.LICENSE.txt → 7.ordering-component.f315afd771830efc8429.js.LICENSE.txt} +0 -0
|
@@ -6,15 +6,6 @@
|
|
|
6
6
|
* MIT Licence
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/*!
|
|
10
|
-
* The buffer module from node.js, for the browser.
|
|
11
|
-
*
|
|
12
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
13
|
-
* @license MIT
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
17
|
-
|
|
18
9
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
19
10
|
|
|
20
11
|
/**
|
|
@@ -92,7 +92,7 @@ var AddressDetails = exports.AddressDetails = function AddressDetails(props) {
|
|
|
92
92
|
* Method to get business location from API
|
|
93
93
|
*/
|
|
94
94
|
var getBusiness = /*#__PURE__*/function () {
|
|
95
|
-
var _ref = _asyncToGenerator(
|
|
95
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
96
96
|
var source, _yield$ordering$busin, result;
|
|
97
97
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
98
98
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -103,7 +103,7 @@ var AddressForm = exports.AddressForm = function AddressForm(props) {
|
|
|
103
103
|
* @param {number} addressId Address id for address
|
|
104
104
|
*/
|
|
105
105
|
var loadAddress = /*#__PURE__*/function () {
|
|
106
|
-
var _ref = _asyncToGenerator(
|
|
106
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(userId, addressId) {
|
|
107
107
|
var source, _yield$ordering$users, content;
|
|
108
108
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
109
109
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -191,7 +191,7 @@ var AddressForm = exports.AddressForm = function AddressForm(props) {
|
|
|
191
191
|
* Update if address id exist or create if not
|
|
192
192
|
*/
|
|
193
193
|
var saveAddress = /*#__PURE__*/function () {
|
|
194
|
-
var _ref2 = _asyncToGenerator(
|
|
194
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values, userCustomerSetup) {
|
|
195
195
|
var _userByToken$session;
|
|
196
196
|
var _values$country_code, _formState$changes, _addressState$address, _userByToken$session2, _yield$ordering$users2, content, _content$result;
|
|
197
197
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -275,7 +275,7 @@ var AddressForm = exports.AddressForm = function AddressForm(props) {
|
|
|
275
275
|
};
|
|
276
276
|
}();
|
|
277
277
|
var getBusinessDeliveryZones = /*#__PURE__*/function () {
|
|
278
|
-
var _ref3 = _asyncToGenerator(
|
|
278
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(location) {
|
|
279
279
|
var where, conditions, parameters, source, fetchEndpoint, _yield$fetchEndpoint$, _yield$fetchEndpoint$2, error, result;
|
|
280
280
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
281
281
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -357,7 +357,7 @@ var AddressForm = exports.AddressForm = function AddressForm(props) {
|
|
|
357
357
|
};
|
|
358
358
|
}();
|
|
359
359
|
var getUserByToken = /*#__PURE__*/function () {
|
|
360
|
-
var _ref4 = _asyncToGenerator(
|
|
360
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
361
361
|
var requestOptions, response, _yield$response$json, error, result;
|
|
362
362
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
363
363
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -85,7 +85,7 @@ var AddressList = exports.AddressList = function AddressList(props) {
|
|
|
85
85
|
* Function to load addresses from API
|
|
86
86
|
*/
|
|
87
87
|
var loadAddresses = /*#__PURE__*/function () {
|
|
88
|
-
var _ref = _asyncToGenerator(
|
|
88
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
89
89
|
var source, _yield$ordering$setAc, content;
|
|
90
90
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -143,7 +143,7 @@ var AddressList = exports.AddressList = function AddressList(props) {
|
|
|
143
143
|
* @param {object} address Address to make as default
|
|
144
144
|
*/
|
|
145
145
|
var handleSetDefault = /*#__PURE__*/function () {
|
|
146
|
-
var _ref2 = _asyncToGenerator(
|
|
146
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(address, userCustomerSetup, sameAddress, dontSetUserCustomer) {
|
|
147
147
|
var _yield$ordering$setAc2, content, _content$result;
|
|
148
148
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
149
149
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -224,7 +224,7 @@ var AddressList = exports.AddressList = function AddressList(props) {
|
|
|
224
224
|
* @param {object} address Address to delete
|
|
225
225
|
*/
|
|
226
226
|
var handleDelete = /*#__PURE__*/function () {
|
|
227
|
-
var _ref3 = _asyncToGenerator(
|
|
227
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(address) {
|
|
228
228
|
var _yield$ordering$users, content, addresses;
|
|
229
229
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
230
230
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -278,7 +278,7 @@ var AddressList = exports.AddressList = function AddressList(props) {
|
|
|
278
278
|
};
|
|
279
279
|
}();
|
|
280
280
|
var handleAddressRegister = /*#__PURE__*/function () {
|
|
281
|
-
var _ref4 = _asyncToGenerator(
|
|
281
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(address) {
|
|
282
282
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
283
283
|
while (1) switch (_context4.prev = _context4.next) {
|
|
284
284
|
case 0:
|
|
@@ -134,7 +134,7 @@ var AnalyticsSegment = exports.AnalyticsSegment = function AnalyticsSegment(prop
|
|
|
134
134
|
}, [analytics]);
|
|
135
135
|
(0, _react.useEffect)(function () {
|
|
136
136
|
var loadAnalytics = /*#__PURE__*/function () {
|
|
137
|
-
var _ref = _asyncToGenerator(
|
|
137
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
138
138
|
var _yield$AnalyticsBrows, _yield$AnalyticsBrows2, response;
|
|
139
139
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
140
140
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -86,7 +86,7 @@ var AppleLogin = exports.AppleLogin = function AppleLogin(props) {
|
|
|
86
86
|
window.document.body.appendChild(js);
|
|
87
87
|
};
|
|
88
88
|
var handleAppleLoginClick = /*#__PURE__*/function () {
|
|
89
|
-
var _ref = _asyncToGenerator(
|
|
89
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
90
90
|
var response, _yield$response$json, result, error;
|
|
91
91
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
92
92
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -168,7 +168,7 @@ var AppleLogin = exports.AppleLogin = function AppleLogin(props) {
|
|
|
168
168
|
* handilng the response of login apple when login
|
|
169
169
|
*/
|
|
170
170
|
var handleLoginApple = /*#__PURE__*/function () {
|
|
171
|
-
var _ref2 = _asyncToGenerator(
|
|
171
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
172
172
|
var data;
|
|
173
173
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
174
174
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -312,7 +312,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
312
312
|
}));
|
|
313
313
|
};
|
|
314
314
|
var getProducts = /*#__PURE__*/function () {
|
|
315
|
-
var _ref = _asyncToGenerator(
|
|
315
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
316
316
|
var _categoryState$produc;
|
|
317
317
|
var i, _ref2, _businessState$busine2, _businessState$busine3, _category$products, category, isFeatured, categoryState, _businessState$busine4, _ref3, _businessState$busine5, _businessState$busine6, _categories$find, _subCategoriesList$fi, _businessState$busine7, categoriesList, categories, parentCategory, categoryFinded, productsFiltered, _businessState$busine8, _productsFiltered, _businessState$busine10, _categoriesCustom, _businessState$busine9, customCategories, productsToFilter, _productsFiltered2;
|
|
318
318
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -400,7 +400,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
400
400
|
};
|
|
401
401
|
}();
|
|
402
402
|
var getLazyProducts = /*#__PURE__*/function () {
|
|
403
|
-
var _ref6 = _asyncToGenerator(
|
|
403
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
|
|
404
404
|
var _orderState$options$t, _orderState$options, _orderState$options2, _orderState$options3, _where, _where2;
|
|
405
405
|
var page, _ref5$pageSize, pageSize, parameters, _orderState$options4, moment, where, searchConditions, source, promises, functionFetch, productEndpoint, _where3;
|
|
406
406
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -521,7 +521,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
521
521
|
};
|
|
522
522
|
}();
|
|
523
523
|
var loadProducts = /*#__PURE__*/function () {
|
|
524
|
-
var _ref7 = _asyncToGenerator(
|
|
524
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
525
525
|
var _categoriesState$cate, _curCategoryState$pro, _businessState$busine11;
|
|
526
526
|
var _ref8,
|
|
527
527
|
newFetch,
|
|
@@ -719,7 +719,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
719
719
|
};
|
|
720
720
|
}();
|
|
721
721
|
var loadMoreProducts = /*#__PURE__*/function () {
|
|
722
|
-
var _ref10 = _asyncToGenerator(
|
|
722
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
723
723
|
var _categoriesState$cate2;
|
|
724
724
|
var curCategoryState, _featuredRes$content13, _yield$getLazyProduct3, _yield$getLazyProduct4, lazyRes, featuredRes, content, error, result, pagination, errorsList, _featuredRes$content14, _featuredRes$content15, _featuredRes$content16, _featuredRes$content17, _oldFeatured$products2, _featuredRes$content$2, _featuredRes$content18, oldFeatured, featureState, _curCategoryState$pro2, _categoriesState$all, _categoriesState$feat7, newcategoryState, isFeatured, _ref11, _featuredRes$content$3, _featuredRes$content19, _categoriesState$feat8, _categoriesState$feat9, _curCategoryState$pag2, _featuredRes$content20, _featuredRes$content21, _featuredRes$content22, _curCategoryState$pro3, _curCategoryState$pro4, _categoriesState$all2, _categoriesState$feat10, productsList, productsListFeatured, paginationData, _newcategoryState2, _isFeatured2, _err$constructor2, _err$message2;
|
|
725
725
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -848,7 +848,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
848
848
|
};
|
|
849
849
|
}();
|
|
850
850
|
var getProduct = /*#__PURE__*/function () {
|
|
851
|
-
var _ref12 = _asyncToGenerator(
|
|
851
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
852
852
|
var _props$product, _props$product2, _props$product3;
|
|
853
853
|
var _orderState$options5, _orderState$options6, _orderState$options7, _orderState$options8, _props$product4, _props$product5, _props$product6, source, parameters, _orderState$options9, moment, _yield$ordering$busin, result, product;
|
|
854
854
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -911,7 +911,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
911
911
|
}
|
|
912
912
|
}, [JSON.stringify((_businessState$busine12 = businessState.business) === null || _businessState$busine12 === void 0 ? void 0 : _businessState$busine12.id), isInitialRender]);
|
|
913
913
|
var getBusiness = /*#__PURE__*/function () {
|
|
914
|
-
var _ref13 = _asyncToGenerator(
|
|
914
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
915
915
|
var _orderState$options10, _orderState$options11, _orderState$options12, _orderState$options13, _orderState$options14, _orderState$options15, _customerState$user, _result$categories, source, parameters, _orderState$options16, moment, _customerState$user2, _yield$ordering$busin2, result, data, _yield$ordering$busin3, menus;
|
|
916
916
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
917
917
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -986,7 +986,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
986
986
|
};
|
|
987
987
|
}();
|
|
988
988
|
var multiRemoveProducts = /*#__PURE__*/function () {
|
|
989
|
-
var _ref14 = _asyncToGenerator(
|
|
989
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(unavailableProducts, carts) {
|
|
990
990
|
var allPromise;
|
|
991
991
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
992
992
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -1047,7 +1047,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
1047
1047
|
});
|
|
1048
1048
|
};
|
|
1049
1049
|
var updateStoreProduct = /*#__PURE__*/function () {
|
|
1050
|
-
var _ref15 = _asyncToGenerator(
|
|
1050
|
+
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(categoryId, productId) {
|
|
1051
1051
|
var updateParams,
|
|
1052
1052
|
_businessState$busine14,
|
|
1053
1053
|
_yield$ordering$busin4,
|
|
@@ -1099,7 +1099,7 @@ var BusinessAndProductList = exports.BusinessAndProductList = function BusinessA
|
|
|
1099
1099
|
};
|
|
1100
1100
|
}();
|
|
1101
1101
|
var updateStoreCategory = /*#__PURE__*/function () {
|
|
1102
|
-
var _ref16 = _asyncToGenerator(
|
|
1102
|
+
var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(categoryId) {
|
|
1103
1103
|
var updateParams,
|
|
1104
1104
|
_businessState$busine15,
|
|
1105
1105
|
_yield$ordering$busin6,
|
|
@@ -47,7 +47,7 @@ var BusinessBasicInformation = exports.BusinessBasicInformation = function Busin
|
|
|
47
47
|
* Method to get business from SDK
|
|
48
48
|
*/
|
|
49
49
|
var getBusiness = /*#__PURE__*/function () {
|
|
50
|
-
var _ref = _asyncToGenerator(
|
|
50
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
51
51
|
var source;
|
|
52
52
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
53
53
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -78,7 +78,7 @@ var BusinessBasicInformation = exports.BusinessBasicInformation = function Busin
|
|
|
78
78
|
* Method to call business get method
|
|
79
79
|
*/
|
|
80
80
|
var loadBusiness = /*#__PURE__*/function () {
|
|
81
|
-
var _ref2 = _asyncToGenerator(
|
|
81
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
82
82
|
var _yield$getBusiness, result;
|
|
83
83
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
84
84
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -119,7 +119,7 @@ var BusinessController = exports.BusinessController = function BusinessControlle
|
|
|
119
119
|
* Method to get business from SDK
|
|
120
120
|
*/
|
|
121
121
|
var getBusiness = /*#__PURE__*/function () {
|
|
122
|
-
var _ref = _asyncToGenerator(
|
|
122
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
123
123
|
var _yield$ordering$busin, _yield$ordering$busin2, result, error;
|
|
124
124
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
125
125
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -210,7 +210,7 @@ var BusinessController = exports.BusinessController = function BusinessControlle
|
|
|
210
210
|
* Method to add, remove favorite info for user from API
|
|
211
211
|
*/
|
|
212
212
|
var handleFavoriteBusiness = /*#__PURE__*/function () {
|
|
213
|
-
var _ref2 = _asyncToGenerator(
|
|
213
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
214
214
|
var isAdd,
|
|
215
215
|
_businessState$busine,
|
|
216
216
|
_businessState$busine2,
|
|
@@ -375,7 +375,7 @@ var BusinessController = exports.BusinessController = function BusinessControlle
|
|
|
375
375
|
}
|
|
376
376
|
}, [business]);
|
|
377
377
|
var updateBusiness = /*#__PURE__*/function () {
|
|
378
|
-
var _ref3 = _asyncToGenerator(
|
|
378
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(businessId) {
|
|
379
379
|
var updateParams,
|
|
380
380
|
_yield$ordering$busin3,
|
|
381
381
|
_yield$ordering$busin4,
|
|
@@ -171,7 +171,7 @@ var BusinessList = exports.BusinessList = function BusinessList(props) {
|
|
|
171
171
|
* @param {boolean} newFetch Make a new request or next page
|
|
172
172
|
*/
|
|
173
173
|
var getBusinesses = /*#__PURE__*/function () {
|
|
174
|
-
var _ref2 = _asyncToGenerator(
|
|
174
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(newFetch, specificPagination, prev) {
|
|
175
175
|
var _configs$location_def, _configs$location_def2, _orderState$options3, _orderState$options4, _orderState$options5, _orderState$options6, _orderState$options11, _orderState$options12, _orderState$options16, defaultLatitude, defaultLongitude, isInvalidDefaultLocation, defaultLocation, parameters, _orderState$options7, _orderState$options8, _orderState$options9, _orderState$options10, paginationParams, _orderState$options13, moment, where, conditions, _orderState$options14, _orderState$options15, searchConditions, isSpecialCharacter, _orderState$options17, _paginationParams, source, fetchEndpoint, _yield$fetchEndpoint$, _yield$fetchEndpoint$2, error, result, pagination, _result, offerBuesinesses, nextPageItems, remainingItems, businesses, fromIndex, toIndex, element;
|
|
176
176
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
177
177
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -417,7 +417,7 @@ var BusinessList = exports.BusinessList = function BusinessList(props) {
|
|
|
417
417
|
* Get franchise info from API
|
|
418
418
|
*/
|
|
419
419
|
var getFranchise = /*#__PURE__*/function () {
|
|
420
|
-
var _ref3 = _asyncToGenerator(
|
|
420
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
421
421
|
var requestOptions, functionFetch, response, _yield$response$json, result;
|
|
422
422
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
423
423
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -465,7 +465,7 @@ var BusinessList = exports.BusinessList = function BusinessList(props) {
|
|
|
465
465
|
};
|
|
466
466
|
}();
|
|
467
467
|
var getCities = /*#__PURE__*/function () {
|
|
468
|
-
var _ref4 = _asyncToGenerator(
|
|
468
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
469
469
|
var requestOptions, response, _yield$response$json2, result, error, pagination;
|
|
470
470
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
471
471
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -48,7 +48,7 @@ var BusinessMenuListing = exports.BusinessMenuListing = function BusinessMenuLis
|
|
|
48
48
|
* Method to get menus from API
|
|
49
49
|
*/
|
|
50
50
|
var getBusinessMenus = /*#__PURE__*/function () {
|
|
51
|
-
var _ref = _asyncToGenerator(
|
|
51
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
52
52
|
var where, fetchEndpoint, _yield$fetchEndpoint$, menus;
|
|
53
53
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
54
54
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -87,7 +87,7 @@ var BusinessReviews = exports.BusinessReviews = function BusinessReviews(props)
|
|
|
87
87
|
* Method to get business from SDK
|
|
88
88
|
*/
|
|
89
89
|
var getBusiness = /*#__PURE__*/function () {
|
|
90
|
-
var _ref = _asyncToGenerator(
|
|
90
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
91
91
|
var _result$reviews, source, _yield$ordering$busin, result, list;
|
|
92
92
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
93
93
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -184,7 +184,7 @@ var BusinessSearchList = exports.BusinessSearchList = function BusinessSearchLis
|
|
|
184
184
|
}));
|
|
185
185
|
};
|
|
186
186
|
var handleSearchbusinessAndProducts = /*#__PURE__*/function () {
|
|
187
|
-
var _ref = _asyncToGenerator(
|
|
187
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(newFetch, options, val) {
|
|
188
188
|
var _orderState$options3, _orderState$options4, _orderState$options5, _orderState$options6, _ref2, filtParams, where, requestOptions, location, response, _yield$response$json, result, error, pagination, nextPageItems, remainingItems;
|
|
189
189
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
190
190
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -294,7 +294,7 @@ var BusinessSearchList = exports.BusinessSearchList = function BusinessSearchLis
|
|
|
294
294
|
* Function to get brand list from API
|
|
295
295
|
*/
|
|
296
296
|
var getBrandList = /*#__PURE__*/function () {
|
|
297
|
-
var _ref3 = _asyncToGenerator(
|
|
297
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
298
298
|
var requestOptions, response, content;
|
|
299
299
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
300
300
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -352,7 +352,7 @@ var BusinessSearchList = exports.BusinessSearchList = function BusinessSearchLis
|
|
|
352
352
|
};
|
|
353
353
|
}();
|
|
354
354
|
var getCities = /*#__PURE__*/function () {
|
|
355
|
-
var _ref4 = _asyncToGenerator(
|
|
355
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
356
356
|
var requestOptions, response, _yield$response$json2, result, error, pagination;
|
|
357
357
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
358
358
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -404,7 +404,7 @@ var BusinessSearchList = exports.BusinessSearchList = function BusinessSearchLis
|
|
|
404
404
|
* Function to get tag list from API
|
|
405
405
|
*/
|
|
406
406
|
var getTagList = /*#__PURE__*/function () {
|
|
407
|
-
var _ref5 = _asyncToGenerator(
|
|
407
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
408
408
|
var requestOptions, response, content;
|
|
409
409
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
410
410
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -70,7 +70,7 @@ var BusinessTypeFilter = exports.BusinessTypeFilter = function BusinessTypeFilte
|
|
|
70
70
|
* Method to get business types from API
|
|
71
71
|
*/
|
|
72
72
|
var getBusinessTypes = /*#__PURE__*/function () {
|
|
73
|
-
var _ref = _asyncToGenerator(
|
|
73
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
74
74
|
var response, _yield$response$json, error, result, pagination;
|
|
75
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
76
76
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -169,7 +169,7 @@ var Cart = exports.Cart = function Cart(props) {
|
|
|
169
169
|
try {
|
|
170
170
|
if (previousComment !== value || disablePreviousComment) {
|
|
171
171
|
clearTimeout(timeout);
|
|
172
|
-
timeout = setTimeout(
|
|
172
|
+
timeout = setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
173
173
|
var uuid, body, response, _yield$response$json, result, error, carts;
|
|
174
174
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
175
175
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -76,7 +76,7 @@ var CartStoresListing = exports.CartStoresListing = function CartStoresListing(p
|
|
|
76
76
|
setChangeStore = _useState8[1];
|
|
77
77
|
var requestsState = {};
|
|
78
78
|
var getCartStores = /*#__PURE__*/function () {
|
|
79
|
-
var _ref = _asyncToGenerator(
|
|
79
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
80
80
|
var source, _yield$ordering$setAc, _yield$ordering$setAc2, error, result;
|
|
81
81
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
82
82
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -122,7 +122,7 @@ var CartStoresListing = exports.CartStoresListing = function CartStoresListing(p
|
|
|
122
122
|
};
|
|
123
123
|
}();
|
|
124
124
|
var handleCartStoreChange = /*#__PURE__*/function () {
|
|
125
|
-
var _ref2 = _asyncToGenerator(
|
|
125
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(businessId) {
|
|
126
126
|
var _yield$ordering$setAc3, _yield$ordering$setAc4, error, result, _orderState$carts, carts, cartFinded, route, _result$business, _result$business2;
|
|
127
127
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
128
128
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -207,7 +207,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
207
207
|
|
|
208
208
|
var paymethodsWithoutSaveCard = ['credomatic'];
|
|
209
209
|
var getBusiness = /*#__PURE__*/function () {
|
|
210
|
-
var _ref = _asyncToGenerator(
|
|
210
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
211
211
|
var _orderState$options, _cartState$cart2, parameters, _yield$ordering$busin, _yield$ordering$busin2, result, error, _result$paymethods, _paymethodSelected$pa, _paymethodSelected, _paymethodSelected$pa2, _paymethodSelected$pa3, _paymethodSelected$pa4;
|
|
212
212
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
213
213
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -270,7 +270,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
270
270
|
* Method to handle click on Place order
|
|
271
271
|
*/
|
|
272
272
|
var handlerClickPlaceOrder = /*#__PURE__*/function () {
|
|
273
|
-
var _ref2 = _asyncToGenerator(
|
|
273
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(paymentOptions, payloadProps, confirmPayment, dismissPlatformPay) {
|
|
274
274
|
var _paymethodSelected$pa5, _cart$balance, _orderState$options2, _paymethodSelected$pa6, _cartResult$paymethod, _result$result, _cartResult$paymethod2, _cartResult$paymethod3, _cartResult$paymethod4;
|
|
275
275
|
var paymethodData, _paymethodSelected$da, payload, result, _paymethodSelected$pa7, cartResult, _result$result2, _yield$confirmPayment, confirmApplePayError;
|
|
276
276
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -400,7 +400,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
400
400
|
* change place spot from checkout
|
|
401
401
|
*/
|
|
402
402
|
var handleChangeSpot = /*#__PURE__*/function () {
|
|
403
|
-
var _ref4 = _asyncToGenerator(
|
|
403
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref3) {
|
|
404
404
|
var _ref3$isCheckout, isCheckout, bodyToSend, id, endpointToFetch, _yield$endpointToFetc, _yield$endpointToFetc2, error, result, _cart$business;
|
|
405
405
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
406
406
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -437,7 +437,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
437
437
|
};
|
|
438
438
|
}();
|
|
439
439
|
var onChangeSpot = /*#__PURE__*/function () {
|
|
440
|
-
var _ref5 = _asyncToGenerator(
|
|
440
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
441
441
|
var _cartState$cart4;
|
|
442
442
|
var bodyToSend;
|
|
443
443
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -470,7 +470,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
470
470
|
try {
|
|
471
471
|
if (previousComment !== value) {
|
|
472
472
|
clearTimeout(timeout);
|
|
473
|
-
timeout = setTimeout(
|
|
473
|
+
timeout = setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
474
474
|
var uuid, response, _yield$response$json, result, error;
|
|
475
475
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
476
476
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -536,7 +536,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
538
|
var getDeliveryOptions = /*#__PURE__*/function () {
|
|
539
|
-
var _ref7 = _asyncToGenerator(
|
|
539
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
540
540
|
var response, _yield$response$json2, result, error;
|
|
541
541
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
542
542
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -598,7 +598,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
598
598
|
};
|
|
599
599
|
}();
|
|
600
600
|
var handleChangeDeliveryOption = /*#__PURE__*/function () {
|
|
601
|
-
var _ref8 = _asyncToGenerator(
|
|
601
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(value) {
|
|
602
602
|
var response, _yield$response$json3, result, error;
|
|
603
603
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
604
604
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -646,7 +646,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
646
646
|
};
|
|
647
647
|
}();
|
|
648
648
|
var getLoyaltyPlans = /*#__PURE__*/function () {
|
|
649
|
-
var _ref9 = _asyncToGenerator(
|
|
649
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
650
650
|
var req, _yield$req$json, error, result;
|
|
651
651
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
652
652
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -694,7 +694,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
694
694
|
};
|
|
695
695
|
}();
|
|
696
696
|
var handleConfirmCredomaticPage = /*#__PURE__*/function () {
|
|
697
|
-
var _ref10 = _asyncToGenerator(
|
|
697
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(cart, paymethodSelected) {
|
|
698
698
|
var _configs$credomatic_i, _configs$credomatic_i2, _configs$credomatic_i3, _configs$credomatic_i4;
|
|
699
699
|
var isSandbox, keyId, processorId, _cart$paymethod_data, _cart$paymethod_data2, _paymethodSelected$da2, _paymethodSelected$da3, _paymethodSelected$da4, _Object$keys, cartUuid, data, form, requestOptions;
|
|
700
700
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
@@ -765,7 +765,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
765
765
|
};
|
|
766
766
|
}();
|
|
767
767
|
var getValidationFieldOrderTypes = /*#__PURE__*/function () {
|
|
768
|
-
var _ref11 = _asyncToGenerator(
|
|
768
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
769
769
|
var requestOptions, response, content;
|
|
770
770
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
771
771
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -865,7 +865,7 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
865
865
|
var amount = (_cart$balance3 = cart === null || cart === void 0 ? void 0 : cart.balance) !== null && _cart$balance3 !== void 0 ? _cart$balance3 : cart === null || cart === void 0 ? void 0 : cart.total;
|
|
866
866
|
if (!(alseaProjects.includes(ordering.project) && isCustomerMode)) return;
|
|
867
867
|
var handleAlseaCheckPrice = /*#__PURE__*/function () {
|
|
868
|
-
var _ref12 = _asyncToGenerator(
|
|
868
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
869
869
|
var customerFromLocalStorage, apiCheckprice, response, result;
|
|
870
870
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
871
871
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -53,7 +53,7 @@ var CmsContent = exports.CmsContent = function CmsContent(props) {
|
|
|
53
53
|
* Method used to get the page by slug
|
|
54
54
|
*/
|
|
55
55
|
var getPage = /*#__PURE__*/function () {
|
|
56
|
-
var _ref = _asyncToGenerator(
|
|
56
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(slug) {
|
|
57
57
|
var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
|
|
58
58
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
59
59
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -81,7 +81,7 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
81
81
|
pagination = _useState8[0],
|
|
82
82
|
setPagination = _useState8[1];
|
|
83
83
|
var getOrders = /*#__PURE__*/function () {
|
|
84
|
-
var _ref = _asyncToGenerator(
|
|
84
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(nextPage) {
|
|
85
85
|
var parameters, pageFetch, _yield$ordering$order, _yield$ordering$order2, result, error, pageConfig, hash;
|
|
86
86
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
87
87
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -155,7 +155,7 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
155
155
|
* Method to get businesses from SDK
|
|
156
156
|
*/
|
|
157
157
|
var getBusinesses = /*#__PURE__*/function () {
|
|
158
|
-
var _ref2 = _asyncToGenerator(
|
|
158
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(nextPage) {
|
|
159
159
|
var where, pageFetch, _yield$ordering$busin, _yield$ordering$busin2, result, error, pageConfig;
|
|
160
160
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
161
161
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -227,7 +227,7 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
227
227
|
* Method to get customers from SDK
|
|
228
228
|
*/
|
|
229
229
|
var getCustomers = /*#__PURE__*/function () {
|
|
230
|
-
var _ref3 = _asyncToGenerator(
|
|
230
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(nextPage) {
|
|
231
231
|
var where, pageFetch, _yield$ordering$setAc, _yield$ordering$setAc2, result, error, pageConfig;
|
|
232
232
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
233
233
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -299,7 +299,7 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
299
299
|
* Method to get drivers from SDK
|
|
300
300
|
*/
|
|
301
301
|
var getDrivers = /*#__PURE__*/function () {
|
|
302
|
-
var _ref4 = _asyncToGenerator(
|
|
302
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(nextPage) {
|
|
303
303
|
var where, pageFetch, _yield$ordering$setAc3, _yield$ordering$setAc4, result, error, pageConfig;
|
|
304
304
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
305
305
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -367,7 +367,7 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
367
367
|
};
|
|
368
368
|
}();
|
|
369
369
|
var loadMore = /*#__PURE__*/function () {
|
|
370
|
-
var _ref5 = _asyncToGenerator(
|
|
370
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(key) {
|
|
371
371
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
372
372
|
while (1) switch (_context5.prev = _context5.next) {
|
|
373
373
|
case 0:
|
|
@@ -430,8 +430,8 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
430
430
|
socket.leave(ordersRoom);
|
|
431
431
|
};
|
|
432
432
|
}, [socket === null || socket === void 0 ? void 0 : socket.socket, user]);
|
|
433
|
-
var handleMessage = (0, _react.useCallback)(
|
|
434
|
-
var _ref6 = _asyncToGenerator(
|
|
433
|
+
var handleMessage = (0, _react.useCallback)(/*#__PURE__*/function () {
|
|
434
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(message) {
|
|
435
435
|
var orderId, _yield$ordering$setAc5, _yield$ordering$setAc6, result, error;
|
|
436
436
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
437
437
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -480,8 +480,8 @@ var Contacts = exports.Contacts = function Contacts(props) {
|
|
|
480
480
|
return _ref6.apply(this, arguments);
|
|
481
481
|
};
|
|
482
482
|
}(), []);
|
|
483
|
-
var handleOrder = (0, _react.useCallback)(
|
|
484
|
-
var _ref7 = _asyncToGenerator(
|
|
483
|
+
var handleOrder = (0, _react.useCallback)(/*#__PURE__*/function () {
|
|
484
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(order) {
|
|
485
485
|
var id, status, driver;
|
|
486
486
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
487
487
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -52,7 +52,7 @@ var DriverList = exports.DriverList = function DriverList(props) {
|
|
|
52
52
|
* Method to get drivers from API
|
|
53
53
|
*/
|
|
54
54
|
var getDriverList = /*#__PURE__*/function () {
|
|
55
|
-
var _ref = _asyncToGenerator(
|
|
55
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
56
|
var where, _yield$ordering$users, _yield$ordering$users2, error, result;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -101,7 +101,7 @@ var FacebookLoginButton = exports.FacebookLoginButton = function FacebookLoginBu
|
|
|
101
101
|
* @param {object} Result from facebook
|
|
102
102
|
*/
|
|
103
103
|
var handleFacebookLoginClick = /*#__PURE__*/function () {
|
|
104
|
-
var _ref = _asyncToGenerator(
|
|
104
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(facebookResponse) {
|
|
105
105
|
var _facebookResponse$aut, response;
|
|
106
106
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
107
107
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -101,7 +101,7 @@ var FavoriteList = exports.FavoriteList = function FavoriteList(props) {
|
|
|
101
101
|
* Function to get favorite list from API
|
|
102
102
|
*/
|
|
103
103
|
var getFavoriteList = /*#__PURE__*/function () {
|
|
104
|
-
var _ref = _asyncToGenerator(
|
|
104
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(page) {
|
|
105
105
|
var pageSize,
|
|
106
106
|
requestOptions,
|
|
107
107
|
params,
|
|
@@ -249,7 +249,7 @@ var FavoriteList = exports.FavoriteList = function FavoriteList(props) {
|
|
|
249
249
|
* Function to get business, product, order list from API
|
|
250
250
|
*/
|
|
251
251
|
var getOriginalList = /*#__PURE__*/function () {
|
|
252
|
-
var _ref2 = _asyncToGenerator(
|
|
252
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ids) {
|
|
253
253
|
var _orderStatus$options;
|
|
254
254
|
var where, conditions, requestOptions, fetchEndpoint, response;
|
|
255
255
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -305,7 +305,7 @@ var FavoriteList = exports.FavoriteList = function FavoriteList(props) {
|
|
|
305
305
|
};
|
|
306
306
|
}();
|
|
307
307
|
var handleReorder = /*#__PURE__*/function () {
|
|
308
|
-
var _ref3 = _asyncToGenerator(
|
|
308
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderId) {
|
|
309
309
|
var _yield$reorder, error, result, _choosedOrder$busines, _choosedOrder$origina, _businessData$content, choosedOrder, _businessId, _businessData, _businessSlug;
|
|
310
310
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
311
311
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -50,7 +50,7 @@ var FirebaseGoogleLoginButton = exports.FirebaseGoogleLoginButton = function Fir
|
|
|
50
50
|
* handling response of Google
|
|
51
51
|
*/
|
|
52
52
|
var signInWithGoogle = /*#__PURE__*/function () {
|
|
53
|
-
var _ref = _asyncToGenerator(
|
|
53
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
54
54
|
var _configs$google_login, _configs$google_login2, auth, googleProvider, response;
|
|
55
55
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
56
56
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -98,7 +98,7 @@ var FirebaseGoogleLoginButton = exports.FirebaseGoogleLoginButton = function Fir
|
|
|
98
98
|
* @param {object} res from Google
|
|
99
99
|
*/
|
|
100
100
|
var handleSigninSuccess = /*#__PURE__*/function () {
|
|
101
|
-
var _ref2 = _asyncToGenerator(
|
|
101
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(tokenResponse) {
|
|
102
102
|
var _yield$ordering$users, _yield$ordering$users2, error, result;
|
|
103
103
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
104
104
|
while (1) switch (_context2.prev = _context2.next) {
|