ordering-ui-external 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/_bundles/{0.ordering-ui.f64ae9230411e0edb7d6.js → 0.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  2. package/_bundles/{1.ordering-ui.f64ae9230411e0edb7d6.js → 1.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  3. package/_bundles/{3.ordering-ui.f64ae9230411e0edb7d6.js → 3.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  4. package/_bundles/{4.ordering-ui.f64ae9230411e0edb7d6.js → 4.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  5. package/_bundles/{5.ordering-ui.f64ae9230411e0edb7d6.js → 5.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  6. package/_bundles/{6.ordering-ui.f64ae9230411e0edb7d6.js → 6.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  7. package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js → 7.ordering-ui.f3d1068d8ea119f4e4f2.js} +2 -2
  8. package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → 7.ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.f64ae9230411e0edb7d6.js → 8.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  10. package/_bundles/{9.ordering-ui.f64ae9230411e0edb7d6.js → 9.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
  11. package/_bundles/ordering-ui.f3d1068d8ea119f4e4f2.js +2 -0
  12. package/_bundles/{ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
  13. package/_modules/components/BusinessBasicInformation/index.js +17 -7
  14. package/_modules/components/BusinessProductsList/index.js +9 -9
  15. package/_modules/components/BusinessProductsList/layouts/groceries/index.js +9 -9
  16. package/_modules/components/Checkout/index.js +2 -1
  17. package/_modules/components/ForgotPasswordForm/index.js +4 -1
  18. package/_modules/components/LoginForm/index.js +4 -1
  19. package/_modules/components/OrderDetails/index.js +30 -13
  20. package/_modules/components/PaymentOptionSquare/index.js +6 -4
  21. package/_modules/components/PaymentOptionSquare/styles.js +13 -6
  22. package/_modules/components/PaymentOptions/index.js +6 -3
  23. package/_modules/components/ProductItemAccordion/index.js +7 -2
  24. package/_modules/components/RenderProductsLayout/SearchProducts/index.js +6 -2
  25. package/_modules/components/RenderProductsLayout/index.js +24 -34
  26. package/_modules/components/SignUpForm/index.js +4 -1
  27. package/_modules/components/SingleProductCard/index.js +2 -2
  28. package/_modules/components/TaxInformation/index.js +3 -5
  29. package/_modules/components/UserFormDetails/index.js +23 -7
  30. package/_modules/components/UserProfileForm/ProfileOptions/index.js +19 -1
  31. package/_modules/components/UserProfileForm/index.js +28 -6
  32. package/_modules/components/UserProfileForm/styles.js +1 -1
  33. package/_modules/hooks/useCountdownTimer.js +1 -1
  34. package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -1
  35. package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +1 -1
  36. package/_modules/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +4 -1
  37. package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +4 -1
  38. package/_modules/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +4 -1
  39. package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +4 -1
  40. package/_modules/themes/callcenterOriginal/src/components/UserFormDetails/index.js +4 -1
  41. package/_modules/themes/eight/src/components/BusinessProductsList/index.js +9 -9
  42. package/_modules/themes/eight/src/components/LoginForm/index.js +4 -1
  43. package/_modules/themes/eight/src/components/SignUpForm/index.js +4 -1
  44. package/_modules/themes/eight/src/components/SingleProductCard/index.js +2 -2
  45. package/_modules/themes/five/index.js +50 -2
  46. package/_modules/themes/five/src/components/AddressDetails/index.js +2 -20
  47. package/_modules/themes/five/src/components/AddressForm/index.js +18 -6
  48. package/_modules/themes/five/src/components/AddressForm/styles.js +1 -1
  49. package/_modules/themes/five/src/components/AddressList/index.js +24 -11
  50. package/_modules/themes/five/src/components/AddressList/styles.js +11 -7
  51. package/_modules/themes/five/src/components/BusinessInformation/index.js +11 -4
  52. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +19 -4
  53. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +30 -4
  54. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +64 -3
  55. package/_modules/themes/five/src/components/BusinessPreorder/index.js +5 -3
  56. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +1 -1
  57. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +87 -54
  58. package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
  59. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +2 -1
  60. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +13 -10
  61. package/_modules/themes/five/src/components/BusinessProductsList/styles.js +3 -3
  62. package/_modules/themes/five/src/components/BusinessReviews/index.js +24 -30
  63. package/_modules/themes/five/src/components/BusinessesListing/index.js +22 -5
  64. package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +23 -5
  65. package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +3 -3
  66. package/_modules/themes/five/src/components/Cart/index.js +28 -9
  67. package/_modules/themes/five/src/components/Cart/styles.js +4 -4
  68. package/_modules/themes/five/src/components/CartContent/index.js +11 -24
  69. package/_modules/themes/five/src/components/CartPopover/index.js +44 -4
  70. package/_modules/themes/five/src/components/CartPopover/styles.js +13 -3
  71. package/_modules/themes/five/src/components/Checkout/index.js +81 -30
  72. package/_modules/themes/five/src/components/Header/index.js +1 -5
  73. package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +2 -1
  74. package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
  75. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +4 -6
  76. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +5 -5
  77. package/_modules/themes/five/src/components/LoginForm/styles.js +29 -29
  78. package/_modules/themes/five/src/components/Modal/index.js +5 -0
  79. package/_modules/themes/five/src/components/Modal/styles.js +20 -15
  80. package/_modules/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +4 -4
  81. package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +70 -5
  82. package/_modules/themes/five/src/components/OrderDetails/ActionsSection.js +5 -3
  83. package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +3 -1
  84. package/_modules/themes/five/src/components/OrderDetails/index.js +121 -39
  85. package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -4
  86. package/_modules/themes/five/src/components/OrderDetails/styles.js +26 -18
  87. package/_modules/themes/five/src/components/OrderProgress/index.js +1 -0
  88. package/_modules/themes/five/src/components/OrdersOption/index.js +6 -0
  89. package/_modules/themes/five/src/components/OrdersOption/styles.js +13 -13
  90. package/_modules/themes/five/src/components/PaymentOptionWallet/index.js +6 -2
  91. package/_modules/themes/five/src/components/PaymentOptions/index.js +25 -3
  92. package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
  93. package/_modules/themes/five/src/components/ProductForm/index.js +108 -43
  94. package/_modules/themes/five/src/components/ProductForm/styles.js +19 -21
  95. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +11 -3
  96. package/_modules/themes/five/src/components/ProductOption/index.js +3 -1
  97. package/_modules/themes/five/src/components/ProductOption/styles.js +1 -1
  98. package/_modules/themes/five/src/components/ProfessionalProfile/styles.js +1 -1
  99. package/_modules/themes/five/src/components/ReviewDriver/index.js +330 -0
  100. package/_modules/themes/five/src/components/ReviewDriver/styles.js +137 -0
  101. package/_modules/themes/five/src/components/ReviewOrder/index.js +342 -0
  102. package/_modules/themes/five/src/components/ReviewOrder/styles.js +141 -0
  103. package/_modules/themes/five/src/components/ReviewProduct/index.js +329 -0
  104. package/_modules/themes/five/src/components/ReviewProduct/styles.js +111 -0
  105. package/_modules/themes/five/src/components/ReviewTrigger/index.js +130 -0
  106. package/_modules/themes/five/src/components/ReviewTrigger/styles.js +84 -0
  107. package/_modules/themes/five/src/components/SearchBar/index.js +4 -1
  108. package/_modules/themes/five/src/components/SearchProducts/index.js +1 -0
  109. package/_modules/themes/five/src/components/ServiceForm/index.js +93 -26
  110. package/_modules/themes/five/src/components/ServiceForm/styles.js +38 -14
  111. package/_modules/themes/five/src/components/SignUpBusiness/index.js +4 -1
  112. package/_modules/themes/five/src/components/SignUpDriver/index.js +4 -1
  113. package/_modules/themes/five/src/components/SignUpForm/styles.js +12 -12
  114. package/_modules/themes/five/src/components/SingleOrderCard/index.js +216 -26
  115. package/_modules/themes/five/src/components/SingleOrderCard/styles.js +7 -3
  116. package/_modules/themes/five/src/components/TaxInformation/index.js +3 -5
  117. package/_modules/themes/five/src/components/UserDetails/index.js +132 -9
  118. package/_modules/themes/five/src/components/UserDetails/styles.js +3 -3
  119. package/_modules/themes/five/src/components/UserFormDetails/index.js +69 -20
  120. package/_modules/themes/five/src/components/UserPopover/index.js +13 -7
  121. package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +19 -1
  122. package/_modules/themes/five/src/components/UserProfileForm/index.js +119 -23
  123. package/_modules/themes/five/src/components/VerifyCodeForm/index.js +86 -0
  124. package/_modules/themes/five/src/components/VerifyCodeForm/styles.js +32 -0
  125. package/_modules/themes/four/src/components/AccordionDropdown/index.js +46 -0
  126. package/_modules/themes/four/src/components/AccordionDropdown/styles.js +31 -0
  127. package/_modules/themes/four/src/components/BusinessBasicInformation/index.js +2 -5
  128. package/_modules/themes/four/src/components/BusinessProductsCategories/index.js +2 -1
  129. package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +128 -0
  130. package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +43 -0
  131. package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +235 -0
  132. package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +52 -0
  133. package/_modules/themes/four/src/components/BusinessProductsListing/index.js +131 -108
  134. package/_modules/themes/four/src/components/BusinessProductsListing/styles.js +8 -33
  135. package/_modules/themes/four/src/components/ForgotPasswordForm/index.js +4 -1
  136. package/_modules/themes/four/src/components/LoginForm/index.js +4 -1
  137. package/_modules/themes/four/src/components/NotFoundSource/index.js +63 -0
  138. package/_modules/themes/four/src/components/NotFoundSource/styles.js +22 -0
  139. package/_modules/themes/four/src/components/RenderProductsLayout/index.js +301 -0
  140. package/_modules/themes/four/src/components/RenderProductsLayout/styles.js +68 -0
  141. package/_modules/themes/four/src/components/SignUpForm/index.js +4 -1
  142. package/_modules/themes/four/src/components/SingleProductCard/index.js +15 -5
  143. package/_modules/themes/four/src/components/UserFormDetails/index.js +4 -1
  144. package/_modules/themes/franchise/src/components/ForgotPasswordForm/index.js +4 -1
  145. package/_modules/themes/franchise/src/components/LoginForm/index.js +4 -1
  146. package/_modules/themes/franchise/src/components/SignUpForm/index.js +4 -1
  147. package/_modules/themes/franchise/src/components/UserFormDetails/index.js +4 -1
  148. package/_modules/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +4 -1
  149. package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +4 -1
  150. package/_modules/themes/orderAndPay/src/components/SignUpForm/index.js +4 -1
  151. package/_modules/themes/orderAndPay/src/components/UserFormDetails/index.js +4 -1
  152. package/_modules/themes/pwa/src/components/ForgotPasswordForm/index.js +4 -1
  153. package/_modules/themes/pwa/src/components/LoginForm/index.js +4 -1
  154. package/_modules/themes/pwa/src/components/SignUpForm/index.js +4 -1
  155. package/_modules/themes/pwa/src/components/UserFormDetails/index.js +4 -1
  156. package/_modules/themes/seven/index.js +4 -4
  157. package/_modules/themes/seven/src/components/ForgotPasswordForm/index.js +4 -1
  158. package/_modules/themes/seven/src/components/LoginForm/index.js +4 -1
  159. package/_modules/themes/seven/src/components/SignUpForm/index.js +4 -1
  160. package/_modules/themes/seven/src/components/SignUpForm/styles.js +1 -1
  161. package/_modules/themes/seven/src/components/UserFormDetails/index.js +4 -1
  162. package/_modules/themes/six/index.js +3 -3
  163. package/_modules/themes/six/src/components/AddressForm/index.js +3 -3
  164. package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +16 -7
  165. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +6 -2
  166. package/_modules/themes/six/src/components/BusinessProductsListing/index.js +21 -27
  167. package/_modules/themes/six/src/components/DriverTips/index.js +2 -2
  168. package/_modules/themes/six/src/components/ForgotPasswordForm/index.js +4 -1
  169. package/_modules/themes/six/src/components/LoginForm/index.js +7 -4
  170. package/_modules/themes/six/src/components/PaymentOptionCash/index.js +2 -2
  171. package/_modules/themes/six/src/components/ProductForm/index.js +2 -2
  172. package/_modules/themes/six/src/components/SearchBar/index.js +2 -2
  173. package/_modules/themes/six/src/components/SignUpForm/index.js +8 -5
  174. package/_modules/themes/six/src/components/UserFormDetails/index.js +8 -5
  175. package/_modules/themes/three/src/components/ForgotPasswordForm/index.js +4 -1
  176. package/_modules/themes/three/src/components/LoginForm/index.js +4 -1
  177. package/_modules/themes/three/src/components/SignUpForm/index.js +4 -1
  178. package/_modules/themes/two/src/components/ForgotPasswordForm/index.js +4 -1
  179. package/_modules/themes/two/src/components/LoginForm/index.js +4 -1
  180. package/_modules/themes/two/src/components/SignUpForm/index.js +4 -1
  181. package/package.json +3 -3
  182. package/src/components/BusinessBasicInformation/index.js +64 -41
  183. package/src/components/BusinessProductsList/index.js +3 -3
  184. package/src/components/BusinessProductsList/layouts/groceries/index.js +3 -3
  185. package/src/components/Checkout/index.js +1 -0
  186. package/src/components/ForgotPasswordForm/index.js +3 -1
  187. package/src/components/Header/index.js +1 -1
  188. package/src/components/LoginForm/index.js +30 -28
  189. package/src/components/OrderDetails/index.js +101 -58
  190. package/src/components/PaymentOptionSquare/index.js +4 -8
  191. package/src/components/PaymentOptionSquare/styles.js +4 -1
  192. package/src/components/PaymentOptions/index.js +3 -0
  193. package/src/components/ProductItemAccordion/index.js +5 -3
  194. package/src/components/RenderProductsLayout/SearchProducts/index.js +3 -2
  195. package/src/components/RenderProductsLayout/index.js +13 -25
  196. package/src/components/SignUpForm/index.js +4 -2
  197. package/src/components/SingleProductCard/index.js +3 -3
  198. package/src/components/TaxInformation/index.js +1 -1
  199. package/src/components/UserFormDetails/index.js +35 -26
  200. package/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
  201. package/src/components/UserProfileForm/index.js +70 -41
  202. package/src/components/UserProfileForm/styles.js +3 -1
  203. package/src/hooks/useCountdownTimer.js +9 -9
  204. package/src/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -0
  205. package/src/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +4 -0
  206. package/src/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +3 -1
  207. package/src/themes/callcenterOriginal/src/components/LoginForm/index.js +3 -1
  208. package/src/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +3 -1
  209. package/src/themes/callcenterOriginal/src/components/SignUpForm/index.js +3 -1
  210. package/src/themes/callcenterOriginal/src/components/UserFormDetails/index.js +21 -19
  211. package/src/themes/eight/src/components/BusinessProductsList/index.js +3 -3
  212. package/src/themes/eight/src/components/LoginForm/index.js +34 -32
  213. package/src/themes/eight/src/components/SignUpForm/index.js +4 -2
  214. package/src/themes/eight/src/components/SingleProductCard/index.js +3 -3
  215. package/src/themes/five/index.js +15 -2
  216. package/src/themes/five/src/components/AddressDetails/index.js +0 -10
  217. package/src/themes/five/src/components/AddressForm/index.js +58 -45
  218. package/src/themes/five/src/components/AddressForm/styles.js +1 -1
  219. package/src/themes/five/src/components/AddressList/index.js +52 -28
  220. package/src/themes/five/src/components/AddressList/styles.js +9 -2
  221. package/src/themes/five/src/components/BusinessInformation/index.js +52 -37
  222. package/src/themes/five/src/components/BusinessItemAccordion/index.js +36 -3
  223. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +46 -0
  224. package/src/themes/five/src/components/BusinessListingSearch/index.js +39 -1
  225. package/src/themes/five/src/components/BusinessPreorder/index.js +8 -4
  226. package/src/themes/five/src/components/BusinessPreorder/styles.js +1 -0
  227. package/src/themes/five/src/components/BusinessProductsCategories/index.js +89 -58
  228. package/src/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
  229. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
  230. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -1
  231. package/src/themes/five/src/components/BusinessProductsList/styles.js +8 -3
  232. package/src/themes/five/src/components/BusinessReviews/index.js +84 -56
  233. package/src/themes/five/src/components/BusinessesListing/index.js +8 -7
  234. package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +9 -3
  235. package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +8 -2
  236. package/src/themes/five/src/components/Cart/index.js +15 -4
  237. package/src/themes/five/src/components/Cart/styles.js +6 -0
  238. package/src/themes/five/src/components/CartContent/index.js +10 -23
  239. package/src/themes/five/src/components/CartPopover/index.js +50 -12
  240. package/src/themes/five/src/components/CartPopover/styles.js +27 -0
  241. package/src/themes/five/src/components/Checkout/index.js +38 -3
  242. package/src/themes/five/src/components/Header/index.js +2 -3
  243. package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +1 -1
  244. package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
  245. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +2 -2
  246. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +18 -0
  247. package/src/themes/five/src/components/LoginForm/styles.js +4 -1
  248. package/src/themes/five/src/components/Modal/index.js +5 -0
  249. package/src/themes/five/src/components/Modal/styles.js +36 -0
  250. package/src/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +22 -0
  251. package/src/themes/five/src/components/NotNetworkConnectivity/index.js +28 -2
  252. package/src/themes/five/src/components/OrderDetails/ActionsSection.js +14 -10
  253. package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  254. package/src/themes/five/src/components/OrderDetails/index.js +102 -61
  255. package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +6 -5
  256. package/src/themes/five/src/components/OrderDetails/styles.js +64 -1
  257. package/src/themes/five/src/components/OrderProgress/index.js +1 -0
  258. package/src/themes/five/src/components/OrdersOption/index.js +3 -2
  259. package/src/themes/five/src/components/OrdersOption/styles.js +25 -0
  260. package/src/themes/five/src/components/PaymentOptionWallet/index.js +41 -41
  261. package/src/themes/five/src/components/PaymentOptions/index.js +23 -2
  262. package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
  263. package/src/themes/five/src/components/ProductForm/index.js +147 -100
  264. package/src/themes/five/src/components/ProductForm/styles.js +68 -12
  265. package/src/themes/five/src/components/ProductItemAccordion/index.js +9 -5
  266. package/src/themes/five/src/components/ProductOption/index.js +1 -1
  267. package/src/themes/five/src/components/ProductOption/styles.js +5 -1
  268. package/src/themes/five/src/components/ProfessionalProfile/styles.js +1 -0
  269. package/src/themes/five/src/components/ReviewDriver/index.js +253 -0
  270. package/src/themes/five/src/components/ReviewDriver/styles.js +233 -0
  271. package/src/themes/five/src/components/ReviewOrder/index.js +241 -0
  272. package/src/themes/five/src/components/ReviewOrder/styles.js +253 -0
  273. package/src/themes/five/src/components/ReviewProduct/index.js +251 -0
  274. package/src/themes/five/src/components/ReviewProduct/styles.js +158 -0
  275. package/src/themes/five/src/components/ReviewTrigger/index.js +86 -0
  276. package/src/themes/five/src/components/ReviewTrigger/styles.js +121 -0
  277. package/src/themes/five/src/components/SearchBar/index.js +1 -0
  278. package/src/themes/five/src/components/SearchProducts/index.js +2 -0
  279. package/src/themes/five/src/components/ServiceForm/index.js +93 -22
  280. package/src/themes/five/src/components/ServiceForm/styles.js +43 -2
  281. package/src/themes/five/src/components/SignUpBusiness/index.js +5 -3
  282. package/src/themes/five/src/components/SignUpDriver/index.js +5 -3
  283. package/src/themes/five/src/components/SignUpForm/styles.js +33 -0
  284. package/src/themes/five/src/components/SingleOrderCard/index.js +118 -22
  285. package/src/themes/five/src/components/SingleOrderCard/styles.js +5 -0
  286. package/src/themes/five/src/components/TaxInformation/index.js +1 -1
  287. package/src/themes/five/src/components/UserDetails/index.js +122 -19
  288. package/src/themes/five/src/components/UserDetails/styles.js +7 -0
  289. package/src/themes/five/src/components/UserFormDetails/index.js +108 -63
  290. package/src/themes/five/src/components/UserPopover/index.js +6 -6
  291. package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
  292. package/src/themes/five/src/components/UserProfileForm/index.js +130 -38
  293. package/src/themes/five/src/components/VerifyCodeForm/index.js +64 -0
  294. package/src/themes/five/src/components/VerifyCodeForm/styles.js +82 -0
  295. package/src/themes/four/src/components/AccordionDropdown/index.js +47 -0
  296. package/src/themes/four/src/components/AccordionDropdown/styles.js +25 -0
  297. package/src/themes/four/src/components/BusinessBasicInformation/index.js +16 -22
  298. package/src/themes/four/src/components/BusinessProductsCategories/index.js +1 -1
  299. package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +125 -0
  300. package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +52 -0
  301. package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +237 -0
  302. package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +62 -0
  303. package/src/themes/four/src/components/BusinessProductsListing/index.js +69 -113
  304. package/src/themes/four/src/components/BusinessProductsListing/styles.js +1 -71
  305. package/src/themes/four/src/components/ForgotPasswordForm/index.js +3 -1
  306. package/src/themes/four/src/components/LoginForm/index.js +48 -46
  307. package/src/themes/four/src/components/NotFoundSource/index.js +66 -0
  308. package/src/themes/four/src/components/NotFoundSource/styles.js +27 -0
  309. package/src/themes/four/src/components/RenderProductsLayout/index.js +306 -0
  310. package/src/themes/four/src/components/RenderProductsLayout/styles.js +177 -0
  311. package/src/themes/four/src/components/SignUpForm/index.js +4 -2
  312. package/src/themes/four/src/components/SingleProductCard/index.js +35 -23
  313. package/src/themes/four/src/components/UserFormDetails/index.js +21 -19
  314. package/src/themes/franchise/src/components/ForgotPasswordForm/index.js +3 -1
  315. package/src/themes/franchise/src/components/LoginForm/index.js +32 -30
  316. package/src/themes/franchise/src/components/SignUpForm/index.js +3 -1
  317. package/src/themes/franchise/src/components/UserFormDetails/index.js +21 -19
  318. package/src/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +3 -1
  319. package/src/themes/orderAndPay/src/components/LoginForm/index.js +33 -31
  320. package/src/themes/orderAndPay/src/components/SignUpForm/index.js +11 -9
  321. package/src/themes/orderAndPay/src/components/UserFormDetails/index.js +21 -19
  322. package/src/themes/pwa/src/components/ForgotPasswordForm/index.js +3 -1
  323. package/src/themes/pwa/src/components/LoginForm/index.js +32 -30
  324. package/src/themes/pwa/src/components/SignUpForm/index.js +3 -1
  325. package/src/themes/pwa/src/components/UserFormDetails/index.js +3 -1
  326. package/src/themes/seven/index.js +4 -4
  327. package/src/themes/seven/src/components/CouponControl/index.js +0 -1
  328. package/src/themes/seven/src/components/ForgotPasswordForm/index.js +3 -1
  329. package/src/themes/seven/src/components/LoginForm/index.js +5 -3
  330. package/src/themes/seven/src/components/OrderDetails/index.js +1 -1
  331. package/src/themes/seven/src/components/SignUpForm/index.js +3 -1
  332. package/src/themes/seven/src/components/SignUpForm/styles.js +1 -0
  333. package/src/themes/seven/src/components/UserFormDetails/index.js +3 -1
  334. package/src/themes/six/index.js +3 -3
  335. package/src/themes/six/src/components/AddressForm/index.js +1 -1
  336. package/src/themes/six/src/components/BusinessBasicInformation/index.js +57 -34
  337. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -2
  338. package/src/themes/six/src/components/BusinessProductsListing/index.js +7 -13
  339. package/src/themes/six/src/components/DriverTips/index.js +1 -1
  340. package/src/themes/six/src/components/ForgotPasswordForm/index.js +3 -1
  341. package/src/themes/six/src/components/LoginForm/index.js +33 -31
  342. package/src/themes/six/src/components/PaymentOptionCash/index.js +1 -1
  343. package/src/themes/six/src/components/ProductForm/index.js +1 -1
  344. package/src/themes/six/src/components/SearchBar/index.js +1 -1
  345. package/src/themes/six/src/components/SignUpForm/index.js +4 -2
  346. package/src/themes/six/src/components/UserFormDetails/index.js +22 -20
  347. package/src/themes/three/src/components/ForgotPasswordForm/index.js +3 -1
  348. package/src/themes/three/src/components/LoginForm/index.js +52 -50
  349. package/src/themes/three/src/components/SignUpForm/index.js +10 -8
  350. package/src/themes/two/src/components/ForgotPasswordForm/index.js +3 -1
  351. package/src/themes/two/src/components/LoginForm/index.js +42 -40
  352. package/src/themes/two/src/components/SignUpForm/index.js +10 -8
  353. package/template/components/ListenPageChanges/index.js +1 -1
  354. package/template/pages/Checkout/index.js +0 -1
  355. package/template/pages/Home/styles.js +0 -14
  356. package/_bundles/ordering-ui.f64ae9230411e0edb7d6.js +0 -2
  357. package/_modules/themes/five/src/components/FavoriteBusinesses/index.js +0 -268
  358. package/_modules/themes/five/src/components/FavoriteBusinesses/styles.js +0 -53
  359. package/_modules/themes/five/src/components/FavoriteOrders/index.js +0 -353
  360. package/_modules/themes/five/src/components/FavoriteOrders/styles.js +0 -53
  361. package/_modules/themes/five/src/components/FavoriteProducts/index.js +0 -190
  362. package/_modules/themes/five/src/components/FavoriteProducts/styles.js +0 -53
  363. package/src/themes/five/src/components/FavoriteBusinesses/index.js +0 -217
  364. package/src/themes/five/src/components/FavoriteBusinesses/styles.js +0 -85
  365. package/src/themes/five/src/components/FavoriteOrders/index.js +0 -225
  366. package/src/themes/five/src/components/FavoriteOrders/styles.js +0 -87
  367. package/src/themes/five/src/components/FavoriteProducts/index.js +0 -165
  368. package/src/themes/five/src/components/FavoriteProducts/styles.js +0 -87
@@ -29,13 +29,11 @@ var _Modal = require("../Modal");
29
29
 
30
30
  var _Cart = require("../Cart");
31
31
 
32
- var _SearchBar = require("../SearchBar");
33
-
34
32
  var _NotFoundSource = require("../NotFoundSource");
35
33
 
36
34
  var _Buttons = require("../../styles/Buttons");
37
35
 
38
- var _Select = require("../../styles/Select");
36
+ var _SearchProducts = require("./SearchProducts");
39
37
 
40
38
  var _styles = require("./styles");
41
39
 
@@ -68,7 +66,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
68
66
  var layoutOne = 'groceries';
69
67
 
70
68
  var RenderProductsLayout = function RenderProductsLayout(props) {
71
- var _configs$use_parent_c, _configs$use_parent_c2, _theme$defaultLanguag, _businessState$busine, _business$categories, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _currentCart$products, _currentCart$products2, _currentCart$products3, _theme$defaultLanguag6, _businessState$busine2, _business$categories2, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _currentCart$products4, _currentCart$products5;
69
+ var _configs$use_parent_c, _configs$use_parent_c2, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _currentCart$products, _currentCart$products2, _currentCart$products3, _business$categories2, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _currentCart$products4, _currentCart$products5;
72
70
 
73
71
  var errors = props.errors,
74
72
  isError = props.isError,
@@ -139,26 +137,22 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
139
137
  businessState: businessState,
140
138
  setOpenBusinessInformation: setOpenBusinessInformation,
141
139
  openBusinessInformation: openBusinessInformation
142
- }), !errorQuantityProducts ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (categoryState.products.length !== 0 || searchValue) && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
143
- onSearch: handleChangeSearch,
144
- search: searchValue,
145
- placeholder: t('SEARCH_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.SEARCH_PRODUCTS) || 'Search Products'),
146
- lazyLoad: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.lazy_load_products_recommended
147
- }), /*#__PURE__*/_react.default.createElement(_Select.Select, {
148
- notAsync: true,
149
- notReload: true,
150
- options: sortByOptions,
151
- defaultValue: sortByValue,
140
+ }), !errorQuantityProducts ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (categoryState.products.length !== 0 || searchValue) && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(_SearchProducts.SearchProducts, {
141
+ handleChangeSearch: handleChangeSearch,
142
+ searchValue: searchValue,
143
+ sortByOptions: sortByOptions,
144
+ sortByValue: sortByValue,
152
145
  onChange: function onChange(val) {
153
146
  return handleChangeSortBy && handleChangeSortBy(val);
154
- }
147
+ },
148
+ businessState: businessState
155
149
  })), !((business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(_BusinessProductsCategories.BusinessProductsCategories, {
156
150
  categories: [{
157
151
  id: null,
158
- name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.ALL) || 'All')
152
+ name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.ALL) || 'All')
159
153
  }, {
160
154
  id: 'featured',
161
- name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.FEATURED) || 'Featured')
155
+ name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.FEATURED) || 'Featured')
162
156
  }].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
