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
@@ -26,7 +26,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
26
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
  var types = ['food', 'laundry', 'alcohol', 'groceries'];
28
28
  var BusinessBasicInformation = function BusinessBasicInformation(props) {
29
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images$dummies, _business$reviews, _orderState$options, _props$afterComponent, _props$afterElements;
29
+ var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _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_view26, _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31, _theme$business_view32, _theme$business_view33, _theme$business_view34, _theme$business_view35, _theme$business_view36, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images$dummies, _business$reviews, _orderState$options, _props$afterComponent, _props$afterElements;
30
30
  var isSkeleton = props.isSkeleton,
31
31
  businessState = props.businessState,
32
32
  setOpenBusinessInformation = props.setOpenBusinessInformation,
@@ -46,9 +46,6 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
46
46
  parsePrice = _useUtils2$.parsePrice,
47
47
  parseDistance = _useUtils2$.parseDistance,
48
48
  optimizeImage = _useUtils2$.optimizeImage;
49
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
50
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
51
- orderingTheme = _useOrderingTheme2[0];
52
49
  var getBusinessType = function getBusinessType() {
53
50
  if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
54
51
  var _types = [];
@@ -58,12 +55,12 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
58
55
  });
59
56
  return _types.join(', ');
60
57
  };
61
- var showLogo = !(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.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.logo) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
62
- var showDeliveryFee = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.business_view) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.header) !== null && _orderingTheme$theme5 !== void 0 && (_orderingTheme$theme6 = _orderingTheme$theme5.components) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.business) !== null && _orderingTheme$theme7 !== void 0 && (_orderingTheme$theme8 = _orderingTheme$theme7.components) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.fee) !== null && _orderingTheme$theme9 !== void 0 && _orderingTheme$theme9.hidden);
63
- var showTime = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme10 = orderingTheme.theme) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.business_view) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12.header) !== null && _orderingTheme$theme13 !== void 0 && (_orderingTheme$theme14 = _orderingTheme$theme13.components) !== null && _orderingTheme$theme14 !== void 0 && (_orderingTheme$theme15 = _orderingTheme$theme14.business) !== null && _orderingTheme$theme15 !== void 0 && (_orderingTheme$theme16 = _orderingTheme$theme15.components) !== null && _orderingTheme$theme16 !== void 0 && (_orderingTheme$theme17 = _orderingTheme$theme16.time) !== null && _orderingTheme$theme17 !== void 0 && _orderingTheme$theme17.hidden);
64
- var showBusinessInfo = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme18 = orderingTheme.theme) !== null && _orderingTheme$theme18 !== void 0 && (_orderingTheme$theme19 = _orderingTheme$theme18.business_view) !== null && _orderingTheme$theme19 !== void 0 && (_orderingTheme$theme20 = _orderingTheme$theme19.components) !== null && _orderingTheme$theme20 !== void 0 && (_orderingTheme$theme21 = _orderingTheme$theme20.header) !== null && _orderingTheme$theme21 !== void 0 && (_orderingTheme$theme22 = _orderingTheme$theme21.components) !== null && _orderingTheme$theme22 !== void 0 && (_orderingTheme$theme23 = _orderingTheme$theme22.business) !== null && _orderingTheme$theme23 !== void 0 && (_orderingTheme$theme24 = _orderingTheme$theme23.components) !== null && _orderingTheme$theme24 !== void 0 && (_orderingTheme$theme25 = _orderingTheme$theme24.business_info) !== null && _orderingTheme$theme25 !== void 0 && _orderingTheme$theme25.hidden);
65
- var showReviews = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme26 = orderingTheme.theme) !== null && _orderingTheme$theme26 !== void 0 && (_orderingTheme$theme27 = _orderingTheme$theme26.business_view) !== null && _orderingTheme$theme27 !== void 0 && (_orderingTheme$theme28 = _orderingTheme$theme27.components) !== null && _orderingTheme$theme28 !== void 0 && (_orderingTheme$theme29 = _orderingTheme$theme28.header) !== null && _orderingTheme$theme29 !== void 0 && (_orderingTheme$theme30 = _orderingTheme$theme29.components) !== null && _orderingTheme$theme30 !== void 0 && (_orderingTheme$theme31 = _orderingTheme$theme30.business) !== null && _orderingTheme$theme31 !== void 0 && (_orderingTheme$theme32 = _orderingTheme$theme31.components) !== null && _orderingTheme$theme32 !== void 0 && (_orderingTheme$theme33 = _orderingTheme$theme32.reviews) !== null && _orderingTheme$theme33 !== void 0 && _orderingTheme$theme33.hidden);
66
- var showDistance = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme34 = orderingTheme.theme) !== null && _orderingTheme$theme34 !== void 0 && (_orderingTheme$theme35 = _orderingTheme$theme34.business_view) !== null && _orderingTheme$theme35 !== void 0 && (_orderingTheme$theme36 = _orderingTheme$theme35.components) !== null && _orderingTheme$theme36 !== void 0 && (_orderingTheme$theme37 = _orderingTheme$theme36.header) !== null && _orderingTheme$theme37 !== void 0 && (_orderingTheme$theme38 = _orderingTheme$theme37.components) !== null && _orderingTheme$theme38 !== void 0 && (_orderingTheme$theme39 = _orderingTheme$theme38.business) !== null && _orderingTheme$theme39 !== void 0 && (_orderingTheme$theme40 = _orderingTheme$theme39.components) !== null && _orderingTheme$theme40 !== void 0 && (_orderingTheme$theme41 = _orderingTheme$theme40.distance) !== null && _orderingTheme$theme41 !== void 0 && _orderingTheme$theme41.hidden);
58
+ var showLogo = !(theme !== null && theme !== void 0 && (_theme$business_view = theme.business_view) !== null && _theme$business_view !== void 0 && (_theme$business_view$ = _theme$business_view.components) !== null && _theme$business_view$ !== void 0 && (_theme$business_view$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.logo) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
59
+ var showDeliveryFee = !(theme !== null && theme !== void 0 && (_theme$business_view2 = theme.business_view) !== null && _theme$business_view2 !== void 0 && (_theme$business_view3 = _theme$business_view2.components) !== null && _theme$business_view3 !== void 0 && (_theme$business_view4 = _theme$business_view3.header) !== null && _theme$business_view4 !== void 0 && (_theme$business_view5 = _theme$business_view4.components) !== null && _theme$business_view5 !== void 0 && (_theme$business_view6 = _theme$business_view5.business) !== null && _theme$business_view6 !== void 0 && (_theme$business_view7 = _theme$business_view6.components) !== null && _theme$business_view7 !== void 0 && (_theme$business_view8 = _theme$business_view7.fee) !== null && _theme$business_view8 !== void 0 && _theme$business_view8.hidden);
60
+ var showTime = !(theme !== null && theme !== void 0 && (_theme$business_view9 = theme.business_view) !== null && _theme$business_view9 !== void 0 && (_theme$business_view10 = _theme$business_view9.components) !== null && _theme$business_view10 !== void 0 && (_theme$business_view11 = _theme$business_view10.header) !== null && _theme$business_view11 !== void 0 && (_theme$business_view12 = _theme$business_view11.components) !== null && _theme$business_view12 !== void 0 && (_theme$business_view13 = _theme$business_view12.business) !== null && _theme$business_view13 !== void 0 && (_theme$business_view14 = _theme$business_view13.components) !== null && _theme$business_view14 !== void 0 && (_theme$business_view15 = _theme$business_view14.time) !== null && _theme$business_view15 !== void 0 && _theme$business_view15.hidden);
61
+ var showBusinessInfo = !(theme !== null && theme !== void 0 && (_theme$business_view16 = theme.business_view) !== null && _theme$business_view16 !== void 0 && (_theme$business_view17 = _theme$business_view16.components) !== null && _theme$business_view17 !== void 0 && (_theme$business_view18 = _theme$business_view17.header) !== null && _theme$business_view18 !== void 0 && (_theme$business_view19 = _theme$business_view18.components) !== null && _theme$business_view19 !== void 0 && (_theme$business_view20 = _theme$business_view19.business) !== null && _theme$business_view20 !== void 0 && (_theme$business_view21 = _theme$business_view20.components) !== null && _theme$business_view21 !== void 0 && (_theme$business_view22 = _theme$business_view21.business_info) !== null && _theme$business_view22 !== void 0 && _theme$business_view22.hidden);
62
+ var showReviews = !(theme !== null && theme !== void 0 && (_theme$business_view23 = theme.business_view) !== null && _theme$business_view23 !== void 0 && (_theme$business_view24 = _theme$business_view23.components) !== null && _theme$business_view24 !== void 0 && (_theme$business_view25 = _theme$business_view24.header) !== null && _theme$business_view25 !== void 0 && (_theme$business_view26 = _theme$business_view25.components) !== null && _theme$business_view26 !== void 0 && (_theme$business_view27 = _theme$business_view26.business) !== null && _theme$business_view27 !== void 0 && (_theme$business_view28 = _theme$business_view27.components) !== null && _theme$business_view28 !== void 0 && (_theme$business_view29 = _theme$business_view28.reviews) !== null && _theme$business_view29 !== void 0 && _theme$business_view29.hidden);
63
+ var showDistance = !(theme !== null && theme !== void 0 && (_theme$business_view30 = theme.business_view) !== null && _theme$business_view30 !== void 0 && (_theme$business_view31 = _theme$business_view30.components) !== null && _theme$business_view31 !== void 0 && (_theme$business_view32 = _theme$business_view31.header) !== null && _theme$business_view32 !== void 0 && (_theme$business_view33 = _theme$business_view32.components) !== null && _theme$business_view33 !== void 0 && (_theme$business_view34 = _theme$business_view33.business) !== null && _theme$business_view34 !== void 0 && (_theme$business_view35 = _theme$business_view34.components) !== null && _theme$business_view35 !== void 0 && (_theme$business_view36 = _theme$business_view35.distance) !== null && _theme$business_view36 !== void 0 && _theme$business_view36.hidden);
67
64
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
68
65
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
69
66
  key: i
@@ -46,7 +46,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
46
46
  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; } }
