ordering-ui-external 10.9.6 → 10.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/_bundles/{7.ordering-ui.a3fd703d3312a3b71fa1.js → 7.ordering-ui.5066da7ae1ecd7adcd8c.js} +1 -1
  2. package/_bundles/ordering-ui.5066da7ae1ecd7adcd8c.js +2 -0
  3. package/_modules/components/AddressForm/index.js +8 -5
  4. package/_modules/components/BusinessProductsListing/index.js +8 -5
  5. package/_modules/components/Checkout/index.js +8 -5
  6. package/_modules/components/Footer/index.js +7 -5
  7. package/_modules/components/HelpStaticPage/index.js +7 -5
  8. package/_modules/components/LoginForm/index.js +8 -5
  9. package/_modules/components/OrdersOption/index.js +8 -5
  10. package/_modules/components/PagesList/index.js +7 -5
  11. package/_modules/components/StripeMethodForm/index.js +8 -5
  12. package/_modules/hooks/useIntersectionObserver.js +7 -5
  13. package/_modules/index.js +6 -0
  14. package/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +8 -5
  15. package/_modules/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
  16. package/_modules/themes/callcenterOriginal/src/components/Checkout/index.js +8 -5
  17. package/_modules/themes/callcenterOriginal/src/components/Footer/index.js +7 -5
  18. package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +3 -3
  19. package/_modules/themes/callcenterOriginal/src/components/HelpStaticPage/index.js +7 -5
  20. package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +8 -5
  21. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +8 -5
  22. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +8 -5
  23. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +8 -5
  24. package/_modules/themes/callcenterOriginal/src/components/OrdersOption/index.js +8 -5
  25. package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +4 -4
  26. package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +7 -5
  27. package/_modules/themes/eight/src/components/AddressForm/index.js +8 -5
  28. package/_modules/themes/eight/src/components/Checkout/index.js +8 -5
  29. package/_modules/themes/eight/src/components/Footer/index.js +7 -5
  30. package/_modules/themes/eight/src/components/LoginForm/index.js +8 -5
  31. package/_modules/themes/five/src/components/AddressForm/index.js +8 -5
  32. package/_modules/themes/five/src/components/AddressList/index.js +8 -5
  33. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +2 -2
  34. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +15 -9
  35. package/_modules/themes/five/src/components/Checkout/index.js +8 -5
  36. package/_modules/themes/five/src/components/Footer/index.js +8 -5
  37. package/_modules/themes/five/src/components/HelpStaticPage/index.js +7 -5
  38. package/_modules/themes/five/src/components/LoginForm/index.js +8 -5
  39. package/_modules/themes/five/src/components/LogoutPopup/index.js +15 -9
  40. package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +8 -5
  41. package/_modules/themes/five/src/components/OrderDetails/index.js +16 -10
  42. package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -5
  43. package/_modules/themes/five/src/components/ProductForm/index.js +3 -2
  44. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +3 -2
  45. package/_modules/themes/five/src/components/SignUpForm/index.js +8 -5
  46. package/_modules/themes/five/src/components/SingleOrderCard/index.js +8 -5
  47. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +4 -3
  48. package/_modules/themes/five/src/components/UpsellingPage/index.js +9 -5
  49. package/_modules/themes/five/src/components/UserFormDetails/index.js +8 -7
  50. package/_modules/themes/four/src/components/AddressForm/index.js +8 -5
  51. package/_modules/themes/four/src/components/BusinessProductsListing/index.js +8 -5
  52. package/_modules/themes/four/src/components/Checkout/index.js +8 -5
  53. package/_modules/themes/four/src/components/Footer/index.js +7 -5
  54. package/_modules/themes/four/src/components/HelpStaticPage/index.js +7 -5
  55. package/_modules/themes/four/src/components/LoginForm/index.js +8 -5
  56. package/_modules/themes/four/src/components/OrdersOption/index.js +8 -5
  57. package/_modules/themes/franchise/src/components/AddressForm/index.js +8 -5
  58. package/_modules/themes/franchise/src/components/Checkout/index.js +8 -5
  59. package/_modules/themes/franchise/src/components/Footer/index.js +7 -5
  60. package/_modules/themes/franchise/src/components/HelpStaticPage/index.js +7 -5
  61. package/_modules/themes/franchise/src/components/LoginForm/index.js +8 -5
  62. package/_modules/themes/franchise/src/components/OrdersOption/index.js +8 -5
  63. package/_modules/themes/orderAndPay/src/components/Checkout/index.js +31 -20
  64. package/_modules/themes/orderAndPay/src/components/Footer/index.js +7 -5
  65. package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +8 -5
  66. package/_modules/themes/orderAndPay/src/components/OrderTypeSelectorContent/index.js +15 -9
  67. package/_modules/themes/orderAndPay/src/components/OrdersOption/index.js +8 -5
  68. package/_modules/themes/pwa/src/components/AddressForm/index.js +8 -5
  69. package/_modules/themes/pwa/src/components/Checkout/index.js +8 -5
  70. package/_modules/themes/pwa/src/components/Footer/index.js +7 -5
  71. package/_modules/themes/pwa/src/components/HelpStaticPage/index.js +7 -5
  72. package/_modules/themes/pwa/src/components/LoginForm/index.js +8 -5
  73. package/_modules/themes/pwa/src/components/OrdersOption/index.js +8 -5
  74. package/_modules/themes/seven/src/components/AddressForm/index.js +8 -5
  75. package/_modules/themes/seven/src/components/Checkout/index.js +8 -5
  76. package/_modules/themes/seven/src/components/Footer/index.js +7 -5
  77. package/_modules/themes/seven/src/components/LoginForm/index.js +8 -5
  78. package/_modules/themes/seven/src/components/OrdersOption/index.js +8 -5
  79. package/_modules/themes/seven/src/components/ProductForm/productForm.js +15 -9
  80. package/_modules/themes/six/src/components/AddressForm/index.js +8 -5
  81. package/_modules/themes/six/src/components/Checkout/index.js +8 -5
  82. package/_modules/themes/six/src/components/Footer/index.js +7 -5
  83. package/_modules/themes/six/src/components/Header/index.js +1 -0
  84. package/_modules/themes/six/src/components/LoginForm/index.js +8 -5
  85. package/_modules/themes/six/src/components/SidebarMenu/index.js +96 -11
  86. package/_modules/themes/three/src/components/AddressForm/index.js +8 -5
  87. package/_modules/themes/three/src/components/Checkout/index.js +8 -5
  88. package/_modules/themes/three/src/components/Footer/index.js +7 -5
  89. package/_modules/themes/three/src/components/HelpStaticPage/index.js +7 -5
  90. package/_modules/themes/three/src/components/LoginForm/index.js +8 -5
  91. package/_modules/themes/three/src/components/OrdersOption/index.js +8 -5
  92. package/_modules/themes/two/src/components/Checkout/index.js +8 -5
  93. package/_modules/themes/two/src/components/HelpStaticPage/index.js +7 -5
  94. package/_modules/themes/two/src/components/LoginForm/index.js +8 -5
  95. package/_modules/themes/two/src/components/OrdersOption/index.js +8 -5
  96. package/_modules/themes/wow/src/components/AddressForm/index.js +8 -5
  97. package/_modules/themes/wow/src/components/Checkout/index.js +8 -5
  98. package/_modules/themes/wow/src/components/LoginForm/index.js +8 -5
  99. package/_modules/themes/wow/src/components/OrdersOption/index.js +8 -5
  100. package/package.json +2 -2
  101. package/src/index.js +4 -2
  102. package/src/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
  103. package/src/themes/callcenterOriginal/src/components/Header/styles.js +5 -5
  104. package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +4 -4
  105. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +5 -5
  106. package/src/themes/five/src/components/ProductForm/index.js +29 -26
  107. package/src/themes/five/src/components/ProductItemAccordion/index.js +2 -1
  108. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +2 -1
  109. package/src/themes/five/src/components/UpsellingPage/index.js +12 -4
  110. package/src/themes/five/src/components/UserFormDetails/index.js +6 -6
  111. package/src/themes/six/src/components/Header/index.js +1 -1
  112. package/src/themes/six/src/components/SidebarMenu/index.js +120 -5
  113. package/template/app.js +31 -26
  114. package/_bundles/ordering-ui.a3fd703d3312a3b71fa1.js +0 -2
  115. /package/_bundles/{0.ordering-ui.a3fd703d3312a3b71fa1.js → 0.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  116. /package/_bundles/{1.ordering-ui.a3fd703d3312a3b71fa1.js → 1.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  117. /package/_bundles/{2.ordering-ui.a3fd703d3312a3b71fa1.js → 2.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  118. /package/_bundles/{4.ordering-ui.a3fd703d3312a3b71fa1.js → 4.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  119. /package/_bundles/{5.ordering-ui.a3fd703d3312a3b71fa1.js → 5.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  120. /package/_bundles/{6.ordering-ui.a3fd703d3312a3b71fa1.js → 6.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  121. /package/_bundles/{7.ordering-ui.a3fd703d3312a3b71fa1.js.LICENSE.txt → 7.ordering-ui.5066da7ae1ecd7adcd8c.js.LICENSE.txt} +0 -0
  122. /package/_bundles/{8.ordering-ui.a3fd703d3312a3b71fa1.js → 8.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  123. /package/_bundles/{9.ordering-ui.a3fd703d3312a3b71fa1.js → 9.ordering-ui.5066da7ae1ecd7adcd8c.js} +0 -0
  124. /package/_bundles/{ordering-ui.a3fd703d3312a3b71fa1.js.LICENSE.txt → ordering-ui.5066da7ae1ecd7adcd8c.js.LICENSE.txt} +0 -0
@@ -493,7 +493,7 @@ var CheckoutUI = function CheckoutUI(props) {
493
493
  }));
494
494
  };
495
495
  var Checkout = function Checkout(props) {
496
- var _Object$values2, _ref, _cartState$cart, _cartState$error, _cartState$cart2;
496
+ var _Object$values2, _cartState$cart, _cartState$error, _cartState$cart2;
497
497
  var errors = props.errors,
498
498
  clearErrors = props.clearErrors,
499
499
  query = props.query,
@@ -584,8 +584,8 @@ var Checkout = function Checkout(props) {
584
584
  });
585
585
  }
586
586
  }, [errors]);
587
- var getOrder = function getOrder(_x) {
588
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
587
+ var getOrder = /*#__PURE__*/function () {
588
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
589
589
  var _result$order, _result$paymethod_dat, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
590
590
  return _regeneratorRuntime().wrap(function _callee$(_context) {
591
591
  while (1) switch (_context.prev = _context.next) {
@@ -679,8 +679,11 @@ var Checkout = function Checkout(props) {
679
679
  return _context.stop();
680
680
  }
681
681
  }, _callee, null, [[0, 35], [17, 26]]);
682
- }))).apply(this, arguments);
683
- };
682
+ }));
683
+ return function getOrder(_x) {
684
+ return _ref.apply(this, arguments);
685
+ };
686
+ }();
684
687
  (0, _react.useEffect)(function () {
685
688
  if (token && cartUuid) {
686
689
  getOrder(cartUuid);
@@ -24,7 +24,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
24
24
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  var Footer = function Footer() {
27
- var _ref;
28
27
  var _useState = (0, _react.useState)({
29
28
  body: null,
30
29
  loading: false,
@@ -37,8 +36,8 @@ var Footer = function Footer() {
37
36
  _useApi2 = _slicedToArray(_useApi, 1),
38
37
  ordering = _useApi2[0];
39
38
  var requestsState = {};
40
- var getPage = function getPage() {
41
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
39
+ var getPage = /*#__PURE__*/function () {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
42
41
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
43
42
  return _regeneratorRuntime().wrap(function _callee$(_context) {
44
43
  while (1) switch (_context.prev = _context.next) {
@@ -86,8 +85,11 @@ var Footer = function Footer() {
86
85
  return _context.stop();
87
86
  }
88
87
  }, _callee, null, [[1, 14]]);
89
- }))).apply(this, arguments);
90
- };
88
+ }));
89
+ return function getPage() {
90
+ return _ref.apply(this, arguments);
91
+ };
92
+ }();
91
93
  (0, _react.useEffect)(function () {
92
94
  getPage();
93
95
  return function () {
@@ -26,7 +26,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
26
26
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  var HelpStaticPage = function HelpStaticPage(props) {
29
- var _ref;
30
29
  var slug = props.slug;
31
30
  var _useState = (0, _react.useState)({
32
31
  body: null,
@@ -40,8 +39,8 @@ var HelpStaticPage = function HelpStaticPage(props) {
40
39
  _useApi2 = _slicedToArray(_useApi, 1),
41
40
  ordering = _useApi2[0];
42
41
  var requestsState = {};
43
- var getPage = function getPage() {
44
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
42
+ var getPage = /*#__PURE__*/function () {
43
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
45
44
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
46
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
47
46
  while (1) switch (_context.prev = _context.next) {
@@ -89,8 +88,11 @@ var HelpStaticPage = function HelpStaticPage(props) {
89
88
  return _context.stop();
90
89
  }
91
90
  }, _callee, null, [[1, 14]]);
92
- }))).apply(this, arguments);
93
- };
91
+ }));
92
+ return function getPage() {
93
+ return _ref.apply(this, arguments);
94
+ };
95
+ }();
94
96
  (0, _react.useEffect)(function () {
95
97
  getPage();
96
98
  return function () {
@@ -47,7 +47,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
47
47
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
48
48
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import { Tabs, Tab } from '../../styles/Tabs'
49
49
  var LoginFormUI = function LoginFormUI(props) {
50
- var _ref, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images2, _theme$defaultLanguag, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag2, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$apple_login_, _configs$twilio_servi, _configs$twilio_servi2, _theme$defaultLanguag3, _props$afterComponent, _props$afterElements;
50
+ var _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images2, _theme$defaultLanguag, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag2, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$apple_login_, _configs$twilio_servi, _configs$twilio_servi2, _theme$defaultLanguag3, _props$afterComponent, _props$afterElements;
51
51
  var useLoginByEmail = props.useLoginByEmail,
52
52
  useLoginByCellphone = props.useLoginByCellphone,
53
53
  handleChangeInput = props.handleChangeInput,
@@ -120,8 +120,8 @@ var LoginFormUI = function LoginFormUI(props) {
120
120
  otpLeftTime = _useCountdownTimer2[0],
121
121
  _ = _useCountdownTimer2[1],
122
122
  resetOtpLeftTime = _useCountdownTimer2[2];
123
- var onSubmit = function onSubmit() {
124
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
123
+ var onSubmit = /*#__PURE__*/function () {
124
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
125
125
  return _regeneratorRuntime().wrap(function _callee$(_context) {
126
126
  while (1) switch (_context.prev = _context.next) {
127
127
  case 0:
@@ -149,8 +149,11 @@ var LoginFormUI = function LoginFormUI(props) {
149
149
  return _context.stop();
150
150
  }
151
151
  }, _callee);
152
- }))).apply(this, arguments);
153
- };
152
+ }));
153
+ return function onSubmit() {
154
+ return _ref.apply(this, arguments);
155
+ };
156
+ }();
154
157
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
155
158
  var _user$session;
