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
@@ -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,
@@ -84,8 +84,8 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
84
84
  }).every(function (i) {
85
85
  return !i;
86
86
  }) : orders.length > 0;
87
- var handleReorder = function handleReorder(_x) {
88
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
87
+ var handleReorder = /*#__PURE__*/function () {
88
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
89
89
  var _yield$reorder, _error, result;
90
90
  return _regeneratorRuntime().wrap(function _callee$(_context) {
91
91
  while (1) switch (_context.prev = _context.next) {
@@ -122,8 +122,11 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
122
122
  return _context.stop();
123
123
  }
124
124
  }, _callee, null, [[1, 13]]);
125
- }))).apply(this, arguments);
126
- };
125
+ }));
126
+ return function handleReorder(_x) {
127
+ return _ref.apply(this, arguments);
128
+ };
129
+ }();
127
130
  var getOrderStatus = function getOrderStatus(s) {
128
131
  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;
129
132
  var status = parseInt(s);
@@ -55,7 +55,7 @@ var inputNames = [{
55
55
  code: 'Address notes'
56
56
  }];
57
57
  var AddressFormUI = function AddressFormUI(props) {
58
- 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;
58
+ 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;
59
59
  var addressesList = props.addressesList,
60
60
  googleMapsControls = props.googleMapsControls,
61
61
  formState = props.formState,
@@ -234,8 +234,8 @@ var AddressFormUI = function AddressFormUI(props) {
234
234
  e.preventDefault();
235
235
  }
236
236
  };
237
- var onSubmit = function onSubmit() {
238
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
237
+ var onSubmit = /*#__PURE__*/function () {
238
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
239
239
  var _formState$changes3, _addressState$address6, _formState$changes4, _formState$changes5, _arrayList$map$some2;
240
240
  var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
241
241
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -296,8 +296,11 @@ var AddressFormUI = function AddressFormUI(props) {
296
296
  return _context.stop();
297
297
  }
298
298
  }, _callee);
299
- }))).apply(this, arguments);
300
- };
299
+ }));
300
+ return function onSubmit() {
301
+ return _ref2.apply(this, arguments);
302
+ };
303
+ }();
301
304
  var handleAddressTag = function handleAddressTag(tag) {
302
305
  setAddressTag(tag);
303
306
  handleChangeInput({
@@ -396,7 +396,7 @@ var CheckoutUI = function CheckoutUI(props) {
396
396
  }));
397
397
  };
398
398
  var Checkout = function Checkout(props) {
399
- var _Object$values2, _ref, _cartState$cart, _cartState$error, _cartState$cart2;
399
+ var _Object$values2, _cartState$cart, _cartState$error, _cartState$cart2;
400
400
  var errors = props.errors,
401
401
  clearErrors = props.clearErrors,
402
402
  cartUuid = props.cartUuid,
@@ -486,8 +486,8 @@ var Checkout = function Checkout(props) {
486
486
  });
487
487
  }
488
488
  }, [errors]);
489
- var getOrder = function getOrder(_x) {
490
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
489
+ var getOrder = /*#__PURE__*/function () {
490
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
491
491
  var _result$order, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
492
492
  return _regeneratorRuntime().wrap(function _callee$(_context) {
493
493
  while (1) switch (_context.prev = _context.next) {
@@ -581,8 +581,11 @@ var Checkout = function Checkout(props) {
581
581
  return _context.stop();
582
582
  }
583
583
  }, _callee, null, [[0, 35], [17, 26]]);
584
- }))).apply(this, arguments);
585
- };
584
+ }));
585
+ return function getOrder(_x) {
586
+ return _ref.apply(this, arguments);
587
+ };
588
+ }();
586
589
  (0, _react.useEffect)(function () {
587
590
  if (token && cartUuid) {
588
591
  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 () {
@@ -48,7 +48,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
48
48
  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; } }
49
49
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
50
  var LoginFormUI = function LoginFormUI(props) {
51
- 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;
51
+ 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;
52
52
  var useLoginByEmail = props.useLoginByEmail,
53
53
  useLoginByCellphone = props.useLoginByCellphone,
54
54
  handleChangeInput = props.handleChangeInput,
@@ -116,8 +116,8 @@ var LoginFormUI = function LoginFormUI(props) {
116
116
  cookiepolicy: 'single_host_origin',
117
117
  scope: 'profile'
118
118
  };
119
- var onSubmit = function onSubmit() {
120
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
119
+ var onSubmit = /*#__PURE__*/function () {
120
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
121
121
  return _regeneratorRuntime().wrap(function _callee$(_context) {
122
122
  while (1) switch (_context.prev = _context.next) {
123
123
  case 0:
@@ -145,8 +145,11 @@ var LoginFormUI = function LoginFormUI(props) {
145
145
  return _context.stop();
146
146
  }
147
147
  }, _callee);
148
- }))).apply(this, arguments);
149
- };
148
+ }));
149
+ return function onSubmit() {
150
+ return _ref.apply(this, arguments);
151
+ };
152
+ }();
150
153
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
151
154
  var _user$session;