163
157
  return a.rank - b.rank;
164
158
  }))),
@@ -169,10 +163,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
169
163
  }), /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
170
164
  categories: [{
171
165
  id: null,
172
- name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.ALL) || 'All')
166
+ name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.ALL) || 'All')
173
167
  }, {
174
168
  id: 'featured',
175
- name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.FEATURED) || 'Featured')
169
+ name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.FEATURED) || 'Featured')
176
170
  }].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
177
171
  return a.rank - b.rank;
178
172
  }))),
@@ -212,27 +206,23 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
212
206
  style: {
213
207
  visibility: (categoryState.products.length !== 0 || searchValue) && !errorQuantityProducts ? 'visible' : 'hidden'
214
208
  }
215
- }, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
216
- onSearch: handleChangeSearch,
217
- search: searchValue,
218
- placeholder: t('SEARCH_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.SEARCH_PRODUCTS) || 'Search Products'),
219
- lazyLoad: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.lazy_load_products_recommended
220
- }), /*#__PURE__*/_react.default.createElement(_Select.Select, {
221
- notAsync: true,
222
- notReload: true,
223
- options: sortByOptions,
224
- defaultValue: sortByValue,
209
+ }, /*#__PURE__*/_react.default.createElement(_SearchProducts.SearchProducts, {
210
+ handleChangeSearch: handleChangeSearch,
211
+ searchValue: searchValue,
212
+ sortByOptions: sortByOptions,
213
+ sortByValue: sortByValue,
225
214
  onChange: function onChange(val) {
226
215
  return handleChangeSortBy && handleChangeSortBy(val);
227
- }
216
+ },
217
+ businessState: businessState
228
218
  })), /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, null, !((business === null || business === void 0 ? void 0 : (_business$categories2 = business.categories) === null || _business$categories2 === void 0 ? void 0 : _business$categories2.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(BusinessLayout, {
229
219
  component: "categories",
230
220
  categories: [{
231
221
  id: null,
232
- name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.ALL) || 'All')
222
+ name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.ALL) || 'All')
233
223
  }, {
234
224
  id: 'featured',
235
- name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.FEATURED) || 'Featured')
225
+ name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.FEATURED) || 'Featured')
236
226
  }].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