156
159
  login({
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
36
36
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
37
37
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
38
  var OrdersOptionUI = function OrdersOptionUI(props) {
39
- var _theme$images, _theme$images2, _ref, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
39
+ var _theme$images, _theme$images2, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
40
40
  var horizontal = props.horizontal,
41
41
  activeOrders = props.activeOrders,
42
42
  orderList = props.orderList,
@@ -72,8 +72,8 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
72
72
  _useState4 = _slicedToArray(_useState3, 2),
73
73
  reorderLoading = _useState4[0],
74
74
  setReorderLoading = _useState4[1];
75
- var handleReorder = function handleReorder(_x) {
76
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
75
+ var handleReorder = /*#__PURE__*/function () {
76
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
77
77
  var _yield$reorder, _error, result;
78
78
  return _regeneratorRuntime().wrap(function _callee$(_context) {
79
79
  while (1) switch (_context.prev = _context.next) {
@@ -110,8 +110,11 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
110
110
  return _context.stop();
111
111
  }
112
112
  }, _callee, null, [[1, 13]]);
113
- }))).apply(this, arguments);
114
- };
113
+ }));
114
+ return function handleReorder(_x) {
115
+ return _ref.apply(this, arguments);
116
+ };
117
+ }();
115
118
  var getOrderStatus = function getOrderStatus(s) {
116
119
  var _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _theme$defaultLanguag17, _theme$defaultLanguag18, _theme$defaultLanguag19, _theme$defaultLanguag20, _theme$defaultLanguag21, _theme$defaultLanguag22, _theme$defaultLanguag23, _theme$defaultLanguag24;
117
120
  var status = parseInt(s);
@@ -54,7 +54,7 @@ var inputNames = [{
54
54
  code: 'Address notes'
55
55
  }];
56
56
  var AddressFormUI = function AddressFormUI(props) {
57
- var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _ref2, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
57
+ var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
58
58
  var addressesList = props.addressesList,
59
59
  googleMapsControls = props.googleMapsControls,
60
60
  formState = props.formState,
@@ -232,8 +232,8 @@ var AddressFormUI = function AddressFormUI(props) {
232
232
  e.preventDefault();
233
233
  }
234
234
  };
235
- var onSubmit = function onSubmit() {
236
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
235
+ var onSubmit = /*#__PURE__*/function () {
236
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
237
237
  var _formState$changes3, _addressState$address6, _formState$changes4, _formState$changes5, _arrayList$map$some2;
238
238
  var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
239
239
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -293,8 +293,11 @@ var AddressFormUI = function AddressFormUI(props) {
293
293
  return _context.stop();
294
294
  }
295
295
  }, _callee);
296
- }))).apply(this, arguments);
297
- };
296
+ }));
297
+ return function onSubmit() {
298
+ return _ref2.apply(this, arguments);
299
+ };
300
+ }();
298
301
  var handleAddressTag = function handleAddressTag(tag) {
299
302
  setAddressTag(tag);
300
303
  handleChangeInput({
@@ -388,7 +388,7 @@ var CheckoutUI = function CheckoutUI(props) {
388
388
  }));
389
389
  };
