ordering-ui-external 10.1.0 → 10.2.1

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 (147) hide show
  1. package/_bundles/{0.ordering-ui.e9827c5566d8cce0eaa4.js → 0.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  2. package/_bundles/{1.ordering-ui.e9827c5566d8cce0eaa4.js → 1.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  3. package/_bundles/{2.ordering-ui.e9827c5566d8cce0eaa4.js → 2.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  4. package/_bundles/{4.ordering-ui.e9827c5566d8cce0eaa4.js → 4.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  5. package/_bundles/{5.ordering-ui.e9827c5566d8cce0eaa4.js → 5.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  6. package/_bundles/{6.ordering-ui.e9827c5566d8cce0eaa4.js → 6.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  7. package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js → 7.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +2 -2
  8. package/_bundles/{8.ordering-ui.e9827c5566d8cce0eaa4.js → 8.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  9. package/_bundles/{9.ordering-ui.e9827c5566d8cce0eaa4.js → 9.ordering-ui.d1a8d1fbf5b112d5d9a9.js} +1 -1
  10. package/_bundles/ordering-ui.d1a8d1fbf5b112d5d9a9.js +2 -0
  11. package/_modules/components/BusinessBasicInformation/index.js +7 -10
  12. package/_modules/components/OrderDetails/index.js +14 -17
  13. package/_modules/components/ProductItemAccordion/index.js +4 -5
  14. package/_modules/components/RenderProductsLayout/SearchProducts/index.js +2 -5
  15. package/_modules/components/UserFormDetails/index.js +7 -8
  16. package/_modules/components/UserProfileForm/ProfileOptions/index.js +4 -5
  17. package/_modules/components/UserProfileForm/index.js +10 -11
  18. package/_modules/contexts/ThemeContext/index.js +1 -1
  19. package/_modules/themes/five/src/components/AddressList/index.js +0 -3
  20. package/_modules/themes/five/src/components/BusinessController/index.js +14 -17
  21. package/_modules/themes/five/src/components/BusinessController/styles.js +1 -1
  22. package/_modules/themes/five/src/components/BusinessInformation/styles.js +19 -14
  23. package/_modules/themes/five/src/components/BusinessPreorder/index.js +51 -10
  24. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +32 -25
  25. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -5
  26. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -4
  27. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +11 -12
  28. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +22 -3
  29. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -10
  30. package/_modules/themes/five/src/components/Cart/index.js +17 -9
  31. package/_modules/themes/five/src/components/CartPopover/index.js +4 -7
  32. package/_modules/themes/five/src/components/CartPopover/styles.js +4 -1
  33. package/_modules/themes/five/src/components/Checkout/index.js +8 -8
  34. package/_modules/themes/five/src/components/Confirm/styles.js +16 -13
  35. package/_modules/themes/five/src/components/DatePicker/index.js +2 -1
  36. package/_modules/themes/five/src/components/Favorite/index.js +4 -5
  37. package/_modules/themes/five/src/components/Footer/index.js +2 -3
  38. package/_modules/themes/five/src/components/Header/index.js +5 -8
  39. package/_modules/themes/five/src/components/HeaderOption/index.js +4 -5
  40. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -10
  41. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
  42. package/_modules/themes/five/src/components/Modal/styles.js +4 -2
  43. package/_modules/themes/five/src/components/MomentContent/index.js +16 -6
  44. package/_modules/themes/five/src/components/MomentControl/index.js +44 -34
  45. package/_modules/themes/five/src/components/MomentControl/styles.js +49 -27
  46. package/_modules/themes/five/src/components/OrderDetails/index.js +31 -24
  47. package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -7
  48. package/_modules/themes/five/src/components/OrderProgress/index.js +5 -1
  49. package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -1
  50. package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -5
  51. package/_modules/themes/five/src/components/OrdersOption/index.js +7 -22
  52. package/_modules/themes/five/src/components/OrdersOption/styles.js +38 -35
  53. package/_modules/themes/five/src/components/PageBanner/index.js +79 -58
  54. package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +2 -1
  55. package/_modules/themes/five/src/components/ProductForm/styles.js +12 -9
  56. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +0 -3
  57. package/_modules/themes/five/src/components/ProductOption/styles.js +4 -1
  58. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +8 -9
  59. package/_modules/themes/five/src/components/SignUpForm/index.js +5 -5
  60. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +0 -3
  61. package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
  62. package/_modules/themes/five/src/components/UserDetails/styles.js +1 -1
  63. package/_modules/themes/five/src/components/UserFormDetails/index.js +3 -6
  64. package/_modules/themes/five/src/components/UserPopover/index.js +3 -6
  65. package/_modules/themes/five/src/components/UserPopover/styles.js +8 -5
  66. package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -5
  67. package/_modules/themes/five/src/components/UserProfileForm/index.js +2 -5
  68. package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +8 -9
  69. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -6
  70. package/package.json +2 -2
  71. package/src/components/BusinessBasicInformation/index.js +7 -8
  72. package/src/components/OrderDetails/index.js +14 -16
  73. package/src/components/ProductItemAccordion/index.js +4 -3
  74. package/src/components/RenderProductsLayout/SearchProducts/index.js +2 -3
  75. package/src/components/UserFormDetails/index.js +6 -5
  76. package/src/components/UserProfileForm/ProfileOptions/index.js +4 -4
  77. package/src/components/UserProfileForm/index.js +10 -10
  78. package/src/contexts/ThemeContext/index.js +1 -1
  79. package/src/themes/five/src/components/AddressForm/index.js +1 -2
  80. package/src/themes/five/src/components/AddressList/index.js +1 -3
  81. package/src/themes/five/src/components/BusinessController/index.js +5 -7
  82. package/src/themes/five/src/components/BusinessController/styles.js +1 -1
  83. package/src/themes/five/src/components/BusinessInformation/index.js +1 -2
  84. package/src/themes/five/src/components/BusinessInformation/styles.js +2 -2
  85. package/src/themes/five/src/components/BusinessPreorder/index.js +61 -10
  86. package/src/themes/five/src/components/BusinessPreorder/styles.js +93 -43
  87. package/src/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
  88. package/src/themes/five/src/components/BusinessProductsList/index.js +1 -2
  89. package/src/themes/five/src/components/BusinessProductsListing/index.js +10 -3
  90. package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
  91. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +17 -0
  92. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +6 -7
  93. package/src/themes/five/src/components/Cart/index.js +11 -4
  94. package/src/themes/five/src/components/CartPopover/index.js +2 -3
  95. package/src/themes/five/src/components/CartPopover/styles.js +1 -1
  96. package/src/themes/five/src/components/Checkout/index.js +5 -6
  97. package/src/themes/five/src/components/Confirm/styles.js +1 -1
  98. package/src/themes/five/src/components/DatePicker/index.js +1 -0
  99. package/src/themes/five/src/components/Favorite/index.js +4 -3
  100. package/src/themes/five/src/components/Footer/index.js +3 -2
  101. package/src/themes/five/src/components/Header/index.js +4 -5
  102. package/src/themes/five/src/components/HeaderOption/index.js +4 -3
  103. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -8
  104. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -0
  105. package/src/themes/five/src/components/Modal/styles.js +1 -1
  106. package/src/themes/five/src/components/MomentContent/index.js +17 -8
  107. package/src/themes/five/src/components/MomentControl/index.js +83 -45
  108. package/src/themes/five/src/components/MomentControl/styles.js +137 -34
  109. package/src/themes/five/src/components/MyOrders/index.js +1 -1
  110. package/src/themes/five/src/components/OrderDetails/index.js +50 -21
  111. package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -6
  112. package/src/themes/five/src/components/OrderProgress/index.js +5 -1
  113. package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +13 -1
  114. package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -3
  115. package/src/themes/five/src/components/OrdersOption/index.js +3 -17
  116. package/src/themes/five/src/components/OrdersOption/styles.js +3 -4
  117. package/src/themes/five/src/components/PageBanner/index.js +65 -51
  118. package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -0
  119. package/src/themes/five/src/components/ProductForm/styles.js +1 -1
  120. package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -2
  121. package/src/themes/five/src/components/ProductOption/styles.js +1 -1
  122. package/src/themes/five/src/components/RenderProductsLayout/index.js +9 -6
  123. package/src/themes/five/src/components/SignUpForm/index.js +6 -6
  124. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +1 -2
  125. package/src/themes/five/src/components/UserDetails/index.js +1 -1
  126. package/src/themes/five/src/components/UserDetails/styles.js +3 -0
  127. package/src/themes/five/src/components/UserFormDetails/index.js +3 -4
  128. package/src/themes/five/src/components/UserPopover/index.js +3 -4
  129. package/src/themes/five/src/components/UserPopover/styles.js +1 -1
  130. package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -3
  131. package/src/themes/five/src/components/UserProfileForm/index.js +2 -4
  132. package/src/themes/six/src/components/BusinessBasicInformation/index.js +8 -7
  133. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +2 -3
  134. package/template/app.js +15 -10
  135. package/template/components/HelmetTags/index.js +3 -2
  136. package/template/pages/AddressList/index.js +4 -3
  137. package/template/pages/BusinessProductsList/index.js +5 -4
  138. package/template/pages/BusinessesList/index.js +6 -6
  139. package/template/pages/Checkout/index.js +6 -4
  140. package/template/pages/Home/index.js +4 -2
  141. package/template/pages/MessagesList/index.js +5 -4
  142. package/template/pages/MyOrders/index.js +6 -5
  143. package/template/pages/OrderDetails/index.js +4 -3
  144. package/_bundles/ordering-ui.e9827c5566d8cce0eaa4.js +0 -2
  145. package/template/components/OrderingThemeUpdated/index.js +0 -41
  146. /package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → 7.ordering-ui.d1a8d1fbf5b112d5d9a9.js.LICENSE.txt} +0 -0
  147. /package/_bundles/{ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → ordering-ui.d1a8d1fbf5b112d5d9a9.js.LICENSE.txt} +0 -0
@@ -30,8 +30,9 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
30
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  _swiper.default.use([_swiper.Navigation]);
32
32
  var PageBannerUI = function PageBannerUI(props) {
33
- var _pageBannerState$bann, _pageBannerState$bann2, _pageBannerState$bann3, _pageBannerState$bann4;
34
- var pageBannerState = props.pageBannerState;
33
+ var _pageBannerState$bann, _pageBannerState$bann2, _pageBannerState$bann3, _pageBannerState$bann4, _pageBannerState$bann5, _pageBannerState$bann6;
34
+ var pageBannerState = props.pageBannerState,
35
+ isCustomerMode = props.isCustomerMode;
35
36
  var _useSite = (0, _orderingComponentsExternal.useSite)(),
36
37
  _useSite2 = _slicedToArray(_useSite, 1),
37
38
  site = _useSite2[0].site;
@@ -45,71 +46,91 @@ var PageBannerUI = function PageBannerUI(props) {
45
46
  category = _ref.category,
46
47
  product = _ref.product;
47
48
  if (!category && !product) {
48
- if (businessUrlTemplate === '/store/:business_slug' || businessUrlTemplate === '/:business_slug') {
49
+ if (isCustomerMode) {
49
50
  return events.emit('go_to_page', {
50
51
  page: 'business',
51
52
  params: {
52
- business_slug: slug
53
- },
54
- replace: false
53
+ store: slug
54
+ }
55
55
  });
56
56
  } else {
57
- return events.emit('go_to_page', {
58
- page: 'business',
59
- search: "?".concat(businessUrlTemplate.split('?')[1].replace(':business_slug', '')).concat(slug),
60
- replace: false
61
- });
57
+ if (businessUrlTemplate === '/store/:business_slug' || businessUrlTemplate === '/:business_slug') {
58
+ return events.emit('go_to_page', {
59
+ page: 'business',
60
+ params: {
61
+ business_slug: slug
62
+ },
63
+ replace: false
64
+ });
65
+ } else {
66
+ return events.emit('go_to_page', {
67
+ page: 'business',
68
+ search: "?".concat(businessUrlTemplate.split('?')[1].replace(':business_slug', '')).concat(slug),
69
+ replace: false
70
+ });
71
+ }
62
72
  }
63
73
  }
64
74
  events.emit('product_banner_clicked');
65
- if (productUrlTemplate === '/store/:business_slug/:category_slug/:product_slug' || productUrlTemplate === '/:business_slug/:category_slug/:product_slug') {
66
- return events.emit('go_to_page', {
67
- page: 'product',
68
- params: {
69
- business_slug: slug,
70
- category_slug: category,
71
- product_slug: product
72
- },
73
- replace: false
74
- });
75
- }
76
- if (productUrlTemplate.includes('/store/:category_slug/:product_slug')) {
77
- var businessParameter = businessUrlTemplate.replace('/store?', '').replace('=:business_slug', '');
75
+ if (isCustomerMode) {
78
76
  return events.emit('go_to_page', {
79
- page: 'product',
77
+ page: 'business',
80
78
  params: {
81
- category_slug: category,
82
- product_slug: product
79
+ store: slug
83
80
  },
84
- search: "?".concat(businessParameter, "=").concat(slug),
85
- replace: false
86
- });
87
- }
88
- if (productUrlTemplate.includes('/store/:business_slug') && productUrlTemplate.includes('category_id')) {
89
- var ids = productUrlTemplate.split('?')[1].split('&');
90
- var categoryParameter = ids[0].replace('=:category_id', '');
91
- var productParameter = ids[1].replace('=:product_id', '');
92
- return events.emit('go_to_page', {
93
- page: 'product',
94
- params: {
95
- business_slug: slug
96
- },
97
- search: "?".concat(categoryParameter, "=").concat(category, "&").concat(productParameter, "=").concat(product),
98
- replace: false
99
- });
100
- }
101
- if (productUrlTemplate.includes('/:business_slug') && !productUrlTemplate.includes('store')) {
102
- var _ids = productUrlTemplate.split('?')[1].split('&');
103
- var _categoryParameter = _ids[0].replace('=:category_id', '');
104
- var _productParameter = _ids[1].replace('=:product_id', '');
105
- return events.emit('go_to_page', {
106
- page: 'product',
107
- params: {
108
- business_slug: slug
109
- },
110
- search: "?".concat(_categoryParameter, "=").concat(category, "&").concat(_productParameter, "=").concat(product),
111
- replace: false
81
+ search: "?category=".concat(category, "&product=").concat(product),
82
+ replace: true
112
83
  });
84
+ } else {
85
+ if (productUrlTemplate === '/store/:business_slug/:category_slug/:product_slug' || productUrlTemplate === '/:business_slug/:category_slug/:product_slug') {
86
+ return events.emit('go_to_page', {
87
+ page: 'product',
88
+ params: {
89
+ business_slug: slug,
90
+ category_slug: category,
91
+ product_slug: product
92
+ },
93
+ replace: false
94
+ });
95
+ }
96
+ if (productUrlTemplate.includes('/store/:category_slug/:product_slug')) {
97
+ var businessParameter = businessUrlTemplate.replace('/store?', '').replace('=:business_slug', '');
98
+ return events.emit('go_to_page', {
99
+ page: 'product',
100
+ params: {
101
+ category_slug: category,
102
+ product_slug: product
103
+ },
104
+ search: "?".concat(businessParameter, "=").concat(slug),
105
+ replace: false
106
+ });
107
+ }
108
+ if (productUrlTemplate.includes('/store/:business_slug') && productUrlTemplate.includes('category_id')) {
109
+ var ids = productUrlTemplate.split('?')[1].split('&');
110
+ var categoryParameter = ids[0].replace('=:category_id', '');
111
+ var productParameter = ids[1].replace('=:product_id', '');
112
+ return events.emit('go_to_page', {
113
+ page: 'product',
114
+ params: {
115
+ business_slug: slug
116
+ },
117
+ search: "?".concat(categoryParameter, "=").concat(category, "&").concat(productParameter, "=").concat(product),
118
+ replace: false
119
+ });
120
+ }
121
+ if (productUrlTemplate.includes('/:business_slug') && !productUrlTemplate.includes('store')) {
122
+ var _ids = productUrlTemplate.split('?')[1].split('&');
123
+ var _categoryParameter = _ids[0].replace('=:category_id', '');
124
+ var _productParameter = _ids[1].replace('=:product_id', '');
125
+ return events.emit('go_to_page', {
126
+ page: 'product',
127
+ params: {
128
+ business_slug: slug
129
+ },
130
+ search: "?".concat(_categoryParameter, "=").concat(category, "&").concat(_productParameter, "=").concat(product),
131
+ replace: false
132
+ });
133
+ }
113
134
  }
114
135
  };
115
136
  var handleGoToPage = function handleGoToPage(action) {
@@ -138,11 +159,11 @@ var PageBannerUI = function PageBannerUI(props) {
138
159
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, pageBannerState.loading ? /*#__PURE__*/_react.default.createElement(_styles.BannerContainer, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
139
160
  height: 250
140
161
  })) : ((_pageBannerState$bann = pageBannerState.banner) === null || _pageBannerState$bann === void 0 ? void 0 : (_pageBannerState$bann2 = _pageBannerState$bann.items) === null || _pageBannerState$bann2 === void 0 ? void 0 : _pageBannerState$bann2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.BannerContainer, null, /*#__PURE__*/_react.default.createElement(_react2.Swiper, {
141
- navigation: true,
162
+ navigation: ((_pageBannerState$bann3 = pageBannerState.banner) === null || _pageBannerState$bann3 === void 0 ? void 0 : (_pageBannerState$bann4 = _pageBannerState$bann3.items) === null || _pageBannerState$bann4 === void 0 ? void 0 : _pageBannerState$bann4.length) > 1,
142
163
  spaceBetween: 0,
143
164
  shortSwipes: false,
144
- loop: ((_pageBannerState$bann3 = pageBannerState.banner) === null || _pageBannerState$bann3 === void 0 ? void 0 : _pageBannerState$bann3.items.length) > 1
145
- }, (_pageBannerState$bann4 = pageBannerState.banner) === null || _pageBannerState$bann4 === void 0 ? void 0 : _pageBannerState$bann4.items.map(function (img, i) {
165
+ loop: ((_pageBannerState$bann5 = pageBannerState.banner) === null || _pageBannerState$bann5 === void 0 ? void 0 : _pageBannerState$bann5.items.length) > 1
166
+ }, (_pageBannerState$bann6 = pageBannerState.banner) === null || _pageBannerState$bann6 === void 0 ? void 0 : _pageBannerState$bann6.items.map(function (img, i) {
146
167
  return /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, {
147
168
  key: i,
148
169
  onClick: function onClick() {
@@ -228,7 +228,8 @@ var PhoneAutocompleteUI = function PhoneAutocompleteUI(props) {
228
228
  saveCustomerUser: saveCustomerUser,
229
229
  fieldsNotValid: props.fieldsNotValid,
230
230
  useChekoutFileds: true,
231
- isCustomerMode: true
231
+ isCustomerMode: true,
232
+ isPopup: true
232
233
  })), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
233
234
  open: openModal.customer,
234
235
  width: "80%",
@@ -72,9 +72,12 @@ var SectionTitle = _styledComponents.default.h3(_templateObject18 || (_templateO
72
72
  exports.SectionTitle = SectionTitle;
73
73
  var ProductComment = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-bottom: 130px;\n\n textarea {\n margin-top: 8px;\n }\n\n p {\n font-weight: 300;\n margin-bottom: 5px;\n }\n\n @media (min-width: 577px) {\n margin-bottom: 62px;\n }\n\n @media (min-width: 769px) {\n margin-bottom: 0px;\n padding-bottom: 10px;\n }\n"])));
74
74
  exports.ProductComment = ProductComment;
75
- var ProductActions = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n width: 100%;\n z-index: 9999997;\n\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n background-color: #FFF;\n\n div.price {\n padding-top: 10px;\n color: ", ";\n h4 {\n margin: 0;\n font-weight: 600;\n font-size: 20px;\n line-height: 20px;\n }\n span {\n font-size: 13px;\n color: #D83520;\n line-height: 15px;\n }\n }\n\n div.incdec-control {\n width: 130px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n position: relative;\n\n svg {\n width: 25px;\n height: 25px;\n cursor: pointer;\n }\n\n @media (min-width: 577px) {\n width: 195px;\n }\n }\n\n div.price-amount-block {\n display: flex;\n justify-content: space-between;\n width: 80%\n }\n\n svg {\n color: ", ";\n }\n\n svg.disabled {\n pointer-events: none;\n color: #CED4DA;\n }\n\n button:disabled,\n button.disabled {\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n color: #B1BCCC;\n }\n\n button.add {\n width: 90%;\n padding: 5px 10px;\n margin-top: 10px;\n position: relative;\n\n &.soldout {\n width: 100%;\n pointer-events: none;\n }\n }\n .qty {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n height: 38px;\n min-width: 60px;\n box-sizing: border-box;\n padding: 0;\n margin: 0 10px;\n }\n\n #address_control {\n button.add {\n width: calc(100% - 20px) !important;\n margin: 10px 10px 0 10px;\n }\n }\n\n div#address_list {\n padding: 0;\n }\n\n @media (min-width: 577px) {\n position: sticky;\n }\n\n @media (min-width: 1200px) {\n bottom: 0px;\n flex-direction: row;\n justify-content: space-between;\n border-top: 1px solid #E9ECEF;\n width: calc(100% + 40px);\n transform: translateX(-20px);\n padding: 10px 20px;\n box-sizing: border-box;\n\n ", "\n\n div.price {\n width: 25%;\n }\n\n button.add {\n width: 35%;\n margin-top: 0;\n }\n\n div.incdec-control {\n margin-right: 18%;\n &.show-weight-unit{\n width: 40%;\n }\n }\n }\n"])), function (props) {
76
- var _props$theme;
77
- return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.colors.darkTextColor;
75
+ var ProductActions = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n width: 100%;\n z-index: 9999997;\n\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n background-color: ", ";\n\n div.price {\n padding-top: 10px;\n color: ", ";\n h4 {\n margin: 0;\n font-weight: 600;\n font-size: 20px;\n line-height: 20px;\n }\n span {\n font-size: 13px;\n color: #D83520;\n line-height: 15px;\n }\n }\n\n div.incdec-control {\n width: 130px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n position: relative;\n\n svg {\n width: 25px;\n height: 25px;\n cursor: pointer;\n }\n\n @media (min-width: 577px) {\n width: 195px;\n }\n }\n\n div.price-amount-block {\n display: flex;\n justify-content: space-between;\n width: 80%\n }\n\n svg {\n color: ", ";\n }\n\n svg.disabled {\n pointer-events: none;\n color: #CED4DA;\n }\n\n button:disabled,\n button.disabled {\n background: #E9ECEF;\n border: 1px solid #E9ECEF;\n color: #B1BCCC;\n }\n\n button.add {\n width: 90%;\n padding: 5px 10px;\n margin-top: 10px;\n position: relative;\n\n &.soldout {\n width: 100%;\n pointer-events: none;\n }\n }\n .qty {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n height: 38px;\n min-width: 60px;\n box-sizing: border-box;\n padding: 0;\n margin: 0 10px;\n }\n\n #address_control {\n button.add {\n width: calc(100% - 20px) !important;\n margin: 10px 10px 0 10px;\n }\n }\n\n div#address_list {\n padding: 0;\n }\n\n @media (min-width: 577px) {\n position: sticky;\n }\n\n @media (min-width: 1200px) {\n bottom: 0px;\n flex-direction: row;\n justify-content: space-between;\n border-top: 1px solid #E9ECEF;\n width: calc(100% + 40px);\n transform: translateX(-20px);\n padding: 10px 20px;\n box-sizing: border-box;\n\n ", "\n\n div.price {\n width: 25%;\n }\n\n button.add {\n width: 35%;\n margin-top: 0;\n }\n\n div.incdec-control {\n margin-right: 18%;\n &.show-weight-unit{\n width: 40%;\n }\n }\n }\n"])), function (props) {
76
+ var _props$theme, _props$theme$colors;
77
+ return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$colors = _props$theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage;
78
+ }, function (props) {
79
+ var _props$theme2;
80
+ return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.colors.darkTextColor;
78
81
  }, function (props) {
79
82
  return props.theme.colors.primary;
80
83
  }, function (_ref9) {
@@ -103,8 +106,8 @@ exports.ProductTabContainer = ProductTabContainer;
103
106
  var Divider = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n height: 8px;\n width: calc(100% + 40px);\n margin-left: -20px;\n background: #F8F9FA;\n"])));
104
107
  exports.Divider = Divider;
105
108
  var ProductShareWrapper = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n justify-content: flex-end;\n padding-right: 20px;\n ", "\n\n > div {\n > svg {\n margin: 0px !important;\n }\n }\n\n @media (max-width: 768px) {\n > div {\n right: 16px;\n top: 25px;\n left: auto;\n }\n }\n\n"])), function (props) {
106
- var _props$theme2;
107
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n padding-left: 20px;\n padding-right: 0;\n "])));
109
+ var _props$theme3;
110
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n padding-left: 20px;\n padding-right: 0;\n "])));
108
111
  });
109
112
  exports.ProductShareWrapper = ProductShareWrapper;
110
113
  var ProductName = _styledComponents.default.h1(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 30px;\n color: #344050;\n display: flex;\n justify-content: space-between;\n margin: 0;\n .calories {\n font-size: 16px;\n font-weight: 100;\n color: #909BA9;\n white-space: nowrap;\n display: flex;\n align-items: flex-end;\n }\n @media (min-width: 768px) {\n font-size: 22px;\n line-height: 34px;\n }\n"])));
@@ -122,13 +125,13 @@ exports.EstimatedPersons = EstimatedPersons;
122
125
  var ProductTagsListContainer = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 20px;\n"])));
123
126
  exports.ProductTagsListContainer = ProductTagsListContainer;
124
127
  var ProductTagWrapper = _styledComponents.default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 5px 0;\n\n img {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n }\n\n span {\n font-size: 14px;\n ", "\n }\n"])), function (props) {
125
- var _props$theme3;
126
- return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin: 0 10px 0 20px;\n "]))) : (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n margin: 0 20px 0 10px;\n "])));
128
+ var _props$theme4;
129
+ return (_props$theme4 = props.theme) !== null && _props$theme4 !== void 0 && _props$theme4.rtl ? (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin: 0 10px 0 20px;\n "]))) : (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n margin: 0 20px 0 10px;\n "])));
127
130
  });
128
131
  exports.ProductTagWrapper = ProductTagWrapper;
129
132
  var WeightUnitSwitch = _styledComponents.default.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: auto;\n margin-left: 10px;\n\n ", "\n"])), function (props) {
130
- var _props$theme4;
131
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
133
+ var _props$theme5;
134
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
132
135
  });
133
136
  exports.WeightUnitSwitch = WeightUnitSwitch;
134
137
  var WeightUnitItem = _styledComponents.default.span(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n display: inline-flex;\n width: fit-content;\n min-width: unset !important;\n font-size: 12px;\n line-height: 18px;\n padding: 2px 6px;\n cursor: pointer;\n\n ", "\n"])), function (_ref12) {
@@ -61,9 +61,6 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
61
61
  var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
62
62
  _useConfig2 = _slicedToArray(_useConfig, 1),
63
63
  configs = _useConfig2[0].configs;
64
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
65
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
66
- orderingTheme = _useOrderingTheme2[0];
67
64
  var _useState = (0, _react.useState)(''),
68
65
  _useState2 = _slicedToArray(_useState, 2),
69
66
  setActive = _useState2[0],
@@ -10,7 +10,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
11
11
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.error {\n background-color: orange;\n }\n"])));
12
12
  exports.Container = Container;
13
- var WrapHeader = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 7px 0px;\n margin-top: 15px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFF;\n"])));
13
+ var WrapHeader = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 7px 0px;\n margin-top: 15px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: ", ";\n"])), function (props) {
14
+ var _props$theme, _props$theme$colors;
15
+ return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$colors = _props$theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage;
16
+ });
14
17
  exports.WrapHeader = WrapHeader;
15
18
  var TitleContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: 0px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 60%;\n display: flex;\n align-items: center; \n\n *:first-child {\n margin-right: 8px;\n }\n\n @media (min-width: 576px) {\n width: 70%;\n }\n"])));
16
19
  exports.TitleContainer = TitleContainer;
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
49
49
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
50
  var layoutOne = 'groceries';
51
51
  var RenderProductsLayout = function RenderProductsLayout(props) {
52
- var _configs$use_parent_c, _configs$use_parent_c2, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16, _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _theme$business_view$5, _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view26, _theme$business_view27, _businessState$busine, _businessState$busine2, _business$previously_, _business$professiona, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _business$professiona2, _business$categories2, _theme$defaultLanguag4, _theme$defaultLanguag5, _business$professiona3, _currentCart$products, _business$professiona4, _business$categories3, _theme$defaultLanguag6, _theme$defaultLanguag7, _business$previously_2, _theme$defaultLanguag8, _theme$defaultLanguag9, _currentCart$products2, _currentCart$products3;
52
+ var _configs$use_parent_c, _configs$use_parent_c2, _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16, _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21, _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view$5, _theme$business_view26, _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31, _businessState$busine, _businessState$busine2, _businessState$busine3, _businessState$busine4, _business$previously_, _business$professiona, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _business$professiona2, _business$categories2, _theme$defaultLanguag4, _theme$defaultLanguag5, _business$professiona3, _currentCart$products, _business$professiona4, _business$categories3, _theme$defaultLanguag6, _theme$defaultLanguag7, _business$previously_2, _theme$defaultLanguag8, _theme$defaultLanguag9, _currentCart$products2, _currentCart$products3;
53
53
  var errors = props.errors,
54
54
  isError = props.isError,
55
55
  isLoading = props.isLoading,
@@ -98,9 +98,6 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
98
98
  var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
99
99
  _useUtils2 = _slicedToArray(_useUtils, 1),
100
100
  parsePrice = _useUtils2[0].parsePrice;
101
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
102
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
103
- orderingTheme = _useOrderingTheme2[0];
104
101
  var windowSize = (0, _useWindowSize.useWindowSize)();
105
102
  var _useState = (0, _react.useState)(false),
106
103
  _useState2 = _slicedToArray(_useState, 2),
@@ -121,9 +118,9 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
121
118
  var businessLayout = {
122
119
  layoutOne: frontLayout === layoutOne && isUseParentCategory
123
120
  };
124
- var showCartOnProductList = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.business_view) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.cart) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && _orderingTheme$theme$4.hidden);
125
- var hideBusinessNearCity = (_theme$business_view$5 = theme === null || theme === void 0 ? void 0 : (_theme$business_view22 = theme.business_view) === null || _theme$business_view22 === void 0 ? void 0 : (_theme$business_view23 = _theme$business_view22.components) === null || _theme$business_view23 === void 0 ? void 0 : (_theme$business_view24 = _theme$business_view23.near_business) === null || _theme$business_view24 === void 0 ? void 0 : _theme$business_view24.hidden) !== null && _theme$business_view$5 !== void 0 ? _theme$business_view$5 : true;
126
- var hidePreviousOrdered = theme === null || theme === void 0 ? void 0 : (_theme$business_view25 = theme.business_view) === null || _theme$business_view25 === void 0 ? void 0 : (_theme$business_view26 = _theme$business_view25.components) === null || _theme$business_view26 === void 0 ? void 0 : (_theme$business_view27 = _theme$business_view26.products_ordered) === null || _theme$business_view27 === void 0 ? void 0 : _theme$business_view27.hidden;
121
+ var showCartOnProductList = !(theme !== null && theme !== void 0 && (_theme$business_view22 = theme.business_view) !== null && _theme$business_view22 !== void 0 && (_theme$business_view23 = _theme$business_view22.components) !== null && _theme$business_view23 !== void 0 && (_theme$business_view24 = _theme$business_view23.cart) !== null && _theme$business_view24 !== void 0 && (_theme$business_view25 = _theme$business_view24.components) !== null && _theme$business_view25 !== void 0 && _theme$business_view25.hidden);
122
+ var hideBusinessNearCity = (_theme$business_view$5 = theme === null || theme === void 0 ? void 0 : (_theme$business_view26 = theme.business_view) === null || _theme$business_view26 === void 0 ? void 0 : (_theme$business_view27 = _theme$business_view26.components) === null || _theme$business_view27 === void 0 ? void 0 : (_theme$business_view28 = _theme$business_view27.near_business) === null || _theme$business_view28 === void 0 ? void 0 : _theme$business_view28.hidden) !== null && _theme$business_view$5 !== void 0 ? _theme$business_view$5 : true;
123
+ var hidePreviousOrdered = theme === null || theme === void 0 ? void 0 : (_theme$business_view29 = theme.business_view) === null || _theme$business_view29 === void 0 ? void 0 : (_theme$business_view30 = _theme$business_view29.components) === null || _theme$business_view30 === void 0 ? void 0 : (_theme$business_view31 = _theme$business_view30.products_ordered) === null || _theme$business_view31 === void 0 ? void 0 : _theme$business_view31.hidden;
127
124
  var BusinessLayoutCategories = businessLayout.layoutOne ? _groceries.BusinessProductsCategories : _BusinessProductsCategories.BusinessProductsCategories;
128
125
  var BusinessLayoutProductsList = businessLayout.layoutOne ? _groceries2.BusinessProductsList : _BusinessProductsList.BusinessProductsList;
129
126
  var handleSaveProduct = function handleSaveProduct() {
@@ -172,8 +169,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
172
169
  categoryClicked: categoryClicked,
173
170
  categorySelected: categorySelected,
174
171
  setCategoryClicked: setCategoryClicked
175
- })), !isCustomerMode && /*#__PURE__*/_react.default.createElement(_styles.PageBannerWrapper, null, /*#__PURE__*/_react.default.createElement(_PageBanner.PageBanner, {
176
- position: "web_business_page"
172
+ })), (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.id) && /*#__PURE__*/_react.default.createElement(_styles.PageBannerWrapper, null, /*#__PURE__*/_react.default.createElement(_PageBanner.PageBanner, {
173
+ position: "web_business_page",
174
+ businessId: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.id,
175
+ isCustomerMode: isCustomerMode
177
176
  })), !errorQuantityProducts && SearchProductsComponent && !useKioskApp && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(SearchProductsComponent, {
178
177
  handleChangeSearch: handleChangeSearch,
179
178
  searchValue: searchValue,
@@ -434,11 +434,11 @@ var SignUpFormUI = function SignUpFormUI(props) {
434
434
  placeholder: t(field.code.toUpperCase(), field.name),
435
435
  onChange: handleChangeInputEmail,
436
436
  ref: formMethods.register({
437
- required: isRequiredField(field.code) ? t('VALIDATION_ERROR_EMAIL_REQUIRED', 'The field Email is required').replace('_attribute_', t('EMAIL', 'Email')) : null,
437
+ required: !isCustomerMode && isRequiredField(field.code) ? t('VALIDATION_ERROR_EMAIL_REQUIRED', 'The field Email is required').replace('_attribute_', t('EMAIL', 'Email')) : null,
438
438
  pattern: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i
439
439
  }),
440
440
  onKeyDown: preventWhiteSpaceOnKeyDown,
441
- required: !!field.required,
441
+ required: !!field.required && !isCustomerMode,
442
442
  autoComplete: "on",
443
443
  isError: ((_formMethods$errors4 = formMethods.errors) === null || _formMethods$errors4 === void 0 ? void 0 : _formMethods$errors4.email) && !notValidationFields.includes(field.code)
444
444
  }), /*#__PURE__*/_react.default.createElement(_styles2.InputBeforeIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Envelope, null))))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, signUpTab === 'default' && /*#__PURE__*/_react.default.createElement(_styles2.InputContainer, {
@@ -499,13 +499,13 @@ var SignUpFormUI = function SignUpFormUI(props) {
499
499
  })), props.isRecaptchaEnable && enableReCaptcha && /*#__PURE__*/_react.default.createElement(_styles2.ReCaptchaWrapper, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReCaptcha, {
500
500
  handleReCaptcha: handleReCaptcha,
501
501
  reCaptchaVersion: reCaptchaVersion
502
- })), /*#__PURE__*/_react.default.createElement(_styles2.CheckboxArea, null, signUpTab === 'default' && /*#__PURE__*/_react.default.createElement(_styles2.PromotionsWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, {
502
+ })), /*#__PURE__*/_react.default.createElement(_styles2.CheckboxArea, null, signUpTab === 'default' && !isCustomerMode && /*#__PURE__*/_react.default.createElement(_styles2.PromotionsWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, {
503
503
  name: "promotions",
504
504
  id: "promotions",
505
505
  onChange: handleChangePromotions
506
506
  }), /*#__PURE__*/_react.default.createElement("label", {
507
507
  htmlFor: "promotions"
508
- }, /*#__PURE__*/_react.default.createElement("span", null, t('RECEIVE_NEWS_EXCLUSIVE_PROMOTIONS', 'Receive newsletters and exclusive promotions')))), (configs === null || configs === void 0 ? void 0 : (_configs$terms_and_co = configs.terms_and_conditions) === null || _configs$terms_and_co === void 0 ? void 0 : _configs$terms_and_co.value) === 'true' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((_formMethods$errors21 = formMethods.errors) === null || _formMethods$errors21 === void 0 ? void 0 : _formMethods$errors21.acceptTerms) && /*#__PURE__*/_react.default.createElement(_styles2.ValidationText, null, (_formMethods$errors22 = formMethods.errors) === null || _formMethods$errors22 === void 0 ? void 0 : (_formMethods$errors23 = _formMethods$errors22.acceptTerms) === null || _formMethods$errors23 === void 0 ? void 0 : _formMethods$errors23.message, " *"), /*#__PURE__*/_react.default.createElement(_styles2.TermsConditionWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, {
508
+ }, /*#__PURE__*/_react.default.createElement("span", null, t('RECEIVE_NEWS_EXCLUSIVE_PROMOTIONS', 'Receive newsletters and exclusive promotions')))), (configs === null || configs === void 0 ? void 0 : (_configs$terms_and_co = configs.terms_and_conditions) === null || _configs$terms_and_co === void 0 ? void 0 : _configs$terms_and_co.value) === 'true' && !isCustomerMode && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((_formMethods$errors21 = formMethods.errors) === null || _formMethods$errors21 === void 0 ? void 0 : _formMethods$errors21.acceptTerms) && /*#__PURE__*/_react.default.createElement(_styles2.ValidationText, null, (_formMethods$errors22 = formMethods.errors) === null || _formMethods$errors22 === void 0 ? void 0 : (_formMethods$errors23 = _formMethods$errors22.acceptTerms) === null || _formMethods$errors23 === void 0 ? void 0 : _formMethods$errors23.message, " *"), /*#__PURE__*/_react.default.createElement(_styles2.TermsConditionWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, {
509
509
  name: "acceptTerms",
510
510
  ref: formMethods.register({
511
511
  required: t('ERROR_ACCEPT_TERMS', 'You must accept the Terms & Conditions.')
@@ -562,7 +562,7 @@ var SignUpFormUI = function SignUpFormUI(props) {
562
562
  page: 'signup_driver'
563
563
  });
564
564
  }
565
- }, t('SIGNUP_FOR_DRIVER', 'Sign up for driver'))), hasSocialLogin && hasSocialEnabled && /*#__PURE__*/_react.default.createElement(_styles2.LoginDivider, null, /*#__PURE__*/_react.default.createElement(_styles2.DividerLine, null), /*#__PURE__*/_react.default.createElement("p", null, t('OR', 'or')), /*#__PURE__*/_react.default.createElement(_styles2.DividerLine, null)), !externalPhoneNumber && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, Object.keys(configs).length > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.SocialButtons, {
565
+ }, t('SIGNUP_FOR_DRIVER', 'Sign up for driver'))), hasSocialLogin && hasSocialEnabled && !isCustomerMode && /*#__PURE__*/_react.default.createElement(_styles2.LoginDivider, null, /*#__PURE__*/_react.default.createElement(_styles2.DividerLine, null), /*#__PURE__*/_react.default.createElement("p", null, t('OR', 'or')), /*#__PURE__*/_react.default.createElement(_styles2.DividerLine, null)), !externalPhoneNumber && !isCustomerMode && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, Object.keys(configs).length > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.SocialButtons, {
566
566
  isPopup: isPopup
567
567
  }, isFacebookLogin && (configs === null || configs === void 0 ? void 0 : (_configs$facebook_id2 = configs.facebook_id) === null || _configs$facebook_id2 === void 0 ? void 0 : _configs$facebook_id2.value) && facebookLoginEnabled && /*#__PURE__*/_react.default.createElement(_FacebookLogin.FacebookLoginButton, {
568
568
  appId: configs === null || configs === void 0 ? void 0 : (_configs$facebook_id3 = configs.facebook_id) === null || _configs$facebook_id3 === void 0 ? void 0 : _configs$facebook_id3.value,
@@ -76,9 +76,6 @@ var SingleProductCardUI = function SingleProductCardUI(props) {
76
76
  _useSession2 = _slicedToArray(_useSession, 2),
77
77
  auth = _useSession2[0].auth,
78
78
  login = _useSession2[1].login;
79
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
80
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
81
- orderingTheme = _useOrderingTheme2[0];
82
79
  var theme = (0, _styledComponents.useTheme)();
83
80
  var favoriteRef = (0, _react.useRef)(null);
84
81
  var _useState = (0, _react.useState)(false),
@@ -141,7 +141,7 @@ var UserDetailsUI = function UserDetailsUI(props) {
141
141
  handleSendOtp();
142
142
  }, [willVerifyOtpState]);
143
143
  (0, _react.useEffect)(function () {
144
- if (isCheckoutPlace && (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.length) === 0) {
144
+ if (isCheckoutPlace && (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.length) === 0 && !(formState !== null && formState !== void 0 && formState.loading)) {
145
145
  setIsSuccess && setIsSuccess(true);
146
146
  onClose && onClose();
147
147
  }
@@ -42,5 +42,5 @@ var TitleContainer = _styledComponents.default.div(_templateObject9 || (_templat
42
42
  exports.TitleContainer = TitleContainer;
43
43
  var CountryFlag = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-right: 5px;\n .PhoneInputCountryIcon {\n width: 25px;\n }\n .PhoneInputInput {\n display: none;\n }\n .PhoneInputCountrySelect {\n display: none;\n }\n"])));
44
44
  exports.CountryFlag = CountryFlag;
45
- var PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n"])));
45
+ var PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n p {\n margin-bottom: 0;\n }\n"])));
46
46
  exports.PhoneContainer = PhoneContainer;
@@ -76,9 +76,6 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
76
76
  _useSession2 = _slicedToArray(_useSession, 2),
77
77
  userSession = _useSession2[0].user,
78
78
  login = _useSession2[1].login;
79
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
80
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
81
- orderingTheme = _useOrderingTheme2[0];
82
79
  var _useState = (0, _react.useState)(null),
83
80
  _useState2 = _slicedToArray(_useState, 2),
84
81
  isValidPhoneNumber = _useState2[0],
@@ -256,8 +253,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
256
253
  }
257
254
  };
258
255
  var showFieldWithTheme = function showFieldWithTheme(name) {
259
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3;
260
- return !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.profile) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2[name]) !== null && _orderingTheme$theme$3 !== void 0 && _orderingTheme$theme$3.hidden);
256
+ var _theme$profile6, _theme$profile6$compo, _theme$profile6$compo2;
257
+ return !(theme !== null && theme !== void 0 && (_theme$profile6 = theme.profile) !== null && _theme$profile6 !== void 0 && (_theme$profile6$compo = _theme$profile6.components) !== null && _theme$profile6$compo !== void 0 && (_theme$profile6$compo2 = _theme$profile6$compo[name]) !== null && _theme$profile6$compo2 !== void 0 && _theme$profile6$compo2.hidden);
261
258
  };
262
259
  var _handleChangeDate = function _handleChangeDate(date) {
263
260
  setBirthdate(date);
@@ -402,7 +399,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
402
399
  }), showInputBirthday && /*#__PURE__*/_react.default.createElement(_styles.InputPhoneNumberWrapper, null, /*#__PURE__*/_react.default.createElement("p", null, t('BIRTHDATE', 'Birthdate')), /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
403
400
  borderBottom: true,
404
401
  className: "form",
405
- value: (0, _moment.default)(birthdate).format('YYYY/MM/DD'),
402
+ value: birthdate ? (0, _moment.default)(birthdate).format('YYYY/MM/DD') : '',
406
403
  autoComplete: "off",
407
404
  onFocus: function onFocus() {
408
405
  return setOpenCalendar(true);
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var UserPopover = function UserPopover(props) {
33
- var _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _configs$advanced_off, _configs$advanced_off2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _theme$bar_menu, _theme$bar_menu$compo, _theme$bar_menu$compo2, _theme$bar_menu2, _theme$bar_menu2$comp, _theme$bar_menu2$comp2, _theme$bar_menu3, _theme$bar_menu3$comp, _theme$bar_menu3$comp2, _theme$bar_menu4, _theme$bar_menu4$comp, _theme$bar_menu4$comp2, _theme$bar_menu5, _theme$bar_menu5$comp, _theme$bar_menu5$comp2, _theme$bar_menu6, _theme$bar_menu6$comp, _theme$bar_menu6$comp2, _theme$bar_menu7, _theme$bar_menu7$comp, _theme$bar_menu7$comp2, _theme$bar_menu8, _theme$bar_menu8$comp, _theme$bar_menu8$comp2, _theme$bar_menu9, _theme$bar_menu9$comp, _theme$bar_menu9$comp2, _props$beforeElements, _props$beforeComponen, _sessionState$user, _sessionState$user2, _props$afterComponent, _props$afterElements;
33
+ var _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _configs$advanced_off, _configs$advanced_off2, _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile$compon3, _theme$profile$compon4, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _theme$bar_menu, _theme$bar_menu$compo, _theme$bar_menu$compo2, _theme$bar_menu2, _theme$bar_menu2$comp, _theme$bar_menu2$comp2, _theme$bar_menu3, _theme$bar_menu3$comp, _theme$bar_menu3$comp2, _theme$bar_menu4, _theme$bar_menu4$comp, _theme$bar_menu4$comp2, _theme$bar_menu5, _theme$bar_menu5$comp, _theme$bar_menu5$comp2, _theme$bar_menu6, _theme$bar_menu6$comp, _theme$bar_menu6$comp2, _theme$bar_menu7, _theme$bar_menu7$comp, _theme$bar_menu7$comp2, _theme$bar_menu8, _theme$bar_menu8$comp, _theme$bar_menu8$comp2, _theme$bar_menu9, _theme$bar_menu9$comp, _theme$bar_menu9$comp2, _props$beforeElements, _props$beforeComponen, _sessionState$user, _sessionState$user2, _props$afterComponent, _props$afterElements;
34
34
  var open = props.open,
35
35
  isHome = props.isHome,
36
36
  optionsList = props.optionsList,
@@ -49,9 +49,6 @@ var UserPopover = function UserPopover(props) {
49
49
  var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
50
50
  _useConfig2 = _slicedToArray(_useConfig, 1),
51
51
  configs = _useConfig2[0].configs;
52
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
53
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
54
- orderingTheme = _useOrderingTheme2[0];
55
52
  var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
56
53
  _useOrder2 = _slicedToArray(_useOrder, 1),
57
54
  orderStatus = _useOrder2[0];
@@ -61,8 +58,8 @@ var UserPopover = function UserPopover(props) {
61
58
  var arrowElement = (0, _react.useRef)();
62
59
  var isWalletEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 ? void 0 : (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && ((configs === null || configs === void 0 ? void 0 : (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1');
63
60
  var isPromotionsEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off = configs.advanced_offers_module) === null || _configs$advanced_off === void 0 ? void 0 : _configs$advanced_off.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off2 = configs.advanced_offers_module) === null || _configs$advanced_off2 === void 0 ? void 0 : _configs$advanced_off2.value) === true;
64
- var isAddressListNewPage = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
65
- var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.header) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.layout) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.type) === null || _orderingTheme$theme6 === void 0 ? void 0 : _orderingTheme$theme6.toLowerCase()) === 'chew';
61
+ var isAddressListNewPage = (theme === null || theme === void 0 ? void 0 : (_theme$profile = theme.profile) === null || _theme$profile === void 0 ? void 0 : (_theme$profile$compon = _theme$profile.components) === null || _theme$profile$compon === void 0 ? void 0 : (_theme$profile$compon2 = _theme$profile$compon.address_list) === null || _theme$profile$compon2 === void 0 ? void 0 : (_theme$profile$compon3 = _theme$profile$compon2.components) === null || _theme$profile$compon3 === void 0 ? void 0 : (_theme$profile$compon4 = _theme$profile$compon3.layout) === null || _theme$profile$compon4 === void 0 ? void 0 : _theme$profile$compon4.position) === 'new_page';
62
+ var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
66
63
  var hideBrowse = theme === null || theme === void 0 ? void 0 : (_theme$bar_menu = theme.bar_menu) === null || _theme$bar_menu === void 0 ? void 0 : (_theme$bar_menu$compo = _theme$bar_menu.components) === null || _theme$bar_menu$compo === void 0 ? void 0 : (_theme$bar_menu$compo2 = _theme$bar_menu$compo.browse) === null || _theme$bar_menu$compo2 === void 0 ? void 0 : _theme$bar_menu$compo2.hidden;
67
64
  var hideOrders = theme === null || theme === void 0 ? void 0 : (_theme$bar_menu2 = theme.bar_menu) === null || _theme$bar_menu2 === void 0 ? void 0 : (_theme$bar_menu2$comp = _theme$bar_menu2.components) === null || _theme$bar_menu2$comp === void 0 ? void 0 : (_theme$bar_menu2$comp2 = _theme$bar_menu2$comp.orders) === null || _theme$bar_menu2$comp2 === void 0 ? void 0 : _theme$bar_menu2$comp2.hidden;
68
65
  var hideProfile = theme === null || theme === void 0 ? void 0 : (_theme$bar_menu3 = theme.bar_menu) === null || _theme$bar_menu3 === void 0 ? void 0 : (_theme$bar_menu3$comp = _theme$bar_menu3.components) === null || _theme$bar_menu3$comp === void 0 ? void 0 : (_theme$bar_menu3$comp2 = _theme$bar_menu3$comp.profile) === null || _theme$bar_menu3$comp2 === void 0 ? void 0 : _theme$bar_menu3$comp2.hidden;
@@ -24,13 +24,16 @@ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObje
24
24
  return props.isChew ? props.theme.colors.backgroundPage : props.theme.colors.darkTextColor;
25
25
  });
26
26
  exports.HeaderItem = HeaderItem;
27
- var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 20px 15px;\n border-radius: 10px;\n max-width: 500px;\n min-width: 300px !important;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])));
27
+ var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: #333;\n padding: 20px 15px;\n border-radius: 10px;\n max-width: 500px;\n min-width: 300px !important;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])), function (props) {
28
+ var _props$theme2, _props$theme2$colors;
29
+ return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : (_props$theme2$colors = _props$theme2.colors) === null || _props$theme2$colors === void 0 ? void 0 : _props$theme2$colors.backgroundPage;
30
+ });
28
31
  exports.PopoverBody = PopoverBody;