237
227
  return a.rank - b.rank;
238
228
  }))),
@@ -246,10 +236,10 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
246
236
  component: "products_list",
247
237
  categories: [{
248
238
  id: null,
249
- name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.ALL) || 'All')
239
+ name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.ALL) || 'All')
250
240
  }, {
251
241
  id: 'featured',
252
- name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.FEATURED) || 'Featured')
242
+ name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.FEATURED) || 'Featured')
253
243
  }].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
254
244
  return a.rank - b.rank;
255
245
  }))),
@@ -262,7 +262,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
262
262
  }
263
263
  });
264
264
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
265
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
265
+
266
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
267
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
268
+ }
266
269
  };
267
270
 
268
271
  (0, _react.useEffect)(function () {
@@ -40,7 +40,7 @@ var SingleProductCard = function SingleProductCard(props) {
40
40
  isSkeleton = props.isSkeleton,
41
41
  onProductClick = props.onProductClick,
42
42
  isCartOnProductsList = props.isCartOnProductsList,
43
- productAddedToCart = props.productAddedToCart,
43
+ productAddedToCartLength = props.productAddedToCartLength,
44
44
  productToIdLoading = props.productToIdLoading,
45
45
  useCustomFunctionality = props.useCustomFunctionality,
46
46
  onCustomClick = props.onCustomClick,
@@ -88,7 +88,7 @@ var SingleProductCard = function SingleProductCard(props) {
88
88
  },
89
89
  isCartOnProductsList: isCartOnProductsList,
90
90
  style: useCustomFunctionality && customStyle
91
- }, !useCustomFunctionality && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isSkeleton && productAddedToCart && (productAddedToCart === null || productAddedToCart === void 0 ? void 0 : productAddedToCart.quantity) > 0 && /*#__PURE__*/_react.default.createElement(_styles.QuantityContainer, null, /*#__PURE__*/_react.default.createElement("span", null, productAddedToCart === null || productAddedToCart === void 0 ? void 0 : productAddedToCart.quantity)), /*#__PURE__*/_react.default.createElement(_styles.CardInfo, {
91
+ }, !useCustomFunctionality && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isSkeleton && productAddedToCartLength > 0 && /*#__PURE__*/_react.default.createElement(_styles.QuantityContainer, null, /*#__PURE__*/_react.default.createElement("span", null, productAddedToCartLength)), /*#__PURE__*/_react.default.createElement(_styles.CardInfo, {
92
92
  soldOut: isSoldOut || maxProductQuantity <= 0
93
93
  }, !isSkeleton ? /*#__PURE__*/_react.default.createElement("h1", null, product === null || product === void 0 ? void 0 : product.name) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
94
94
  width: 100
@@ -39,13 +39,11 @@ var TaxInformation = function TaxInformation(props) {
39
39
  var includedOnPriceString = (data === null || data === void 0 ? void 0 : data.type) === 1 ? "(".concat(t('INCLUDED_ON_PRICE', 'Included on price'), ")") : "(".concat(t('NOT_INCLUDED_ON_PRICE', 'Not included on price'), ")");
40
40
 
41
41
  var getFilterValidation = function getFilterValidation(product) {
42
- var _product$tax, _product$tax2, _product$tax3, _product$fee, _product$fee2, _product$fee3, _data$discounts, _product$offers;
42
+ var _product$tax, _product$tax2, _product$tax3, _product$fee, _product$fee2, _product$fee3, _data$discounts;
43
43
 
44
- return type === 'tax' ? (_product$tax = product.tax) !== null && _product$tax !== void 0 && _product$tax.id ? ((_product$tax2 = product.tax) === null || _product$tax2 === void 0 ? void 0 : _product$tax2.id) === (data === null || data === void 0 ? void 0 : data.id) : ((_product$tax3 = product.tax) === null || _product$tax3 === void 0 ? void 0 : _product$tax3.id) === null && (data === null || data === void 0 ? void 0 : data.id) === null : type === 'fee' ? (_product$fee = product.fee) !== null && _product$fee !== void 0 && _product$fee.id ? ((_product$fee2 = product.fee) === null || _product$fee2 === void 0 ? void 0 : _product$fee2.id) === (data === null || data === void 0 ? void 0 : data.id) : ((_product$fee3 = product.fee) === null || _product$fee3 === void 0 ? void 0 : _product$fee3.id) === null && (data === null || data === void 0 ? void 0 : data.id) === null : Object.keys((_data$discounts = data === null || data === void 0 ? void 0 : data.discounts) !== null && _data$discounts !== void 0 ? _data$discounts : {}).map(function (code) {
44
+ return type === 'tax' ? (_product$tax = product.tax) !== null && _product$tax !== void 0 && _product$tax.id ? ((_product$tax2 = product.tax) === null || _product$tax2 === void 0 ? void 0 : _product$tax2.id) === (data === null || data === void 0 ? void 0 : data.id) : ((_product$tax3 = product.tax) === null || _product$tax3 === void 0 ? void 0 : _product$tax3.id) === null && (data === null || data === void 0 ? void 0 : data.id) === null : type === 'fee' ? (_product$fee = product.fee) !== null && _product$fee !== void 0 && _product$fee.id ? ((_product$fee2 = product.fee) === null || _product$fee2 === void 0 ? void 0 : _product$fee2.id) === (data === null || data === void 0 ? void 0 : data.id) : ((_product$fee3 = product.fee) === null || _product$fee3 === void 0 ? void 0 : _product$fee3.id) === null && (data === null || data === void 0 ? void 0 : data.id) === null : Object.keys((_data$discounts = data === null || data === void 0 ? void 0 : data.discounts) !== null && _data$discounts !== void 0 ? _data$discounts : {}).find(function (code) {
45
45
  return code.includes(product === null || product === void 0 ? void 0 : product.code);
46
- }) && (product === null || product === void 0 ? void 0 : (_product$offers = product.offers) === null || _product$offers === void 0 ? void 0 : _product$offers.find(function (offer) {
47
- return (offer === null || offer === void 0 ? void 0 : offer.name) === (data === null || data === void 0 ? void 0 : data.name);
48
- }));
46
+ });
49
47
  };
50
48
 
51
49
  var getTypeString = function getTypeString() {
@@ -58,7 +58,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
58
58
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
59
 
60
60
  var UserFormDetailsUI = function UserFormDetailsUI(props) {
61
- var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie11, _props$afterMidElemen, _props$afterMidCompon, _props$afterComponent, _props$afterElements;
61
+ 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;
62
62
 
63
63
  var isEdit = props.isEdit,
64
64
  formState = props.formState,
@@ -72,7 +72,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
72
72
  handleButtonUpdateClick = props.handleButtonUpdateClick,
73
73
  isCheckout = props.isCheckout,
74
74
  userData = props.userData,
75
- isCustomerMode = props.isCustomerMode;
75
+ isCustomerMode = props.isCustomerMode,
76
+ isOriginalLayout = props.isOriginalLayout;
76
77
  var formMethods = (0, _reactHookForm.useForm)();
77
78
 
78
79
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
@@ -105,6 +106,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
105
106
  _useCustomer2 = _slicedToArray(_useCustomer, 2),
106
107
  setUserCustomer = _useCustomer2[1].setUserCustomer;
107
108
 
109
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
110
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
111
+ orderingTheme = _useOrderingTheme2[0];
112
+
108
113
  var emailInput = (0, _react.useRef)(null);
109
114
  var user = userData || userSession;
110
115
 
@@ -121,6 +126,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
121
126
  };
122
127
 
123
128
  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;
129
+ 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);
130
+ 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);
124
131
 
125
132
  var setUserCellPhone = function setUserCellPhone() {
126
133
  var isEdit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -245,7 +252,16 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
245
252
  }
246
253
  });
247
254
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
248
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
255
+
256
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
257
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
258
+ }
259
+ };
260
+
261
+ var showFieldWithTheme = function showFieldWithTheme(name) {
262
+ var _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9;
263
+
264
+ 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);
249
265
  };
