ordering-components-external 13.2.7 → 13.2.9
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.1a6a3f1c214a7e7ab0a1.js +1 -0
- package/_bundles/{1.ordering-component.f8cca900b596bec3e9d8.js → 1.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/{2.ordering-component.f8cca900b596bec3e9d8.js → 2.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/{4.ordering-component.f8cca900b596bec3e9d8.js → 4.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/{5.ordering-component.f8cca900b596bec3e9d8.js → 5.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/{6.ordering-component.f8cca900b596bec3e9d8.js → 6.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/{7.ordering-component.f8cca900b596bec3e9d8.js → 7.ordering-component.1a6a3f1c214a7e7ab0a1.js} +2 -2
- package/_bundles/{8.ordering-component.f8cca900b596bec3e9d8.js → 8.ordering-component.1a6a3f1c214a7e7ab0a1.js} +1 -1
- package/_bundles/ordering-component.1a6a3f1c214a7e7ab0a1.js +2 -0
- package/_bundles/{ordering-component.f8cca900b596bec3e9d8.js.LICENSE.txt → ordering-component.1a6a3f1c214a7e7ab0a1.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 +33 -20
- 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 +5 -5
- 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/MapView/index.js +27 -21
- package/src/components/MultiCheckout/index.js +4 -1
- package/_bundles/0.ordering-component.f8cca900b596bec3e9d8.js +0 -1
- package/_bundles/ordering-component.f8cca900b596bec3e9d8.js +0 -2
- /package/_bundles/{7.ordering-component.f8cca900b596bec3e9d8.js.LICENSE.txt → 7.ordering-component.1a6a3f1c214a7e7ab0a1.js.LICENSE.txt} +0 -0
|
@@ -150,7 +150,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
150
150
|
return _dayjs.default.utc(date, format).format(format) === date;
|
|
151
151
|
};
|
|
152
152
|
var handleReorder = /*#__PURE__*/function () {
|
|
153
|
-
var _ref = _asyncToGenerator(
|
|
153
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
154
154
|
var orderId, _reordersArray$, _choosedOrder$busines, _choosedOrder$origina, _businessData$content, disableLoading, fetchOrders, reordersArray, error, result, choosedOrder, _businessId, _businessData, _businessSlug, orderResult;
|
|
155
155
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156
156
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -168,13 +168,13 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
168
168
|
}));
|
|
169
169
|
disableLoading = isCustomerMode;
|
|
170
170
|
fetchOrders = /*#__PURE__*/function () {
|
|
171
|
-
var _ref2 = _asyncToGenerator(
|
|
171
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ids) {
|
|
172
172
|
var promises, data;
|
|
173
173
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
174
174
|
while (1) switch (_context2.prev = _context2.next) {
|
|
175
175
|
case 0:
|
|
176
|
-
promises = ids.map(
|
|
177
|
-
var _ref3 = _asyncToGenerator(
|
|
176
|
+
promises = ids.map(/*#__PURE__*/function () {
|
|
177
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
178
178
|
var res;
|
|
179
179
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
180
180
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -274,7 +274,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
274
274
|
};
|
|
275
275
|
}();
|
|
276
276
|
var getOrders = /*#__PURE__*/function () {
|
|
277
|
-
var _ref4 = _asyncToGenerator(
|
|
277
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(page) {
|
|
278
278
|
var otherStatus,
|
|
279
279
|
pageSize,
|
|
280
280
|
searchConditions,
|
|
@@ -394,7 +394,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
394
394
|
};
|
|
395
395
|
}();
|
|
396
396
|
var loadOrders = /*#__PURE__*/function () {
|
|
397
|
-
var _ref5 = _asyncToGenerator(
|
|
397
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(isNextPage, searchByOtherStatus) {
|
|
398
398
|
var keepOrders,
|
|
399
399
|
getFirstOrder,
|
|
400
400
|
pageSize,
|
|
@@ -531,7 +531,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
531
531
|
}));
|
|
532
532
|
};
|
|
533
533
|
var loadMessages = /*#__PURE__*/function () {
|
|
534
|
-
var _ref7 = _asyncToGenerator(
|
|
534
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderId) {
|
|
535
535
|
var url, response, _yield$response$json, error, result;
|
|
536
536
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
537
537
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -591,7 +591,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
591
591
|
};
|
|
592
592
|
}();
|
|
593
593
|
var getBusinesses = /*#__PURE__*/function () {
|
|
594
|
-
var _ref8 = _asyncToGenerator(
|
|
594
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(businessIds) {
|
|
595
595
|
var _orderState$options, _orderState$options2, _orderState$options3, _orderState$options4, parameters, _orderState$options5, moment, where, conditions, source, fetchEndpoint, _yield$fetchEndpoint$, _yield$fetchEndpoint$2, error, result;
|
|
596
596
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
597
597
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -761,7 +761,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
761
761
|
};
|
|
762
762
|
}, [socket, session, userCustomerId, isCustomerMode]);
|
|
763
763
|
var loadMoreOrders = /*#__PURE__*/function () {
|
|
764
|
-
var _ref9 = _asyncToGenerator(
|
|
764
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(searchByOtherStatus) {
|
|
765
765
|
var response;
|
|
766
766
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
767
767
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -811,7 +811,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
811
811
|
};
|
|
812
812
|
}();
|
|
813
813
|
var goToPage = /*#__PURE__*/function () {
|
|
814
|
-
var _ref10 = _asyncToGenerator(
|
|
814
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(page) {
|
|
815
815
|
var response;
|
|
816
816
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
817
817
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -892,7 +892,7 @@ var OrderList = exports.OrderList = function OrderList(props) {
|
|
|
892
892
|
}));
|
|
893
893
|
};
|
|
894
894
|
var getPage = /*#__PURE__*/function () {
|
|
895
|
-
var _ref11 = _asyncToGenerator(
|
|
895
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(page, pageSize) {
|
|
896
896
|
var response;
|
|
897
897
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
898
898
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -202,7 +202,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
202
202
|
var accessToken = useDefualtSessionManager ? session.token : props.accessToken;
|
|
203
203
|
var requestsState = {};
|
|
204
204
|
var getOrders = /*#__PURE__*/function () {
|
|
205
|
-
var _ref2 = _asyncToGenerator(
|
|
205
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
206
206
|
var _filtered$customer, _filtered$customer2, _filtered$date, _filtered$date3;
|
|
207
207
|
var page, _ref$pageSize, pageSize, orderStatus, newFetch, options, _ordersGroup$currentT, _ordersGroup$currentT2, _paymethodResult, paymethodResult, _filtered$driver_grou, _filtered$customer3, _filtered$customer6, customerOptions, _filtered$customer4, _filtered$customer5, _filtered$customer7, _filtered$customer8, _filtered$date2, _filtered$date4, source, functionFetch;
|
|
208
208
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -391,7 +391,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
391
391
|
};
|
|
392
392
|
}();
|
|
393
393
|
var getControls = /*#__PURE__*/function () {
|
|
394
|
-
var _ref3 = _asyncToGenerator(
|
|
394
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
395
395
|
var _result$paymethods, _yield$ordering$setAc, _yield$ordering$setAc2, error, result, obj, _controlsState$error;
|
|
396
396
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
397
397
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -436,7 +436,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
436
436
|
};
|
|
437
437
|
}();
|
|
438
438
|
var loadOrders = /*#__PURE__*/function () {
|
|
439
|
-
var _ref4 = _asyncToGenerator(
|
|
439
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
440
440
|
var _ref5,
|
|
441
441
|
newFetch,
|
|
442
442
|
newFetchCurrent,
|
|
@@ -569,7 +569,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
569
569
|
};
|
|
570
570
|
}();
|
|
571
571
|
var loadMoreOrders = /*#__PURE__*/function () {
|
|
572
|
-
var _ref6 = _asyncToGenerator(
|
|
572
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
573
573
|
var options,
|
|
574
574
|
_ordersGroup$currentT7,
|
|
575
575
|
_ordersGroup$currentT8,
|
|
@@ -665,7 +665,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
665
665
|
};
|
|
666
666
|
}();
|
|
667
667
|
var loadMessages = /*#__PURE__*/function () {
|
|
668
|
-
var _ref7 = _asyncToGenerator(
|
|
668
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderId) {
|
|
669
669
|
var url, response, _yield$response$json, error, result;
|
|
670
670
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
671
671
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -725,7 +725,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
725
725
|
};
|
|
726
726
|
}();
|
|
727
727
|
var deleteOrders = /*#__PURE__*/function () {
|
|
728
|
-
var _ref8 = _asyncToGenerator(
|
|
728
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderIds) {
|
|
729
729
|
var _ordersGroup$currentT10, _ordersGroup$currentT11, errorState, _yield$ordering$setAc3, error, _iterator, _step, id, _yield$ordering$setAc4, multiError, isError, idsDeleted, _err$message4;
|
|
730
730
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
731
731
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -828,7 +828,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
828
828
|
};
|
|
829
829
|
}();
|
|
830
830
|
var loadLogisticOrders = /*#__PURE__*/function () {
|
|
831
|
-
var _ref9 = _asyncToGenerator(
|
|
831
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(isAlreadyFetched) {
|
|
832
832
|
var _session$user, url, response, _yield$response$json2, result, error;
|
|
833
833
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
834
834
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -1036,7 +1036,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1036
1036
|
}
|
|
1037
1037
|
};
|
|
1038
1038
|
var handleClickLogisticOrder = /*#__PURE__*/function () {
|
|
1039
|
-
var _ref10 = _asyncToGenerator(
|
|
1039
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(status, orderId) {
|
|
1040
1040
|
var _session$user2, _session$user3, response, _yield$response$json3, result, error, _logisticOrders$order, _logisticOrders$order2, order, newOrders, _order$order, _order$order$id, _order$order2, _order$order$id2, _order$order3;
|
|
1041
1041
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
1042
1042
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -1104,7 +1104,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1104
1104
|
};
|
|
1105
1105
|
}();
|
|
1106
1106
|
var handleChangeOrderStatus = /*#__PURE__*/function () {
|
|
1107
|
-
var _ref11 = _asyncToGenerator(
|
|
1107
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(status, orderIds) {
|
|
1108
1108
|
var body,
|
|
1109
1109
|
bodyToSend,
|
|
1110
1110
|
setOrderStatus,
|
|
@@ -1121,7 +1121,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1121
1121
|
status: status
|
|
1122
1122
|
};
|
|
1123
1123
|
setOrderStatus = /*#__PURE__*/function () {
|
|
1124
|
-
var _ref12 = _asyncToGenerator(
|
|
1124
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id) {
|
|
1125
1125
|
var _yield$ordering$setAc5, _yield$ordering$setAc6, _result, error;
|
|
1126
1126
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
1127
1127
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -1173,7 +1173,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1173
1173
|
};
|
|
1174
1174
|
}();
|
|
1175
1175
|
var handleSendCustomerReview = /*#__PURE__*/function () {
|
|
1176
|
-
var _ref14 = _asyncToGenerator(
|
|
1176
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(_ref13) {
|
|
1177
1177
|
var customerId, orderIds, body, onClose, setCustomerReview, result, orders, _err$message6;
|
|
1178
1178
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
1179
1179
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -1181,7 +1181,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1181
1181
|
customerId = _ref13.customerId, orderIds = _ref13.orderIds, body = _ref13.body, onClose = _ref13.onClose;
|
|
1182
1182
|
_context12.prev = 1;
|
|
1183
1183
|
setCustomerReview = /*#__PURE__*/function () {
|
|
1184
|
-
var _ref15 = _asyncToGenerator(
|
|
1184
|
+
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(body) {
|
|
1185
1185
|
var response, _yield$response$json4, _result2, error;
|
|
1186
1186
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
1187
1187
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -1268,7 +1268,7 @@ var OrderListGroups = exports.OrderListGroups = function OrderListGroups(props)
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}();
|
|
1270
1270
|
var getBusinessesIDs = /*#__PURE__*/function () {
|
|
1271
|
-
var _ref16 = _asyncToGenerator(
|
|
1271
|
+
var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
1272
1272
|
var propsToFetch, _yield$ordering$busin, _yield$ordering$busin2, error, result, _businessIDs, _err$message7;
|
|
1273
1273
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
1274
1274
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -72,7 +72,7 @@ var OrderReview = exports.OrderReview = function OrderReview(props) {
|
|
|
72
72
|
formState = _useState4[0],
|
|
73
73
|
setFormState = _useState4[1];
|
|
74
74
|
var reviewOrder = /*#__PURE__*/function () {
|
|
75
|
-
var _ref = _asyncToGenerator(
|
|
75
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(body) {
|
|
76
76
|
var headers, response, _yield$response$json, result, error;
|
|
77
77
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78
78
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -121,7 +121,7 @@ var OrderReview = exports.OrderReview = function OrderReview(props) {
|
|
|
121
121
|
* Function that load and send the review order to ordering
|
|
122
122
|
*/
|
|
123
123
|
var handleSendReview = /*#__PURE__*/function () {
|
|
124
|
-
var _ref2 = _asyncToGenerator(
|
|
124
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
125
125
|
var _session$user;
|
|
126
126
|
var staticBody, _order$business, _order$business2, body, _yield$reviewOrder2, response, result, error;
|
|
127
127
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -147,8 +147,8 @@ var OrderReview = exports.OrderReview = function OrderReview(props) {
|
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
149
|
// eslint-disable-next-line no-unused-expressions
|
|
150
|
-
order === null || order === void 0 || (_order$business2 = order.business) === null || _order$business2 === void 0 || _order$business2.forEach(
|
|
151
|
-
var _ref3 = _asyncToGenerator(
|
|
150
|
+
order === null || order === void 0 || (_order$business2 = order.business) === null || _order$business2 === void 0 || _order$business2.forEach(/*#__PURE__*/function () {
|
|
151
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_business, i) {
|
|
152
152
|
var _order$business3;
|
|
153
153
|
var body, _yield$reviewOrder, result, error;
|
|
154
154
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -103,7 +103,7 @@ var OrderVerticalList = exports.OrderVerticalList = function OrderVerticalList(p
|
|
|
103
103
|
var accessToken = useDefualtSessionManager ? session.token : props.accessToken;
|
|
104
104
|
var requestsState = {};
|
|
105
105
|
var getOrders = /*#__PURE__*/function () {
|
|
106
|
-
var _ref2 = _asyncToGenerator(
|
|
106
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
107
107
|
var page, _ref$pageSize, pageSize, orderStatus, options, _ordersGroup, source, functionFetch;
|
|
108
108
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
109
109
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -157,7 +157,7 @@ var OrderVerticalList = exports.OrderVerticalList = function OrderVerticalList(p
|
|
|
157
157
|
};
|
|
158
158
|
}();
|
|
159
159
|
var loadOrders = /*#__PURE__*/function () {
|
|
160
|
-
var _ref3 = _asyncToGenerator(
|
|
160
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
161
161
|
var _ordersGroup$paginati;
|
|
162
162
|
var _ref4,
|
|
163
163
|
newFetch,
|
|
@@ -253,7 +253,7 @@ var OrderVerticalList = exports.OrderVerticalList = function OrderVerticalList(p
|
|
|
253
253
|
};
|
|
254
254
|
}();
|
|
255
255
|
var loadMoreOrders = /*#__PURE__*/function () {
|
|
256
|
-
var _ref5 = _asyncToGenerator(
|
|
256
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
257
257
|
var _yield$getOrders2, _yield$getOrders2$con, error, result, pagination, tabOptions, _err$message2;
|
|
258
258
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
259
259
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -358,7 +358,7 @@ var OrderVerticalList = exports.OrderVerticalList = function OrderVerticalList(p
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
var handleReorder = /*#__PURE__*/function () {
|
|
361
|
-
var _ref6 = _asyncToGenerator(
|
|
361
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderId) {
|
|
362
362
|
var _yield$reorder, error, result;
|
|
363
363
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
364
364
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -56,7 +56,7 @@ var OrdersControlFilters = exports.OrdersControlFilters = function OrdersControl
|
|
|
56
56
|
* Method to get controls from API
|
|
57
57
|
*/
|
|
58
58
|
var getControls = /*#__PURE__*/function () {
|
|
59
|
-
var _ref = _asyncToGenerator(
|
|
59
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
60
60
|
var _yield$ordering$setAc, _yield$ordering$setAc2, error, result, _controlsState$error;
|
|
61
61
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
62
62
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -52,7 +52,7 @@ var Appointments = exports.Appointments = function Appointments(props) {
|
|
|
52
52
|
* Method to get the calendar events of business from API
|
|
53
53
|
*/
|
|
54
54
|
var getBusinessCalendarEvents = /*#__PURE__*/function () {
|
|
55
|
-
var _ref = _asyncToGenerator(
|
|
55
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
56
|
var requestOptions, response, _yield$response$json, result, error;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -206,7 +206,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
206
206
|
return name && name.toLowerCase().includes(searchValue.toLowerCase()) && isSearchByName || description && description.toLowerCase().includes(searchValue.toLowerCase()) && isSearchByDescription;
|
|
207
207
|
};
|
|
208
208
|
var getProducts = /*#__PURE__*/function () {
|
|
209
|
-
var _ref = _asyncToGenerator(
|
|
209
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(newFetch, currentPage, currentPageSize) {
|
|
210
210
|
var _businessState$busine;
|
|
211
211
|
var _categoryState, _businessState$busine2, _categoryFinded, _categoryFinded2, _productsFinded, categoryFinded, _categories, productsFinded, productsFiltered, _categorySelected$pro, _businessState$busine3, _productsFiltered, categoryKey, categoryState, pagination, parameters, where, searchConditions, _businessState$busine4, _businessState$busine5, functionFetch, source, productEndpoint, _yield$productEndpoin, _yield$productEndpoin2, error, result, _pagination, newcategoryState;
|
|
212
212
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -353,7 +353,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
353
353
|
};
|
|
354
354
|
}();
|
|
355
355
|
var getProduct = /*#__PURE__*/function () {
|
|
356
|
-
var _ref2 = _asyncToGenerator(
|
|
356
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
357
357
|
var _businessState$busine6;
|
|
358
358
|
var _businessState$busine7, source, _yield$ordering$busin, result, product;
|
|
359
359
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -401,7 +401,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
401
401
|
};
|
|
402
402
|
}();
|
|
403
403
|
var getTaxes = /*#__PURE__*/function () {
|
|
404
|
-
var _ref3 = _asyncToGenerator(
|
|
404
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
405
405
|
var taxesObject, response, _yield$response$json, error, result;
|
|
406
406
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
407
407
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -454,7 +454,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
454
454
|
};
|
|
455
455
|
}();
|
|
456
456
|
var getFees = /*#__PURE__*/function () {
|
|
457
|
-
var _ref4 = _asyncToGenerator(
|
|
457
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
458
458
|
var feesObject, response, _yield$response$json2, error, result;
|
|
459
459
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
460
460
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -511,7 +511,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
511
511
|
* Method to get the themes from API
|
|
512
512
|
*/
|
|
513
513
|
var getSites = /*#__PURE__*/function () {
|
|
514
|
-
var _ref5 = _asyncToGenerator(
|
|
514
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
515
515
|
var requestOptions, response, _yield$response$json3, error, result, site;
|
|
516
516
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
517
517
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -571,7 +571,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
571
571
|
};
|
|
572
572
|
}();
|
|
573
573
|
var getBusinessTypes = /*#__PURE__*/function () {
|
|
574
|
-
var _ref6 = _asyncToGenerator(
|
|
574
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
575
575
|
var response, _yield$response$json4, error, result;
|
|
576
576
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
577
577
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -620,7 +620,7 @@ var BusinessProductsListing = exports.BusinessProductsListing = function Busines
|
|
|
620
620
|
setBusinessSlug(slug);
|
|
621
621
|
}, [slug]);
|
|
622
622
|
var getBusiness = /*#__PURE__*/function () {
|
|
623
|
-
var _ref7 = _asyncToGenerator(
|
|
623
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
624
624
|
var _result$categories, source, _yield$ordering$busin2, result;
|
|
625
625
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
626
626
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -101,7 +101,7 @@ var CheckPassword = exports.CheckPassword = function CheckPassword(props) {
|
|
|
101
101
|
* Method to confirm password from API
|
|
102
102
|
*/
|
|
103
103
|
var getCheckPassword = /*#__PURE__*/function () {
|
|
104
|
-
var _ref = _asyncToGenerator(
|
|
104
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
105
105
|
var requestOptions, response, content;
|
|
106
106
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
107
107
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -160,7 +160,7 @@ var CheckPassword = exports.CheckPassword = function CheckPassword(props) {
|
|
|
160
160
|
};
|
|
161
161
|
}();
|
|
162
162
|
var generateOtpCode = /*#__PURE__*/function () {
|
|
163
|
-
var _ref2 = _asyncToGenerator(
|
|
163
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
|
|
164
164
|
var body, email, cellphone, countryPhoneCode, response, _yield$response$json, result, error;
|
|
165
165
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
166
166
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -54,7 +54,7 @@ var CityList = exports.CityList = function CityList(props) {
|
|
|
54
54
|
* Method to get cities from API
|
|
55
55
|
*/
|
|
56
56
|
var getCities = /*#__PURE__*/function () {
|
|
57
|
-
var _ref = _asyncToGenerator(
|
|
57
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
58
58
|
var _yield$ordering$count, _yield$ordering$count2, error, result, _cities, _iterator, _step, country;
|
|
59
59
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
60
60
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -66,7 +66,7 @@ var CountryList = exports.CountryList = function CountryList(props) {
|
|
|
66
66
|
* Method to change filter list
|
|
67
67
|
*/
|
|
68
68
|
var handleClickFilterButton = /*#__PURE__*/function () {
|
|
69
|
-
var _ref = _asyncToGenerator(
|
|
69
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
70
70
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
71
71
|
while (1) switch (_context.prev = _context.next) {
|
|
72
72
|
case 0:
|
|
@@ -90,7 +90,7 @@ var CountryList = exports.CountryList = function CountryList(props) {
|
|
|
90
90
|
* Method to get businessList
|
|
91
91
|
*/
|
|
92
92
|
var getBusinessList = /*#__PURE__*/function () {
|
|
93
|
-
var _ref2 = _asyncToGenerator(
|
|
93
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
94
94
|
var _yield$ordering$busin, _yield$ordering$busin2, error, result, _businessIds;
|
|
95
95
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
96
96
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -155,7 +155,7 @@ var CountryList = exports.CountryList = function CountryList(props) {
|
|
|
155
155
|
* Method to get the countries from API
|
|
156
156
|
*/
|
|
157
157
|
var getCountries = /*#__PURE__*/function () {
|
|
158
|
-
var _ref3 = _asyncToGenerator(
|
|
158
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
159
159
|
var where, conditions, searchConditions, isSpecialCharacter, fetchEndpoint, _yield$fetchEndpoint$, _yield$fetchEndpoint$2, error, result;
|
|
160
160
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
161
161
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -97,7 +97,7 @@ var CustomOrderDetails = exports.CustomOrderDetails = function CustomOrderDetail
|
|
|
97
97
|
* Get users from API
|
|
98
98
|
*/
|
|
99
99
|
var getUsers = /*#__PURE__*/function () {
|
|
100
|
-
var _ref = _asyncToGenerator(
|
|
100
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
101
101
|
var conditions, _yield$ordering$setAc, result;
|
|
102
102
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
103
103
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -161,7 +161,7 @@ var CustomOrderDetails = exports.CustomOrderDetails = function CustomOrderDetail
|
|
|
161
161
|
* Method to get business list from API
|
|
162
162
|
*/
|
|
163
163
|
var getBusinessList = /*#__PURE__*/function () {
|
|
164
|
-
var _ref2 = _asyncToGenerator(
|
|
164
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(location) {
|
|
165
165
|
var parameters, conditions, fetchEndpoint, _yield$fetchEndpoint$, _yield$fetchEndpoint$2, error, result;
|
|
166
166
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
167
167
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -223,7 +223,7 @@ var CustomOrderDetails = exports.CustomOrderDetails = function CustomOrderDetail
|
|
|
223
223
|
* Method to get products list from API
|
|
224
224
|
*/
|
|
225
225
|
var getProducts = /*#__PURE__*/function () {
|
|
226
|
-
var _ref3 = _asyncToGenerator(
|
|
226
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(searchValue) {
|
|
227
227
|
var where, searchConditions, _yield$ordering$busin, _yield$ordering$busin2, error, result;
|
|
228
228
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
229
229
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -289,7 +289,7 @@ var CustomOrderDetails = exports.CustomOrderDetails = function CustomOrderDetail
|
|
|
289
289
|
* Method to update product cart
|
|
290
290
|
*/
|
|
291
291
|
var handeUpdateProductCart = /*#__PURE__*/function () {
|
|
292
|
-
var _ref4 = _asyncToGenerator(
|
|
292
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(product, increament) {
|
|
293
293
|
var successful, cartProduct;
|
|
294
294
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
295
295
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -129,7 +129,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
129
129
|
* @param {number, number} pageSize page
|
|
130
130
|
*/
|
|
131
131
|
var getBusinesses = /*#__PURE__*/function () {
|
|
132
|
-
var _ref = _asyncToGenerator(
|
|
132
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(pageSize, page, isInactive) {
|
|
133
133
|
var where, conditions, options, searchConditions, _filterValues$availab, _filterValues$menus, filterConditons, _filterValues$availab2, _filterValues$availab3, _filterValues$menus2, _filterValues$menus3, functionFetch;
|
|
134
134
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
135
135
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -280,7 +280,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
280
280
|
* Method to get the countries from API
|
|
281
281
|
*/
|
|
282
282
|
var getCountries = /*#__PURE__*/function () {
|
|
283
|
-
var _ref2 = _asyncToGenerator(
|
|
283
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
284
284
|
var _yield$ordering$count, _yield$ordering$count2, error, result, enabled, cities, _iterator, _step, country;
|
|
285
285
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
286
286
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -353,7 +353,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
353
353
|
* Method to load businesses
|
|
354
354
|
*/
|
|
355
355
|
var loadBusinesses = /*#__PURE__*/function () {
|
|
356
|
-
var _ref3 = _asyncToGenerator(
|
|
356
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
357
357
|
var response, _err$constructor;
|
|
358
358
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
359
359
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -413,7 +413,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
413
413
|
* Method to get businesses
|
|
414
414
|
*/
|
|
415
415
|
var getInActiveBusinesses = /*#__PURE__*/function () {
|
|
416
|
-
var _ref4 = _asyncToGenerator(
|
|
416
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
417
417
|
var response, _response$content;
|
|
418
418
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
419
419
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -453,7 +453,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
453
453
|
* Method to get businesses more
|
|
454
454
|
*/
|
|
455
455
|
var loadMoreBusinesses = /*#__PURE__*/function () {
|
|
456
|
-
var _ref5 = _asyncToGenerator(
|
|
456
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
457
457
|
var response;
|
|
458
458
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
459
459
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -507,7 +507,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
507
507
|
* Method to get businesses for page and pageSize
|
|
508
508
|
*/
|
|
509
509
|
var getPageBusinesses = /*#__PURE__*/function () {
|
|
510
|
-
var _ref6 = _asyncToGenerator(
|
|
510
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(pageSize, page) {
|
|
511
511
|
var response;
|
|
512
512
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
513
513
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -563,7 +563,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
563
563
|
* @param {Boolean} isFeatured flag to check if featured or enabled
|
|
564
564
|
*/
|
|
565
565
|
var handleEnableAllBusiness = /*#__PURE__*/function () {
|
|
566
|
-
var _ref7 = _asyncToGenerator(
|
|
566
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(enabled) {
|
|
567
567
|
var isFeatured,
|
|
568
568
|
changes,
|
|
569
569
|
requestOptions,
|
|
@@ -637,7 +637,7 @@ var DashboardBusinessList = exports.DashboardBusinessList = function DashboardBu
|
|
|
637
637
|
* Method to delete business list
|
|
638
638
|
*/
|
|
639
639
|
var handleDeleteMultiBusinesses = /*#__PURE__*/function () {
|
|
640
|
-
var _ref8 = _asyncToGenerator(
|
|
640
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
641
641
|
var requestOptions, response, content, updatedBusinessList;
|
|
642
642
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
643
643
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -121,7 +121,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
121
121
|
* @param {object} order orders id and new status
|
|
122
122
|
*/
|
|
123
123
|
var handleUpdateOrderStatus = /*#__PURE__*/function () {
|
|
124
|
-
var _ref = _asyncToGenerator(
|
|
124
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(order) {
|
|
125
125
|
var source, _yield$ordering$setAc, content, _orders2;
|
|
126
126
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
127
127
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -178,7 +178,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
178
178
|
* @param {number} page page number
|
|
179
179
|
*/
|
|
180
180
|
var getOrders = /*#__PURE__*/function () {
|
|
181
|
-
var _ref2 = _asyncToGenerator(
|
|
181
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(pageSize, page) {
|
|
182
182
|
var where, conditions, options, getFilterStatusInOrderStatus, searchConditions, _filterValues$metafie, filterConditons, metafieldConditions, source, functionFetch;
|
|
183
183
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
184
184
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -529,7 +529,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
529
529
|
return filterCheck;
|
|
530
530
|
};
|
|
531
531
|
var loadOrders = /*#__PURE__*/function () {
|
|
532
|
-
var _ref3 = _asyncToGenerator(
|
|
532
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
533
533
|
var response;
|
|
534
534
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
535
535
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -585,7 +585,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
585
585
|
};
|
|
586
586
|
}();
|
|
587
587
|
var loadMoreOrders = /*#__PURE__*/function () {
|
|
588
|
-
var _ref4 = _asyncToGenerator(
|
|
588
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
589
589
|
var response;
|
|
590
590
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
591
591
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -635,7 +635,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
635
635
|
};
|
|
636
636
|
}();
|
|
637
637
|
var getPageOrders = /*#__PURE__*/function () {
|
|
638
|
-
var _ref5 = _asyncToGenerator(
|
|
638
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(pageSize, page) {
|
|
639
639
|
var response;
|
|
640
640
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
641
641
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -717,7 +717,7 @@ var DashboardOrdersList = exports.DashboardOrdersList = function DashboardOrders
|
|
|
717
717
|
setAllowColumns(_allowColumnsUpdated);
|
|
718
718
|
};
|
|
719
719
|
var saveUserSettings = /*#__PURE__*/function () {
|
|
720
|
-
var _ref8 = _asyncToGenerator(
|
|
720
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(allowColumnsUpdated) {
|
|
721
721
|
var _session$user, _session$user2, _session$user3, _settings, _allowColumnsUpdated;
|
|
722
722
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
723
723
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -150,7 +150,7 @@ var DriversList = exports.DriversList = function DriversList(props) {
|
|
|
150
150
|
* @param {object} assign assigned order id and driver id
|
|
151
151
|
*/
|
|
152
152
|
var handleAssignDriver = /*#__PURE__*/function () {
|
|
153
|
-
var _ref = _asyncToGenerator(
|
|
153
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(assign) {
|
|
154
154
|
var source, _yield$ordering$setAc, content;
|
|
155
155
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
156
156
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -207,7 +207,7 @@ var DriversList = exports.DriversList = function DriversList(props) {
|
|
|
207
207
|
* @param {object} assign assigned order_id and driver_company_id
|
|
208
208
|
*/
|
|
209
209
|
var handleAssignDriverCompany = /*#__PURE__*/function () {
|
|
210
|
-
var _ref2 = _asyncToGenerator(
|
|
210
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(assign) {
|
|
211
211
|
var requestOptions, response, _yield$response$json, error, result;
|
|
212
212
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
213
213
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -324,7 +324,7 @@ var DriversList = exports.DriversList = function DriversList(props) {
|
|
|
324
324
|
* Method to get drivers from API
|
|
325
325
|
*/
|
|
326
326
|
var getDrivers = /*#__PURE__*/function () {
|
|
327
|
-
var _ref3 = _asyncToGenerator(
|
|
327
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
328
328
|
var source, where, conditions, searchConditions, _yield$ordering$setAc2, result;
|
|
329
329
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
330
330
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -415,7 +415,7 @@ var DriversList = exports.DriversList = function DriversList(props) {
|
|
|
415
415
|
* Method to get the drivers of order from API
|
|
416
416
|
*/
|
|
417
417
|
var getOrderDrivers = /*#__PURE__*/function () {
|
|
418
|
-
var _ref4 = _asyncToGenerator(
|
|
418
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
419
419
|
var requestOptions, response, _yield$response$json2, error, result;
|
|
420
420
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
421
421
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -52,7 +52,7 @@ var ExportCSV = exports.ExportCSV = function ExportCSV(props) {
|
|
|
52
52
|
* Method to get csv from API
|
|
53
53
|
*/
|
|
54
54
|
var getCSV = /*#__PURE__*/function () {
|
|
55
|
-
var _ref = _asyncToGenerator(
|
|
55
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(filterApply) {
|
|
56
56
|
var requestOptions, filterConditons, functionFetch, response, _yield$response$json, error, result;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -74,7 +74,7 @@ var GiftCardsList = exports.GiftCardsList = function GiftCardsList(props) {
|
|
|
74
74
|
* Method to get the gift cards from API
|
|
75
75
|
*/
|
|
76
76
|
var getGiftCards = /*#__PURE__*/function () {
|
|
77
|
-
var _ref = _asyncToGenerator(
|
|
77
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(page, pageSize) {
|
|
78
78
|
var where, conditions, searchConditions, requestOptions, fetchEndpoint, response, _yield$response$json, error, result, pagination;
|
|
79
79
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
80
80
|
while (1) switch (_context.prev = _context.next) {
|