47
47
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48
48
  var OrderDetailsUI = function OrderDetailsUI(props) {
49
- var _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, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _orderingTheme$theme34, _orderingTheme$theme35, _orderingTheme$theme36, _orderingTheme$theme37, _orderingTheme$theme38, _orderingTheme$theme39, _orderingTheme$theme40, _orderingTheme$theme41, _orderingTheme$theme42, _orderingTheme$theme43, _orderingTheme$theme44, _orderingTheme$theme45, _orderingTheme$theme46, _orderingTheme$theme47, _orderingTheme$theme48, _orderingTheme$theme49, _orderingTheme$theme50, _orderingTheme$theme51, _orderingTheme$theme52, _orderingTheme$theme53, _orderingTheme$theme54, _orderingTheme$theme55, _orderingTheme$theme56, _orderingTheme$theme57, _orderingTheme$theme58, _orderingTheme$theme59, _orderingTheme$theme60, _orderingTheme$theme61, _orderingTheme$theme62, _orderingTheme$theme63, _orderingTheme$theme64, _orderingTheme$theme65, _orderingTheme$theme66, _orderingTheme$theme67, _orderingTheme$theme68, _orderingTheme$theme69, _orderingTheme$theme70, _orderingTheme$theme71, _orderingTheme$theme72, _orderingTheme$theme73, _order$driver, _order$driver2, _theme$images2, _theme$images2$dummie, _order$business, _order$business2, _theme$images3, _theme$images3$dummie, _order$customer, _order$customer2, _theme$images4, _theme$images4$dummie, _props$beforeElements, _props$beforeComponen, _theme$defaultLanguag25, _theme$defaultLanguag26, _order$business3, _theme$images5, _theme$images5$dummie, _order$business4, _order$business5, _order$business6, _order$business7, _theme$defaultLanguag27, _theme$defaultLanguag28, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$delivery_optio, _order$delivery_optio2, _order$delivery_optio3, _configs$guest_uuid_a, _theme$defaultLanguag30, _theme$defaultLanguag31, _theme$defaultLanguag32, _order$driver3, _configs$google_maps_, _order$driver4, _theme$defaultLanguag33, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _theme$defaultLanguag34, _order$driver9, _theme$defaultLanguag35, _order$products, _theme$defaultLanguag36, _order$summary$subtot, _order$summary2, _ref, _order$summary3, _order$offers, _theme$defaultLanguag37, _theme$defaultLanguag38, _order$summary$discou, _order$summary4, _order$offers2, _order$offers3, _order$offers3$filter, _order$summary5, _order$summary6, _order$summary7, _ref2, _order$summary8, _order$summary$subtot2, _order$summary9, _order$taxes3, _order$summary$tax2, _order$summary10, _order$fees, _order$summary$servic, _order$summary11, _order$taxes4, _order$taxes5, _order$fees2, _order$fees3, _order$fees3$filter, _order$offers4, _order$offers5, _order$offers5$filter, _order$summary12, _theme$defaultLanguag39, _order$summary13, _order$offers6, _order$offers7, _order$offers7$filter, _order$summary14, _theme$defaultLanguag40, _order$summary15, _configs$driver_tip_t, _configs$driver_tip_u, _order$summary$driver, _order$summary16, _theme$defaultLanguag41, _order$summary$total, _order$summary17, _theme$defaultLanguag42, _theme$defaultLanguag43, _theme$defaultLanguag44, _theme$defaultLanguag45, _theme$defaultLanguag46, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
49
+ var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation2, _theme$confirmation2$, _theme$confirmation2$2, _theme$confirmation2$3, _theme$confirmation2$4, _theme$confirmation3, _theme$confirmation3$, _theme$confirmation3$2, _theme$confirmation3$3, _theme$confirmation3$4, _theme$confirmation4, _theme$confirmation4$, _theme$confirmation4$2, _theme$confirmation4$3, _theme$confirmation4$4, _theme$confirmation5, _theme$confirmation5$, _theme$confirmation5$2, _theme$confirmation5$3, _theme$confirmation5$4, _theme$confirmation6, _theme$confirmation6$, _theme$confirmation6$2, _theme$confirmation6$3, _theme$confirmation6$4, _theme$confirmation7, _theme$confirmation7$, _theme$confirmation7$2, _theme$confirmation7$3, _theme$confirmation7$4, _theme$confirmation8, _theme$confirmation8$, _theme$confirmation8$2, _theme$confirmation8$3, _theme$confirmation8$4, _theme$confirmation9, _theme$confirmation9$, _theme$confirmation9$2, _theme$confirmation9$3, _theme$confirmation9$4, _theme$confirmation10, _theme$confirmation11, _theme$confirmation12, _theme$confirmation13, _theme$confirmation14, _theme$confirmation15, _theme$confirmation16, _theme$confirmation17, _theme$confirmation18, _theme$confirmation19, _theme$confirmation20, _theme$confirmation21, _theme$confirmation22, _theme$confirmation23, _theme$confirmation24, _theme$confirmation25, _theme$confirmation26, _theme$confirmation27, _theme$confirmation28, _theme$confirmation29, _order$driver, _order$driver2, _theme$images2, _theme$images2$dummie, _order$business, _order$business2, _theme$images3, _theme$images3$dummie, _order$customer, _order$customer2, _theme$images4, _theme$images4$dummie, _props$beforeElements, _props$beforeComponen, _theme$defaultLanguag25, _theme$defaultLanguag26, _order$business3, _theme$images5, _theme$images5$dummie, _order$business4, _order$business5, _order$business6, _order$business7, _theme$defaultLanguag27, _theme$defaultLanguag28, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$delivery_optio, _order$delivery_optio2, _order$delivery_optio3, _configs$guest_uuid_a, _theme$defaultLanguag30, _theme$defaultLanguag31, _theme$defaultLanguag32, _order$driver3, _configs$google_maps_, _order$driver4, _theme$defaultLanguag33, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _theme$defaultLanguag34, _order$driver9, _theme$defaultLanguag35, _order$products, _theme$defaultLanguag36, _order$summary$subtot, _order$summary2, _ref, _order$summary3, _order$offers, _theme$defaultLanguag37, _theme$defaultLanguag38, _order$summary$discou, _order$summary4, _order$offers2, _order$offers3, _order$offers3$filter, _order$summary5, _order$summary6, _order$summary7, _ref2, _order$summary8, _order$summary$subtot2, _order$summary9, _order$taxes3, _order$summary$tax2, _order$summary10, _order$fees, _order$summary$servic, _order$summary11, _order$taxes4, _order$taxes5, _order$fees2, _order$fees3, _order$fees3$filter, _order$offers4, _order$offers5, _order$offers5$filter, _order$summary12, _theme$defaultLanguag39, _order$summary13, _order$offers6, _order$offers7, _order$offers7$filter, _order$summary14, _theme$defaultLanguag40, _order$summary15, _configs$driver_tip_t, _configs$driver_tip_u, _order$summary$driver, _order$summary16, _theme$defaultLanguag41, _order$summary$total, _order$summary17, _theme$defaultLanguag42, _theme$defaultLanguag43, _theme$defaultLanguag44, _theme$defaultLanguag45, _theme$defaultLanguag46, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
50
50
  var userCustomerId = props.userCustomerId,
51
51
  handleBusinessRedirect = props.handleBusinessRedirect,
52
52
  handleOrderRedirect = props.handleOrderRedirect,
@@ -74,9 +74,6 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
74
74
  parsePrice = _useUtils2$.parsePrice,
75
75
  parseNumber = _useUtils2$.parseNumber,
76
76
  parseDate = _useUtils2$.parseDate;
77
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
78
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
79
- orderingTheme = _useOrderingTheme2[0];
80
77
  var _useState = (0, _react.useState)({
81
78
  business: false,
82
79
  driver: false
@@ -133,19 +130,19 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
133
130
  businessData = _props$order.businessData,
134
131
  error = _props$order.error;
135
132
  var isFromCheckPage = JSON.parse(window.localStorage.getItem('business-address'));
136
- var showDeliveryDate = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.confirmation) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.order) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.date) !== null && _orderingTheme$theme$5 !== void 0 && _orderingTheme$theme$5.hidden);
137
- var showDeliveryProgress = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.confirmation) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.order) !== null && _orderingTheme$theme5 !== void 0 && (_orderingTheme$theme6 = _orderingTheme$theme5.components) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.progress) !== null && _orderingTheme$theme7 !== void 0 && _orderingTheme$theme7.hidden);
138
- var showBusinessMessages = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme8 = orderingTheme.theme) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.confirmation) !== null && _orderingTheme$theme9 !== void 0 && (_orderingTheme$theme10 = _orderingTheme$theme9.components) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.business) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12.messages) !== null && _orderingTheme$theme13 !== void 0 && _orderingTheme$theme13.hidden);
139
- var showBusinessAddress = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme14 = orderingTheme.theme) !== null && _orderingTheme$theme14 !== void 0 && (_orderingTheme$theme15 = _orderingTheme$theme14.confirmation) !== null && _orderingTheme$theme15 !== void 0 && (_orderingTheme$theme16 = _orderingTheme$theme15.components) !== null && _orderingTheme$theme16 !== void 0 && (_orderingTheme$theme17 = _orderingTheme$theme16.business) !== null && _orderingTheme$theme17 !== void 0 && (_orderingTheme$theme18 = _orderingTheme$theme17.components) !== null && _orderingTheme$theme18 !== void 0 && (_orderingTheme$theme19 = _orderingTheme$theme18.address) !== null && _orderingTheme$theme19 !== void 0 && _orderingTheme$theme19.hidden);
140
- var showBusinessMap = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme20 = orderingTheme.theme) !== null && _orderingTheme$theme20 !== void 0 && (_orderingTheme$theme21 = _orderingTheme$theme20.confirmation) !== null && _orderingTheme$theme21 !== void 0 && (_orderingTheme$theme22 = _orderingTheme$theme21.components) !== null && _orderingTheme$theme22 !== void 0 && (_orderingTheme$theme23 = _orderingTheme$theme22.business) !== null && _orderingTheme$theme23 !== void 0 && (_orderingTheme$theme24 = _orderingTheme$theme23.components) !== null && _orderingTheme$theme24 !== void 0 && (_orderingTheme$theme25 = _orderingTheme$theme24.map) !== null && _orderingTheme$theme25 !== void 0 && _orderingTheme$theme25.hidden);
141
- var showBusinessLogo = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme26 = orderingTheme.theme) !== null && _orderingTheme$theme26 !== void 0 && (_orderingTheme$theme27 = _orderingTheme$theme26.confirmation) !== null && _orderingTheme$theme27 !== void 0 && (_orderingTheme$theme28 = _orderingTheme$theme27.components) !== null && _orderingTheme$theme28 !== void 0 && (_orderingTheme$theme29 = _orderingTheme$theme28.business) !== null && _orderingTheme$theme29 !== void 0 && (_orderingTheme$theme30 = _orderingTheme$theme29.components) !== null && _orderingTheme$theme30 !== void 0 && (_orderingTheme$theme31 = _orderingTheme$theme30.logo) !== null && _orderingTheme$theme31 !== void 0 && _orderingTheme$theme31.hidden);
142
- var showDriverName = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme32 = orderingTheme.theme) !== null && _orderingTheme$theme32 !== void 0 && (_orderingTheme$theme33 = _orderingTheme$theme32.confirmation) !== null && _orderingTheme$theme33 !== void 0 && (_orderingTheme$theme34 = _orderingTheme$theme33.components) !== null && _orderingTheme$theme34 !== void 0 && (_orderingTheme$theme35 = _orderingTheme$theme34.driver) !== null && _orderingTheme$theme35 !== void 0 && (_orderingTheme$theme36 = _orderingTheme$theme35.components) !== null && _orderingTheme$theme36 !== void 0 && (_orderingTheme$theme37 = _orderingTheme$theme36.name) !== null && _orderingTheme$theme37 !== void 0 && _orderingTheme$theme37.hidden);
143
- var showDriverPhone = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme38 = orderingTheme.theme) !== null && _orderingTheme$theme38 !== void 0 && (_orderingTheme$theme39 = _orderingTheme$theme38.confirmation) !== null && _orderingTheme$theme39 !== void 0 && (_orderingTheme$theme40 = _orderingTheme$theme39.components) !== null && _orderingTheme$theme40 !== void 0 && (_orderingTheme$theme41 = _orderingTheme$theme40.driver) !== null && _orderingTheme$theme41 !== void 0 && (_orderingTheme$theme42 = _orderingTheme$theme41.components) !== null && _orderingTheme$theme42 !== void 0 && (_orderingTheme$theme43 = _orderingTheme$theme42.phone) !== null && _orderingTheme$theme43 !== void 0 && _orderingTheme$theme43.hidden);
144
- var showDriverMessages = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme44 = orderingTheme.theme) !== null && _orderingTheme$theme44 !== void 0 && (_orderingTheme$theme45 = _orderingTheme$theme44.confirmation) !== null && _orderingTheme$theme45 !== void 0 && (_orderingTheme$theme46 = _orderingTheme$theme45.components) !== null && _orderingTheme$theme46 !== void 0 && (_orderingTheme$theme47 = _orderingTheme$theme46.driver) !== null && _orderingTheme$theme47 !== void 0 && (_orderingTheme$theme48 = _orderingTheme$theme47.components) !== null && _orderingTheme$theme48 !== void 0 && (_orderingTheme$theme49 = _orderingTheme$theme48.messages) !== null && _orderingTheme$theme49 !== void 0 && _orderingTheme$theme49.hidden);
145
- var showDriverEmail = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme50 = orderingTheme.theme) !== null && _orderingTheme$theme50 !== void 0 && (_orderingTheme$theme51 = _orderingTheme$theme50.confirmation) !== null && _orderingTheme$theme51 !== void 0 && (_orderingTheme$theme52 = _orderingTheme$theme51.components) !== null && _orderingTheme$theme52 !== void 0 && (_orderingTheme$theme53 = _orderingTheme$theme52.driver) !== null && _orderingTheme$theme53 !== void 0 && (_orderingTheme$theme54 = _orderingTheme$theme53.components) !== null && _orderingTheme$theme54 !== void 0 && (_orderingTheme$theme55 = _orderingTheme$theme54.email) !== null && _orderingTheme$theme55 !== void 0 && _orderingTheme$theme55.hidden);
146
- var showDriverPhoto = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme56 = orderingTheme.theme) !== null && _orderingTheme$theme56 !== void 0 && (_orderingTheme$theme57 = _orderingTheme$theme56.confirmation) !== null && _orderingTheme$theme57 !== void 0 && (_orderingTheme$theme58 = _orderingTheme$theme57.components) !== null && _orderingTheme$theme58 !== void 0 && (_orderingTheme$theme59 = _orderingTheme$theme58.driver) !== null && _orderingTheme$theme59 !== void 0 && (_orderingTheme$theme60 = _orderingTheme$theme59.components) !== null && _orderingTheme$theme60 !== void 0 && (_orderingTheme$theme61 = _orderingTheme$theme60.photo) !== null && _orderingTheme$theme61 !== void 0 && _orderingTheme$theme61.hidden);
147
- var showCustomerAddress = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme62 = orderingTheme.theme) !== null && _orderingTheme$theme62 !== void 0 && (_orderingTheme$theme63 = _orderingTheme$theme62.confirmation) !== null && _orderingTheme$theme63 !== void 0 && (_orderingTheme$theme64 = _orderingTheme$theme63.components) !== null && _orderingTheme$theme64 !== void 0 && (_orderingTheme$theme65 = _orderingTheme$theme64.customer) !== null && _orderingTheme$theme65 !== void 0 && (_orderingTheme$theme66 = _orderingTheme$theme65.components) !== null && _orderingTheme$theme66 !== void 0 && (_orderingTheme$theme67 = _orderingTheme$theme66.address) !== null && _orderingTheme$theme67 !== void 0 && _orderingTheme$theme67.hidden);
148
- var showCustomerPhoto = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme68 = orderingTheme.theme) !== null && _orderingTheme$theme68 !== void 0 && (_orderingTheme$theme69 = _orderingTheme$theme68.confirmation) !== null && _orderingTheme$theme69 !== void 0 && (_orderingTheme$theme70 = _orderingTheme$theme69.components) !== null && _orderingTheme$theme70 !== void 0 && (_orderingTheme$theme71 = _orderingTheme$theme70.customer) !== null && _orderingTheme$theme71 !== void 0 && (_orderingTheme$theme72 = _orderingTheme$theme71.components) !== null && _orderingTheme$theme72 !== void 0 && (_orderingTheme$theme73 = _orderingTheme$theme72.photo) !== null && _orderingTheme$theme73 !== void 0 && _orderingTheme$theme73.hidden);
133
+ var showDeliveryDate = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.order) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.date) !== null && _theme$confirmation$c4 !== void 0 && _theme$confirmation$c4.hidden);
134
+ var showDeliveryProgress = !(theme !== null && theme !== void 0 && (_theme$confirmation2 = theme.confirmation) !== null && _theme$confirmation2 !== void 0 && (_theme$confirmation2$ = _theme$confirmation2.components) !== null && _theme$confirmation2$ !== void 0 && (_theme$confirmation2$2 = _theme$confirmation2$.order) !== null && _theme$confirmation2$2 !== void 0 && (_theme$confirmation2$3 = _theme$confirmation2$2.components) !== null && _theme$confirmation2$3 !== void 0 && (_theme$confirmation2$4 = _theme$confirmation2$3.progress) !== null && _theme$confirmation2$4 !== void 0 && _theme$confirmation2$4.hidden);
135
+ var showBusinessMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation3 = theme.confirmation) !== null && _theme$confirmation3 !== void 0 && (_theme$confirmation3$ = _theme$confirmation3.components) !== null && _theme$confirmation3$ !== void 0 && (_theme$confirmation3$2 = _theme$confirmation3$.business) !== null && _theme$confirmation3$2 !== void 0 && (_theme$confirmation3$3 = _theme$confirmation3$2.components) !== null && _theme$confirmation3$3 !== void 0 && (_theme$confirmation3$4 = _theme$confirmation3$3.messages) !== null && _theme$confirmation3$4 !== void 0 && _theme$confirmation3$4.hidden);
136
+ var showBusinessAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation4 = theme.confirmation) !== null && _theme$confirmation4 !== void 0 && (_theme$confirmation4$ = _theme$confirmation4.components) !== null && _theme$confirmation4$ !== void 0 && (_theme$confirmation4$2 = _theme$confirmation4$.business) !== null && _theme$confirmation4$2 !== void 0 && (_theme$confirmation4$3 = _theme$confirmation4$2.components) !== null && _theme$confirmation4$3 !== void 0 && (_theme$confirmation4$4 = _theme$confirmation4$3.address) !== null && _theme$confirmation4$4 !== void 0 && _theme$confirmation4$4.hidden);
137
+ var showBusinessMap = !(theme !== null && theme !== void 0 && (_theme$confirmation5 = theme.confirmation) !== null && _theme$confirmation5 !== void 0 && (_theme$confirmation5$ = _theme$confirmation5.components) !== null && _theme$confirmation5$ !== void 0 && (_theme$confirmation5$2 = _theme$confirmation5$.business) !== null && _theme$confirmation5$2 !== void 0 && (_theme$confirmation5$3 = _theme$confirmation5$2.components) !== null && _theme$confirmation5$3 !== void 0 && (_theme$confirmation5$4 = _theme$confirmation5$3.map) !== null && _theme$confirmation5$4 !== void 0 && _theme$confirmation5$4.hidden);
138
+ var showBusinessLogo = !(theme !== null && theme !== void 0 && (_theme$confirmation6 = theme.confirmation) !== null && _theme$confirmation6 !== void 0 && (_theme$confirmation6$ = _theme$confirmation6.components) !== null && _theme$confirmation6$ !== void 0 && (_theme$confirmation6$2 = _theme$confirmation6$.business) !== null && _theme$confirmation6$2 !== void 0 && (_theme$confirmation6$3 = _theme$confirmation6$2.components) !== null && _theme$confirmation6$3 !== void 0 && (_theme$confirmation6$4 = _theme$confirmation6$3.logo) !== null && _theme$confirmation6$4 !== void 0 && _theme$confirmation6$4.hidden);
139
+ var showDriverName = !(theme !== null && theme !== void 0 && (_theme$confirmation7 = theme.confirmation) !== null && _theme$confirmation7 !== void 0 && (_theme$confirmation7$ = _theme$confirmation7.components) !== null && _theme$confirmation7$ !== void 0 && (_theme$confirmation7$2 = _theme$confirmation7$.driver) !== null && _theme$confirmation7$2 !== void 0 && (_theme$confirmation7$3 = _theme$confirmation7$2.components) !== null && _theme$confirmation7$3 !== void 0 && (_theme$confirmation7$4 = _theme$confirmation7$3.name) !== null && _theme$confirmation7$4 !== void 0 && _theme$confirmation7$4.hidden);
140
+ var showDriverPhone = !(theme !== null && theme !== void 0 && (_theme$confirmation8 = theme.confirmation) !== null && _theme$confirmation8 !== void 0 && (_theme$confirmation8$ = _theme$confirmation8.components) !== null && _theme$confirmation8$ !== void 0 && (_theme$confirmation8$2 = _theme$confirmation8$.driver) !== null && _theme$confirmation8$2 !== void 0 && (_theme$confirmation8$3 = _theme$confirmation8$2.components) !== null && _theme$confirmation8$3 !== void 0 && (_theme$confirmation8$4 = _theme$confirmation8$3.phone) !== null && _theme$confirmation8$4 !== void 0 && _theme$confirmation8$4.hidden);
141
+ var showDriverMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation9 = theme.confirmation) !== null && _theme$confirmation9 !== void 0 && (_theme$confirmation9$ = _theme$confirmation9.components) !== null && _theme$confirmation9$ !== void 0 && (_theme$confirmation9$2 = _theme$confirmation9$.driver) !== null && _theme$confirmation9$2 !== void 0 && (_theme$confirmation9$3 = _theme$confirmation9$2.components) !== null && _theme$confirmation9$3 !== void 0 && (_theme$confirmation9$4 = _theme$confirmation9$3.messages) !== null && _theme$confirmation9$4 !== void 0 && _theme$confirmation9$4.hidden);
142
+ var showDriverEmail = !(theme !== null && theme !== void 0 && (_theme$confirmation10 = theme.confirmation) !== null && _theme$confirmation10 !== void 0 && (_theme$confirmation11 = _theme$confirmation10.components) !== null && _theme$confirmation11 !== void 0 && (_theme$confirmation12 = _theme$confirmation11.driver) !== null && _theme$confirmation12 !== void 0 && (_theme$confirmation13 = _theme$confirmation12.components) !== null && _theme$confirmation13 !== void 0 && (_theme$confirmation14 = _theme$confirmation13.email) !== null && _theme$confirmation14 !== void 0 && _theme$confirmation14.hidden);
143
+ var showDriverPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation15 = theme.confirmation) !== null && _theme$confirmation15 !== void 0 && (_theme$confirmation16 = _theme$confirmation15.components) !== null && _theme$confirmation16 !== void 0 && (_theme$confirmation17 = _theme$confirmation16.driver) !== null && _theme$confirmation17 !== void 0 && (_theme$confirmation18 = _theme$confirmation17.components) !== null && _theme$confirmation18 !== void 0 && (_theme$confirmation19 = _theme$confirmation18.photo) !== null && _theme$confirmation19 !== void 0 && _theme$confirmation19.hidden);
144
+ var showCustomerAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation20 = theme.confirmation) !== null && _theme$confirmation20 !== void 0 && (_theme$confirmation21 = _theme$confirmation20.components) !== null && _theme$confirmation21 !== void 0 && (_theme$confirmation22 = _theme$confirmation21.customer) !== null && _theme$confirmation22 !== void 0 && (_theme$confirmation23 = _theme$confirmation22.components) !== null && _theme$confirmation23 !== void 0 && (_theme$confirmation24 = _theme$confirmation23.address) !== null && _theme$confirmation24 !== void 0 && _theme$confirmation24.hidden);
145
+ var showCustomerPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation25 = theme.confirmation) !== null && _theme$confirmation25 !== void 0 && (_theme$confirmation26 = _theme$confirmation25.components) !== null && _theme$confirmation26 !== void 0 && (_theme$confirmation27 = _theme$confirmation26.customer) !== null && _theme$confirmation27 !== void 0 && (_theme$confirmation28 = _theme$confirmation27.components) !== null && _theme$confirmation28 !== void 0 && (_theme$confirmation29 = _theme$confirmation28.photo) !== null && _theme$confirmation29 !== void 0 && _theme$confirmation29.hidden);
149
146
  var getOrderStatus = function getOrderStatus(s) {
150
147
  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;
151
148
  var status = parseInt(s);
@@ -12,6 +12,7 @@ var _VscTrash = _interopRequireDefault(require("@meronex/icons/vsc/VscTrash"));
12
12
  var _orderingComponentsExternal = require("ordering-components-external");
13
13
  var _useWindowSize = require("../../hooks/useWindowSize");
14
14
  var _styles = require("./styles");
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; }
@@ -32,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
32
33
  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; } }
