ordering-ui-external 1.0.1 → 1.1.2

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 (370) hide show
  1. package/_bundles/{0.ordering-ui.f64ae9230411e0edb7d6.js → 0.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  2. package/_bundles/{1.ordering-ui.f64ae9230411e0edb7d6.js → 1.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  3. package/_bundles/{3.ordering-ui.f64ae9230411e0edb7d6.js → 3.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  4. package/_bundles/{4.ordering-ui.f64ae9230411e0edb7d6.js → 4.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  5. package/_bundles/{5.ordering-ui.f64ae9230411e0edb7d6.js → 5.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  6. package/_bundles/{6.ordering-ui.f64ae9230411e0edb7d6.js → 6.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  7. package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js → 7.ordering-ui.61d857607dc95f3ab08c.js} +2 -2
  8. package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → 7.ordering-ui.61d857607dc95f3ab08c.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.f64ae9230411e0edb7d6.js → 8.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  10. package/_bundles/{9.ordering-ui.f64ae9230411e0edb7d6.js → 9.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
  11. package/_bundles/ordering-ui.61d857607dc95f3ab08c.js +2 -0
  12. package/_bundles/{ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → ordering-ui.61d857607dc95f3ab08c.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/index.js +78 -0
  35. package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -1
  36. package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +1 -1
  37. package/_modules/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +4 -1
  38. package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +4 -1
  39. package/_modules/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +4 -1
  40. package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +4 -1
  41. package/_modules/themes/callcenterOriginal/src/components/UserFormDetails/index.js +4 -1
  42. package/_modules/themes/eight/src/components/BusinessProductsList/index.js +9 -9
  43. package/_modules/themes/eight/src/components/LoginForm/index.js +4 -1
  44. package/_modules/themes/eight/src/components/SignUpForm/index.js +4 -1
  45. package/_modules/themes/eight/src/components/SingleProductCard/index.js +2 -2
  46. package/_modules/themes/five/index.js +50 -2
  47. package/_modules/themes/five/src/components/AddressDetails/index.js +2 -20
  48. package/_modules/themes/five/src/components/AddressForm/index.js +18 -6
  49. package/_modules/themes/five/src/components/AddressForm/styles.js +1 -1
  50. package/_modules/themes/five/src/components/AddressList/index.js +24 -11
  51. package/_modules/themes/five/src/components/AddressList/styles.js +11 -7
  52. package/_modules/themes/five/src/components/BusinessInformation/index.js +11 -4
  53. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +19 -4
  54. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +30 -4
  55. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +64 -3
  56. package/_modules/themes/five/src/components/BusinessPreorder/index.js +5 -3
  57. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +1 -1
  58. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +87 -54
  59. package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
  60. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +2 -1
  61. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +13 -10
  62. package/_modules/themes/five/src/components/BusinessProductsList/styles.js +3 -3
  63. package/_modules/themes/five/src/components/BusinessReviews/index.js +24 -30
  64. package/_modules/themes/five/src/components/BusinessesListing/index.js +22 -5
  65. package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +23 -5
  66. package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +3 -3
  67. package/_modules/themes/five/src/components/Cart/index.js +28 -9
  68. package/_modules/themes/five/src/components/Cart/styles.js +4 -4
  69. package/_modules/themes/five/src/components/CartContent/index.js +11 -24
  70. package/_modules/themes/five/src/components/CartPopover/index.js +44 -4
  71. package/_modules/themes/five/src/components/CartPopover/styles.js +13 -3
  72. package/_modules/themes/five/src/components/Checkout/index.js +81 -30
  73. package/_modules/themes/five/src/components/Header/index.js +1 -5
  74. package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +2 -1
  75. package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
  76. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +4 -6
  77. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +5 -5
  78. package/_modules/themes/five/src/components/LoginForm/styles.js +29 -29
  79. package/_modules/themes/five/src/components/Modal/index.js +5 -0
  80. package/_modules/themes/five/src/components/Modal/styles.js +20 -15
  81. package/_modules/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +4 -4
  82. package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +70 -5
  83. package/_modules/themes/five/src/components/OrderDetails/ActionsSection.js +5 -3
  84. package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +3 -1
  85. package/_modules/themes/five/src/components/OrderDetails/index.js +121 -39
  86. package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -4
  87. package/_modules/themes/five/src/components/OrderDetails/styles.js +26 -18
  88. package/_modules/themes/five/src/components/OrderProgress/index.js +1 -0
  89. package/_modules/themes/five/src/components/OrdersOption/index.js +6 -0
  90. package/_modules/themes/five/src/components/OrdersOption/styles.js +13 -13
  91. package/_modules/themes/five/src/components/PaymentOptionWallet/index.js +6 -2
  92. package/_modules/themes/five/src/components/PaymentOptions/index.js +25 -3
  93. package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
  94. package/_modules/themes/five/src/components/ProductForm/index.js +108 -43
  95. package/_modules/themes/five/src/components/ProductForm/styles.js +19 -21
  96. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +11 -3
  97. package/_modules/themes/five/src/components/ProductOption/index.js +3 -1
  98. package/_modules/themes/five/src/components/ProductOption/styles.js +1 -1
  99. package/_modules/themes/five/src/components/ProfessionalProfile/styles.js +1 -1
  100. package/_modules/themes/five/src/components/ReviewDriver/index.js +330 -0
  101. package/_modules/themes/five/src/components/ReviewDriver/styles.js +137 -0
  102. package/_modules/themes/five/src/components/ReviewOrder/index.js +342 -0
  103. package/_modules/themes/five/src/components/ReviewOrder/styles.js +141 -0
  104. package/_modules/themes/five/src/components/ReviewProduct/index.js +329 -0
  105. package/_modules/themes/five/src/components/ReviewProduct/styles.js +111 -0
  106. package/_modules/themes/five/src/components/ReviewTrigger/index.js +130 -0
  107. package/_modules/themes/five/src/components/ReviewTrigger/styles.js +84 -0
  108. package/_modules/themes/five/src/components/SearchBar/index.js +4 -1
  109. package/_modules/themes/five/src/components/SearchProducts/index.js +1 -0
  110. package/_modules/themes/five/src/components/ServiceForm/index.js +93 -26
  111. package/_modules/themes/five/src/components/ServiceForm/styles.js +38 -14
  112. package/_modules/themes/five/src/components/SignUpBusiness/index.js +4 -1
  113. package/_modules/themes/five/src/components/SignUpDriver/index.js +4 -1
  114. package/_modules/themes/five/src/components/SignUpForm/styles.js +12 -12
  115. package/_modules/themes/five/src/components/SingleOrderCard/index.js +216 -26
  116. package/_modules/themes/five/src/components/SingleOrderCard/styles.js +7 -3
  117. package/_modules/themes/five/src/components/TaxInformation/index.js +3 -5
  118. package/_modules/themes/five/src/components/UserDetails/index.js +132 -9
  119. package/_modules/themes/five/src/components/UserDetails/styles.js +3 -3
  120. package/_modules/themes/five/src/components/UserFormDetails/index.js +69 -20
  121. package/_modules/themes/five/src/components/UserPopover/index.js +13 -7
  122. package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +19 -1
  123. package/_modules/themes/five/src/components/UserProfileForm/index.js +119 -23
  124. package/_modules/themes/five/src/components/VerifyCodeForm/index.js +86 -0
  125. package/_modules/themes/five/src/components/VerifyCodeForm/styles.js +32 -0
  126. package/_modules/themes/four/src/components/AccordionDropdown/index.js +46 -0
  127. package/_modules/themes/four/src/components/AccordionDropdown/styles.js +31 -0
  128. package/_modules/themes/four/src/components/BusinessBasicInformation/index.js +2 -5
  129. package/_modules/themes/four/src/components/BusinessProductsCategories/index.js +2 -1
  130. package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +128 -0
  131. package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +43 -0
  132. package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +235 -0
  133. package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +52 -0
  134. package/_modules/themes/four/src/components/BusinessProductsListing/index.js +131 -108
  135. package/_modules/themes/four/src/components/BusinessProductsListing/styles.js +8 -33
  136. package/_modules/themes/four/src/components/ForgotPasswordForm/index.js +4 -1
  137. package/_modules/themes/four/src/components/LoginForm/index.js +4 -1
  138. package/_modules/themes/four/src/components/NotFoundSource/index.js +63 -0
  139. package/_modules/themes/four/src/components/NotFoundSource/styles.js +22 -0
  140. package/_modules/themes/four/src/components/RenderProductsLayout/index.js +301 -0
  141. package/_modules/themes/four/src/components/RenderProductsLayout/styles.js +68 -0
  142. package/_modules/themes/four/src/components/SignUpForm/index.js +4 -1
  143. package/_modules/themes/four/src/components/SingleProductCard/index.js +15 -5
  144. package/_modules/themes/four/src/components/UserFormDetails/index.js +4 -1
  145. package/_modules/themes/franchise/src/components/ForgotPasswordForm/index.js +4 -1
  146. package/_modules/themes/franchise/src/components/LoginForm/index.js +4 -1
  147. package/_modules/themes/franchise/src/components/SignUpForm/index.js +4 -1
  148. package/_modules/themes/franchise/src/components/UserFormDetails/index.js +4 -1
  149. package/_modules/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +4 -1
  150. package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +4 -1
  151. package/_modules/themes/orderAndPay/src/components/SignUpForm/index.js +4 -1
  152. package/_modules/themes/orderAndPay/src/components/UserFormDetails/index.js +4 -1
  153. package/_modules/themes/pwa/src/components/ForgotPasswordForm/index.js +4 -1
  154. package/_modules/themes/pwa/src/components/LoginForm/index.js +4 -1
  155. package/_modules/themes/pwa/src/components/SignUpForm/index.js +4 -1
  156. package/_modules/themes/pwa/src/components/UserFormDetails/index.js +4 -1
  157. package/_modules/themes/seven/index.js +4 -4
  158. package/_modules/themes/seven/src/components/ForgotPasswordForm/index.js +4 -1
  159. package/_modules/themes/seven/src/components/LoginForm/index.js +4 -1
  160. package/_modules/themes/seven/src/components/SignUpForm/index.js +4 -1
  161. package/_modules/themes/seven/src/components/SignUpForm/styles.js +1 -1
  162. package/_modules/themes/seven/src/components/UserFormDetails/index.js +4 -1
  163. package/_modules/themes/six/index.js +3 -3
  164. package/_modules/themes/six/src/components/AddressForm/index.js +3 -3
  165. package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +16 -7
  166. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +6 -2
  167. package/_modules/themes/six/src/components/BusinessProductsListing/index.js +21 -27
  168. package/_modules/themes/six/src/components/DriverTips/index.js +2 -2
  169. package/_modules/themes/six/src/components/ForgotPasswordForm/index.js +4 -1
  170. package/_modules/themes/six/src/components/LoginForm/index.js +7 -4
  171. package/_modules/themes/six/src/components/PaymentOptionCash/index.js +2 -2
  172. package/_modules/themes/six/src/components/ProductForm/index.js +2 -2
  173. package/_modules/themes/six/src/components/SearchBar/index.js +2 -2
  174. package/_modules/themes/six/src/components/SignUpForm/index.js +8 -5
  175. package/_modules/themes/six/src/components/UserFormDetails/index.js +8 -5
  176. package/_modules/themes/three/src/components/ForgotPasswordForm/index.js +4 -1
  177. package/_modules/themes/three/src/components/LoginForm/index.js +4 -1
  178. package/_modules/themes/three/src/components/SignUpForm/index.js +4 -1
  179. package/_modules/themes/two/src/components/ForgotPasswordForm/index.js +4 -1
  180. package/_modules/themes/two/src/components/LoginForm/index.js +4 -1
  181. package/_modules/themes/two/src/components/SignUpForm/index.js +4 -1
  182. package/package.json +3 -3
  183. package/src/components/BusinessBasicInformation/index.js +64 -41
  184. package/src/components/BusinessProductsList/index.js +3 -3
  185. package/src/components/BusinessProductsList/layouts/groceries/index.js +3 -3
  186. package/src/components/Checkout/index.js +1 -0
  187. package/src/components/ForgotPasswordForm/index.js +3 -1
  188. package/src/components/Header/index.js +1 -1
  189. package/src/components/LoginForm/index.js +30 -28
  190. package/src/components/OrderDetails/index.js +101 -58
  191. package/src/components/PaymentOptionSquare/index.js +4 -8
  192. package/src/components/PaymentOptionSquare/styles.js +4 -1
  193. package/src/components/PaymentOptions/index.js +3 -0
  194. package/src/components/ProductItemAccordion/index.js +5 -3
  195. package/src/components/RenderProductsLayout/SearchProducts/index.js +3 -2
  196. package/src/components/RenderProductsLayout/index.js +13 -25
  197. package/src/components/SignUpForm/index.js +4 -2
  198. package/src/components/SingleProductCard/index.js +3 -3
  199. package/src/components/TaxInformation/index.js +1 -1
  200. package/src/components/UserFormDetails/index.js +35 -26
  201. package/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
  202. package/src/components/UserProfileForm/index.js +70 -41
  203. package/src/components/UserProfileForm/styles.js +3 -1
  204. package/src/hooks/useCountdownTimer.js +9 -9
  205. package/src/index.js +28 -2
  206. package/src/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -0
  207. package/src/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +4 -0
  208. package/src/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +3 -1
  209. package/src/themes/callcenterOriginal/src/components/LoginForm/index.js +3 -1
  210. package/src/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +3 -1
  211. package/src/themes/callcenterOriginal/src/components/SignUpForm/index.js +3 -1
  212. package/src/themes/callcenterOriginal/src/components/UserFormDetails/index.js +21 -19
  213. package/src/themes/eight/src/components/BusinessProductsList/index.js +3 -3
  214. package/src/themes/eight/src/components/LoginForm/index.js +34 -32
  215. package/src/themes/eight/src/components/SignUpForm/index.js +4 -2
  216. package/src/themes/eight/src/components/SingleProductCard/index.js +3 -3
  217. package/src/themes/five/index.js +15 -2
  218. package/src/themes/five/src/components/AddressDetails/index.js +0 -10
  219. package/src/themes/five/src/components/AddressForm/index.js +58 -45
  220. package/src/themes/five/src/components/AddressForm/styles.js +1 -1
  221. package/src/themes/five/src/components/AddressList/index.js +52 -28
  222. package/src/themes/five/src/components/AddressList/styles.js +9 -2
  223. package/src/themes/five/src/components/BusinessInformation/index.js +52 -37
  224. package/src/themes/five/src/components/BusinessItemAccordion/index.js +36 -3
  225. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +46 -0
  226. package/src/themes/five/src/components/BusinessListingSearch/index.js +39 -1
  227. package/src/themes/five/src/components/BusinessPreorder/index.js +8 -4
  228. package/src/themes/five/src/components/BusinessPreorder/styles.js +1 -0
  229. package/src/themes/five/src/components/BusinessProductsCategories/index.js +89 -58
  230. package/src/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
  231. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
  232. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -1
  233. package/src/themes/five/src/components/BusinessProductsList/styles.js +8 -3
  234. package/src/themes/five/src/components/BusinessReviews/index.js +84 -56
  235. package/src/themes/five/src/components/BusinessesListing/index.js +8 -7
  236. package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +9 -3
  237. package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +8 -2
  238. package/src/themes/five/src/components/Cart/index.js +15 -4
  239. package/src/themes/five/src/components/Cart/styles.js +6 -0
  240. package/src/themes/five/src/components/CartContent/index.js +10 -23
  241. package/src/themes/five/src/components/CartPopover/index.js +50 -12
  242. package/src/themes/five/src/components/CartPopover/styles.js +27 -0
  243. package/src/themes/five/src/components/Checkout/index.js +38 -3
  244. package/src/themes/five/src/components/Header/index.js +2 -3
  245. package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +1 -1
  246. package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
  247. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +2 -2
  248. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +18 -0
  249. package/src/themes/five/src/components/LoginForm/styles.js +4 -1
  250. package/src/themes/five/src/components/Modal/index.js +5 -0
  251. package/src/themes/five/src/components/Modal/styles.js +36 -0
  252. package/src/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +22 -0
  253. package/src/themes/five/src/components/NotNetworkConnectivity/index.js +28 -2
  254. package/src/themes/five/src/components/OrderDetails/ActionsSection.js +14 -10
  255. package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  256. package/src/themes/five/src/components/OrderDetails/index.js +102 -61
  257. package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +6 -5
  258. package/src/themes/five/src/components/OrderDetails/styles.js +64 -1
  259. package/src/themes/five/src/components/OrderProgress/index.js +1 -0
  260. package/src/themes/five/src/components/OrdersOption/index.js +3 -2
  261. package/src/themes/five/src/components/OrdersOption/styles.js +25 -0
  262. package/src/themes/five/src/components/PaymentOptionWallet/index.js +41 -41
  263. package/src/themes/five/src/components/PaymentOptions/index.js +23 -2
  264. package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
  265. package/src/themes/five/src/components/ProductForm/index.js +147 -100
  266. package/src/themes/five/src/components/ProductForm/styles.js +68 -12
  267. package/src/themes/five/src/components/ProductItemAccordion/index.js +9 -5
  268. package/src/themes/five/src/components/ProductOption/index.js +1 -1
  269. package/src/themes/five/src/components/ProductOption/styles.js +5 -1
  270. package/src/themes/five/src/components/ProfessionalProfile/styles.js +1 -0
  271. package/src/themes/five/src/components/ReviewDriver/index.js +253 -0
  272. package/src/themes/five/src/components/ReviewDriver/styles.js +233 -0
  273. package/src/themes/five/src/components/ReviewOrder/index.js +241 -0
  274. package/src/themes/five/src/components/ReviewOrder/styles.js +253 -0
  275. package/src/themes/five/src/components/ReviewProduct/index.js +251 -0
  276. package/src/themes/five/src/components/ReviewProduct/styles.js +158 -0
  277. package/src/themes/five/src/components/ReviewTrigger/index.js +86 -0
  278. package/src/themes/five/src/components/ReviewTrigger/styles.js +121 -0
  279. package/src/themes/five/src/components/SearchBar/index.js +1 -0
  280. package/src/themes/five/src/components/SearchProducts/index.js +2 -0
  281. package/src/themes/five/src/components/ServiceForm/index.js +93 -22
  282. package/src/themes/five/src/components/ServiceForm/styles.js +43 -2
  283. package/src/themes/five/src/components/SignUpBusiness/index.js +5 -3
  284. package/src/themes/five/src/components/SignUpDriver/index.js +5 -3
  285. package/src/themes/five/src/components/SignUpForm/styles.js +33 -0
  286. package/src/themes/five/src/components/SingleOrderCard/index.js +118 -22
  287. package/src/themes/five/src/components/SingleOrderCard/styles.js +5 -0
  288. package/src/themes/five/src/components/TaxInformation/index.js +1 -1
  289. package/src/themes/five/src/components/UserDetails/index.js +122 -19
  290. package/src/themes/five/src/components/UserDetails/styles.js +7 -0
  291. package/src/themes/five/src/components/UserFormDetails/index.js +108 -63
  292. package/src/themes/five/src/components/UserPopover/index.js +6 -6
  293. package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
  294. package/src/themes/five/src/components/UserProfileForm/index.js +130 -38
  295. package/src/themes/five/src/components/VerifyCodeForm/index.js +64 -0
  296. package/src/themes/five/src/components/VerifyCodeForm/styles.js +82 -0
  297. package/src/themes/four/src/components/AccordionDropdown/index.js +47 -0
  298. package/src/themes/four/src/components/AccordionDropdown/styles.js +25 -0
  299. package/src/themes/four/src/components/BusinessBasicInformation/index.js +16 -22
  300. package/src/themes/four/src/components/BusinessProductsCategories/index.js +1 -1
  301. package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +125 -0
  302. package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +52 -0
  303. package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +237 -0
  304. package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +62 -0
  305. package/src/themes/four/src/components/BusinessProductsListing/index.js +69 -113
  306. package/src/themes/four/src/components/BusinessProductsListing/styles.js +1 -71
  307. package/src/themes/four/src/components/ForgotPasswordForm/index.js +3 -1
  308. package/src/themes/four/src/components/LoginForm/index.js +48 -46
  309. package/src/themes/four/src/components/NotFoundSource/index.js +66 -0
  310. package/src/themes/four/src/components/NotFoundSource/styles.js +27 -0
  311. package/src/themes/four/src/components/RenderProductsLayout/index.js +306 -0
  312. package/src/themes/four/src/components/RenderProductsLayout/styles.js +177 -0
  313. package/src/themes/four/src/components/SignUpForm/index.js +4 -2
  314. package/src/themes/four/src/components/SingleProductCard/index.js +35 -23
  315. package/src/themes/four/src/components/UserFormDetails/index.js +21 -19
  316. package/src/themes/franchise/src/components/ForgotPasswordForm/index.js +3 -1
  317. package/src/themes/franchise/src/components/LoginForm/index.js +32 -30
  318. package/src/themes/franchise/src/components/SignUpForm/index.js +3 -1
  319. package/src/themes/franchise/src/components/UserFormDetails/index.js +21 -19
  320. package/src/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +3 -1
  321. package/src/themes/orderAndPay/src/components/LoginForm/index.js +33 -31
  322. package/src/themes/orderAndPay/src/components/SignUpForm/index.js +11 -9
  323. package/src/themes/orderAndPay/src/components/UserFormDetails/index.js +21 -19
  324. package/src/themes/pwa/src/components/ForgotPasswordForm/index.js +3 -1
  325. package/src/themes/pwa/src/components/LoginForm/index.js +32 -30
  326. package/src/themes/pwa/src/components/SignUpForm/index.js +3 -1
  327. package/src/themes/pwa/src/components/UserFormDetails/index.js +3 -1
  328. package/src/themes/seven/index.js +4 -4
  329. package/src/themes/seven/src/components/CouponControl/index.js +0 -1
  330. package/src/themes/seven/src/components/ForgotPasswordForm/index.js +3 -1
  331. package/src/themes/seven/src/components/LoginForm/index.js +5 -3
  332. package/src/themes/seven/src/components/OrderDetails/index.js +1 -1
  333. package/src/themes/seven/src/components/SignUpForm/index.js +3 -1
  334. package/src/themes/seven/src/components/SignUpForm/styles.js +1 -0
  335. package/src/themes/seven/src/components/UserFormDetails/index.js +3 -1
  336. package/src/themes/six/index.js +3 -3
  337. package/src/themes/six/src/components/AddressForm/index.js +1 -1
  338. package/src/themes/six/src/components/BusinessBasicInformation/index.js +57 -34
  339. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -2
  340. package/src/themes/six/src/components/BusinessProductsListing/index.js +7 -13
  341. package/src/themes/six/src/components/DriverTips/index.js +1 -1
  342. package/src/themes/six/src/components/ForgotPasswordForm/index.js +3 -1
  343. package/src/themes/six/src/components/LoginForm/index.js +33 -31
  344. package/src/themes/six/src/components/PaymentOptionCash/index.js +1 -1
  345. package/src/themes/six/src/components/ProductForm/index.js +1 -1
  346. package/src/themes/six/src/components/SearchBar/index.js +1 -1
  347. package/src/themes/six/src/components/SignUpForm/index.js +4 -2
  348. package/src/themes/six/src/components/UserFormDetails/index.js +22 -20
  349. package/src/themes/three/src/components/ForgotPasswordForm/index.js +3 -1
  350. package/src/themes/three/src/components/LoginForm/index.js +52 -50
  351. package/src/themes/three/src/components/SignUpForm/index.js +10 -8
  352. package/src/themes/two/src/components/ForgotPasswordForm/index.js +3 -1
  353. package/src/themes/two/src/components/LoginForm/index.js +42 -40
  354. package/src/themes/two/src/components/SignUpForm/index.js +10 -8
  355. package/template/components/ListenPageChanges/index.js +1 -1
  356. package/template/pages/Checkout/index.js +0 -1
  357. package/template/pages/Home/styles.js +0 -14
  358. package/_bundles/ordering-ui.f64ae9230411e0edb7d6.js +0 -2
  359. package/_modules/themes/five/src/components/FavoriteBusinesses/index.js +0 -268
  360. package/_modules/themes/five/src/components/FavoriteBusinesses/styles.js +0 -53
  361. package/_modules/themes/five/src/components/FavoriteOrders/index.js +0 -353
  362. package/_modules/themes/five/src/components/FavoriteOrders/styles.js +0 -53
  363. package/_modules/themes/five/src/components/FavoriteProducts/index.js +0 -190
  364. package/_modules/themes/five/src/components/FavoriteProducts/styles.js +0 -53
  365. package/src/themes/five/src/components/FavoriteBusinesses/index.js +0 -217
  366. package/src/themes/five/src/components/FavoriteBusinesses/styles.js +0 -85
  367. package/src/themes/five/src/components/FavoriteOrders/index.js +0 -225
  368. package/src/themes/five/src/components/FavoriteOrders/styles.js +0 -87
  369. package/src/themes/five/src/components/FavoriteProducts/index.js +0 -165
  370. package/src/themes/five/src/components/FavoriteProducts/styles.js +0 -87
@@ -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 () {
@@ -42,7 +42,7 @@ var SingleProductCard = function SingleProductCard(props) {
42
42
  isSkeleton = props.isSkeleton,
43
43
  onProductClick = props.onProductClick,
44
44
  isCartOnProductsList = props.isCartOnProductsList,
45
- productAddedToCart = props.productAddedToCart;
45
+ productAddedToCartLength = props.productAddedToCartLength;
46
46
 
47
47
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
48
48
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
@@ -89,7 +89,7 @@ var SingleProductCard = function SingleProductCard(props) {
89
89
  return !isSkeleton && onProductClick(product);
90
90
  },
91
91
  isCartOnProductsList: isCartOnProductsList
92
- }, !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, 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.CardLogo, {
92
+ }, !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, null, !isSkeleton && productAddedToCartLength > 0 && /*#__PURE__*/_react.default.createElement(_styles.QuantityContainer, null, /*#__PURE__*/_react.default.createElement("span", null, productAddedToCartLength)), /*#__PURE__*/_react.default.createElement(_styles.CardLogo, {
93
93
  className: "image",
94
94
  soldOut: isSoldOut || maxProductQuantity <= 0,
95
95
  bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.product), 'h_200,c_limit')
@@ -195,10 +195,10 @@ Object.defineProperty(exports, "ForgotPasswordForm", {
195
195
  return _ForgotPasswordForm.ForgotPasswordForm;
196
196
  }
197
197
  });
198
- Object.defineProperty(exports, "GoogleLogin", {
198
+ Object.defineProperty(exports, "GoogleLoginButton", {
199
199
  enumerable: true,
200
200
  get: function get() {
201
- return _GoogleLogin.GoogleLogin;
201
+ return _GoogleLogin.GoogleLoginButton;
202
202
  }
203
203
  });
204
204
  Object.defineProperty(exports, "Header", {
@@ -453,6 +453,12 @@ Object.defineProperty(exports, "ProductOptionSubOption", {
453
453
  return _ProductOptionSubOption.ProductOptionSubOption;
454
454
  }
455
455
  });
456
+ Object.defineProperty(exports, "ProfileOptions", {
457
+ enumerable: true,
458
+ get: function get() {
459
+ return _ProfileOptions.ProfileOptions;
460
+ }
461
+ });
456
462
  Object.defineProperty(exports, "Promotions", {
457
463
  enumerable: true,
458
464
  get: function get() {
@@ -471,6 +477,30 @@ Object.defineProperty(exports, "ResetPassword", {
471
477
  return _ResetPassword.ResetPassword;
472
478
  }
473
479
  });
480
+ Object.defineProperty(exports, "ReviewDriver", {
481
+ enumerable: true,
482
+ get: function get() {
483
+ return _ReviewDriver.ReviewDriver;
484
+ }
485
+ });
486
+ Object.defineProperty(exports, "ReviewOrder", {
487
+ enumerable: true,
488
+ get: function get() {
489
+ return _ReviewOrder.ReviewOrder;
490
+ }
491
+ });
492
+ Object.defineProperty(exports, "ReviewProduct", {
493
+ enumerable: true,
494
+ get: function get() {
495
+ return _ReviewProduct.ReviewProduct;
496
+ }
497
+ });
498
+ Object.defineProperty(exports, "ReviewTrigger", {
499
+ enumerable: true,
500
+ get: function get() {
501
+ return _ReviewTrigger.ReviewTrigger;
502
+ }
503
+ });
474
504
  Object.defineProperty(exports, "SearchBar", {
475
505
  enumerable: true,
476
506
  get: function get() {
@@ -567,6 +597,12 @@ Object.defineProperty(exports, "UserVerification", {
567
597
  return _UserVerification.UserVerification;
568
598
  }
569
599
  });
600
+ Object.defineProperty(exports, "VerifyCodeForm", {
601
+ enumerable: true,
602
+ get: function get() {
603
+ return _VerifyCodeForm.VerifyCodeForm;
604
+ }
605
+ });
570
606
  Object.defineProperty(exports, "WalletTransactionItem", {
571
607
  enumerable: true,
572
608
  get: function get() {
@@ -722,6 +758,8 @@ var _ProductOption = require("./src/components/ProductOption");
722
758
 
723
759
  var _ProductOptionSubOption = require("./src/components/ProductOptionSubOption");
724
760
 
761
+ var _ProfileOptions = require("./src/components/UserProfileForm/ProfileOptions");
762
+
725
763
  var _Promotions = require("./src/components/Promotions");
726
764
 
727
765
  var _RenderProductsLayout = require("./src/components/RenderProductsLayout");
@@ -756,12 +794,22 @@ var _UserProfileForm = require("./src/components/UserProfileForm");
756
794
 
757
795
  var _UserVerification = require("./src/components/UserVerification");
758
796
 
797
+ var _VerifyCodeForm = require("./src/components/VerifyCodeForm");
798
+
759
799
  var _Wallets = require("./src/components/Wallets");
760
800
 
761
801
  var _WalletTransactionItem = require("./src/components/WalletTransactionItem");
762
802
 
763
803
  var _BusinessListingSearch = require("./src/components/BusinessListingSearch");
764
804
 
805
+ var _ReviewTrigger = require("./src/components/ReviewTrigger");
806
+
807
+ var _ReviewOrder = require("./src/components/ReviewOrder");
808
+
809
+ var _ReviewDriver = require("./src/components/ReviewDriver");
810
+
811
+ var _ReviewProduct = require("./src/components/ReviewProduct");
812
+
765
813
  var _Buttons = require("./src/styles/Buttons");
766
814
 
767
815
  var _Inputs = require("./src/styles/Inputs");
@@ -44,7 +44,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
44
44
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
45
 
46
46
  var AddressDetailsUI = function AddressDetailsUI(props) {
47
- var _props$beforeElements, _props$beforeComponen, _orderState$options2, _orderState$options2$, _orderState$options3, _props$afterComponent, _props$afterElements;
47
+ var _props$beforeElements, _props$beforeComponen, _orderState$options, _orderState$options$a, _orderState$options2, _props$afterComponent, _props$afterElements;
48
48
 
49
49
  var addressToShow = props.addressToShow,
50
50
  isCartPending = props.isCartPending,
@@ -80,20 +80,6 @@ var AddressDetailsUI = function AddressDetailsUI(props) {
80
80
  _useCustomer2 = _slicedToArray(_useCustomer, 1),
81
81
  user = _useCustomer2[0].user;
82
82
 
83
- var handleFindBusinesses = function handleFindBusinesses() {
84
- var _orderState$options, _orderState$options$a;
85
-
86
- if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options$a = _orderState$options.address) !== null && _orderState$options$a !== void 0 && _orderState$options$a.location)) {
87
- setAlertState({
88
- open: true,
89
- content: [t('SELECT_AN_ADDRESS_TO_SEARCH', 'Select or add an address to search')]
90
- });
91
- return;
92
- }
93
-
94
- setOpenModal(false);
95
- };
96
-
97
83
  (0, _react.useEffect)(function () {
98
84
  return function () {
99
85
  return setOpenModal(false);
@@ -107,7 +93,7 @@ var AddressDetailsUI = function AddressDetailsUI(props) {
107
93
  return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
108
94
  key: i
109
95
  }, props));
110
- }), /*#__PURE__*/_react.default.createElement(_styles.AddressContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Header, null, /*#__PURE__*/_react.default.createElement(_styles.Text, null, /*#__PURE__*/_react.default.createElement("h1", null, addressToShow || (orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : (_orderState$options2$ = _orderState$options2.address) === null || _orderState$options2$ === void 0 ? void 0 : _orderState$options2$.address)), (orderState === null || orderState === void 0 ? void 0 : (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type) === 1 && !isCartPending && /*#__PURE__*/_react.default.createElement("span", {
96
+ }), /*#__PURE__*/_react.default.createElement(_styles.AddressContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Header, null, /*#__PURE__*/_react.default.createElement(_styles.Text, null, /*#__PURE__*/_react.default.createElement("h1", null, addressToShow || (orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : (_orderState$options$a = _orderState$options.address) === null || _orderState$options$a === void 0 ? void 0 : _orderState$options$a.address)), (orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 1 && !isCartPending && /*#__PURE__*/_react.default.createElement("span", {
111
97
  onClick: function onClick() {
112
98
  return setOpenModal(true);
113
99
  }
@@ -119,7 +105,6 @@ var AddressDetailsUI = function AddressDetailsUI(props) {
119
105
  height: "162px",
120
106
  loading: "lazy"
121
107
  }))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
122
- title: t('ADDRESSES', 'Addresses'),
123
108
  open: openModal,
124
109
  width: "70%",
125
110
  onClose: function onClose() {
@@ -132,9 +117,6 @@ var AddressDetailsUI = function AddressDetailsUI(props) {
132
117
  onCancel: function onCancel() {
133
118
  return setOpenModal(false);
134
119
  },
135
- onAccept: function onAccept() {
136
- return handleFindBusinesses();
137
- },
138
120
  userCustomerSetup: isCustomerMode && user,
139
121
  isFromCheckout: isFromCheckout,
140
122
  isCustomerMode: isCustomerMode
@@ -78,7 +78,7 @@ var inputNames = [{
78
78
  }];
79
79
 
80
80
  var AddressFormUI = function AddressFormUI(props) {
81
- var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _orderState$options6$, _props$afterComponent, _props$afterElements;
81
+ var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _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, _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _orderState$options6$, _props$afterComponent, _props$afterElements;
82
82
 
83
83
  var addressesList = props.addressesList,
84
84
  googleMapsControls = props.googleMapsControls,
@@ -111,6 +111,10 @@ var AddressFormUI = function AddressFormUI(props) {
111
111
  _useSession2 = _slicedToArray(_useSession, 1),
112
112
  auth = _useSession2[0].auth;
113
113
 
114
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
115
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
116
+ orderingTheme = _useOrderingTheme2[0];
117
+
114
118
  var _useState = (0, _react.useState)({
115
119
  selectedFromAutocomplete: true
116
120
  }),
@@ -150,6 +154,8 @@ var AddressFormUI = function AddressFormUI(props) {
150
154
  locationChange = _useState12[0],
151
155
  setLocationChange = _useState12[1];
152
156
 
157
+ var isHideMap = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === 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_form) === 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.map) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.hidden;
158
+ var isHideIcons = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.header) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.address_form) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.components) === null || _orderingTheme$theme6 === void 0 ? void 0 : (_orderingTheme$theme7 = _orderingTheme$theme6.icons) === null || _orderingTheme$theme7 === void 0 ? void 0 : _orderingTheme$theme7.hidden;
153
159
  var maxLimitLocation = configState === null || configState === void 0 ? void 0 : (_configState$configs = configState.configs) === null || _configState$configs === void 0 ? void 0 : (_configState$configs$ = _configState$configs.meters_to_change_address) === null || _configState$configs$ === void 0 ? void 0 : _configState$configs$.value;
154
160
  var googleMapsApiKey = configState === null || configState === void 0 ? void 0 : (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 ? void 0 : (_configState$configs3 = _configState$configs2.google_maps_api_key) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value;
155
161
  var isLocationRequired = ((_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 ? void 0 : (_configState$configs5 = _configState$configs4.google_autocomplete_selection_required) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) === '1' || ((_configState$configs6 = configState.configs) === null || _configState$configs6 === void 0 ? void 0 : (_configState$configs7 = _configState$configs6.google_autocomplete_selection_required) === null || _configState$configs7 === void 0 ? void 0 : _configState$configs7.value) === 'true';
@@ -396,6 +402,12 @@ var AddressFormUI = function AddressFormUI(props) {
396
402
  });
397
403
  };
398
404
 
405
+ var showFieldWithTheme = function showFieldWithTheme(name) {
406
+ var _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13;
407
+
408
+ return !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme8 = orderingTheme.theme) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.header) !== null && _orderingTheme$theme9 !== void 0 && (_orderingTheme$theme10 = _orderingTheme$theme9.components) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.address_form) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12[name]) !== null && _orderingTheme$theme13 !== void 0 && _orderingTheme$theme13.hidden);
409
+ };
410
+
399
411
  (0, _react.useEffect)(function () {
400
412
  var _formState$result, _ref5, _formState$changes$ad3, _formState$changes9, _addressState$address8, _ref6, _formState$changes$ad4, _formState$changes10, _addressState$address9;
401
413
 
@@ -577,7 +589,7 @@ var AddressFormUI = function AddressFormUI(props) {
577
589
  onError: setMapErrors,
578
590
  IconButton: _reactBootstrapIcons.GeoAlt,
579
591
  IconLoadingButton: _CgSearchLoading.default
580
- })), locationChange && ((addressState === null || addressState === void 0 ? void 0 : (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 ? void 0 : (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
592
+ })), !isHideMap && locationChange && ((addressState === null || addressState === void 0 ? void 0 : (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 ? void 0 : (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
581
593
  apiKey: googleMapsApiKey,
582
594
  location: locationChange,
583
595
  fixedLocation: !isEditing ? firstLocationNoEdit.value : null,
@@ -587,7 +599,7 @@ var AddressFormUI = function AddressFormUI(props) {
587
599
  maxLimitLocation: parseInt(maxLimitLocation, 10)
588
600
  }))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
589
601
  key: field.name
590
- }, field.name !== 'address_notes' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
602
+ }, (isRequiredField(field.name) || showFieldWithTheme(field.name)) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, field.name !== 'address_notes' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
591
603
  className: field.name,
592
604
  placeholder: t(field.name.toUpperCase(), field.code),
593
605
  value: (_ref9 = (_formState$changes$fi2 = (_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27[field.name]) !== null && _formState$changes$fi2 !== void 0 ? _formState$changes$fi2 : (_addressState$address13 = addressState.address) === null || _addressState$address13 === void 0 ? void 0 : _addressState$address13[field.name]) !== null && _ref9 !== void 0 ? _ref9 : '',
@@ -603,7 +615,7 @@ var AddressFormUI = function AddressFormUI(props) {
603
615
  autoComplete: "new-field",
604
616
  maxLength: 30
605
617
  }) : /*#__PURE__*/_react.default.createElement(_Inputs.TextArea, {
606
- rows: 4,
618
+ rows: 3,
607
619
  placeholder: t('ADDRESS_NOTES', 'Address Notes'),
608
620
  value: (_ref10 = (_formState$changes$ad5 = (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.address_notes) !== null && _formState$changes$ad5 !== void 0 ? _formState$changes$ad5 : addressState.address.address_notes) !== null && _ref10 !== void 0 ? _ref10 : '',
609
621
  onChange: function onChange(e) {
@@ -617,12 +629,12 @@ var AddressFormUI = function AddressFormUI(props) {
617
629
  },
618
630
  autoComplete: "new-field",
619
631
  maxLength: 250
620
- })));
632
+ }))));
621
633
  }), !formState.loading && formState.error && /*#__PURE__*/_react.default.createElement("p", {
622
634
  style: {
623
635
  color: '#c10000'
624
636
  }
625
- }, formState.error), /*#__PURE__*/_react.default.createElement(_styles.AddressTagSection, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
637
+ }, formState.error), !isHideIcons && /*#__PURE__*/_react.default.createElement(_styles.AddressTagSection, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
626
638
  className: addressTag === 'home' ? 'active' : '',
627
639
  bgtransparent: true,
628
640
  type: "button",
@@ -65,7 +65,7 @@ var AddressTagSection = _styledComponents.default.div(_templateObject10 || (_tem
65
65
 
66
66
  exports.AddressTagSection = AddressTagSection;
67
67
 
68
- var WrapperMap = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 100%;\n height: 250px;\n > div {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n border-radius: 15px;\n }\n"])));
68
+ var WrapperMap = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 100%;\n height: 170px;\n > div {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n border-radius: 15px;\n }\n"])));
69
69
 
70
70
  exports.WrapperMap = WrapperMap;
71
71
 
@@ -15,6 +15,8 @@ var _RiRadioButtonFill = _interopRequireDefault(require("@meronex/icons/ri/RiRad
15
15
 
16
16
  var _MdClose = _interopRequireDefault(require("@meronex/icons/md/MdClose"));
17
17
 
18
+ var _useWindowSize2 = require("../../../../../hooks/useWindowSize");
19
+
18
20
  var _reactBootstrapIcons = require("react-bootstrap-icons");
19
21
 
20
22
  var _orderingComponentsExternal = require("ordering-components-external");
@@ -64,7 +66,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
64
66
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
65
67
 
66
68
  var AddressListUI = function AddressListUI(props) {
67
- var _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
69
+ 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, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
68
70
 
69
71
  var actionStatus = props.actionStatus,
70
72
  addressList = props.addressList,
@@ -81,7 +83,6 @@ var AddressListUI = function AddressListUI(props) {
81
83
  isCustomerMode = props.isCustomerMode,
82
84
  isFromCheckout = props.isFromCheckout,
83
85
  setIsAddressFormOpen = props.setIsAddressFormOpen,
84
- isHeader = props.isHeader,
85
86
  isProfile = props.isProfile;
86
87
 
87
88
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
@@ -117,15 +118,27 @@ var AddressListUI = function AddressListUI(props) {
117
118
 
118
119
  var theme = (0, _styledComponents.useTheme)();
119
120
 
121
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
122
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
123
+ orderingTheme = _useOrderingTheme2[0];
124
+
120
125
  var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
121
126
  _useCustomer2 = _slicedToArray(_useCustomer, 1),
122
127
  user = _useCustomer2[0].user;
123
128
 
129
+ var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),
130
+ width = _useWindowSize.width;
131
+
132
+ var isCompletedLayout = width < 769 || isProfile;
124
133
  var uniqueAddressesList = addressList.addresses && addressList.addresses.filter(function (address, i, self) {
125
134
  return i === self.findIndex(function (obj) {
126
135
  return address.address === obj.address && address.address_notes === obj.address_notes && address.zipcode === obj.zipcode && address.internal_number === obj.internal_number;
127
136
  });
128
137
  }) || [];
138
+ var showAddress = !(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.address_list) !== 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.address) !== null && _orderingTheme$theme$5 !== void 0 && _orderingTheme$theme$5.hidden);
139
+ var showIcons = !(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.address_list) !== null && _orderingTheme$theme5 !== void 0 && (_orderingTheme$theme6 = _orderingTheme$theme5.components) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.icons) !== null && _orderingTheme$theme7 !== void 0 && _orderingTheme$theme7.hidden);
140
+ var showZipcode = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme8 = orderingTheme.theme) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.profile) !== null && _orderingTheme$theme9 !== void 0 && (_orderingTheme$theme10 = _orderingTheme$theme9.components) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.address_list) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12.zipcode) !== null && _orderingTheme$theme13 !== void 0 && _orderingTheme$theme13.hidden);
141
+ var showInternalNumber = !(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.address_list) !== null && _orderingTheme$theme17 !== void 0 && (_orderingTheme$theme18 = _orderingTheme$theme17.components) !== null && _orderingTheme$theme18 !== void 0 && (_orderingTheme$theme19 = _orderingTheme$theme18.internal_number) !== null && _orderingTheme$theme19 !== void 0 && _orderingTheme$theme19.hidden);
129
142
 
130
143
  var openAddress = function openAddress(address) {
131
144
  setCurAddress(address);
@@ -265,7 +278,7 @@ var AddressListUI = function AddressListUI(props) {
265
278
  var AddressListContent = function AddressListContent() {
266
279
  var _addressList$addresse, _addressList$addresse2, _orderState$options6, _addressList$addresse3, _theme$images, _theme$images$general, _addressList$error$, _orderState$options7;
267
280
 
268
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!isPopover || !addressOpen) && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
281
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!isPopover || !addressOpen) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isCompletedLayout && /*#__PURE__*/_react.default.createElement(_styles.TitleAddress, null, t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
269
282
  className: "add",
270
283
  outline: true,
271
284
  color: isEnableContinueButton && (addressList === null || addressList === void 0 ? void 0 : (_addressList$addresse = addressList.addresses) === null || _addressList$addresse === void 0 ? void 0 : _addressList$addresse.length) > 0 ? 'secondary' : 'primary',
@@ -273,11 +286,11 @@ var AddressListUI = function AddressListUI(props) {
273
286
  return openAddress({});
274
287
  },
275
288
  disabled: (orderState === null || orderState === void 0 ? void 0 : orderState.loading) || actionStatus.loading,
276
- style: !isCustomerMode ? {
289
+ style: isCompletedLayout ? {
277
290
  flex: 1,
278
291
  width: 'fit-content'
279
292
  } : {}
280
- }, orderState !== null && orderState !== void 0 && orderState.loading || actionStatus.loading ? t('LOADING', 'Loading') : t('ADD_NEW_ADDRESS', 'Add New Address')), isPopover && addressOpen && /*#__PURE__*/_react.default.createElement(_AddressForm.AddressForm, {
293
+ }, orderState !== null && orderState !== void 0 && orderState.loading || actionStatus.loading ? t('LOADING', 'Loading') : t('ADD_NEW_ADDRESS', 'Add New Address'))), isPopover && addressOpen && /*#__PURE__*/_react.default.createElement(_AddressForm.AddressForm, {
281
294
  userId: userId,
282
295
  addressesList: addressList === null || addressList === void 0 ? void 0 : addressList.addresses,
283
296
  useValidationFileds: true,
@@ -301,11 +314,11 @@ var AddressListUI = function AddressListUI(props) {
301
314
  className: "radio"
302
315
  }, checkAddress(address) ? /*#__PURE__*/_react.default.createElement(_RiRadioButtonFill.default, {
303
316
  className: "address-checked"
304
- }) : /*#__PURE__*/_react.default.createElement(_IosRadioButtonOff.default, null)), /*#__PURE__*/_react.default.createElement("span", {
317
+ }) : /*#__PURE__*/_react.default.createElement(_IosRadioButtonOff.default, null)), showIcons && /*#__PURE__*/_react.default.createElement("span", {
305
318
  className: checkAddress(address) ? 'selected-tag tag' : 'tag'
306
- }, (address === null || address === void 0 ? void 0 : address.tag) === 'home' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.House, null), (address === null || address === void 0 ? void 0 : address.tag) === 'office' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Building, null), (address === null || address === void 0 ? void 0 : address.tag) === 'favorite' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Heart, null), (address === null || address === void 0 ? void 0 : address.tag) === 'other' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.PlusLg, null)), /*#__PURE__*/_react.default.createElement("div", {
319
+ }, (address === null || address === void 0 ? void 0 : address.tag) === 'home' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.House, null), (address === null || address === void 0 ? void 0 : address.tag) === 'office' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Building, null), (address === null || address === void 0 ? void 0 : address.tag) === 'favorite' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Heart, null), (address === null || address === void 0 ? void 0 : address.tag) === 'other' && /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.PlusLg, null)), (showAddress || showInternalNumber || showZipcode) && /*#__PURE__*/_react.default.createElement("div", {
307
320
  className: "address"
308
- }, /*#__PURE__*/_react.default.createElement("span", null, address.address), /*#__PURE__*/_react.default.createElement("span", null, address.internal_number, " ", address.zipcode))), /*#__PURE__*/_react.default.createElement(_styles.AddressItemActions, {
321
+ }, showAddress && /*#__PURE__*/_react.default.createElement("span", null, address.address), /*#__PURE__*/_react.default.createElement("span", null, showInternalNumber && address.internal_number, " ", showZipcode && address.zipcode))), /*#__PURE__*/_react.default.createElement(_styles.AddressItemActions, {
309
322
  className: "form"
310
323
  }, /*#__PURE__*/_react.default.createElement("a", {
311
324
  className: actionStatus.loading ? 'disabled' : '',
@@ -357,10 +370,10 @@ var AddressListUI = function AddressListUI(props) {
357
370
  }), /*#__PURE__*/_react.default.createElement(_styles.AddressListContainer, {
358
371
  id: "address_control",
359
372
  isLoading: (actionStatus === null || actionStatus === void 0 ? void 0 : actionStatus.loading) || (orderState === null || orderState === void 0 ? void 0 : orderState.loading),
360
- isCustomerMode: isCustomerMode
361
- }, isCustomerMode ? /*#__PURE__*/_react.default.createElement(AddressListCallcenterLayout, null, /*#__PURE__*/_react.default.createElement(AddressListContent, null)) : /*#__PURE__*/_react.default.createElement(AddressListContent, null), !isPopover && /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
373
+ isCompletedLayout: isCompletedLayout
374
+ }, !isCompletedLayout ? /*#__PURE__*/_react.default.createElement(AddressListCallcenterLayout, null, /*#__PURE__*/_react.default.createElement(AddressListContent, null)) : /*#__PURE__*/_react.default.createElement(AddressListContent, null), !isPopover && addressOpen && /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
362
375
  title: t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?'),
363
- open: !isPopover && addressOpen && !isCustomerMode,
376
+ open: !isPopover && addressOpen && isCompletedLayout,
364
377
  onClose: function onClose() {
365
378
  return handleCloseAddressForm();
366
379
  }
@@ -5,13 +5,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.WrappNotAddresses = exports.TitleFormContainer = exports.List = exports.FormActions = exports.ContinueButton = exports.CloseIcon = exports.AddressTitle = exports.AddressListUl = exports.AddressListContainer = exports.AddressItemActions = exports.AddressItem = exports.AddressHalfContainer = exports.AddressFormContainer = void 0;
8
+ exports.WrappNotAddresses = exports.TitleFormContainer = exports.TitleAddress = exports.List = exports.FormActions = exports.ContinueButton = exports.CloseIcon = exports.AddressTitle = exports.AddressListUl = exports.AddressListContainer = exports.AddressItemActions = exports.AddressItem = exports.AddressHalfContainer = exports.AddressFormContainer = void 0;
9
9
 
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
12
12
  var _polished = require("polished");
13
13
 
14
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
14
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
15
15
 
16
16
  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
17
 
@@ -20,14 +20,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
20
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
21
 
22
22
  var AddressListContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0px 10px;\n ", "\n\n ", "\n\n button.add {\n height: 50px;\n ", "\n }\n"])), function (_ref) {
23
- var isCustomerMode = _ref.isCustomerMode;
24
- return isCustomerMode && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
23
+ var isProfile = _ref.isProfile;
24
+ return !isProfile && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
25
25
  }, function (_ref2) {
26
26
  var isLoading = _ref2.isLoading;
27
27
  return isLoading && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n pointer-events: none;\n "])));
28
28
  }, function (_ref3) {
29
- var isCustomerMode = _ref3.isCustomerMode;
30
- return isCustomerMode && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: 100px;\n "])));
29
+ var isProfile = _ref3.isProfile;
30
+ return !isProfile && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: 100px;\n "])));
31
31
  });