250
266
 
251
267
  (0, _react.useEffect)(function () {
@@ -332,7 +348,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
332
348
  }).map(function (field) {
333
349
  var _formState$result5, _formState$result6, _ref2, _formState$changes$fi, _formState$result7, _formState$result8, _ref3, _formState$changes$fi2;
334
350
 
335
- return showField && showField(field.code) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
351
+ return showField && showField(field.code) && showFieldWithTheme(field.code) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
336
352
  key: field.id
337
353
  }, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
338
354
  key: field.id,
@@ -361,13 +377,13 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
361
377
  }),
362
378
  autoComplete: "off"
363
379
  }));
364
- }), !!showInputPhoneNumber && /*#__PURE__*/_react.default.createElement(_InputPhoneNumber.InputPhoneNumber, {
380
+ }), !!showInputPhoneNumber && showCustomerCellphone && /*#__PURE__*/_react.default.createElement(_InputPhoneNumber.InputPhoneNumber, {
365
381
  user: user,
366
382
  value: userPhoneNumber,
367
383
  setValue: handleChangePhoneNumber,
368
384
  handleIsValid: setIsValidPhoneNumber,
369
385
  disabled: !isEdit
370
- }), !isCheckout && /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
386
+ }), !isCheckout && showCustomerPassword && /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
371
387
  type: "password",