29
32
  var PopoverList = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
30
33
  exports.PopoverList = PopoverList;
31
34
  var PopoverListItemStyles = (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n padding: 7px 15px;\n align-items: center;\n font-weight: 600;\n font-size: 14px;\n color: #000000;\n border-radius: 7.6px;\n\n svg {\n margin-right: 5px;\n ", "\n }\n\n :hover {\n cursor: pointer;\n background-color: #f8f8f8;\n }\n\n :last-child {\n border-bottom: 0;\n }\n"])), function (props) {
32
- var _props$theme2;
33
- return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
35
+ var _props$theme3;
36
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
34
37
  });
35
38
  var PopoverListItem = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", "\n"])), PopoverListItemStyles);
36
39
  exports.PopoverListItem = PopoverListItem;
@@ -42,8 +45,8 @@ exports.PopoverListLink = PopoverListLink;
42
45
  var ExtraOptions = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n a, div {\n font-weight: normal;\n }\n"])));
43
46
  exports.ExtraOptions = ExtraOptions;
44
47
  var Divider = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: 20px;\n margin-bottom: 15px;\n width: calc(100% + 30px);\n margin-left: -15px;\n height: 1px;\n background: #E9ECEF;\n\n ", "\n"])), function (props) {
45
- var _props$theme3;
46
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-right: -15px;\n margin-left: 0;\n "])));
48
+ var _props$theme4;
49
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-right: -15px;\n margin-left: 0;\n "])));
47
50
  });