32
32
 
33
33
  exports.AddressListContainer = AddressListContainer;
@@ -121,4 +121,8 @@ exports.CloseIcon = CloseIcon;
121
121
 
122
122
  var TitleFormContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex; \n align-items: center;\n h1 {\n margin: auto;\n font-size: 24px;\n }\n"])));
123
123
 
124
- exports.TitleFormContainer = TitleFormContainer;
124
+ exports.TitleFormContainer = TitleFormContainer;
125
+
126
+ var TitleAddress = _styledComponents.default.h1(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n text-align: center;\n margin: auto;\n font-size: 24px;\n margin-bottom: 20px;\n"])));
127
+
128
+ exports.TitleAddress = TitleAddress;
@@ -46,7 +46,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
46
46
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
47
 
48
48
  var BusinessInformationUI = function BusinessInformationUI(props) {
49
- var _props$beforeElements, _props$beforeComponen, _configs$google_maps_, _props$afterComponent, _props$afterElements;
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, _props$beforeElements, _props$beforeComponen, _configs$google_maps_, _props$afterComponent, _props$afterElements;
50
50
 
51
51
  var business = props.business,
52
52
  businessLocation = props.businessLocation,
@@ -75,6 +75,13 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
75
75
  image = _useState4[0],
76
76
  setImage = _useState4[1];
77
77
 
78
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
79
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
80
+ orderingTheme = _useOrderingTheme2[0];
81
+
82
+ var showLocation = !(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.information) !== 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.location) !== null && _orderingTheme$theme$5 !== void 0 && _orderingTheme$theme$5.hidden);
83
+ var showSchedule = !(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.information) !== null && _orderingTheme$theme5 !== void 0 && (_orderingTheme$theme6 = _orderingTheme$theme5.components) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.schedule) !== null && _orderingTheme$theme7 !== void 0 && _orderingTheme$theme7.hidden);
84
+
78
85
  var scheduleFormatted = function scheduleFormatted(_ref) {
79
86
  var hour = _ref.hour,
80
87
  minute = _ref.minute;
@@ -103,17 +110,17 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
103
110
  onClick: function onClick() {
104
111
  return onClose(false);
105
112
  }
106
- })), /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessTitle, null, business === null || business === void 0 ? void 0 : business.name), business.about && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_ABOUT', 'Business short description')), /*#__PURE__*/_react.default.createElement(_styles.Description, null, business.about)), business.description && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_DESCRIPTION', 'Business description')), /*#__PURE__*/_react.default.createElement(_styles.Description, null, business.description)), businessLocation.location && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_LOCATION', 'Business location')), businessLocation.location && /*#__PURE__*/_react.default.createElement(_styles.Map, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
113
+ })), /*#__PURE__*/_react.default.createElement(_styles.BusinessContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessTitle, null, business === null || business === void 0 ? void 0 : business.name), business.about && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_ABOUT', 'Business short description')), /*#__PURE__*/_react.default.createElement(_styles.Description, null, business.about)), business.description && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_DESCRIPTION', 'Business description')), /*#__PURE__*/_react.default.createElement(_styles.Description, null, business.description)), showLocation && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, businessLocation.location && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('BUSINESS_LOCATION', 'Business location')), businessLocation.location && /*#__PURE__*/_react.default.createElement(_styles.Map, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
107
114
  apiKey: configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value,
108
115
  location: businessLocation.location,
109
116
  mapControls: businessLocation.googleMapsControls || business.googleMapsControls
110
- }))), (business === null || business === void 0 ? void 0 : business.address) && /*#__PURE__*/_react.default.createElement(_styles.BusinessAddress, null, business === null || business === void 0 ? void 0 : business.address), /*#__PURE__*/_react.default.createElement(_styles.Divider, null), (businessSchedule === null || businessSchedule === void 0 ? void 0 : businessSchedule.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('OPENING_TIME', 'Opening time')), /*#__PURE__*/_react.default.createElement(_styles.ScheduleSection, null, /*#__PURE__*/_react.default.createElement(_styles.ScheduleContainer, null, businessSchedule.map(function (schedule, i) {
117
+ }))), (business === null || business === void 0 ? void 0 : business.address) && /*#__PURE__*/_react.default.createElement(_styles.BusinessAddress, null, business === null || business === void 0 ? void 0 : business.address), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), (businessSchedule === null || businessSchedule === void 0 ? void 0 : businessSchedule.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showSchedule && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('OPENING_TIME', 'Opening time')), /*#__PURE__*/_react.default.createElement(_styles.ScheduleSection, null, /*#__PURE__*/_react.default.createElement(_styles.ScheduleContainer, null, businessSchedule.map(function (schedule, i) {
111
118
  return /*#__PURE__*/_react.default.createElement(_styles.ScheduleBlock, {
112
119
  key: i
113
120
  }, /*#__PURE__*/_react.default.createElement("h4", null, daysOfWeek[i]), schedule.enabled ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, scheduleFormatted(schedule.lapses[0].open)), /*#__PURE__*/_react.default.createElement("div", null, "-"), /*#__PURE__*/_react.default.createElement("p", null, scheduleFormatted(schedule.lapses[0].close))) : /*#__PURE__*/_react.default.createElement("p", {
114
121
  className: "close"
115
122
  }, t('CLOSED', 'Closed')));
116
- }))), /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_styles.DeliveryInfo, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h5", null, t('DELIVERY_TIME', 'Delivery Time'), ": ", (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)), /*#__PURE__*/_react.default.createElement("h5", null, t('PICKUP_TIME', 'Pickup Time'), ": ", (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time)))), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), (businessVideos === null || businessVideos === void 0 ? void 0 : businessVideos.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.BusinessMediaContent, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('VIDEOS', 'Videos')), /*#__PURE__*/_react.default.createElement("div", null, businessVideos.map(function (video, i) {
123
+ }))), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), /*#__PURE__*/_react.default.createElement(_styles.DeliveryInfo, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h5", null, t('DELIVERY_TIME', 'Delivery Time'), ": ", (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)), /*#__PURE__*/_react.default.createElement("h5", null, t('PICKUP_TIME', 'Pickup Time'), ": ", (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time)))), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), (businessVideos === null || businessVideos === void 0 ? void 0 : businessVideos.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.BusinessMediaContent, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('VIDEOS', 'Videos')), /*#__PURE__*/_react.default.createElement("div", null, businessVideos.map(function (video, i) {
117
124
  return /*#__PURE__*/_react.default.createElement("iframe", {
118
125
  key: i,
119
126
  src: (0, _utils.formatUrlVideo)(video.video),