390
390
  var Checkout = function Checkout(props) {
391
- var _Object$values2, _ref, _cartState$error, _cartState$cart;
391
+ var _Object$values2, _cartState$error, _cartState$cart;
392
392
  var errors = props.errors,
393
393
  clearErrors = props.clearErrors,
394
394
  cartUuid = props.cartUuid,
@@ -478,8 +478,8 @@ var Checkout = function Checkout(props) {
478
478
  });
479
479
  }
480
480
  }, [errors]);
481
- var getOrder = function getOrder(_x) {
482
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
481
+ var getOrder = /*#__PURE__*/function () {
482
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
483
483
  var _result$order, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
484
484
  return _regeneratorRuntime().wrap(function _callee$(_context) {
485
485
  while (1) switch (_context.prev = _context.next) {
@@ -573,8 +573,11 @@ var Checkout = function Checkout(props) {
573
573
  return _context.stop();
574
574
  }
575
575
  }, _callee, null, [[0, 35], [17, 26]]);
576
- }))).apply(this, arguments);
577
- };
576
+ }));
577
+ return function getOrder(_x) {
578
+ return _ref.apply(this, arguments);
579
+ };
580
+ }();
578
581
  (0, _react.useEffect)(function () {
579
582
  if (token && cartUuid) {
580
583
  getOrder(cartUuid);
@@ -24,7 +24,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
24
24
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  var Footer = function Footer() {
27
- var _ref;
28
27
  var _useState = (0, _react.useState)({
29
28
  body: null,
30
29
  loading: false,
@@ -37,8 +36,8 @@ var Footer = function Footer() {
37
36
  _useApi2 = _slicedToArray(_useApi, 1),
38
37
  ordering = _useApi2[0];
39
38
  var requestsState = {};
40
- var getPage = function getPage() {
41
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
39
+ var getPage = /*#__PURE__*/function () {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
42
41
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
43
42
  return _regeneratorRuntime().wrap(function _callee$(_context) {
44
43
  while (1) switch (_context.prev = _context.next) {
@@ -86,8 +85,11 @@ var Footer = function Footer() {
86
85
  return _context.stop();
87
86
  }
88
87
  }, _callee, null, [[1, 14]]);
89
- }))).apply(this, arguments);
90
- };
88
+ }));
89
+ return function getPage() {
90
+ return _ref.apply(this, arguments);
91
+ };
92
+ }();
91
93
  (0, _react.useEffect)(function () {
92
94
  getPage();
93
95
  return function () {
@@ -26,7 +26,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
26
26
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  var HelpStaticPage = function HelpStaticPage(props) {
29
- var _ref;
30
29
  var slug = props.slug;
31
30
  var _useState = (0, _react.useState)({
32
31
  body: null,
@@ -40,8 +39,8 @@ var HelpStaticPage = function HelpStaticPage(props) {
40
39
  _useApi2 = _slicedToArray(_useApi, 1),
41
40
  ordering = _useApi2[0];
42
41
  var requestsState = {};
43
- var getPage = function getPage() {
44
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
42
+ var getPage = /*#__PURE__*/function () {
43
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
45
44
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
46
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
47
46
  while (1) switch (_context.prev = _context.next) {
@@ -89,8 +88,11 @@ var HelpStaticPage = function HelpStaticPage(props) {
89
88
  return _context.stop();
90
89
  }
91
90
  }, _callee, null, [[1, 14]]);
92
- }))).apply(this, arguments);
93
- };
91
+ }));
92
+ return function getPage() {
93
+ return _ref.apply(this, arguments);
94
+ };
95
+ }();
94
96
  (0, _react.useEffect)(function () {
95
97
  getPage();
96
98
  return function () {
@@ -49,7 +49,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
49
49
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
50
50
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
51
  var LoginFormUI = function LoginFormUI(props) {
52
- var _configs$google_login, _ref, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$google_login2, _configs$apple_login_, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
52
+ var _configs$google_login, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$google_login2, _configs$apple_login_, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
53
53
  var useLoginByEmail = props.useLoginByEmail,
54
54
  useLoginByCellphone = props.useLoginByCellphone,
55
55
  handleChangeInput = props.handleChangeInput,
@@ -127,8 +127,8 @@ var LoginFormUI = function LoginFormUI(props) {
127
127
  cookiepolicy: 'single_host_origin',
128
128
  scope: 'profile'
129
129
  };
130
- var onSubmit = function onSubmit() {
131
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
130
+ var onSubmit = /*#__PURE__*/function () {
131
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
132
132
  return _regeneratorRuntime().wrap(function _callee$(_context) {
133
133
  while (1) switch (_context.prev = _context.next) {
134
134
  case 0:
@@ -156,8 +156,11 @@ var LoginFormUI = function LoginFormUI(props) {
156
156
  return _context.stop();
157
157
  }
158
158
  }, _callee);
159
- }))).apply(this, arguments);
160
- };
159
+ }));
160
+ return function onSubmit() {
161
+ return _ref.apply(this, arguments);
162
+ };
163
+ }();
161
164
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
162
165
  var _user$session;