48
51
  exports.Divider = Divider;
49
52
  var UserImgWrapper = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n"])));
@@ -12,6 +12,7 @@ var _BsPerson = _interopRequireDefault(require("@meronex/icons/bs/BsPerson"));
12
12
  var _AiOutlineUnorderedList = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineUnorderedList"));
13
13
  var _FaAddressBook = _interopRequireDefault(require("@meronex/icons/fa/FaAddressBook"));
14
14
  var _orderingComponentsExternal = require("ordering-components-external");
15
+ var _styledComponents = require("styled-components");
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -22,7 +23,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
22
23
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
23
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
25
  var ProfileOptions = function ProfileOptions(_ref) {
25
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5;
26
+ var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile$compon3, _theme$profile$compon4;
26
27
  var value = _ref.value;
27
28
  var _useState = (0, _react.useState)(value),
28
29
  _useState2 = _slicedToArray(_useState, 1),
@@ -33,10 +34,8 @@ var ProfileOptions = function ProfileOptions(_ref) {
33
34
  var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
34
35
  _useEvent2 = _slicedToArray(_useEvent, 1),
35
36
  events = _useEvent2[0];
36
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
37
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
38
- orderingTheme = _useOrderingTheme2[0];
39
- var showAddressListTab = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
37
+ var theme = (0, _styledComponents.useTheme)();
38
+ var showAddressListTab = (theme === null || theme === void 0 ? void 0 : (_theme$profile = theme.profile) === null || _theme$profile === void 0 ? void 0 : (_theme$profile$compon = _theme$profile.components) === null || _theme$profile$compon === void 0 ? void 0 : (_theme$profile$compon2 = _theme$profile$compon.address_list) === null || _theme$profile$compon2 === void 0 ? void 0 : (_theme$profile$compon3 = _theme$profile$compon2.components) === null || _theme$profile$compon3 === void 0 ? void 0 : (_theme$profile$compon4 = _theme$profile$compon3.layout) === null || _theme$profile$compon4 === void 0 ? void 0 : _theme$profile$compon4.position) === 'new_page';
40
39
  var handleGoToPage = function handleGoToPage(data) {
41
40
  events.emit('go_to_page', data);
42
41
  };
@@ -69,7 +69,7 @@ var ListItemLogout = function ListItemLogout() {
69
69
  return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.LogoutAction, logoutActionProps);
70
70
  };
71
71
  var UserProfileFormUI = function UserProfileFormUI(props) {
72
- var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2, _configs$advanced_off, _configs$advanced_off2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _theme$bar_menu, _theme$bar_menu$compo, _theme$bar_menu$compo2, _theme$bar_menu2, _theme$bar_menu2$comp, _theme$bar_menu2$comp2, _theme$bar_menu3, _theme$bar_menu3$comp, _theme$bar_menu3$comp2, _theme$bar_menu4, _theme$bar_menu4$comp, _theme$bar_menu4$comp2, _theme$bar_menu5, _theme$bar_menu5$comp, _theme$bar_menu5$comp2, _theme$bar_menu6, _theme$bar_menu6$comp, _theme$bar_menu6$comp2, _formState$changes5, _verifyPhoneState$res3, _props$beforeElements, _props$beforeComponen, _formState$changes6, _formState$changes7, _formState$changes8, _formState$result, _formState$changes9, _formState$changes10, _props$afterComponent, _props$afterElements;
72
+ var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2, _configs$advanced_off, _configs$advanced_off2, _theme$profile4, _theme$profile4$compo, _theme$profile4$compo2, _theme$profile4$compo3, _theme$profile4$compo4, _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _theme$bar_menu, _theme$bar_menu$compo, _theme$bar_menu$compo2, _theme$bar_menu2, _theme$bar_menu2$comp, _theme$bar_menu2$comp2, _theme$bar_menu3, _theme$bar_menu3$comp, _theme$bar_menu3$comp2, _theme$bar_menu4, _theme$bar_menu4$comp, _theme$bar_menu4$comp2, _theme$bar_menu5, _theme$bar_menu5$comp, _theme$bar_menu5$comp2, _theme$bar_menu6, _theme$bar_menu6$comp, _theme$bar_menu6$comp2, _formState$changes5, _verifyPhoneState$res3, _props$beforeElements, _props$beforeComponen, _formState$changes6, _formState$changes7, _formState$changes8, _formState$result, _formState$changes9, _formState$changes10, _props$afterComponent, _props$afterElements;
73
73
  var userData = props.userData,
74
74
  handleButtonUpdateClick = props.handleButtonUpdateClick,
75
75
  handlechangeImage = props.handlechangeImage,
@@ -94,9 +94,6 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
94
94
  _useConfig2 = _slicedToArray(_useConfig, 1),
95
95
  configs = _useConfig2[0].configs;
96
96
  var theme = (0, _styledComponents.useTheme)();
97
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
98
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
99
- orderingTheme = _useOrderingTheme2[0];
100
97
  var _useState = (0, _react.useState)(false),
101
98
  _useState2 = _slicedToArray(_useState, 2),
102
99
  willVerifyOtpState = _useState2[0],
@@ -118,7 +115,7 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
118
115
  var showAddressList = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2$compo = _theme$profile2.components) !== null && _theme$profile2$compo !== void 0 && (_theme$profile2$compo2 = _theme$profile2$compo.address_list) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
119
116
  var userFormLayoutRow = (theme === null || theme === void 0 ? void 0 : (_theme$profile3 = theme.profile) === null || _theme$profile3 === void 0 ? void 0 : (_theme$profile3$compo = _theme$profile3.components) === null || _theme$profile3$compo === void 0 ? void 0 : (_theme$profile3$compo2 = _theme$profile3$compo.layout) === null || _theme$profile3$compo2 === void 0 ? void 0 : _theme$profile3$compo2.position) === 'row';
120
117
  var isPromotionsEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off = configs.advanced_offers_module) === null || _configs$advanced_off === void 0 ? void 0 : _configs$advanced_off.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off2 = configs.advanced_offers_module) === null || _configs$advanced_off2 === void 0 ? void 0 : _configs$advanced_off2.value) === true;