152
155
  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);
@@ -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,
@@ -225,8 +225,8 @@ var AddressFormUI = function AddressFormUI(props) {
225
225
  e.preventDefault();
226
226
  }
227
227
  };
228
- var onSubmit = function onSubmit() {
229
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
228
+ var onSubmit = /*#__PURE__*/function () {
229
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
230
230
  var _formState$changes3, _addressState$address6, _formState$changes4, _formState$changes5, _arrayList$map$some2;
231
231
  var _formState$changes6, arrayList, addressToCompare, isAddressAlreadyExist;
232
232
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -286,8 +286,11 @@ var AddressFormUI = function AddressFormUI(props) {
286
286
  return _context.stop();
287
287
  }
288
288
  }, _callee);
289
- }))).apply(this, arguments);
290
- };
289
+ }));
290
+ return function onSubmit() {
291
+ return _ref2.apply(this, arguments);
292
+ };
293
+ }();
291
294
  var handleAddressTag = function handleAddressTag(tag) {
292
295
  setAddressTag(tag);
293
296
  handleChangeInput({
@@ -394,7 +394,7 @@ var CheckoutUI = function CheckoutUI(props) {
394
394
  }));
395
395
  };
396
396
  var Checkout = function Checkout(props) {
397
- var _Object$values2, _ref, _cartState$cart, _cartState$error, _cartState$cart2;
397
+ var _Object$values2, _cartState$cart, _cartState$error, _cartState$cart2;
398
398
  var errors = props.errors,
399
399
  clearErrors = props.clearErrors,
400
400
  cartUuid = props.cartUuid,
@@ -484,8 +484,8 @@ var Checkout = function Checkout(props) {
484
484
  });
485
485
  }
486
486
  }, [errors]);
487
- var getOrder = function getOrder(_x) {
488
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
487
+ var getOrder = /*#__PURE__*/function () {
488
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
489
489
  var _result$order, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
490
490
  return _regeneratorRuntime().wrap(function _callee$(_context) {
491
491
  while (1) switch (_context.prev = _context.next) {
@@ -579,8 +579,11 @@ var Checkout = function Checkout(props) {
579
579
  return _context.stop();
580
580
  }
581
581
  }, _callee, null, [[0, 35], [17, 26]]);
582
- }))).apply(this, arguments);
583
- };
582
+ }));
583
+ return function getOrder(_x) {
584
+ return _ref.apply(this, arguments);
585
+ };
586
+ }();
584
587
  (0, _react.useEffect)(function () {
585
588
  if (token && cartUuid) {
586
589
  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 () {
@@ -44,7 +44,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
44
44
  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; } }
45
45
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
46
46
  var LoginFormUI = function LoginFormUI(props) {
47
- var _configs$google_login, _ref, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$apple_login_, _configs$google_login2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
47
+ var _configs$google_login, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _configs$facebook_log, _configs$facebook_log2, _configs$facebook_id, _configs$facebook_id2, _configs$apple_login_, _configs$google_login2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
48
48
  var useLoginByEmail = props.useLoginByEmail,
49
49
  useLoginByCellphone = props.useLoginByCellphone,
50
50
  handleChangeInput = props.handleChangeInput,
@@ -121,8 +121,8 @@ var LoginFormUI = function LoginFormUI(props) {
121
121
  cookiepolicy: 'single_host_origin',
122
122
  scope: 'profile'
123
123
  };
124
- var onSubmit = function onSubmit() {
125
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
124
+ var onSubmit = /*#__PURE__*/function () {
125
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
126
126
  return _regeneratorRuntime().wrap(function _callee$(_context) {
127
127
  while (1) switch (_context.prev = _context.next) {
128
128
  case 0:
@@ -150,8 +150,11 @@ var LoginFormUI = function LoginFormUI(props) {
150
150
  return _context.stop();
151
151
  }
152
152
  }, _callee);
153
- }))).apply(this, arguments);
154
- };
153
+ }));
154
+ return function onSubmit() {
155
+ return _ref.apply(this, arguments);
156
+ };
157
+ }();
155
158
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
156
159
  var _user$session;