163
166
  login({
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
36
36
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
37
37
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
38
  var OrdersOptionUI = function OrdersOptionUI(props) {
39
- var _theme$images, _theme$images2, _ref, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
39
+ var _theme$images, _theme$images2, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
40
40
  var horizontal = props.horizontal,
41
41
  activeOrders = props.activeOrders,
42
42
  orderList = props.orderList,
@@ -76,8 +76,8 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
76
76
  _useState4 = _slicedToArray(_useState3, 2),
77
77
  loadingOrders = _useState4[0],
78
78
  setLoadingOrders = _useState4[1];
79
- var handleReorder = function handleReorder(_x) {
80
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
79
+ var handleReorder = /*#__PURE__*/function () {
80
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
81
81
  var _yield$reorder, _error, result;
82
82
  return _regeneratorRuntime().wrap(function _callee$(_context) {
83
83
  while (1) switch (_context.prev = _context.next) {
@@ -114,8 +114,11 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
114
114
  return _context.stop();
115
115
  }
116
116
  }, _callee, null, [[1, 13]]);
117
- }))).apply(this, arguments);
118
- };
117
+ }));
118
+ return function handleReorder(_x) {
119
+ return _ref.apply(this, arguments);
120
+ };
121
+ }();
119
122
  var getOrderStatus = function getOrderStatus(s) {
120
123
  var _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _theme$defaultLanguag17, _theme$defaultLanguag18, _theme$defaultLanguag19, _theme$defaultLanguag20, _theme$defaultLanguag21, _theme$defaultLanguag22, _theme$defaultLanguag23, _theme$defaultLanguag24;
121
124
  var status = parseInt(s);
@@ -55,7 +55,7 @@ var mapConfigs = {
55
55
  }
56
56
  };