33
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
34
35
  var ProductItemAccordion = function ProductItemAccordion(props) {
35
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _props$beforeElements, _props$beforeComponen, _product$valid, _product$total, _props$afterComponent, _props$afterElements;
36
+ var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation$c5, _theme$confirmation$c6, _props$beforeElements, _props$beforeComponen, _product$valid, _product$total, _props$afterComponent, _props$afterElements;
36
37
  var isCartPending = props.isCartPending,
37
38
  isCartProduct = props.isCartProduct,
38
39
  product = props.product,
@@ -50,10 +51,8 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
50
51
  var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
51
52
  _useUtils2 = _slicedToArray(_useUtils, 1),
52
53
  parsePrice = _useUtils2[0].parsePrice;
54
+ var theme = (0, _styledComponents.useTheme)();
53
55
  var windowSize = (0, _useWindowSize.useWindowSize)();
54
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
55
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
56
- orderingTheme = _useOrderingTheme2[0];
57
56
  var _useState = (0, _react.useState)(''),
58
57
  _useState2 = _slicedToArray(_useState, 2),
59
58
  setActive = _useState2[0],
@@ -70,7 +69,7 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
70
69
  var productSelect = (0, _react.useRef)(null);
71
70
  var productActionsEdit = (0, _react.useRef)(null);
72
71
  var productActionsDelete = (0, _react.useRef)(null);
73
- var showProductImage = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.confirmation) !== 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$5 = _orderingTheme$theme$4.products) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.image) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
72
+ var showProductImage = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.cart) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.products) !== null && _theme$confirmation$c4 !== void 0 && (_theme$confirmation$c5 = _theme$confirmation$c4.components) !== null && _theme$confirmation$c5 !== void 0 && (_theme$confirmation$c6 = _theme$confirmation$c5.image) !== null && _theme$confirmation$c6 !== void 0 && _theme$confirmation$c6.hidden);
74
73
  var productInfo = function productInfo() {
75
74
  if (isCartProduct) {
76
75
  var _product$ingredients, _product$options;
@@ -17,7 +17,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
17
17
  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; } }
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  var SearchProducts = function SearchProducts(props) {
20
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _theme$defaultLanguag, _businessState$busine;
20
+ var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _theme$defaultLanguag, _businessState$busine;
21
21
  var handleChangeSearch = props.handleChangeSearch,
22
22
  searchValue = props.searchValue,
23
23
  businessState = props.businessState,
@@ -28,10 +28,7 @@ var SearchProducts = function SearchProducts(props) {
28
28
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
29
29
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
30
30
  t = _useLanguage2[1];
31
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
32
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
33
- orderingTheme = _useOrderingTheme2[0];
34
- var showSort = !(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.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.sort) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
31
+ var showSort = !(theme !== null && theme !== void 0 && (_theme$business_view = theme.business_view) !== null && _theme$business_view !== void 0 && (_theme$business_view$ = _theme$business_view.components) !== null && _theme$business_view$ !== void 0 && (_theme$business_view$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.sort) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
35
32
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
36
33
  onSearch: handleChangeSearch,
37
34
  search: searchValue,
@@ -16,6 +16,7 @@ var _Buttons = require("../../styles/Buttons");
16
16
  var _InputPhoneNumber = require("../InputPhoneNumber");
17
17
  var _Confirm = require("../Confirm");
18
18
  var _utils = require("../../utils");
19
+ var _styledComponents = require("styled-components");
19
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
21
  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); }
21
22
  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; }