157
160
  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, _orders$filter, _props$afterComponent, _props$afterElements;
39
+ var _theme$images, _theme$images2, _props$beforeElements, _props$beforeComponen, _orders$filter, _props$afterComponent, _props$afterElements;
40
40
  var horizontal = props.horizontal,
41
41
  activeOrders = props.activeOrders,
42
42
  orderList = props.orderList,
@@ -85,8 +85,8 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
85
85
  }).every(function (i) {
86
86
  return !i;
87
87
  }) : orders.length > 0;
88
- var handleReorder = function handleReorder(_x) {
89
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
88
+ var handleReorder = /*#__PURE__*/function () {
89
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
90
90
  var _yield$reorder, _error, result;
91
91
  return _regeneratorRuntime().wrap(function _callee$(_context) {
92
92
  while (1) switch (_context.prev = _context.next) {
@@ -123,8 +123,11 @@ var OrdersOptionUI = function OrdersOptionUI(props) {
123
123
  return _context.stop();
124
124
  }
125
125
  }, _callee, null, [[1, 13]]);
126
- }))).apply(this, arguments);
127
- };
126
+ }));
127
+ return function handleReorder(_x) {
128
+ return _ref.apply(this, arguments);
129
+ };
130
+ }();
128
131
  var getOrderStatus = function getOrderStatus(s) {
129
132
  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;
130
133
  var status = parseInt(s);
@@ -33,7 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import
33
33
  // import { useConfig } from '../../contexts/ConfigContext'
34
34
  // import { useApi } from '../../contexts/ApiContext'
35
35
  var ProductForm = function ProductForm(props) {
36
- var _props$productCart, _orderState$carts, _cart$products, _cart$products2, _product$product, _product$product2, _product$product3, _product$product4, _ref, _ref3;
36
+ var _props$productCart, _orderState$carts, _cart$products, _cart$products2, _product$product, _product$product2, _product$product3, _product$product4;
37
37
  var UIComponent = props.UIComponent,
38
38
  useOrderContext = props.useOrderContext,
39
39
  onSave = props.onSave,
@@ -229,8 +229,8 @@ var ProductForm = function ProductForm(props) {
229
229
  /**
230
230
  * Load product from API
231
231
  */
232
- var loadProductWithOptions = function loadProductWithOptions() {
233
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
232
+ var loadProductWithOptions = /*#__PURE__*/function () {
233
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
234
234
  var source, _yield$ordering$busin, result;
235
235
  return _regeneratorRuntime().wrap(function _callee$(_context) {
236
236
  while (1) switch (_context.prev = _context.next) {
@@ -266,8 +266,11 @@ var ProductForm = function ProductForm(props) {
266
266
  return _context.stop();
267
267
  }
268
268
  }, _callee, null, [[0, 11]]);
269
- }))).apply(this, arguments);
270
- };
269
+ }));
270
+ return function loadProductWithOptions() {
271
+ return _ref.apply(this, arguments);
272
+ };
273
+ }();
271
274
 
272
275
  /**
273
276
  * Remove related option by respect_to
@@ -456,8 +459,8 @@ var ProductForm = function ProductForm(props) {
456
459
  /**
457
460
  * Handle when click on save product
458
461
  */