121
- var isAddressListNewPage = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
118
+ var isAddressListNewPage = (theme === null || theme === void 0 ? void 0 : (_theme$profile4 = theme.profile) === null || _theme$profile4 === void 0 ? void 0 : (_theme$profile4$compo = _theme$profile4.components) === null || _theme$profile4$compo === void 0 ? void 0 : (_theme$profile4$compo2 = _theme$profile4$compo.address_list) === null || _theme$profile4$compo2 === void 0 ? void 0 : (_theme$profile4$compo3 = _theme$profile4$compo2.components) === null || _theme$profile4$compo3 === void 0 ? void 0 : (_theme$profile4$compo4 = _theme$profile4$compo3.layout) === null || _theme$profile4$compo4 === void 0 ? void 0 : _theme$profile4$compo4.position) === 'new_page';
122
119
  var isWalletEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 ? void 0 : (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && ((configs === null || configs === void 0 ? void 0 : (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1');
123
120
  var hideWallet = theme === null || theme === void 0 ? void 0 : (_theme$bar_menu = theme.bar_menu) === null || _theme$bar_menu === void 0 ? void 0 : (_theme$bar_menu$compo = _theme$bar_menu.components) === null || _theme$bar_menu$compo === void 0 ? void 0 : (_theme$bar_menu$compo2 = _theme$bar_menu$compo.wallet) === null || _theme$bar_menu$compo2 === void 0 ? void 0 : _theme$bar_menu$compo2.hidden;
124
121
  var hideMessages = theme === null || theme === void 0 ? void 0 : (_theme$bar_menu2 = theme.bar_menu) === null || _theme$bar_menu2 === void 0 ? void 0 : (_theme$bar_menu2$comp = _theme$bar_menu2.components) === null || _theme$bar_menu2$comp === void 0 ? void 0 : (_theme$bar_menu2$comp2 = _theme$bar_menu2$comp.messages) === null || _theme$bar_menu2$comp2 === void 0 ? void 0 : _theme$bar_menu2$comp2.hidden;