@@ -31,7 +32,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
31
32
  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; } }
32
33
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
34
  var UserFormDetailsUI = function UserFormDetailsUI(props) {
34
- var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie11, _props$afterMidElemen, _props$afterMidCompon, _props$afterComponent, _props$afterElements;
35
+ var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie11, _props$afterMidElemen, _props$afterMidCompon, _props$afterComponent, _props$afterElements;
35
36
  var isEdit = props.isEdit,
36
37
  formState = props.formState,
37
38
  onCancel = props.onCancel,
@@ -53,6 +54,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
53
54
  var _useSession = (0, _orderingComponentsExternal.useSession)(),
54
55
  _useSession2 = _slicedToArray(_useSession, 1),
55
56
  userSession = _useSession2[0].user;
57
+ var theme = (0, _styledComponents.useTheme)();
56
58
  var _useState = (0, _react.useState)(null),
57
59
  _useState2 = _slicedToArray(_useState, 2),
58
60
  isValidPhoneNumber = _useState2[0],
@@ -71,9 +73,6 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
71
73
  var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
72
74
  _useCustomer2 = _slicedToArray(_useCustomer, 2),
73
75
  setUserCustomer = _useCustomer2[1].setUserCustomer;
74
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
75
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
76
- orderingTheme = _useOrderingTheme2[0];
77
76
  var emailInput = (0, _react.useRef)(null);
78
77
  var user = userData || userSession;
79
78
  var closeAlert = function closeAlert() {
@@ -88,8 +87,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
88
87
  });