57
57
  var CheckoutUI = function CheckoutUI(props) {
58
- var _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _ref, _props$beforeElements, _props$beforeComponen, _props$beforeElements2, _props$beforeComponen2, _businessDetails$busi, _businessDetails$busi2, _theme$images, _configs$google_maps_, _props$beforeElements3, _props$beforeComponen3, _customerState$user, _customerState$user2, _props$beforeElements4, _props$beforeComponen4, _Object$values, _businessDetails$busi3, _businessDetails$busi4, _businessDetails$busi5, _businessDetails$busi6, _businessDetails$erro, _businessDetails$erro2, _props$beforeElements5, _props$beforeComponen5, _businessDetails$busi7, _businessDetails$busi8, _props$beforeElements6, _props$beforeComponen6, _validationFields$fie5, _configs$driver_tip_u, _configs$driver_tip_t, _configs$driver_tip_u2, _props$beforeElements7, _props$beforeComponen7, _cart$products2, _props$beforeElements8, _props$beforeComponen8, _props$afterComponent, _props$afterElements;
58
+ var _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _props$beforeElements, _props$beforeComponen, _props$beforeElements2, _props$beforeComponen2, _businessDetails$busi, _businessDetails$busi2, _theme$images, _configs$google_maps_, _props$beforeElements3, _props$beforeComponen3, _customerState$user, _customerState$user2, _props$beforeElements4, _props$beforeComponen4, _Object$values, _businessDetails$busi3, _businessDetails$busi4, _businessDetails$busi5, _businessDetails$busi6, _businessDetails$erro, _businessDetails$erro2, _props$beforeElements5, _props$beforeComponen5, _businessDetails$busi7, _businessDetails$busi8, _props$beforeElements6, _props$beforeComponen6, _validationFields$fie5, _configs$driver_tip_u, _configs$driver_tip_t, _configs$driver_tip_u2, _props$beforeElements7, _props$beforeComponen7, _cart$products2, _props$beforeElements8, _props$beforeComponen8, _props$afterComponent, _props$afterElements;
59
59
  var businessId = props.businessId,
60
60
  cart = props.cart,
61
61
  errors = props.errors,
@@ -139,8 +139,8 @@ var CheckoutUI = function CheckoutUI(props) {
139
139
  var isIOS = window.navigator.userAgent.includes('iPhone');
140
140
  var placeSpotTypes = [3, 4];
141
141
  var driverTipsOptions = typeof (configs === null || configs === void 0 || (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 || (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 || (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
142
- var handlePlaceOrder = function handlePlaceOrder() {
143
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
142
+ var handlePlaceOrder = /*#__PURE__*/function () {
143
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
144
144
  return _regeneratorRuntime().wrap(function _callee$(_context) {
145
145
  while (1) switch (_context.prev = _context.next) {
146
146
  case 0:
@@ -176,8 +176,11 @@ var CheckoutUI = function CheckoutUI(props) {
176
176
  return _context.stop();
177
177
  }
178
178
  }, _callee);
179
- }))).apply(this, arguments);
180
- };
179
+ }));
180
+ return function handlePlaceOrder() {
181
+ return _ref.apply(this, arguments);
182
+ };
183
+ }();
181
184
  var closeAlert = function closeAlert() {
182
185
  setAlertState({
183
186
  open: false,
@@ -251,9 +254,8 @@ var CheckoutUI = function CheckoutUI(props) {
251
254
  }
252
255
  }, [paymethodSelected]);
253
256
  (0, _react.useEffect)(function () {
254
- var _ref2;
255
- var getPlaceId = function getPlaceId() {
256
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
257
+ var getPlaceId = /*#__PURE__*/function () {
258
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
257
259
  var id;
258
260
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
259
261
  while (1) switch (_context2.prev = _context2.next) {
@@ -268,14 +270,17 @@ var CheckoutUI = function CheckoutUI(props) {
268
270
  return _context2.stop();
269
271
  }
270
272
  }, _callee2);
271
- }))).apply(this, arguments);
272
- };
273
+ }));
274
+ return function getPlaceId() {
275
+ return _ref2.apply(this, arguments);
276
+ };
277
+ }();
273
278
  getPlaceId();