372
388
  name: "password",
373
389
  className: "form",
@@ -389,7 +405,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
389
405
  return /*#__PURE__*/_react.default.createElement(MidComponent, _extends({
390
406
  key: i
391
407
  }, props));
392
- }), /*#__PURE__*/_react.default.createElement(_styles.ActionsForm, null, onCancel && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
408
+ }), /*#__PURE__*/_react.default.createElement(_styles.ActionsForm, null, onCancel && !isOriginalLayout && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
393
409
  outline: true,
394
410
  type: "button",
395
411
  onClick: function onClick() {
@@ -17,6 +17,8 @@ var _BsPerson = _interopRequireDefault(require("@meronex/icons/bs/BsPerson"));
17
17
 
18
18
  var _AiOutlineUnorderedList = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineUnorderedList"));
19
19
 
20
+ var _FaAddressBook = _interopRequireDefault(require("@meronex/icons/fa/FaAddressBook"));
21
+
20
22
  var _orderingComponentsExternal = require("ordering-components-external");
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -38,6 +40,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
38
40
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
41
 
40
42
  var ProfileOptions = function ProfileOptions(_ref) {
43
+ var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5;
44
+
41
45
  var value = _ref.value;
42
46
 
43
47
  var _useState = (0, _react.useState)(value),
@@ -52,6 +56,12 @@ var ProfileOptions = function ProfileOptions(_ref) {
52
56
  _useEvent2 = _slicedToArray(_useEvent, 1),
53
57
  events = _useEvent2[0];
54
58
 
59
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
60
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
61
+ orderingTheme = _useOrderingTheme2[0];
62
+
63
+ 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';
64
+
55
65
  var handleGoToPage = function handleGoToPage(data) {
56
66
  events.emit('go_to_page', data);
57
67
  };
@@ -66,7 +76,15 @@ var ProfileOptions = function ProfileOptions(_ref) {
66
76
  page: 'profile'
67
77
  });
68
78
  }
69
- }, /*#__PURE__*/_react.default.createElement(_BsPerson.default, null), " ", t('MY_ACCOUNT', 'My Account'))), /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
79
+ }, /*#__PURE__*/_react.default.createElement(_BsPerson.default, null), " ", t('MY_ACCOUNT', 'My Account'))), showAddressListTab && /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
80
+ active: tabValue === 'addresses'
81
+ }, /*#__PURE__*/_react.default.createElement("a", {
82
+ onClick: function onClick() {
83
+ return handleGoToPage({
84
+ page: 'addresses'
85
+ });
86
+ }
87
+ }, /*#__PURE__*/_react.default.createElement(_FaAddressBook.default, null), " ", t('MY_ADDRESSES', 'My Addresses'))), /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
70
88
  active: tabValue === 'orders'