459
- var handleSave = function handleSave() {
460
- return (_ref3 = _ref3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
462
+ var handleSave = /*#__PURE__*/function () {
463
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
461
464
  var errors, successful, _props$productCart6, _props$productCart7;
462
465
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
463
466
  while (1) switch (_context2.prev = _context2.next) {
@@ -504,8 +507,11 @@ var ProductForm = function ProductForm(props) {
504
507
  return _context2.stop();
505
508
  }
506
509
  }, _callee2);
507
- }))).apply(this, arguments);
508
- };
510
+ }));
511
+ return function handleSave() {
512
+ return _ref3.apply(this, arguments);
513
+ };
514
+ }();
509
515
  var increment = function increment() {
510
516
  if (maxProductQuantity <= 0 || productCart.quantity >= maxProductQuantity) {
511
517
  return;
@@ -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({
@@ -315,7 +315,7 @@ var CheckoutUI = function CheckoutUI(props) {
315
315
  }));
316
316
  };
317
317
  var Checkout = function Checkout(props) {
318
- var _Object$values, _ref, _cartState$cart, _cartState$error, _cartState$cart2;
318
+ var _Object$values, _cartState$cart, _cartState$error, _cartState$cart2;
319
319
  var errors = props.errors,
320
320
  clearErrors = props.clearErrors,
321
321
  cartUuid = props.cartUuid,
@@ -406,8 +406,8 @@ var Checkout = function Checkout(props) {
406
406
  });
407
407
  }
408
408
  }, [errors]);
409
- var getOrder = function getOrder(_x) {
410
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
409
+ var getOrder = /*#__PURE__*/function () {
410
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
411
411
  var _result$order, userCustomer, url, response, _yield$response$json, result, _confirmCartRes$resul, confirmCartRes, cart;
412
412
  return _regeneratorRuntime().wrap(function _callee$(_context) {
413
413
  while (1) switch (_context.prev = _context.next) {
@@ -501,8 +501,11 @@ var Checkout = function Checkout(props) {
501
501
  return _context.stop();
502
502
  }
503
503
  }, _callee, null, [[0, 35], [17, 26]]);
504
- }))).apply(this, arguments);
505
- };
504
+ }));
505
+ return function getOrder(_x) {
506
+ return _ref.apply(this, arguments);
507
+ };
508
+ }();
506
509
  (0, _react.useEffect)(function () {
507
510
  if (token && cartUuid) {
508
511
  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 () {
@@ -297,6 +297,7 @@ var Header = function Header(props) {
297
297
  return openModal(variant);
298
298
  }
299
299
  }))), /*#__PURE__*/_react.default.createElement(_LanguageSelector.LanguageSelector, null)), /*#__PURE__*/_react.default.createElement(_SidebarMenu.SidebarMenu, {
300
+ notificationState: notificationState,
300
301
  auth: auth,
301
302
  isHideSignup: isHideSignup,
302
303
  userCustomer: userCustomer,
@@ -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; }
49
49
  var LoginFormUI = function LoginFormUI(props) {
50
- var _configs$google_login, _ref, _props$beforeElements, _props$beforeComponen, _theme$images, _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$google_login2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
50
+ var _configs$google_login, _props$beforeElements, _props$beforeComponen, _theme$images, _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$google_login2, _configs$twilio_servi, _configs$twilio_servi2, _props$afterComponent, _props$afterElements;
51
51
  var useLoginByEmail = props.useLoginByEmail,
52
52
  useLoginByCellphone = props.useLoginByCellphone,
53
53
  handleChangeInput = props.handleChangeInput,
@@ -125,8 +125,8 @@ var LoginFormUI = function LoginFormUI(props) {
125
125
  cookiepolicy: 'single_host_origin',
126
126
  scope: 'profile'
127
127
  };
128
- var onSubmit = function onSubmit() {
129
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
128
+ var onSubmit = /*#__PURE__*/function () {
129
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
130
130
  return _regeneratorRuntime().wrap(function _callee$(_context) {
131
131
  while (1) switch (_context.prev = _context.next) {
132
132
  case 0:
@@ -154,8 +154,11 @@ var LoginFormUI = function LoginFormUI(props) {
154
154
  return _context.stop();
155
155
  }
156
156
  }, _callee);
157
- }))).apply(this, arguments);
158
- };
157
+ }));
158
+ return function onSubmit() {
159
+ return _ref.apply(this, arguments);
160
+ };
161
+ }();
159
162
  var handleSuccessFacebook = function handleSuccessFacebook(user) {
160
163
  var _user$session;
161
164
  login({