274
279
  }, []);
275
280
  (0, _react.useEffect)(function () {
276
- var _ref3, _cart$products;
277
- var handleChangePlace = function handleChangePlace() {
278
- return (_ref3 = _ref3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
281
+ var _cart$products;
282
+ var handleChangePlace = /*#__PURE__*/function () {
283
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
279
284
  var response, _yield$response$json, result, error;
280
285
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
281
286
  while (1) switch (_context3.prev = _context3.next) {
@@ -323,8 +328,11 @@ var CheckoutUI = function CheckoutUI(props) {
323
328
  return _context3.stop();
324
329
  }
325
330
  }, _callee3, null, [[1, 14]]);
326
- }))).apply(this, arguments);
327
- };
331
+ }));
332
+ return function handleChangePlace() {
333
+ return _ref3.apply(this, arguments);
334
+ };
335
+ }();
328
336
  if ((cart === null || cart === void 0 || (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length) > 0 && placeId && placeSpotTypes.includes(options === null || options === void 0 ? void 0 : options.type) && !isDisabledTables) {
329
337
  handleChangePlace();
330
338
  }
@@ -572,7 +580,7 @@ var CheckoutUI = function CheckoutUI(props) {
572
580
  }));
573
581
  };
574
582
  var Checkout = function Checkout(props) {
575
- var _Object$values2, _ref4, _cartState$cart, _cartState$error, _cartState$cart2;
583
+ var _Object$values2, _cartState$cart, _cartState$error, _cartState$cart2;
576
584
  var errors = props.errors,
577
585
  clearErrors = props.clearErrors,
578
586
  cartUuid = props.cartUuid,
@@ -662,8 +670,8 @@ var Checkout = function Checkout(props) {
662
670
  });