71
89
  }, /*#__PURE__*/_react.default.createElement("a", {
72
90
  onClick: function onClick() {
@@ -15,6 +15,8 @@ var _orderingComponentsExternal = require("ordering-components-external");
15
15
 
16
16
  var _UserFormDetails = require("../UserFormDetails");
17
17
 
18
+ var _UserFormDetails2 = require("../../themes/five/src/components/UserFormDetails");
19
+
18
20
  var _AddressList = require("../AddressList");
19
21
 
20
22
  var _Confirm = require("../Confirm");
@@ -58,7 +60,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
58
60
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
61
 
60
62
  var UserProfileFormUI = function UserProfileFormUI(props) {
61
- var _formState$changes2, _props$beforeElements, _props$beforeComponen, _formState$changes3, _formState$changes4, _formState$changes5, _formState$result, _formState$changes6, _formState$changes7, _props$afterComponent, _props$afterElements;
63
+ 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;
62
64
 
63
65
  var userData = props.userData,
64
66
  handleButtonUpdateClick = props.handleButtonUpdateClick,
@@ -91,6 +93,19 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
91
93
 
92
94
  var inputRef = (0, _react.useRef)(null);
93
95
 
96
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
97
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
98
+ orderingTheme = _useOrderingTheme2[0];
99
+
100
+ 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);
101
+ 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);
102
+ 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);
103
+ 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);
104
+ 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);
105
+ 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);
106
+ 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';
107
+ var showEditButton = showCustomerName || showCustomerLastName || showCustomerEmail || showCustomerCellphone;
108
+
94
109
  var handleFiles = function handleFiles(files) {
95
110
  if (files.length === 1) {
96
111
  var _files$;
@@ -159,7 +174,7 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
159
174
  value: "account"
160
175
  }), /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.UserProfileContainer, {
161
176
  mbottom: isHiddenAddress && 25
162
- }, /*#__PURE__*/_react.default.createElement(_styles.UserImage, {
177
+ }, showCustomerPicture && /*#__PURE__*/_react.default.createElement(_styles.UserImage, {
163
178
  className: "user-image"
164
179
  }, /*#__PURE__*/_react.default.createElement(_styles.Image, {
165
180
  onClick: function onClick() {
@@ -203,23 +218,30 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
203
218
  }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
204
219
  width: 100,
205
220
  height: 40
206
- })) : /*#__PURE__*/_react.default.createElement(_styles.UserData, null, /*#__PURE__*/_react.default.createElement("h1", null, (userData === null || userData === void 0 ? void 0 : userData.name) || (user === null || user === void 0 ? void 0 : user.name), " ", (userData === null || userData === void 0 ? void 0 : userData.lastname) || (user === null || user === void 0 ? void 0 : user.lastname)), /*#__PURE__*/_react.default.createElement("p", null, (userData === null || userData === void 0 ? void 0 : userData.email) || user.email), ((userData === null || userData === void 0 ? void 0 : userData.cellphone) || (user === null || user === void 0 ? void 0 : user.cellphone)) && /*#__PURE__*/_react.default.createElement("p", {
221
+ })) : /*#__PURE__*/_react.default.createElement(_styles.UserData, null, /*#__PURE__*/_react.default.createElement("h1", null, showCustomerName && ((userData === null || userData === void 0 ? void 0 : userData.name) || (user === null || user === void 0 ? void 0 : user.name)), showCustomerLastName && ((userData === null || userData === void 0 ? void 0 : userData.lastname) || (user === null || user === void 0 ? void 0 : user.lastname))), /*#__PURE__*/_react.default.createElement("p", null, showCustomerEmail && ((userData === null || userData === void 0 ? void 0 : userData.email) || user.email)), showCustomerCellphone && ((userData === null || userData === void 0 ? void 0 : userData.cellphone) || (user === null || user === void 0 ? void 0 : user.cellphone)) && /*#__PURE__*/_react.default.createElement("p", {
207
222
  style: {
208
223
  direction: 'ltr'
209
224
  }
210
- }, ((userData === null || userData === void 0 ? void 0 : userData.country_phone_code) || (user === null || user === void 0 ? void 0 : user.country_phone_code)) && "+".concat((userData === null || userData === void 0 ? void 0 : userData.country_phone_code) || (user === null || user === void 0 ? void 0 : user.country_phone_code), " "), (userData === null || userData === void 0 ? void 0 : userData.cellphone) || (user === null || user === void 0 ? void 0 : user.cellphone)), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
225
+ }, ((userData === null || userData === void 0 ? void 0 : userData.country_phone_code) || (user === null || user === void 0 ? void 0 : user.country_phone_code)) && "+".concat((userData === null || userData === void 0 ? void 0 : userData.country_phone_code) || (user === null || user === void 0 ? void 0 : user.country_phone_code), " "), (userData === null || userData === void 0 ? void 0 : userData.cellphone) || (user === null || user === void 0 ? void 0 : user.cellphone)), showEditButton && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
211
226
  color: "primary",