89
88
  };
90
89
  var showInputPhoneNumber = (_validationFields$fie = validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.checkout) === null || _validationFields$fie3 === void 0 ? void 0 : (_validationFields$fie4 = _validationFields$fie3.cellphone) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.enabled) !== null && _validationFields$fie !== void 0 ? _validationFields$fie : false;
91
- var showCustomerCellphone = !(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.cellphone) !== null && _orderingTheme$theme$3 !== void 0 && _orderingTheme$theme$3.hidden);
92
- var showCustomerPassword = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.profile) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.password) !== null && _orderingTheme$theme5 !== void 0 && _orderingTheme$theme5.hidden);
90
+ var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.cellphone) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
91
+ var showCustomerPassword = !(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.password) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
93
92
  var setUserCellPhone = function setUserCellPhone() {
94
93
  var isEdit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
95
94
  if (userPhoneNumber && !userPhoneNumber.includes('null') && !isEdit) {
@@ -196,8 +195,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
196
195
  }
197
196
  };
198
197
  var showFieldWithTheme = function showFieldWithTheme(name) {
199
- var _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9;
200
- return !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme6 = orderingTheme.theme) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.profile) !== null && _orderingTheme$theme7 !== void 0 && (_orderingTheme$theme8 = _orderingTheme$theme7.components) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8[name]) !== null && _orderingTheme$theme9 !== void 0 && _orderingTheme$theme9.hidden);
198
+ var _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2;
199
+ return !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo[name]) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
201
200
  };