663
671
  }
664
672
  }, [errors]);
665
- var getOrder = function getOrder(_x) {
666
- return (_ref4 = _ref4 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(cartId) {
673
+ var getOrder = /*#__PURE__*/function () {
674
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(cartId) {
667
675
  var _result$order, userCustomer, url, response, _yield$response$json2, result, _confirmCartRes$resul, confirmCartRes, cart;
668
676
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
669
677
  while (1) switch (_context4.prev = _context4.next) {
@@ -757,8 +765,11 @@ var Checkout = function Checkout(props) {
757
765
  return _context4.stop();
758
766
  }
759
767
  }, _callee4, null, [[0, 35], [17, 26]]);
760
- }))).apply(this, arguments);
761
- };
768
+ }));
769
+ return function getOrder(_x) {
770
+ return _ref4.apply(this, arguments);
771
+ };
772
+ }();
762
773
  (0, _react.useEffect)(function () {
763
774
  if (token && cartUuid) {
764
775
  getOrder(cartUuid);
@@ -24,7 +24,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
24
24
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  var Footer = function Footer() {
27
- var _ref;
28
27
  var _useState = (0, _react.useState)({
29
28
  body: null,
30
29
  loading: false,
@@ -37,8 +36,8 @@ var Footer = function Footer() {
37
36
  _useApi2 = _slicedToArray(_useApi, 1),
38
37
  ordering = _useApi2[0];
39
38
  var requestsState = {};
40
- var getPage = function getPage() {
41
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
39
+ var getPage = /*#__PURE__*/function () {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
42
41
  var source, _yield$ordering$pages, _yield$ordering$pages2, error, result;
43
42
  return _regeneratorRuntime().wrap(function _callee$(_context) {
44
43
  while (1) switch (_context.prev = _context.next) {
@@ -86,8 +85,11 @@ var Footer = function Footer() {
86
85
  return _context.stop();
87
86
  }
88
87
  }, _callee, null, [[1, 14]]);
89
- }))).apply(this, arguments);
90
- };
88
+ }));
89
+ return function getPage() {
90
+ return _ref.apply(this, arguments);
91
+ };
92
+ }();
91
93
  (0, _react.useEffect)(function () {
92
94
  getPage();
93
95
  return function () {
@@ -49,7 +49,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
49
49
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
50
50
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
51
  var LoginFormUI = function LoginFormUI(props) {
52
- var _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$google_login, _configs$apple_login_, _configs$google_login2, _ref, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag, _configs$facebook_log3, _configs$facebook_log4, _configs$facebook_id2, _configs$facebook_id3, _configs$google_login3, _configs$apple_login_2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
52
+ var _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$google_login, _configs$apple_login_, _configs$google_login2, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _theme$defaultLanguag, _configs$facebook_log3, _configs$facebook_log4, _configs$facebook_id2, _configs$facebook_id3, _configs$google_login3, _configs$apple_login_2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
53
53
  var useLoginByEmail = props.useLoginByEmail,
54
54
  useLoginByCellphone = props.useLoginByCellphone,
55
55
  handleChangeInput = props.handleChangeInput,
@@ -118,8 +118,8 @@ var LoginFormUI = function LoginFormUI(props) {
118
118
  cookiepolicy: 'single_host_origin',
119
119
  scope: 'profile'
120
120
  };
121
- var onSubmit = function onSubmit() {
122
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
121
+ var onSubmit = /*#__PURE__*/function () {
122
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
123
123
  return _regeneratorRuntime().wrap(function _callee$(_context) {
124
124
  while (1) switch (_context.prev = _context.next) {
125
125
  case 0:
@@ -147,8 +147,11 @@ var LoginFormUI = function LoginFormUI(props) {
147
147
  return _context.stop();
148
148
  }
149
149
  }, _callee);
150
- }))).apply(this, arguments);
151
- };
150
+ }));
151
+ return function onSubmit() {
152
+ return _ref.apply(this, arguments);
153
+ };
154
+ }();
152
155
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
153
156
  var _user$session;