212
227
  outline: true,
213
228
  onClick: function onClick() {
214
229
  return toggleEditState(true);
215
230
  }
216
- }, t('EDIT', 'Edit'))) : /*#__PURE__*/_react.default.createElement(_styles.WrapperForm, null, /*#__PURE__*/_react.default.createElement(_UserFormDetails.UserFormDetailsUI, _extends({}, props, {
231
+ }, t('EDIT', 'Edit'))) : /*#__PURE__*/_react.default.createElement(_styles.WrapperForm, null, userFormLayoutColumn ? /*#__PURE__*/_react.default.createElement(_UserFormDetails2.UserFormDetailsUI, _extends({}, props, {
232
+ onCancel: toggleEditState,
233
+ onCloseProfile: function onCloseProfile() {
234
+ return setEdit(false);
235
+ },
236
+ isHiddenAddress: isHiddenAddress,
237
+ isOldLayout: true
238
+ })) : /*#__PURE__*/_react.default.createElement(_UserFormDetails.UserFormDetailsUI, _extends({}, props, {
217
239
  onCancel: toggleEditState,
218
240
  onCloseProfile: function onCloseProfile() {
219
241
  return setEdit(false);
220
242
  },
221
243
  isHiddenAddress: isHiddenAddress
222
- }))))), ((userData === null || userData === void 0 ? void 0 : userData.addresses) || (user === null || user === void 0 ? void 0 : user.addresses)) && !isHiddenAddress && /*#__PURE__*/_react.default.createElement(_styles.SavedPlaces, null, /*#__PURE__*/_react.default.createElement("h1", null, t('SAVED_PLACES', 'Saved places')), /*#__PURE__*/_react.default.createElement(_AddressList.AddressList, {
244
+ }))))), ((userData === null || userData === void 0 ? void 0 : userData.addresses) || (user === null || user === void 0 ? void 0 : user.addresses)) && !isHiddenAddress && showAddressList && /*#__PURE__*/_react.default.createElement(_styles.SavedPlaces, null, /*#__PURE__*/_react.default.createElement("h1", null, t('SAVED_PLACES', 'Saved places')), /*#__PURE__*/_react.default.createElement(_AddressList.AddressList, {
223
245
  isModal: true,
224
246
  addressList: user === null || user === void 0 ? void 0 : user.addresses
225
247
  }))), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
 
18
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
19
 
20
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
20
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-bottom: 20px;\n"])));
21
21
 
22
22
  exports.Container = Container;
23
23
 