202
201
  (0, _react.useEffect)(function () {
203
202
  if (Object.keys(formMethods.errors).length > 0) {
@@ -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
  };
@@ -20,6 +20,7 @@ var _FiCamera = _interopRequireDefault(require("@meronex/icons/fi/FiCamera"));
20
20
  var _BiImage = _interopRequireDefault(require("@meronex/icons/bi/BiImage"));
21
21
  var _styles = require("./styles");
22
22
  var _LogoutButton = require("../LogoutButton");
23
+ var _styledComponents = require("styled-components");
23
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
25
  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); }
25
26
  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; }
@@ -36,7 +37,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
36
37
  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; } }
37
38
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
39
  var UserProfileFormUI = function UserProfileFormUI(props) {
39
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _formState$changes2, _props$beforeElements, _props$beforeComponen, _formState$changes3, _formState$changes4, _formState$changes5, _formState$result, _formState$changes6, _formState$changes7, _props$afterComponent, _props$afterElements;
40
+ 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, _theme$profile4, _theme$profile4$compo, _theme$profile4$compo2, _theme$profile5, _theme$profile5$compo, _theme$profile5$compo2, _theme$profile6, _theme$profile6$compo, _theme$profile6$compo2, _theme$profile7, _theme$profile7$compo, _theme$profile7$compo2, _formState$changes2, _props$beforeElements, _props$beforeComponen, _formState$changes3, _formState$changes4, _formState$changes5, _formState$result, _formState$changes6, _formState$changes7, _props$afterComponent, _props$afterElements;
40
41
  var userData = props.userData,
41
42
  handleButtonUpdateClick = props.handleButtonUpdateClick,
42
43
  handlechangeImage = props.handlechangeImage,
@@ -54,6 +55,7 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
54
55
  _useState2 = _slicedToArray(_useState, 2),
55
56
  edit = _useState2[0],
56
57
  setEdit = _useState2[1];
58
+ var theme = (0, _styledComponents.useTheme)();
57
59
  var _useState3 = (0, _react.useState)({
58
60
  open: false,
59
61
  content: []
@@ -62,17 +64,14 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
62
64
  alertState = _useState4[0],
63
65
  setAlertState = _useState4[1];
64
66
  var inputRef = (0, _react.useRef)(null);
65
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
66
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
67
- orderingTheme = _useOrderingTheme2[0];
68
67
  var windowSize = (0, _useWindowSize.useWindowSize)();
69
- var showCustomerPicture = !(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.picture) !== null && _orderingTheme$theme$3 !== void 0 && _orderingTheme$theme$3.hidden);
70
- var showCustomerName = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.profile) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.name) !== null && _orderingTheme$theme5 !== void 0 && _orderingTheme$theme5.hidden);
71
- var showCustomerLastName = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme6 = orderingTheme.theme) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.profile) !== null && _orderingTheme$theme7 !== void 0 && (_orderingTheme$theme8 = _orderingTheme$theme7.components) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.last_name) !== null && _orderingTheme$theme9 !== void 0 && _orderingTheme$theme9.hidden);
72
- var showCustomerEmail = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme10 = orderingTheme.theme) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.profile) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12.email) !== null && _orderingTheme$theme13 !== void 0 && _orderingTheme$theme13.hidden);
73
- var showCustomerCellphone = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme14 = orderingTheme.theme) !== null && _orderingTheme$theme14 !== void 0 && (_orderingTheme$theme15 = _orderingTheme$theme14.profile) !== null && _orderingTheme$theme15 !== void 0 && (_orderingTheme$theme16 = _orderingTheme$theme15.components) !== null && _orderingTheme$theme16 !== void 0 && (_orderingTheme$theme17 = _orderingTheme$theme16.cellphone) !== null && _orderingTheme$theme17 !== void 0 && _orderingTheme$theme17.hidden);
74
- var showAddressList = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme18 = orderingTheme.theme) !== null && _orderingTheme$theme18 !== void 0 && (_orderingTheme$theme19 = _orderingTheme$theme18.profile) !== null && _orderingTheme$theme19 !== void 0 && (_orderingTheme$theme20 = _orderingTheme$theme19.components) !== null && _orderingTheme$theme20 !== void 0 && (_orderingTheme$theme21 = _orderingTheme$theme20.address_list) !== null && _orderingTheme$theme21 !== void 0 && _orderingTheme$theme21.hidden);
75
- var userFormLayoutColumn = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme22 = orderingTheme.theme) === null || _orderingTheme$theme22 === void 0 ? void 0 : (_orderingTheme$theme23 = _orderingTheme$theme22.profile) === null || _orderingTheme$theme23 === void 0 ? void 0 : (_orderingTheme$theme24 = _orderingTheme$theme23.components) === null || _orderingTheme$theme24 === void 0 ? void 0 : (_orderingTheme$theme25 = _orderingTheme$theme24.layout) === null || _orderingTheme$theme25 === void 0 ? void 0 : _orderingTheme$theme25.position) === 'column';
68
+ var showCustomerPicture = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.picture) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
69
+ var showCustomerName = !(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.name) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
70
+ var showCustomerLastName = !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo.last_name) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
71
+ var showCustomerEmail = !(theme !== null && theme !== void 0 && (_theme$profile4 = theme.profile) !== null && _theme$profile4 !== void 0 && (_theme$profile4$compo = _theme$profile4.components) !== null && _theme$profile4$compo !== void 0 && (_theme$profile4$compo2 = _theme$profile4$compo.email) !== null && _theme$profile4$compo2 !== void 0 && _theme$profile4$compo2.hidden);
72
+ var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile5 = theme.profile) !== null && _theme$profile5 !== void 0 && (_theme$profile5$compo = _theme$profile5.components) !== null && _theme$profile5$compo !== void 0 && (_theme$profile5$compo2 = _theme$profile5$compo.cellphone) !== null && _theme$profile5$compo2 !== void 0 && _theme$profile5$compo2.hidden);
73
+ var showAddressList = !(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.address_list) !== null && _theme$profile6$compo2 !== void 0 && _theme$profile6$compo2.hidden);
74
+ var userFormLayoutColumn = (theme === null || theme === void 0 ? void 0 : (_theme$profile7 = theme.profile) === null || _theme$profile7 === void 0 ? void 0 : (_theme$profile7$compo = _theme$profile7.components) === null || _theme$profile7$compo === void 0 ? void 0 : (_theme$profile7$compo2 = _theme$profile7$compo.layout) === null || _theme$profile7$compo2 === void 0 ? void 0 : _theme$profile7$compo2.position) === 'column';
76
75
  var showEditButton = showCustomerName || showCustomerLastName || showCustomerEmail || showCustomerCellphone;