154
157
  login({
@@ -35,7 +35,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
35
35
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
36
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
37
  var OrderTypeSelectorContentUI = function OrderTypeSelectorContentUI(props) {
38
- var _configState$configs, _ref2, _ref3, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
38
+ var _configState$configs, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
39
39
  var handleChangeOrderType = props.handleChangeOrderType,
40
40
  orderTypes = props.orderTypes,
41
41
  onClose = props.onClose,
@@ -105,8 +105,8 @@ var OrderTypeSelectorContentUI = function OrderTypeSelectorContentUI(props) {
105
105
  label: label
106
106
  });
107
107
  };
108
- var getPlaces = function getPlaces() {
109
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
108
+ var getPlaces = /*#__PURE__*/function () {
109
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
110
110
  var response, _yield$response$json, result, error;
111
111
  return _regeneratorRuntime().wrap(function _callee$(_context) {
112
112
  while (1) switch (_context.prev = _context.next) {
@@ -150,10 +150,13 @@ var OrderTypeSelectorContentUI = function OrderTypeSelectorContentUI(props) {
150
150
  return _context.stop();
151
151
  }
152
152
  }, _callee, null, [[0, 12]]);
153
- }))).apply(this, arguments);
154
- };
155
- var handleChangePlace = function handleChangePlace() {
156
- return (_ref3 = _ref3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
153
+ }));
154
+ return function getPlaces() {
155
+ return _ref2.apply(this, arguments);
156
+ };
157
+ }();
158
+ var handleChangePlace = /*#__PURE__*/function () {
159
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
157
160
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
158
161
  while (1) switch (_context2.prev = _context2.next) {
159
162
  case 0:
@@ -189,8 +192,11 @@ var OrderTypeSelectorContentUI = function OrderTypeSelectorContentUI(props) {
189
192
  return _context2.stop();
190
193
  }
191
194
  }, _callee2);
192
- }))).apply(this, arguments);
193
- };
195
+ }));
196
+ return function handleChangePlace() {
197
+ return _ref3.apply(this, arguments);
198
+ };
199
+ }();
194
200
  var closeAlert = function closeAlert() {
195
201
  setAlertState({
196
202
  open: false,