@@ -34,7 +34,7 @@ function useCountdownTimer(initialCount, start) {
34
34
  if (start) {
35
35
  var secondsLeft = setInterval(function () {
36
36
  setCount(function (c) {
37
- return c - (c == 0 ? 0 : 1);
37
+ return c - (c === 0 ? 0 : 1);
38
38
  });
39
39
  }, 1000);
40
40
  return function () {
@@ -31,7 +31,7 @@ var ProductsListing = _styledComponents.default.div(_templateObject3 || (_templa
31
31
 
32
32
  exports.ProductsListing = ProductsListing;
33
33
 
34
- var WrapAllCategories = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .category-title {\n display: flex;\n align-items: center;\n margin-left: 10px;\n ", "\n img {\n border-radius: 7.6px;\n min-width: 41px;\n min-height: 41px;\n height: 41px;\n width: 41px;\n }\n }\n .wrap-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n button {\n min-width: max-content;\n }\n }\n .category-description {\n margin-left: 15px;\n margin-bottom: 10px;\n display: flex;\n p {\n margin: 0;\n color: #909BA9;\n white-space: pre;\n }\n span {\n color: ", ";\n text-decoration: underline;\n margin-left: 10px;\n cursor: pointer;\n }\n }\n h3 {\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin-left: 10px;\n ", "\n }\n"])), function (props) {
34
+ var WrapAllCategories = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .category-title {\n display: flex;\n align-items: center;\n margin-left: 10px;\n ", "\n\n img {\n border-radius: 7.6px;\n min-width: 41px;\n min-height: 41px;\n height: 41px;\n width: 41px;\n }\n }\n .wrap-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n button {\n min-width: max-content;\n }\n }\n .category-description {\n margin-left: 15px;\n margin-bottom: 10px;\n display: flex;\n p {\n margin: 0;\n color: #909BA9;\n white-space: pre;\n }\n span {\n color: ", ";\n text-decoration: underline;\n margin-left: 10px;\n cursor: pointer;\n }\n }\n h3 {\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin-left: 10px;\n ", "\n }\n"])), function (props) {
35
35
  var _props$theme;
36
36
 
37
37
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
@@ -31,7 +31,7 @@ var ProductsListing = _styledComponents.default.div(_templateObject3 || (_templa
31
31
 
32
32
  exports.ProductsListing = ProductsListing;
33
33
 
34
- var WrapAllCategories = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .category-title {\n display: flex;\n align-items: center;\n padding-top: 5px;\n padding-bottom: 12px;\n margin-left: 10px;\n ", "\n img {\n border-radius: 7.6px;\n min-width: 41px;\n min-height: 41px;\n height: 41px;\n width: 41px;\n margin-right: 10px;\n ", "\n }\n @media (min-width: 993px) {\n margin: 0px;\n }\n }\n .category-description {\n margin-left: 15px;\n margin-bottom: 10px;\n display: flex;\n p {\n margin: 0;\n color: #909BA9;\n white-space: pre;\n }\n span {\n color: ", ";\n text-decoration: underline;\n margin-left: 10px;\n cursor: pointer;\n }\n }\n h3 {\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin: 0px 0px 0px 10px;\n ", "\n @media (min-width: 993px) {\n margin: 0px;\n }\n }\n"])), function (props) {
34
+ var WrapAllCategories = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .category-title {\n display: flex;\n align-items: center;\n padding-top: 5px;\n padding-bottom: 12px;\n margin-left: 10px;\n ", "\n\n img {\n border-radius: 7.6px;\n min-width: 41px;\n min-height: 41px;\n height: 41px;\n width: 41px;\n margin-right: 10px;\n ", "\n }\n\n @media (min-width: 993px) {\n margin: 0px;\n }\n }\n .category-description {\n margin-left: 15px;\n margin-bottom: 10px;\n display: flex;\n p {\n margin: 0;\n color: #909BA9;\n white-space: pre;\n }\n span {\n color: ", ";\n text-decoration: underline;\n margin-left: 10px;\n cursor: pointer;\n }\n }\n\n h3 {\n font-weight: 600;\n font-size: 24px;\n color: ", ";\n margin: 0px 0px 0px 10px;\n ", "\n\n @media (min-width: 993px) {\n margin: 0px;\n }\n }\n"])), function (props) {
35
35
  var _props$theme;
36
36
 
37
37
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 10px;\n margin-left: 0;\n "])));
@@ -97,7 +97,10 @@ var ForgotPasswordUI = function ForgotPasswordUI(props) {
97
97
  }
98
98
  });
99
99
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
100
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
100
+
101
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
102
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
103
+ }
101
104
  };
102
105
 
103
106
  (0, _react.useEffect)(function () {
@@ -245,7 +245,10 @@ var LoginFormUI = function LoginFormUI(props) {
245
245
  }
246
246
  });
247
247
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
248
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
248
+
249
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
250
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
251
+ }
249
252
  };
250
253
 
251
254
  var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
@@ -211,7 +211,10 @@ var SignUpBusinessUI = function SignUpBusinessUI(props) {
211
211
  }
212
212
  });
213
213
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
214
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
214
+
215
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
216
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
217
+ }
215
218
  };
216
219
 
217
220
  (0, _react.useEffect)(function () {
@@ -212,7 +212,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
212
212
  }
213
213
  });
214
214
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
215
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
215
+
216
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
217
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
218
+ }
216
219
  };
217
220
 
218
221
  (0, _react.useEffect)(function () {
@@ -245,7 +245,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
245
245
  }
246
246
  });
247
247
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
248
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
248
+
249
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
250
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
251
+ }
249
252
  };
250
253
 
251
254
  (0, _react.useEffect)(function () {
@@ -85,9 +85,9 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
85
85
  businessId: businessId,
86
86
  onProductClick: onProductClick,
87
87
  isCartOnProductsList: isCartOnProductsList,
88
- productAddedToCart: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products = currentCart.products) === null || _currentCart$products === void 0 ? void 0 : _currentCart$products.find(function (Cproduct) {
89
- return Cproduct.id === product.id;
90
- })
88
+ productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products = currentCart.products) === null || _currentCart$products === void 0 ? void 0 : _currentCart$products.reduce(function (productsLength, Cproduct) {
89
+ return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
90
+ }, 0)
91
91
  });
92
92
  })), !(category !== null && category !== void 0 && category.id) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, featured && (categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$produc2 = categoryState.products) === null || _categoryState$produc2 === void 0 ? void 0 : _categoryState$produc2.find(function (product) {
93
93
  return product.featured;
@@ -101,9 +101,9 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
101
101
  businessId: businessId,
102
102
  onProductClick: onProductClick,
103
103
  isCartOnProductsList: isCartOnProductsList,
104
- productAddedToCart: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products2 = currentCart.products) === null || _currentCart$products2 === void 0 ? void 0 : _currentCart$products2.find(function (Cproduct) {
105
- return Cproduct.id === product.id;
106
- })
104
+ productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products2 = currentCart.products) === null || _currentCart$products2 === void 0 ? void 0 : _currentCart$products2.reduce(function (productsLength, Cproduct) {
105
+ return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
106
+ }, 0)
107
107
  });
108
108
  })))), !(category !== null && category !== void 0 && category.id) && categories.filter(function (category) {
109
109
  return (category === null || category === void 0 ? void 0 : category.id) !== null;
@@ -127,9 +127,9 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
127
127
  product: product,
128
128
  onProductClick: onProductClick,
129
129
  isCartOnProductsList: isCartOnProductsList,
130
- productAddedToCart: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.find(function (Cproduct) {
131
- return Cproduct.id === product.id;
132
- })
130
+ productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.reduce(function (productsLength, Cproduct) {
131
+ return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
132
+ }, 0)
133
133
  });
134
134
  }), categoryState.loading && i + 1 === _categories.length && _toConsumableArray(Array(categoryState.pagination.nextPageItems).keys()).map(function (i) {
135
135
  return /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
@@ -263,7 +263,10 @@ var LoginFormUI = function LoginFormUI(props) {
263
263
  }
264
264
  });
265
265
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
266
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
266
+
267
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
268
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
269
+ }
267
270
  };
268
271
 
269
272
  var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
@@ -261,7 +261,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
261
261
  }
262
262
  });
263
263
  formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
264
- emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
264
+
265
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
266
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
267
+ }
265
268
  };
266
269
 
267
270
  (0, _react.useEffect)(function () {