77
76
  var handleFiles = function handleFiles(files) {
78
77
  if (files.length === 1) {
@@ -52,7 +52,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
52
52
  return theme.colors.colorPage;
53
53
  }
54
54
  };
55
- var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: 578px) {\n /** Mozilla scrollbar*/\n * {\n scrollbar-color: #CCC !important;\n scrollbar-width: thin !important;\n }\n /** Scrollbar for browser based on webkit */\n ::-webkit-scrollbar {\n width: 6px;\n height: 0px;\n }\n ::-webkit-scrollbar-thumb {\n background: #CCCCCC;\n }\n ::-webkit-scrollbar-thumb:hover {\n background: #AFAFAF;\n }\n ::-webkit-scrollbar-thumb:active {\n background: #6b6b6b;\n }\n ::-webkit-scrollbar-track {\n background: rgba(204, 204, 204, 0.3);\n }\n #___reactour {\n div{\n color: rgba(0,0,0,0.5);\n button svg {\n display: none;\n }\n }\n }\n }\n body {\n font-family: '", "', sans-serif;\n margin: 0;\n background-color: ", ";\n color: ", ";\n direction: ltr;\n ", "\n -webkit-overflow-scrolling: auto;\n }\n input, textarea, button {\n font-family: inherit;\n }\n h1,p,span {\n ", "\n }\n .popup-backdrop {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 20002;\n }\n .popup-component {\n background-color: rgba(0, 0, 0, 0.3);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])), ((_theme$fonts$primary = theme.fonts.primary) === null || _theme$fonts$primary === void 0 ? void 0 : _theme$fonts$primary.name) || 'Helvetica', theme.colors.backgroundPage, getThemeColor(), theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n direction: rtl;\n "]))), props.isDarkTextColor && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", "\n "])), theme.colors.darkTextColor));
55
+ var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: 578px) {\n /** Mozilla scrollbar*/\n * {\n scrollbar-color: #CCC !important;\n scrollbar-width: thin !important;\n }\n /** Scrollbar for browser based on webkit */\n ::-webkit-scrollbar {\n width: 6px;\n height: 0px;\n }\n ::-webkit-scrollbar-thumb {\n background: #CCCCCC;\n }\n ::-webkit-scrollbar-thumb:hover {\n background: #AFAFAF;\n }\n ::-webkit-scrollbar-thumb:active {\n background: #6b6b6b;\n }\n ::-webkit-scrollbar-track {\n background: rgba(204, 204, 204, 0.3);\n }\n #___reactour {\n div{\n color: rgba(0,0,0,0.5);\n button svg {\n display: none;\n }\n }\n }\n }\n body {\n font-family: '", "', sans-serif;\n margin: 0;\n background-color: ", ";\n color: ", ";\n direction: ltr;\n ", "\n -webkit-overflow-scrolling: auto;\n }\n input, textarea, button {\n font-family: inherit;\n }\n h1,h2,p,span {\n ", "\n }\n .popup-backdrop {\n background-color: rgba(0, 0, 0, 0.4);\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 20002;\n }\n .popup-component {\n background-color: rgba(0, 0, 0, 0.3);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])), ((_theme$fonts$primary = theme.fonts.primary) === null || _theme$fonts$primary === void 0 ? void 0 : _theme$fonts$primary.name) || 'Helvetica', theme.colors.backgroundPage, getThemeColor(), theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n direction: rtl;\n "]))), props.isDarkTextColor && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", "\n "])), theme.colors.darkTextColor));
56
56
  (0, _react.useEffect)(function () {
57
57
  var fonts = Object.entries(theme.fonts || {});
58
58
  fonts.forEach(function (_ref2) {
@@ -85,9 +85,6 @@ var AddressListUI = function AddressListUI(props) {
85
85
  confirm = _useState6[0],
86
86
  setConfirm = _useState6[1];
87
87
  var theme = (0, _styledComponents.useTheme)();
88
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
89
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
90
- orderingTheme = _useOrderingTheme2[0];
91
88
  var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
92
89
  _useCustomer2 = _slicedToArray(_useCustomer, 1),
93
90
  user = _useCustomer2[0].user;