ordering-ui-react-native 0.12.17 → 0.12.18

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 (1457) hide show
  1. package/README.md +3 -3
  2. package/package.json +148 -148
  3. package/src/AppContainer.tsx +96 -96
  4. package/src/DeliveryApp.tsx +163 -163
  5. package/src/assets/json/order.json +204 -204
  6. package/src/assets/json/orders.json +3591 -3591
  7. package/src/components/Account/index.tsx +200 -200
  8. package/src/components/Account/styles.tsx +21 -21
  9. package/src/components/ActiveOrders/index.tsx +154 -154
  10. package/src/components/ActiveOrders/styles.tsx +51 -51
  11. package/src/components/AddressDetails/index.tsx +74 -74
  12. package/src/components/AddressDetails/styles.tsx +26 -26
  13. package/src/components/AddressForm/index.tsx +719 -719
  14. package/src/components/AddressForm/styles.tsx +29 -29
  15. package/src/components/AddressList/index.tsx +336 -336
  16. package/src/components/AddressList/styles.tsx +20 -20
  17. package/src/components/Analytics/index.tsx +83 -83
  18. package/src/components/BusinessBasicInformation/index.tsx +259 -259
  19. package/src/components/BusinessBasicInformation/styles.tsx +38 -38
  20. package/src/components/BusinessController/index.tsx +219 -219
  21. package/src/components/BusinessController/styles.tsx +52 -52
  22. package/src/components/BusinessInformation/index.tsx +113 -113
  23. package/src/components/BusinessInformation/styles.tsx +37 -37
  24. package/src/components/BusinessItemAccordion/index.tsx +148 -148
  25. package/src/components/BusinessItemAccordion/styles.tsx +61 -61
  26. package/src/components/BusinessProductsCategories/index.tsx +73 -73
  27. package/src/components/BusinessProductsCategories/styles.tsx +7 -7
  28. package/src/components/BusinessProductsList/index.tsx +149 -149
  29. package/src/components/BusinessProductsList/styles.tsx +13 -13
  30. package/src/components/BusinessProductsListing/index.tsx +333 -333
  31. package/src/components/BusinessProductsListing/styles.tsx +33 -33
  32. package/src/components/BusinessReviews/index.tsx +121 -121
  33. package/src/components/BusinessReviews/styles.tsx +33 -33
  34. package/src/components/BusinessTypeFilter/index.tsx +201 -201
  35. package/src/components/BusinessTypeFilter/styles.tsx +32 -32
  36. package/src/components/BusinessesListing/index.tsx +222 -222
  37. package/src/components/BusinessesListing/styles.tsx +50 -50
  38. package/src/components/Cart/index.tsx +279 -279
  39. package/src/components/Cart/styles.tsx +28 -28
  40. package/src/components/CartContent/index.tsx +50 -50
  41. package/src/components/CartContent/styles.tsx +19 -19
  42. package/src/components/Checkout/index.tsx +820 -820
  43. package/src/components/Checkout/styles.tsx +99 -99
  44. package/src/components/CouponControl/index.tsx +133 -133
  45. package/src/components/CouponControl/styles.tsx +22 -22
  46. package/src/components/DriverTips/index.tsx +153 -153
  47. package/src/components/DriverTips/styles.tsx +62 -62
  48. package/src/components/FacebookLogin/index.tsx +123 -123
  49. package/src/components/FacebookLogin/styles.tsx +23 -23
  50. package/src/components/FloatingButton/index.tsx +74 -74
  51. package/src/components/FloatingButton/styles.tsx +32 -32
  52. package/src/components/ForgotPasswordForm/index.tsx +150 -150
  53. package/src/components/ForgotPasswordForm/styles.tsx +11 -11
  54. package/src/components/GoogleLogin/index.tsx +133 -133
  55. package/src/components/GoogleLogin/styles.tsx +23 -23
  56. package/src/components/GoogleMap/index.tsx +247 -247
  57. package/src/components/Help/index.tsx +54 -54
  58. package/src/components/Help/styles.tsx +11 -11
  59. package/src/components/HelpAccountAndPayment/index.tsx +67 -67
  60. package/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  61. package/src/components/HelpGuide/index.tsx +66 -66
  62. package/src/components/HelpGuide/styles.tsx +6 -6
  63. package/src/components/HelpOrder/index.tsx +78 -78
  64. package/src/components/HelpOrder/styles.tsx +5 -5
  65. package/src/components/Home/index.tsx +116 -116
  66. package/src/components/Home/styles.tsx +18 -18
  67. package/src/components/LanguageSelector/index.tsx +149 -149
  68. package/src/components/LanguageSelector/styles.tsx +23 -23
  69. package/src/components/LastOrders/index.tsx +104 -104
  70. package/src/components/LastOrders/styles.tsx +17 -17
  71. package/src/components/LoginForm/index.tsx +425 -425
  72. package/src/components/LoginForm/styles.tsx +69 -69
  73. package/src/components/LogoutButton/index.tsx +60 -60
  74. package/src/components/Messages/index.tsx +375 -375
  75. package/src/components/Messages/styles.tsx +21 -21
  76. package/src/components/MomentOption/index.tsx +236 -236
  77. package/src/components/MomentOption/styles.tsx +61 -61
  78. package/src/components/NavBar/index.tsx +122 -122
  79. package/src/components/NotFoundSource/index.tsx +55 -55
  80. package/src/components/NotFoundSource/styles.tsx +16 -16
  81. package/src/components/OrderCreating/index.tsx +178 -178
  82. package/src/components/OrderCreating/styles.tsx +22 -22
  83. package/src/components/OrderDetails/index.tsx +564 -564
  84. package/src/components/OrderDetails/styles.tsx +121 -121
  85. package/src/components/OrderSuccess/index.tsx +89 -89
  86. package/src/components/OrderSuccess/styles.tsx +22 -22
  87. package/src/components/OrderSummary/index.tsx +200 -200
  88. package/src/components/OrderSummary/styles.tsx +31 -31
  89. package/src/components/OrderTypeSelector/index.tsx +159 -159
  90. package/src/components/OrderTypeSelector/styles.tsx +22 -22
  91. package/src/components/OrdersOption/index.tsx +228 -228
  92. package/src/components/OrdersOption/styles.tsx +5 -5
  93. package/src/components/PaymentOptionCash/index.tsx +102 -102
  94. package/src/components/PaymentOptionCash/styles.tsx +18 -18
  95. package/src/components/PaymentOptionStripe/index.tsx +244 -244
  96. package/src/components/PaymentOptionStripe/styles.tsx +62 -62
  97. package/src/components/PaymentOptions/index.tsx +434 -434
  98. package/src/components/PaymentOptions/styles.tsx +52 -52
  99. package/src/components/PhoneInputNumber/index.tsx +111 -111
  100. package/src/components/PhoneInputNumber/styles.tsx +3 -3
  101. package/src/components/PreviousOrders/index.tsx +167 -167
  102. package/src/components/PreviousOrders/styles.tsx +34 -34
  103. package/src/components/ProductForm/index.tsx +375 -375
  104. package/src/components/ProductForm/styles.tsx +84 -84
  105. package/src/components/ProductIngredient/index.tsx +44 -44
  106. package/src/components/ProductIngredient/styles.tsx +7 -7
  107. package/src/components/ProductItemAccordion/index.tsx +315 -315
  108. package/src/components/ProductItemAccordion/styles.tsx +81 -81
  109. package/src/components/ProductOption/index.tsx +49 -49
  110. package/src/components/ProductOption/styles.tsx +14 -14
  111. package/src/components/ProductOptionSubOption/index.tsx +146 -146
  112. package/src/components/ProductOptionSubOption/styles.tsx +33 -33
  113. package/src/components/ReviewDriver/index.tsx +313 -313
  114. package/src/components/ReviewDriver/styles.tsx +38 -38
  115. package/src/components/ReviewOrder/index.tsx +338 -338
  116. package/src/components/ReviewOrder/styles.tsx +44 -44
  117. package/src/components/ReviewProducts/index.tsx +113 -113
  118. package/src/components/ReviewProducts/styles.tsx +16 -16
  119. package/src/components/SearchBar/index.tsx +99 -99
  120. package/src/components/ShareComponent/index.tsx +32 -32
  121. package/src/components/SignupForm/index.tsx +575 -575
  122. package/src/components/SignupForm/styles.tsx +27 -27
  123. package/src/components/SingleProductCard/index.tsx +89 -89
  124. package/src/components/SingleProductCard/styles.tsx +24 -24
  125. package/src/components/SingleProductReview/index.tsx +166 -166
  126. package/src/components/SingleProductReview/styles.tsx +26 -26
  127. package/src/components/StripeCardForm/index.tsx +97 -97
  128. package/src/components/StripeCardForm/naked.tsx +128 -128
  129. package/src/components/StripeCardForm/styles.tsx +27 -27
  130. package/src/components/StripeCardsList/index.tsx +158 -158
  131. package/src/components/StripeElementsForm/index.tsx +188 -188
  132. package/src/components/StripeElementsForm/naked.tsx +90 -90
  133. package/src/components/StripeElementsForm/styles.tsx +9 -9
  134. package/src/components/StripeRedirectForm/index.tsx +159 -159
  135. package/src/components/StripeRedirectForm/styles.tsx +23 -23
  136. package/src/components/UpsellingProducts/index.tsx +185 -185
  137. package/src/components/UpsellingProducts/styles.tsx +31 -31
  138. package/src/components/UserDetails/index.tsx +139 -139
  139. package/src/components/UserDetails/styles.tsx +21 -21
  140. package/src/components/UserFormDetails/index.tsx +304 -304
  141. package/src/components/UserFormDetails/styles.tsx +38 -38
  142. package/src/components/UserProfileForm/index.tsx +106 -106
  143. package/src/components/UserProfileForm/styles.tsx +37 -37
  144. package/src/components/VerifyPhone/index.tsx +187 -187
  145. package/src/components/VerifyPhone/styles.tsx +43 -43
  146. package/src/components/shared/OAlert.tsx +48 -48
  147. package/src/components/shared/OBottomPopup.tsx +70 -70
  148. package/src/components/shared/OButton.tsx +134 -134
  149. package/src/components/shared/ODropDown.tsx +167 -167
  150. package/src/components/shared/OIcon.tsx +52 -52
  151. package/src/components/shared/OIconButton.tsx +134 -134
  152. package/src/components/shared/OInput.tsx +122 -122
  153. package/src/components/shared/OModal.tsx +168 -168
  154. package/src/components/shared/OText.tsx +52 -52
  155. package/src/components/shared/OToast.tsx +94 -94
  156. package/src/components/shared/index.tsx +23 -23
  157. package/src/config/constants.tsx +73 -73
  158. package/src/config.json +14 -14
  159. package/src/context/Theme/index.tsx +25 -25
  160. package/src/hooks/DeviceOrientation.tsx +40 -40
  161. package/src/index.tsx +191 -191
  162. package/src/layouts/Container.tsx +27 -27
  163. package/src/layouts/FloatingBottomContainer.tsx +26 -26
  164. package/src/layouts/SafeAreaContainer.tsx +6 -6
  165. package/src/navigators/BottomNavigator.tsx +117 -117
  166. package/src/navigators/CheckoutNavigator.tsx +60 -60
  167. package/src/navigators/HomeNavigator.tsx +185 -185
  168. package/src/navigators/NavigationRef.tsx +7 -7
  169. package/src/navigators/RootNavigator.tsx +269 -269
  170. package/src/pages/Account.tsx +34 -34
  171. package/src/pages/AddressForm.tsx +62 -62
  172. package/src/pages/AddressList.tsx +24 -24
  173. package/src/pages/BusinessProductsList.tsx +80 -80
  174. package/src/pages/BusinessesListing.tsx +42 -42
  175. package/src/pages/CartList.tsx +49 -49
  176. package/src/pages/Checkout.tsx +101 -101
  177. package/src/pages/ForgotPassword.tsx +24 -24
  178. package/src/pages/Help.tsx +23 -23
  179. package/src/pages/HelpAccountAndPayment.tsx +23 -23
  180. package/src/pages/HelpGuide.tsx +23 -23
  181. package/src/pages/HelpOrder.tsx +23 -23
  182. package/src/pages/Home.tsx +36 -36
  183. package/src/pages/IntroductoryTutorial.tsx +170 -170
  184. package/src/pages/Login.tsx +47 -47
  185. package/src/pages/MomentOption.tsx +30 -30
  186. package/src/pages/MyOrders.tsx +40 -40
  187. package/src/pages/NetworkError.tsx +24 -24
  188. package/src/pages/NotFound.tsx +22 -22
  189. package/src/pages/OrderDetails.tsx +25 -25
  190. package/src/pages/Profile.tsx +36 -36
  191. package/src/pages/ReviewDriver.tsx +30 -30
  192. package/src/pages/ReviewOrder.tsx +32 -32
  193. package/src/pages/ReviewProducts.tsx +30 -30
  194. package/src/pages/Signup.tsx +53 -53
  195. package/src/pages/SpinnerLoader.tsx +10 -10
  196. package/src/pages/Splash.tsx +21 -21
  197. package/src/providers/AlertProvider.tsx +43 -43
  198. package/src/providers/StoreUtil.tsx +54 -54
  199. package/src/theme.json +133 -133
  200. package/src/types/@stripe/stripe-react-native/index.d.ts +1 -1
  201. package/src/types/index.tsx +467 -467
  202. package/src/types/ordering-api-sdk/index.d.ts +1 -1
  203. package/src/types/ordering-components/index.d.ts +1 -1
  204. package/src/types/react-hook-form/index.d.ts +1 -1
  205. package/src/types/react-native-background-timer/index.d.ts +1 -1
  206. package/src/types/react-native-country-picker-modal/index.d.ts +1 -1
  207. package/src/types/react-native-credit-card-input/index.d.ts +1 -1
  208. package/src/types/react-native-fbsdk/index.d.ts +1 -1
  209. package/src/types/react-native-gesture-handler/index.d.ts +1 -1
  210. package/src/types/react-native-gifted-chat/index.d.ts +1 -1
  211. package/src/types/react-native-image-picker/index.d.ts +1 -1
  212. package/src/types/react-native-restart/index.d.ts +1 -1
  213. package/src/types/styled-components/index.d.ts +1 -1
  214. package/src/utils/index.tsx +164 -164
  215. package/themes/business/.prettierrc.js +9 -9
  216. package/themes/business/index.tsx +119 -119
  217. package/themes/business/src/assets/json/order.json +204 -204
  218. package/themes/business/src/assets/json/orders.json +3591 -3591
  219. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +401 -389
  220. package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +36 -36
  221. package/themes/business/src/components/BusinessController/index.tsx +155 -155
  222. package/themes/business/src/components/BusinessController/styles.tsx +19 -19
  223. package/themes/business/src/components/Chat/index.tsx +1152 -1152
  224. package/themes/business/src/components/Chat/styles.tsx +12 -12
  225. package/themes/business/src/components/Contacts/index.tsx +299 -299
  226. package/themes/business/src/components/Contacts/styles.tsx +42 -42
  227. package/themes/business/src/components/DriverMap/index.tsx +525 -525
  228. package/themes/business/src/components/FloatingButton/index.tsx +141 -141
  229. package/themes/business/src/components/FloatingButton/styles.tsx +35 -35
  230. package/themes/business/src/components/ForgotPasswordForm/index.tsx +204 -204
  231. package/themes/business/src/components/ForgotPasswordForm/styles.tsx +11 -11
  232. package/themes/business/src/components/GoogleMap/index.tsx +347 -347
  233. package/themes/business/src/components/Home/index.tsx +111 -111
  234. package/themes/business/src/components/Home/styles.tsx +27 -27
  235. package/themes/business/src/components/LanguageSelector/index.tsx +124 -124
  236. package/themes/business/src/components/LanguageSelector/lang_country.json +152 -152
  237. package/themes/business/src/components/LanguageSelector/styles.tsx +17 -17
  238. package/themes/business/src/components/LoginForm/index.tsx +663 -663
  239. package/themes/business/src/components/LoginForm/styles.tsx +48 -48
  240. package/themes/business/src/components/LogoutButton/index.tsx +63 -63
  241. package/themes/business/src/components/MapView/index.tsx +317 -317
  242. package/themes/business/src/components/MessagesOption/index.tsx +337 -337
  243. package/themes/business/src/components/MessagesOption/styles.tsx +27 -27
  244. package/themes/business/src/components/NewOrderNotification/index.tsx +180 -167
  245. package/themes/business/src/components/NewOrderNotification/styles.tsx +8 -8
  246. package/themes/business/src/components/NotFoundSource/index.tsx +52 -52
  247. package/themes/business/src/components/NotFoundSource/styles.tsx +17 -17
  248. package/themes/business/src/components/OrderDetails/Delivery.tsx +3 -1
  249. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +391 -391
  250. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +148 -148
  251. package/themes/business/src/components/OrderMessage/index.tsx +344 -344
  252. package/themes/business/src/components/OrderMessage/styles.tsx +5 -5
  253. package/themes/business/src/components/OrderSummary/index.tsx +700 -700
  254. package/themes/business/src/components/OrderSummary/styles.tsx +61 -61
  255. package/themes/business/src/components/OrdersOption/index.tsx +720 -716
  256. package/themes/business/src/components/OrdersOption/styles.tsx +54 -54
  257. package/themes/business/src/components/OrdersOptionBusiness/index.tsx +51 -51
  258. package/themes/business/src/components/OrdersOptionBusiness/styles.tsx +8 -8
  259. package/themes/business/src/components/OrdersOptionCity/index.tsx +52 -52
  260. package/themes/business/src/components/OrdersOptionCity/styles.tsx +8 -8
  261. package/themes/business/src/components/OrdersOptionDate/index.tsx +52 -52
  262. package/themes/business/src/components/OrdersOptionDate/styles.tsx +8 -8
  263. package/themes/business/src/components/OrdersOptionDelivery/index.tsx +35 -35
  264. package/themes/business/src/components/OrdersOptionDelivery/styles.tsx +8 -8
  265. package/themes/business/src/components/OrdersOptionDriver/index.tsx +50 -50
  266. package/themes/business/src/components/OrdersOptionDriver/styles.tsx +8 -8
  267. package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +49 -49
  268. package/themes/business/src/components/OrdersOptionPaymethod/styles.tsx +8 -8
  269. package/themes/business/src/components/OrdersOptionStatus/index.tsx +46 -46
  270. package/themes/business/src/components/OrdersOptionStatus/styles.tsx +8 -8
  271. package/themes/business/src/components/PhoneInputNumber/index.tsx +160 -160
  272. package/themes/business/src/components/PhoneInputNumber/styles.tsx +3 -3
  273. package/themes/business/src/components/PreviousMessages/index.tsx +304 -304
  274. package/themes/business/src/components/PreviousMessages/styles.tsx +32 -32
  275. package/themes/business/src/components/PreviousOrders/index.tsx +155 -155
  276. package/themes/business/src/components/PreviousOrders/styles.tsx +31 -31
  277. package/themes/business/src/components/ProductItemAccordion/index.tsx +299 -299
  278. package/themes/business/src/components/ProductItemAccordion/styles.tsx +61 -61
  279. package/themes/business/src/components/SearchBar/index.tsx +112 -112
  280. package/themes/business/src/components/SignupForm/index.tsx +530 -530
  281. package/themes/business/src/components/SignupForm/styles.tsx +16 -16
  282. package/themes/business/src/components/StoresList/index.tsx +208 -208
  283. package/themes/business/src/components/StoresList/styles.tsx +26 -26
  284. package/themes/business/src/components/UserFormDetails/index.tsx +513 -513
  285. package/themes/business/src/components/UserFormDetails/styles.tsx +40 -40
  286. package/themes/business/src/components/UserProfileForm/index.tsx +496 -496
  287. package/themes/business/src/components/UserProfileForm/styles.tsx +36 -36
  288. package/themes/business/src/components/VerifyPhone/index.tsx +201 -201
  289. package/themes/business/src/components/VerifyPhone/styles.tsx +43 -43
  290. package/themes/business/src/components/shared/OAlert.tsx +52 -52
  291. package/themes/business/src/components/shared/OButton.tsx +149 -149
  292. package/themes/business/src/components/shared/OChatBubble.tsx +100 -100
  293. package/themes/business/src/components/shared/ODropDown.tsx +195 -195
  294. package/themes/business/src/components/shared/ODropDownCalendar.tsx +328 -328
  295. package/themes/business/src/components/shared/OFab.tsx +54 -54
  296. package/themes/business/src/components/shared/OIcon.tsx +65 -65
  297. package/themes/business/src/components/shared/OIconButton.tsx +127 -127
  298. package/themes/business/src/components/shared/OInput.tsx +144 -144
  299. package/themes/business/src/components/shared/OLink.tsx +76 -76
  300. package/themes/business/src/components/shared/OSegment.tsx +86 -86
  301. package/themes/business/src/components/shared/OText.tsx +55 -55
  302. package/themes/business/src/components/shared/OTextarea.tsx +46 -46
  303. package/themes/business/src/components/shared/OToast.tsx +92 -92
  304. package/themes/business/src/components/shared/index.tsx +27 -27
  305. package/themes/business/src/components 2/AcceptOrRejectOrder/index.tsx +389 -0
  306. package/themes/business/src/components 2/AcceptOrRejectOrder/styles.tsx +36 -0
  307. package/themes/business/src/components 2/BusinessController/index.tsx +155 -0
  308. package/themes/business/src/components 2/BusinessController/styles.tsx +19 -0
  309. package/themes/business/src/components 2/Chat/index.tsx +1152 -0
  310. package/themes/business/src/components 2/Chat/styles.tsx +12 -0
  311. package/themes/business/src/components 2/Contacts/index.tsx +299 -0
  312. package/themes/business/src/components 2/Contacts/styles.tsx +42 -0
  313. package/themes/business/src/components 2/DriverMap/index.tsx +525 -0
  314. package/themes/business/src/components 2/FloatingButton/index.tsx +141 -0
  315. package/themes/business/src/components 2/FloatingButton/styles.tsx +35 -0
  316. package/themes/business/src/components 2/ForgotPasswordForm/index.tsx +204 -0
  317. package/themes/business/src/components 2/ForgotPasswordForm/styles.tsx +11 -0
  318. package/themes/business/src/components 2/GoogleMap/index.tsx +347 -0
  319. package/themes/business/src/components 2/Home/index.tsx +111 -0
  320. package/themes/business/src/components 2/Home/styles.tsx +27 -0
  321. package/themes/business/src/components 2/LanguageSelector/index.tsx +124 -0
  322. package/themes/business/src/components 2/LanguageSelector/lang_country.json +152 -0
  323. package/themes/business/src/components 2/LanguageSelector/styles.tsx +17 -0
  324. package/themes/business/src/components 2/LoginForm/index.tsx +663 -0
  325. package/themes/business/src/components 2/LoginForm/styles.tsx +48 -0
  326. package/themes/business/src/components 2/LogoutButton/index.tsx +63 -0
  327. package/themes/business/src/components 2/MapView/index.tsx +317 -0
  328. package/themes/business/src/components 2/MessagesOption/index.tsx +337 -0
  329. package/themes/business/src/components 2/MessagesOption/styles.tsx +27 -0
  330. package/themes/business/src/components 2/NewOrderNotification/index.tsx +167 -0
  331. package/themes/business/src/components 2/NewOrderNotification/styles.tsx +8 -0
  332. package/themes/business/src/components 2/NotFoundSource/index.tsx +52 -0
  333. package/themes/business/src/components 2/NotFoundSource/styles.tsx +17 -0
  334. package/themes/business/src/components 2/OrderDetails/Business.tsx +683 -0
  335. package/themes/business/src/components 2/OrderDetails/Delivery.tsx +454 -0
  336. package/themes/business/src/components 2/OrderDetails/OrderContentComponent.tsx +391 -0
  337. package/themes/business/src/components 2/OrderDetails/OrderHeaderComponent.tsx +148 -0
  338. package/themes/business/src/components 2/OrderDetails/styles.tsx +84 -0
  339. package/themes/business/src/components 2/OrderMessage/index.tsx +344 -0
  340. package/themes/business/src/components 2/OrderMessage/styles.tsx +5 -0
  341. package/themes/business/src/components 2/OrderSummary/index.tsx +700 -0
  342. package/themes/business/src/components 2/OrderSummary/styles.tsx +61 -0
  343. package/themes/business/src/components 2/OrdersOption/index.tsx +755 -0
  344. package/themes/business/src/components 2/OrdersOption/styles.tsx +54 -0
  345. package/themes/business/src/components 2/OrdersOptionBusiness/index.tsx +51 -0
  346. package/themes/business/src/components 2/OrdersOptionBusiness/styles.tsx +8 -0
  347. package/themes/business/src/components 2/OrdersOptionCity/index.tsx +52 -0
  348. package/themes/business/src/components 2/OrdersOptionCity/styles.tsx +8 -0
  349. package/themes/business/src/components 2/OrdersOptionDate/index.tsx +52 -0
  350. package/themes/business/src/components 2/OrdersOptionDate/styles.tsx +8 -0
  351. package/themes/business/src/components 2/OrdersOptionDelivery/index.tsx +35 -0
  352. package/themes/business/src/components 2/OrdersOptionDelivery/styles.tsx +8 -0
  353. package/themes/business/src/components 2/OrdersOptionDriver/index.tsx +50 -0
  354. package/themes/business/src/components 2/OrdersOptionDriver/styles.tsx +8 -0
  355. package/themes/business/src/components 2/OrdersOptionPaymethod/index.tsx +49 -0
  356. package/themes/business/src/components 2/OrdersOptionPaymethod/styles.tsx +8 -0
  357. package/themes/business/src/components 2/OrdersOptionStatus/index.tsx +46 -0
  358. package/themes/business/src/components 2/OrdersOptionStatus/styles.tsx +8 -0
  359. package/themes/business/src/components 2/PhoneInputNumber/index.tsx +160 -0
  360. package/themes/business/src/components 2/PhoneInputNumber/styles.tsx +3 -0
  361. package/themes/business/src/components 2/PreviousMessages/index.tsx +304 -0
  362. package/themes/business/src/components 2/PreviousMessages/styles.tsx +32 -0
  363. package/themes/business/src/components 2/PreviousOrders/index.tsx +180 -0
  364. package/themes/business/src/components 2/PreviousOrders/styles.tsx +38 -0
  365. package/themes/business/src/components 2/ProductItemAccordion/index.tsx +301 -0
  366. package/themes/business/src/components 2/ProductItemAccordion/styles.tsx +61 -0
  367. package/themes/business/src/components 2/SearchBar/index.tsx +112 -0
  368. package/themes/business/src/components 2/SignupForm/index.tsx +530 -0
  369. package/themes/business/src/components 2/SignupForm/styles.tsx +16 -0
  370. package/themes/business/src/components 2/StoresList/index.tsx +208 -0
  371. package/themes/business/src/components 2/StoresList/styles.tsx +26 -0
  372. package/themes/business/src/components 2/UserFormDetails/index.tsx +513 -0
  373. package/themes/business/src/components 2/UserFormDetails/styles.tsx +40 -0
  374. package/themes/business/src/components 2/UserProfileForm/index.tsx +496 -0
  375. package/themes/business/src/components 2/UserProfileForm/styles.tsx +36 -0
  376. package/themes/business/src/components 2/VerifyPhone/index.tsx +201 -0
  377. package/themes/business/src/components 2/VerifyPhone/styles.tsx +43 -0
  378. package/themes/business/src/components 2/shared/OAlert.tsx +52 -0
  379. package/themes/business/src/components 2/shared/OButton.tsx +149 -0
  380. package/themes/business/src/components 2/shared/OChatBubble.tsx +100 -0
  381. package/themes/business/src/components 2/shared/ODropDown.tsx +195 -0
  382. package/themes/business/src/components 2/shared/ODropDownCalendar.tsx +328 -0
  383. package/themes/business/src/components 2/shared/OFab.tsx +54 -0
  384. package/themes/business/src/components 2/shared/OIcon.tsx +67 -0
  385. package/themes/business/src/components 2/shared/OIconButton.tsx +127 -0
  386. package/themes/business/src/components 2/shared/OInput.tsx +144 -0
  387. package/themes/business/src/components 2/shared/OLink.tsx +76 -0
  388. package/themes/business/src/components 2/shared/OModal.tsx +275 -0
  389. package/themes/business/src/components 2/shared/OSegment.tsx +86 -0
  390. package/themes/business/src/components 2/shared/OText.tsx +55 -0
  391. package/themes/business/src/components 2/shared/OTextarea.tsx +46 -0
  392. package/themes/business/src/components 2/shared/OToast.tsx +92 -0
  393. package/themes/business/src/components 2/shared/index.tsx +27 -0
  394. package/themes/business/src/config/constants.tsx +10 -10
  395. package/themes/business/src/hooks/useLocation.tsx +109 -109
  396. package/themes/business/src/layouts/Container.tsx +54 -54
  397. package/themes/business/src/layouts/SafeAreaContainer.tsx +49 -49
  398. package/themes/business/src/providers/AlertProvider.tsx +38 -38
  399. package/themes/business/src/providers/Responsive.tsx +15 -15
  400. package/themes/business/src/providers/StoreUtil.tsx +54 -54
  401. package/themes/business/src/types/@react-navigation/material-bottom-tabs/index.d.ts +1 -1
  402. package/themes/business/src/types/index.tsx +555 -552
  403. package/themes/business/src/types/ordering-api-sdk/index.d.ts +1 -1
  404. package/themes/business/src/types/ordering-components/index.d.ts +1 -1
  405. package/themes/business/src/types/react-hook-form/index.d.ts +1 -1
  406. package/themes/business/src/types/react-native-credit-card-input/index.d.ts +1 -1
  407. package/themes/business/src/types/react-native-fbsdk/index.d.ts +1 -1
  408. package/themes/business/src/types/react-native-gesture-handler/index.d.ts +1 -1
  409. package/themes/business/src/types/react-native-html-to-pdf/index.d.ts +1 -1
  410. package/themes/business/src/types/react-native-loading-spinner-overlay/index.d.ts +1 -1
  411. package/themes/business/src/types/react-native-vector-icons/index.d.ts +5 -5
  412. package/themes/business/src/types/styled-components/index.d.ts +1 -1
  413. package/themes/business/src/types/toggle-switch-react-native/index.d.ts +1 -1
  414. package/themes/business/src/utils/index.tsx +333 -333
  415. package/themes/doordash/index.tsx +103 -103
  416. package/themes/doordash/src/components/ActiveOrders/index.tsx +120 -120
  417. package/themes/doordash/src/components/ActiveOrders/styles.tsx +43 -43
  418. package/themes/doordash/src/components/AddressDetails/index.tsx +72 -72
  419. package/themes/doordash/src/components/AddressDetails/styles.tsx +26 -26
  420. package/themes/doordash/src/components/AddressForm/index.tsx +669 -669
  421. package/themes/doordash/src/components/AddressForm/styles.tsx +38 -38
  422. package/themes/doordash/src/components/AddressList/index.tsx +332 -332
  423. package/themes/doordash/src/components/AddressList/styles.tsx +22 -22
  424. package/themes/doordash/src/components/AppleLogin/index.tsx +130 -130
  425. package/themes/doordash/src/components/AppleLogin/styles.tsx +5 -5
  426. package/themes/doordash/src/components/BusinessBasicInformation/index.tsx +221 -221
  427. package/themes/doordash/src/components/BusinessBasicInformation/styles.tsx +35 -35
  428. package/themes/doordash/src/components/BusinessController/index.tsx +183 -183
  429. package/themes/doordash/src/components/BusinessController/styles.tsx +49 -49
  430. package/themes/doordash/src/components/BusinessInformation/index.tsx +113 -113
  431. package/themes/doordash/src/components/BusinessInformation/styles.tsx +36 -36
  432. package/themes/doordash/src/components/BusinessItemAccordion/index.tsx +126 -126
  433. package/themes/doordash/src/components/BusinessItemAccordion/styles.tsx +62 -62
  434. package/themes/doordash/src/components/BusinessProductsCategories/index.tsx +84 -84
  435. package/themes/doordash/src/components/BusinessProductsCategories/styles.tsx +7 -7
  436. package/themes/doordash/src/components/BusinessProductsList/index.tsx +157 -157
  437. package/themes/doordash/src/components/BusinessProductsList/styles.tsx +13 -13
  438. package/themes/doordash/src/components/BusinessProductsListing/index.tsx +354 -354
  439. package/themes/doordash/src/components/BusinessProductsListing/styles.tsx +61 -61
  440. package/themes/doordash/src/components/BusinessReviews/index.tsx +122 -122
  441. package/themes/doordash/src/components/BusinessReviews/styles.tsx +34 -34
  442. package/themes/doordash/src/components/BusinessTypeFilter/index.tsx +130 -130
  443. package/themes/doordash/src/components/BusinessTypeFilter/styles.tsx +42 -42
  444. package/themes/doordash/src/components/BusinessesListing/index.tsx +272 -272
  445. package/themes/doordash/src/components/BusinessesListing/styles.tsx +57 -57
  446. package/themes/doordash/src/components/BusinessesSortBy/index.tsx +25 -25
  447. package/themes/doordash/src/components/BusinessesSortBy/styles.ts +19 -19
  448. package/themes/doordash/src/components/Cart/index.tsx +265 -265
  449. package/themes/doordash/src/components/Cart/styles.tsx +28 -28
  450. package/themes/doordash/src/components/CartContent/index.tsx +56 -56
  451. package/themes/doordash/src/components/CartContent/styles.tsx +19 -19
  452. package/themes/doordash/src/components/Checkout/index.tsx +643 -643
  453. package/themes/doordash/src/components/Checkout/styles.tsx +95 -95
  454. package/themes/doordash/src/components/CouponControl/index.tsx +122 -122
  455. package/themes/doordash/src/components/CouponControl/styles.tsx +23 -23
  456. package/themes/doordash/src/components/DriverTips/index.tsx +171 -171
  457. package/themes/doordash/src/components/DriverTips/styles.tsx +62 -62
  458. package/themes/doordash/src/components/FacebookLogin/index.tsx +124 -124
  459. package/themes/doordash/src/components/FacebookLogin/styles.tsx +21 -21
  460. package/themes/doordash/src/components/FloatingButton/index.tsx +71 -71
  461. package/themes/doordash/src/components/FloatingButton/styles.tsx +28 -28
  462. package/themes/doordash/src/components/ForgotPasswordForm/index.tsx +149 -149
  463. package/themes/doordash/src/components/ForgotPasswordForm/styles.tsx +11 -11
  464. package/themes/doordash/src/components/GoogleLogin/index.tsx +117 -117
  465. package/themes/doordash/src/components/GoogleLogin/styles.tsx +21 -21
  466. package/themes/doordash/src/components/GoogleMap/index.tsx +233 -233
  467. package/themes/doordash/src/components/Help/index.tsx +54 -54
  468. package/themes/doordash/src/components/Help/styles.tsx +11 -11
  469. package/themes/doordash/src/components/HelpAccountAndPayment/index.tsx +67 -67
  470. package/themes/doordash/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  471. package/themes/doordash/src/components/HelpGuide/index.tsx +66 -66
  472. package/themes/doordash/src/components/HelpGuide/styles.tsx +6 -6
  473. package/themes/doordash/src/components/HelpOrder/index.tsx +78 -78
  474. package/themes/doordash/src/components/HelpOrder/styles.tsx +5 -5
  475. package/themes/doordash/src/components/Home/index.tsx +210 -210
  476. package/themes/doordash/src/components/Home/styles.tsx +21 -21
  477. package/themes/doordash/src/components/LanguageSelector/index.tsx +109 -109
  478. package/themes/doordash/src/components/LanguageSelector/styles.tsx +7 -7
  479. package/themes/doordash/src/components/LastOrders/index.tsx +96 -96
  480. package/themes/doordash/src/components/LastOrders/styles.tsx +17 -17
  481. package/themes/doordash/src/components/LoginForm/index.tsx +484 -484
  482. package/themes/doordash/src/components/LoginForm/styles.tsx +78 -78
  483. package/themes/doordash/src/components/LogoutButton/index.tsx +57 -57
  484. package/themes/doordash/src/components/Messages/index.tsx +385 -385
  485. package/themes/doordash/src/components/Messages/styles.tsx +22 -22
  486. package/themes/doordash/src/components/MomentOption/index.tsx +237 -237
  487. package/themes/doordash/src/components/MomentOption/styles.tsx +62 -62
  488. package/themes/doordash/src/components/NavBar/index.tsx +125 -125
  489. package/themes/doordash/src/components/NotFoundSource/index.tsx +51 -51
  490. package/themes/doordash/src/components/NotFoundSource/styles.tsx +16 -16
  491. package/themes/doordash/src/components/OrderDetails/index.tsx +423 -423
  492. package/themes/doordash/src/components/OrderDetails/styles.tsx +128 -128
  493. package/themes/doordash/src/components/OrderSummary/index.tsx +251 -251
  494. package/themes/doordash/src/components/OrderSummary/styles.tsx +32 -32
  495. package/themes/doordash/src/components/OrderTypeSelector/index.tsx +122 -122
  496. package/themes/doordash/src/components/OrderTypeSelector/styles.tsx +6 -6
  497. package/themes/doordash/src/components/OrdersOption/index.tsx +223 -223
  498. package/themes/doordash/src/components/OrdersOption/styles.tsx +4 -4
  499. package/themes/doordash/src/components/PaymentOptionCash/index.tsx +102 -102
  500. package/themes/doordash/src/components/PaymentOptionCash/styles.tsx +18 -18
  501. package/themes/doordash/src/components/PaymentOptionStripe/index.tsx +232 -232
  502. package/themes/doordash/src/components/PaymentOptionStripe/styles.tsx +73 -73
  503. package/themes/doordash/src/components/PaymentOptions/index.tsx +511 -511
  504. package/themes/doordash/src/components/PaymentOptions/styles.tsx +51 -51
  505. package/themes/doordash/src/components/PaypalPaymethod/index.tsx +38 -38
  506. package/themes/doordash/src/components/PhoneInputNumber/index.tsx +113 -113
  507. package/themes/doordash/src/components/PhoneInputNumber/styles.tsx +5 -5
  508. package/themes/doordash/src/components/PreviousOrders/index.tsx +135 -135
  509. package/themes/doordash/src/components/PreviousOrders/styles.tsx +36 -36
  510. package/themes/doordash/src/components/ProductForm/index.tsx +372 -372
  511. package/themes/doordash/src/components/ProductForm/styles.tsx +76 -76
  512. package/themes/doordash/src/components/ProductIngredient/index.tsx +44 -44
  513. package/themes/doordash/src/components/ProductIngredient/styles.tsx +7 -7
  514. package/themes/doordash/src/components/ProductItemAccordion/index.tsx +294 -294
  515. package/themes/doordash/src/components/ProductItemAccordion/styles.tsx +56 -56
  516. package/themes/doordash/src/components/ProductOption/index.tsx +55 -55
  517. package/themes/doordash/src/components/ProductOption/styles.tsx +13 -13
  518. package/themes/doordash/src/components/ProductOptionSubOption/index.tsx +137 -137
  519. package/themes/doordash/src/components/ProductOptionSubOption/styles.tsx +34 -34
  520. package/themes/doordash/src/components/ReviewOrder/index.tsx +202 -202
  521. package/themes/doordash/src/components/ReviewOrder/styles.tsx +36 -36
  522. package/themes/doordash/src/components/SearchBar/index.tsx +105 -105
  523. package/themes/doordash/src/components/SignupForm/index.tsx +579 -579
  524. package/themes/doordash/src/components/SignupForm/styles.tsx +32 -32
  525. package/themes/doordash/src/components/SingleProductCard/index.tsx +96 -96
  526. package/themes/doordash/src/components/SingleProductCard/styles.tsx +22 -22
  527. package/themes/doordash/src/components/SocialShare/index.tsx +160 -160
  528. package/themes/doordash/src/components/SocialShare/styles.ts +20 -20
  529. package/themes/doordash/src/components/StripeCardForm/index.tsx +97 -97
  530. package/themes/doordash/src/components/StripeCardForm/naked.tsx +128 -128
  531. package/themes/doordash/src/components/StripeCardForm/styles.tsx +32 -32
  532. package/themes/doordash/src/components/StripeCardsList/index.tsx +130 -130
  533. package/themes/doordash/src/components/StripeElementsForm/index.tsx +195 -195
  534. package/themes/doordash/src/components/StripeElementsForm/naked.tsx +90 -90
  535. package/themes/doordash/src/components/StripeElementsForm/styles.tsx +13 -13
  536. package/themes/doordash/src/components/StripeRedirectForm/index.tsx +157 -157
  537. package/themes/doordash/src/components/StripeRedirectForm/styles.tsx +23 -23
  538. package/themes/doordash/src/components/UpsellingProducts/index.tsx +184 -184
  539. package/themes/doordash/src/components/UpsellingProducts/styles.tsx +39 -39
  540. package/themes/doordash/src/components/UserDetails/index.tsx +124 -124
  541. package/themes/doordash/src/components/UserDetails/styles.tsx +24 -24
  542. package/themes/doordash/src/components/UserFormDetails/index.tsx +267 -267
  543. package/themes/doordash/src/components/UserFormDetails/styles.tsx +37 -37
  544. package/themes/doordash/src/components/UserProfileForm/index.tsx +354 -354
  545. package/themes/doordash/src/components/UserProfileForm/styles.tsx +40 -40
  546. package/themes/doordash/src/components/VerifyPhone/index.tsx +185 -185
  547. package/themes/doordash/src/components/VerifyPhone/styles.tsx +43 -43
  548. package/themes/doordash/src/components/shared/OAlert.tsx +55 -55
  549. package/themes/doordash/src/components/shared/OBottomPopup.tsx +75 -75
  550. package/themes/doordash/src/components/shared/OButton.tsx +138 -138
  551. package/themes/doordash/src/components/shared/OButtonGroup.tsx +53 -53
  552. package/themes/doordash/src/components/shared/OChatBubble.tsx +53 -53
  553. package/themes/doordash/src/components/shared/OCheckbox.tsx +79 -79
  554. package/themes/doordash/src/components/shared/ODropDown.tsx +167 -167
  555. package/themes/doordash/src/components/shared/OIcon.tsx +54 -54
  556. package/themes/doordash/src/components/shared/OIconButton.tsx +135 -135
  557. package/themes/doordash/src/components/shared/OIconText.tsx +53 -53
  558. package/themes/doordash/src/components/shared/OInput.tsx +125 -125
  559. package/themes/doordash/src/components/shared/OKeyButton.tsx +34 -34
  560. package/themes/doordash/src/components/shared/OModal.tsx +173 -173
  561. package/themes/doordash/src/components/shared/OText.tsx +52 -52
  562. package/themes/doordash/src/components/shared/OTextarea.tsx +35 -35
  563. package/themes/doordash/src/components/shared/OToast.tsx +93 -93
  564. package/themes/doordash/src/components/shared/OToggle.tsx +157 -157
  565. package/themes/doordash/src/components/shared/index.tsx +37 -37
  566. package/themes/doordash/src/config/constants.tsx +14 -14
  567. package/themes/doordash/src/layouts/Container.tsx +26 -26
  568. package/themes/doordash/src/layouts/SafeAreaContainer.tsx +6 -6
  569. package/themes/doordash/src/providers/AlertProvider.tsx +49 -49
  570. package/themes/doordash/src/providers/StoreUtil.tsx +50 -50
  571. package/themes/doordash/src/types/index.tsx +423 -423
  572. package/themes/doordash/src/utils/index.tsx +165 -165
  573. package/themes/franchises/index.tsx +110 -110
  574. package/themes/franchises/src/components/ActiveOrders/index.tsx +134 -134
  575. package/themes/franchises/src/components/ActiveOrders/styles.tsx +44 -44
  576. package/themes/franchises/src/components/AddressDetails/index.tsx +77 -77
  577. package/themes/franchises/src/components/AddressDetails/styles.tsx +21 -21
  578. package/themes/franchises/src/components/AddressForm/index.tsx +837 -837
  579. package/themes/franchises/src/components/AddressForm/styles.tsx +27 -27
  580. package/themes/franchises/src/components/AddressList/index.tsx +338 -338
  581. package/themes/franchises/src/components/AddressList/styles.tsx +20 -20
  582. package/themes/franchises/src/components/AppleLogin/index.tsx +148 -148
  583. package/themes/franchises/src/components/AppleLogin/styles.tsx +21 -21
  584. package/themes/franchises/src/components/BottomWrapper/index.tsx +29 -29
  585. package/themes/franchises/src/components/BusinessBasicInformation/index.tsx +310 -310
  586. package/themes/franchises/src/components/BusinessBasicInformation/styles.tsx +65 -65
  587. package/themes/franchises/src/components/BusinessController/index.tsx +184 -184
  588. package/themes/franchises/src/components/BusinessController/styles.tsx +63 -63
  589. package/themes/franchises/src/components/BusinessFeaturedController/index.tsx +189 -189
  590. package/themes/franchises/src/components/BusinessFeaturedController/styles.tsx +50 -50
  591. package/themes/franchises/src/components/BusinessInformation/index.tsx +202 -202
  592. package/themes/franchises/src/components/BusinessInformation/styles.tsx +38 -38
  593. package/themes/franchises/src/components/BusinessItemAccordion/index.tsx +125 -125
  594. package/themes/franchises/src/components/BusinessItemAccordion/styles.tsx +54 -54
  595. package/themes/franchises/src/components/BusinessProductsCategories/index.tsx +87 -87
  596. package/themes/franchises/src/components/BusinessProductsCategories/styles.tsx +7 -7
  597. package/themes/franchises/src/components/BusinessProductsList/index.tsx +199 -199
  598. package/themes/franchises/src/components/BusinessProductsList/styles.tsx +13 -13
  599. package/themes/franchises/src/components/BusinessProductsListing/index.tsx +292 -292
  600. package/themes/franchises/src/components/BusinessProductsListing/styles.tsx +30 -30
  601. package/themes/franchises/src/components/BusinessReviews/index.tsx +249 -249
  602. package/themes/franchises/src/components/BusinessReviews/styles.tsx +59 -59
  603. package/themes/franchises/src/components/BusinessTypeFilter/index.tsx +127 -127
  604. package/themes/franchises/src/components/BusinessTypeFilter/styles.tsx +40 -40
  605. package/themes/franchises/src/components/BusinessesListing/index.tsx +339 -339
  606. package/themes/franchises/src/components/BusinessesListing/styles.tsx +91 -91
  607. package/themes/franchises/src/components/Cart/index.tsx +266 -266
  608. package/themes/franchises/src/components/Cart/styles.tsx +28 -28
  609. package/themes/franchises/src/components/CartContent/index.tsx +60 -60
  610. package/themes/franchises/src/components/CartContent/styles.tsx +19 -19
  611. package/themes/franchises/src/components/Checkout/index.tsx +664 -664
  612. package/themes/franchises/src/components/Checkout/styles.tsx +89 -89
  613. package/themes/franchises/src/components/CouponControl/index.tsx +119 -119
  614. package/themes/franchises/src/components/CouponControl/styles.tsx +22 -22
  615. package/themes/franchises/src/components/DriverTips/index.tsx +167 -167
  616. package/themes/franchises/src/components/DriverTips/styles.tsx +63 -63
  617. package/themes/franchises/src/components/FacebookLogin/index.tsx +107 -107
  618. package/themes/franchises/src/components/FacebookLogin/styles.tsx +21 -21
  619. package/themes/franchises/src/components/FloatingButton/index.tsx +100 -100
  620. package/themes/franchises/src/components/FloatingButton/styles.tsx +26 -26
  621. package/themes/franchises/src/components/ForgotPasswordForm/index.tsx +156 -156
  622. package/themes/franchises/src/components/ForgotPasswordForm/styles.tsx +11 -11
  623. package/themes/franchises/src/components/GPSButton/index.tsx +84 -84
  624. package/themes/franchises/src/components/GPSButton/styles.ts +5 -5
  625. package/themes/franchises/src/components/GoogleLogin/index.tsx +122 -122
  626. package/themes/franchises/src/components/GoogleLogin/styles.tsx +23 -23
  627. package/themes/franchises/src/components/GoogleMap/index.tsx +229 -229
  628. package/themes/franchises/src/components/Help/index.tsx +55 -55
  629. package/themes/franchises/src/components/Help/styles.tsx +11 -11
  630. package/themes/franchises/src/components/HelpAccountAndPayment/index.tsx +67 -67
  631. package/themes/franchises/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  632. package/themes/franchises/src/components/HelpGuide/index.tsx +66 -66
  633. package/themes/franchises/src/components/HelpGuide/styles.tsx +6 -6
  634. package/themes/franchises/src/components/HelpOrder/index.tsx +78 -78
  635. package/themes/franchises/src/components/HelpOrder/styles.tsx +5 -5
  636. package/themes/franchises/src/components/Home/index.tsx +102 -102
  637. package/themes/franchises/src/components/Home/styles.tsx +18 -18
  638. package/themes/franchises/src/components/LanguageSelector/index.tsx +98 -98
  639. package/themes/franchises/src/components/LanguageSelector/styles.tsx +7 -7
  640. package/themes/franchises/src/components/LastOrder/index.tsx +168 -168
  641. package/themes/franchises/src/components/LastOrder/styles.tsx +16 -16
  642. package/themes/franchises/src/components/LastOrders/index.tsx +104 -104
  643. package/themes/franchises/src/components/LastOrders/styles.tsx +17 -17
  644. package/themes/franchises/src/components/LoginForm/index.tsx +512 -512
  645. package/themes/franchises/src/components/LoginForm/styles.tsx +77 -77
  646. package/themes/franchises/src/components/LogoutButton/index.tsx +36 -36
  647. package/themes/franchises/src/components/Messages/index.tsx +359 -359
  648. package/themes/franchises/src/components/Messages/styles.tsx +20 -20
  649. package/themes/franchises/src/components/MomentOption/index.tsx +321 -321
  650. package/themes/franchises/src/components/MomentOption/styles.tsx +66 -66
  651. package/themes/franchises/src/components/NavBar/index.tsx +129 -129
  652. package/themes/franchises/src/components/NotFoundSource/index.tsx +50 -50
  653. package/themes/franchises/src/components/NotFoundSource/styles.tsx +16 -16
  654. package/themes/franchises/src/components/Notifications/index.tsx +120 -120
  655. package/themes/franchises/src/components/Notifications/styles.ts +20 -20
  656. package/themes/franchises/src/components/OrderDetails/index.tsx +766 -766
  657. package/themes/franchises/src/components/OrderDetails/styles.tsx +120 -120
  658. package/themes/franchises/src/components/OrderSummary/index.tsx +198 -198
  659. package/themes/franchises/src/components/OrderSummary/styles.tsx +35 -35
  660. package/themes/franchises/src/components/OrderTypeSelector/index.tsx +92 -92
  661. package/themes/franchises/src/components/OrderTypeSelector/styles.tsx +26 -26
  662. package/themes/franchises/src/components/OrdersOption/index.tsx +243 -243
  663. package/themes/franchises/src/components/OrdersOption/styles.tsx +5 -5
  664. package/themes/franchises/src/components/PaymentOptionCash/index.tsx +102 -102
  665. package/themes/franchises/src/components/PaymentOptionCash/styles.tsx +18 -18
  666. package/themes/franchises/src/components/PaymentOptionStripe/index.tsx +234 -234
  667. package/themes/franchises/src/components/PaymentOptionStripe/styles.tsx +71 -71
  668. package/themes/franchises/src/components/PaymentOptions/index.tsx +430 -430
  669. package/themes/franchises/src/components/PaymentOptions/styles.tsx +77 -77
  670. package/themes/franchises/src/components/PhoneInputNumber/index.tsx +127 -127
  671. package/themes/franchises/src/components/PhoneInputNumber/styles.tsx +3 -3
  672. package/themes/franchises/src/components/PreviousOrders/index.tsx +188 -188
  673. package/themes/franchises/src/components/PreviousOrders/styles.tsx +33 -33
  674. package/themes/franchises/src/components/ProductForm/index.tsx +695 -695
  675. package/themes/franchises/src/components/ProductForm/styles.tsx +77 -77
  676. package/themes/franchises/src/components/ProductIngredient/index.tsx +43 -43
  677. package/themes/franchises/src/components/ProductIngredient/styles.tsx +7 -7
  678. package/themes/franchises/src/components/ProductItemAccordion/index.tsx +276 -276
  679. package/themes/franchises/src/components/ProductItemAccordion/styles.tsx +57 -57
  680. package/themes/franchises/src/components/ProductOption/index.tsx +50 -50
  681. package/themes/franchises/src/components/ProductOption/styles.tsx +11 -11
  682. package/themes/franchises/src/components/ProductOptionSubOption/index.tsx +146 -146
  683. package/themes/franchises/src/components/ProductOptionSubOption/styles.tsx +32 -32
  684. package/themes/franchises/src/components/ReviewDriver/index.tsx +221 -221
  685. package/themes/franchises/src/components/ReviewDriver/styles.tsx +45 -45
  686. package/themes/franchises/src/components/ReviewOrder/index.tsx +325 -325
  687. package/themes/franchises/src/components/ReviewOrder/styles.tsx +45 -45
  688. package/themes/franchises/src/components/ReviewProduct/index.tsx +275 -275
  689. package/themes/franchises/src/components/ReviewProduct/styles.tsx +52 -52
  690. package/themes/franchises/src/components/SearchBar/index.tsx +139 -139
  691. package/themes/franchises/src/components/SignupForm/index.tsx +643 -643
  692. package/themes/franchises/src/components/SignupForm/styles.tsx +27 -27
  693. package/themes/franchises/src/components/SingleProductCard/index.tsx +124 -124
  694. package/themes/franchises/src/components/SingleProductCard/styles.tsx +23 -23
  695. package/themes/franchises/src/components/StripeCardForm/index.tsx +97 -97
  696. package/themes/franchises/src/components/StripeCardForm/naked.tsx +128 -128
  697. package/themes/franchises/src/components/StripeCardForm/styles.tsx +32 -32
  698. package/themes/franchises/src/components/StripeCardsList/index.tsx +182 -182
  699. package/themes/franchises/src/components/StripeElementsForm/index.tsx +204 -204
  700. package/themes/franchises/src/components/StripeElementsForm/naked.tsx +90 -90
  701. package/themes/franchises/src/components/StripeElementsForm/styles.tsx +13 -13
  702. package/themes/franchises/src/components/StripeRedirectForm/index.tsx +159 -159
  703. package/themes/franchises/src/components/StripeRedirectForm/styles.tsx +23 -23
  704. package/themes/franchises/src/components/TagSelector/index.tsx +94 -94
  705. package/themes/franchises/src/components/UpsellingProducts/index.tsx +222 -222
  706. package/themes/franchises/src/components/UpsellingProducts/styles.tsx +49 -49
  707. package/themes/franchises/src/components/UserDetails/index.tsx +134 -134
  708. package/themes/franchises/src/components/UserDetails/styles.tsx +25 -25
  709. package/themes/franchises/src/components/UserFormDetails/index.tsx +351 -351
  710. package/themes/franchises/src/components/UserFormDetails/styles.tsx +35 -35
  711. package/themes/franchises/src/components/UserProfile/index.tsx +179 -179
  712. package/themes/franchises/src/components/UserProfile/styles.ts +42 -42
  713. package/themes/franchises/src/components/UserProfileForm/index.tsx +253 -253
  714. package/themes/franchises/src/components/UserProfileForm/styles.tsx +29 -29
  715. package/themes/franchises/src/components/VerifyPhone/index.tsx +188 -188
  716. package/themes/franchises/src/components/VerifyPhone/styles.tsx +43 -43
  717. package/themes/franchises/src/components/shared/OAlert.tsx +55 -55
  718. package/themes/franchises/src/components/shared/OBottomPopup.tsx +73 -73
  719. package/themes/franchises/src/components/shared/OBottomStickBar.tsx +62 -62
  720. package/themes/franchises/src/components/shared/OButton.tsx +132 -132
  721. package/themes/franchises/src/components/shared/ODropDown.tsx +169 -169
  722. package/themes/franchises/src/components/shared/OIcon.tsx +53 -53
  723. package/themes/franchises/src/components/shared/OIconButton.tsx +127 -127
  724. package/themes/franchises/src/components/shared/OIconText.tsx +53 -53
  725. package/themes/franchises/src/components/shared/OInput.tsx +113 -113
  726. package/themes/franchises/src/components/shared/OKeyButton.tsx +34 -34
  727. package/themes/franchises/src/components/shared/OModal.tsx +172 -172
  728. package/themes/franchises/src/components/shared/OText.tsx +52 -52
  729. package/themes/franchises/src/components/shared/OTextarea.tsx +36 -36
  730. package/themes/franchises/src/components/shared/OToast.tsx +93 -93
  731. package/themes/franchises/src/components/shared/OToggle.tsx +157 -157
  732. package/themes/franchises/src/components/shared/index.tsx +29 -29
  733. package/themes/franchises/src/config/constants.tsx +56 -56
  734. package/themes/franchises/src/layouts/Container.tsx +23 -23
  735. package/themes/franchises/src/layouts/SafeAreaContainer.tsx +6 -6
  736. package/themes/franchises/src/providers/AlertProvider.tsx +43 -43
  737. package/themes/franchises/src/providers/StoreUtil.tsx +50 -50
  738. package/themes/franchises/src/types/index.tsx +444 -444
  739. package/themes/franchises/src/utils/index.tsx +221 -221
  740. package/themes/instacart/index.tsx +88 -88
  741. package/themes/instacart/src/components/ActiveOrders/index.tsx +135 -135
  742. package/themes/instacart/src/components/ActiveOrders/styles.tsx +51 -51
  743. package/themes/instacart/src/components/AddressDetails/index.tsx +69 -69
  744. package/themes/instacart/src/components/AddressDetails/styles.tsx +22 -22
  745. package/themes/instacart/src/components/AddressForm/index.tsx +664 -664
  746. package/themes/instacart/src/components/AddressForm/styles.tsx +33 -33
  747. package/themes/instacart/src/components/AddressList/index.tsx +326 -326
  748. package/themes/instacart/src/components/AddressList/styles.tsx +20 -20
  749. package/themes/instacart/src/components/BusinessBasicInformation/index.tsx +289 -289
  750. package/themes/instacart/src/components/BusinessBasicInformation/styles.tsx +43 -43
  751. package/themes/instacart/src/components/BusinessController/index.tsx +205 -205
  752. package/themes/instacart/src/components/BusinessController/styles.tsx +53 -53
  753. package/themes/instacart/src/components/BusinessInformation/index.tsx +101 -101
  754. package/themes/instacart/src/components/BusinessInformation/styles.tsx +36 -36
  755. package/themes/instacart/src/components/BusinessItemAccordion/index.tsx +112 -112
  756. package/themes/instacart/src/components/BusinessItemAccordion/styles.tsx +59 -59
  757. package/themes/instacart/src/components/BusinessProductsCategories/index.tsx +71 -71
  758. package/themes/instacart/src/components/BusinessProductsCategories/styles.tsx +7 -7
  759. package/themes/instacart/src/components/BusinessProductsList/index.tsx +179 -179
  760. package/themes/instacart/src/components/BusinessProductsList/styles.tsx +13 -13
  761. package/themes/instacart/src/components/BusinessProductsListing/index.tsx +344 -344
  762. package/themes/instacart/src/components/BusinessProductsListing/styles.tsx +35 -35
  763. package/themes/instacart/src/components/BusinessReviews/index.tsx +121 -121
  764. package/themes/instacart/src/components/BusinessReviews/styles.tsx +33 -33
  765. package/themes/instacart/src/components/BusinessTypeFilter/index.tsx +135 -135
  766. package/themes/instacart/src/components/BusinessTypeFilter/styles.tsx +30 -30
  767. package/themes/instacart/src/components/BusinessesListing/index.tsx +222 -222
  768. package/themes/instacart/src/components/BusinessesListing/styles.tsx +52 -52
  769. package/themes/instacart/src/components/Cart/index.tsx +283 -283
  770. package/themes/instacart/src/components/Cart/styles.tsx +39 -39
  771. package/themes/instacart/src/components/CartContent/index.tsx +51 -51
  772. package/themes/instacart/src/components/CartContent/styles.tsx +19 -19
  773. package/themes/instacart/src/components/CartSingle/index.tsx +194 -194
  774. package/themes/instacart/src/components/CartSingle/styles.tsx +55 -55
  775. package/themes/instacart/src/components/Checkout/index.tsx +632 -632
  776. package/themes/instacart/src/components/Checkout/styles.tsx +105 -105
  777. package/themes/instacart/src/components/CouponControl/index.tsx +121 -121
  778. package/themes/instacart/src/components/CouponControl/styles.tsx +23 -23
  779. package/themes/instacart/src/components/DriverTips/index.tsx +153 -153
  780. package/themes/instacart/src/components/DriverTips/styles.tsx +58 -58
  781. package/themes/instacart/src/components/FacebookLogin/index.tsx +117 -117
  782. package/themes/instacart/src/components/FacebookLogin/styles.tsx +16 -16
  783. package/themes/instacart/src/components/FloatingButton/index.tsx +81 -81
  784. package/themes/instacart/src/components/FloatingButton/styles.tsx +30 -30
  785. package/themes/instacart/src/components/ForgotPasswordForm/index.tsx +155 -155
  786. package/themes/instacart/src/components/ForgotPasswordForm/styles.tsx +11 -11
  787. package/themes/instacart/src/components/GoogleMap/index.tsx +236 -236
  788. package/themes/instacart/src/components/Home/index.tsx +336 -336
  789. package/themes/instacart/src/components/Home/styles.tsx +24 -24
  790. package/themes/instacart/src/components/LanguageSelector/index.tsx +109 -109
  791. package/themes/instacart/src/components/LanguageSelector/styles.tsx +7 -7
  792. package/themes/instacart/src/components/LoginForm/index.tsx +442 -442
  793. package/themes/instacart/src/components/LoginForm/styles.tsx +69 -69
  794. package/themes/instacart/src/components/LogoutButton/index.tsx +61 -61
  795. package/themes/instacart/src/components/Messages/index.tsx +375 -375
  796. package/themes/instacart/src/components/Messages/styles.tsx +21 -21
  797. package/themes/instacart/src/components/MomentOption/index.tsx +320 -320
  798. package/themes/instacart/src/components/MomentOption/styles.tsx +71 -71
  799. package/themes/instacart/src/components/NavBar/index.tsx +131 -131
  800. package/themes/instacart/src/components/NotFoundSource/index.tsx +55 -55
  801. package/themes/instacart/src/components/NotFoundSource/styles.tsx +16 -16
  802. package/themes/instacart/src/components/OrderDetails/index.tsx +464 -464
  803. package/themes/instacart/src/components/OrderDetails/styles.tsx +146 -146
  804. package/themes/instacart/src/components/OrderSummary/index.tsx +222 -222
  805. package/themes/instacart/src/components/OrderSummary/styles.tsx +36 -36
  806. package/themes/instacart/src/components/OrderTypeSelector/index.tsx +130 -130
  807. package/themes/instacart/src/components/OrderTypeSelector/styles.tsx +6 -6
  808. package/themes/instacart/src/components/OrdersOption/index.tsx +220 -220
  809. package/themes/instacart/src/components/OrdersOption/styles.tsx +3 -3
  810. package/themes/instacart/src/components/PaymentOptionCash/index.tsx +102 -102
  811. package/themes/instacart/src/components/PaymentOptionCash/styles.tsx +15 -15
  812. package/themes/instacart/src/components/PaymentOptionStripe/index.tsx +232 -232
  813. package/themes/instacart/src/components/PaymentOptionStripe/styles.tsx +62 -62
  814. package/themes/instacart/src/components/PaymentOptions/index.tsx +496 -496
  815. package/themes/instacart/src/components/PaymentOptions/styles.tsx +43 -43
  816. package/themes/instacart/src/components/PaypalPaymethod/index.tsx +38 -38
  817. package/themes/instacart/src/components/PhoneInputNumber/index.tsx +112 -112
  818. package/themes/instacart/src/components/PhoneInputNumber/styles.tsx +5 -5
  819. package/themes/instacart/src/components/PreviousOrders/index.tsx +134 -134
  820. package/themes/instacart/src/components/PreviousOrders/styles.tsx +38 -38
  821. package/themes/instacart/src/components/ProductForm/index.tsx +392 -392
  822. package/themes/instacart/src/components/ProductForm/styles.tsx +73 -73
  823. package/themes/instacart/src/components/ProductIngredient/index.tsx +44 -44
  824. package/themes/instacart/src/components/ProductIngredient/styles.tsx +7 -7
  825. package/themes/instacart/src/components/ProductItemAccordion/index.tsx +285 -285
  826. package/themes/instacart/src/components/ProductItemAccordion/styles.tsx +52 -52
  827. package/themes/instacart/src/components/ProductOption/index.tsx +49 -49
  828. package/themes/instacart/src/components/ProductOption/styles.tsx +12 -12
  829. package/themes/instacart/src/components/ProductOptionSubOption/index.tsx +146 -146
  830. package/themes/instacart/src/components/ProductOptionSubOption/styles.tsx +33 -33
  831. package/themes/instacart/src/components/ReviewDriver/index.tsx +221 -221
  832. package/themes/instacart/src/components/ReviewDriver/styles.tsx +45 -45
  833. package/themes/instacart/src/components/ReviewOrder/index.tsx +325 -325
  834. package/themes/instacart/src/components/ReviewOrder/styles.tsx +45 -45
  835. package/themes/instacart/src/components/ReviewProduct/index.tsx +275 -275
  836. package/themes/instacart/src/components/ReviewProduct/styles.tsx +52 -52
  837. package/themes/instacart/src/components/SearchBar/index.tsx +104 -104
  838. package/themes/instacart/src/components/SearchList/index.tsx +357 -357
  839. package/themes/instacart/src/components/SearchList/styles.tsx +61 -61
  840. package/themes/instacart/src/components/SignupForm/index.tsx +587 -587
  841. package/themes/instacart/src/components/SignupForm/styles.tsx +39 -39
  842. package/themes/instacart/src/components/SingleProductCard/index.tsx +104 -104
  843. package/themes/instacart/src/components/SingleProductCard/styles.tsx +21 -21
  844. package/themes/instacart/src/components/SocialShare/index.tsx +160 -160
  845. package/themes/instacart/src/components/SocialShare/styles.ts +20 -20
  846. package/themes/instacart/src/components/StripeCardForm/index.tsx +97 -97
  847. package/themes/instacart/src/components/StripeCardForm/naked.tsx +128 -128
  848. package/themes/instacart/src/components/StripeCardForm/styles.tsx +27 -27
  849. package/themes/instacart/src/components/StripeCardsList/index.tsx +144 -144
  850. package/themes/instacart/src/components/StripeElementsForm/index.tsx +192 -192
  851. package/themes/instacart/src/components/StripeElementsForm/naked.tsx +90 -90
  852. package/themes/instacart/src/components/StripeElementsForm/styles.tsx +9 -9
  853. package/themes/instacart/src/components/StripeRedirectForm/index.tsx +159 -159
  854. package/themes/instacart/src/components/StripeRedirectForm/styles.tsx +23 -23
  855. package/themes/instacart/src/components/TagSelector/index.tsx +94 -94
  856. package/themes/instacart/src/components/UpsellingProducts/index.tsx +230 -230
  857. package/themes/instacart/src/components/UpsellingProducts/styles.tsx +31 -31
  858. package/themes/instacart/src/components/UserDetails/index.tsx +135 -135
  859. package/themes/instacart/src/components/UserDetails/styles.tsx +21 -21
  860. package/themes/instacart/src/components/UserFormDetails/index.tsx +307 -307
  861. package/themes/instacart/src/components/UserFormDetails/styles.tsx +38 -38
  862. package/themes/instacart/src/components/UserProfileForm/index.tsx +106 -106
  863. package/themes/instacart/src/components/UserProfileForm/styles.tsx +37 -37
  864. package/themes/instacart/src/components/VerifyPhone/index.tsx +187 -187
  865. package/themes/instacart/src/components/VerifyPhone/styles.tsx +43 -43
  866. package/themes/instacart/src/components/shared/OAlert.tsx +53 -53
  867. package/themes/instacart/src/components/shared/OBottomPopup.tsx +118 -118
  868. package/themes/instacart/src/components/shared/OBottomStickBar.tsx +62 -62
  869. package/themes/instacart/src/components/shared/OButton.tsx +133 -133
  870. package/themes/instacart/src/components/shared/ODropDown.tsx +170 -170
  871. package/themes/instacart/src/components/shared/OIcon.tsx +53 -53
  872. package/themes/instacart/src/components/shared/OIconButton.tsx +134 -134
  873. package/themes/instacart/src/components/shared/OInput.tsx +122 -122
  874. package/themes/instacart/src/components/shared/OModal.tsx +156 -156
  875. package/themes/instacart/src/components/shared/OText.tsx +58 -58
  876. package/themes/instacart/src/components/shared/OToast.tsx +92 -92
  877. package/themes/instacart/src/components/shared/index.tsx +23 -23
  878. package/themes/instacart/src/config/constants.tsx +28 -28
  879. package/themes/instacart/src/layouts/Container.tsx +29 -29
  880. package/themes/instacart/src/layouts/SafeAreaContainer.tsx +6 -6
  881. package/themes/instacart/src/providers/AlertProvider.tsx +43 -43
  882. package/themes/instacart/src/providers/CartBottomSheetProvider.tsx +37 -37
  883. package/themes/instacart/src/providers/StoreUtil.tsx +50 -50
  884. package/themes/instacart/src/types/index.tsx +458 -458
  885. package/themes/instacart/src/utils/index.tsx +165 -165
  886. package/themes/kiosk/index.tsx +122 -122
  887. package/themes/kiosk/src/components/BusinessItemAccordion/index.tsx +137 -137
  888. package/themes/kiosk/src/components/BusinessItemAccordion/styles.tsx +60 -60
  889. package/themes/kiosk/src/components/BusinessMenu/index.tsx +165 -165
  890. package/themes/kiosk/src/components/BusinessProductsListing/index.tsx +168 -168
  891. package/themes/kiosk/src/components/BusinessProductsListing/styles.tsx +35 -35
  892. package/themes/kiosk/src/components/Cart/index.tsx +423 -423
  893. package/themes/kiosk/src/components/Cart/styles.tsx +70 -70
  894. package/themes/kiosk/src/components/CartBottomSheet/index.tsx +274 -274
  895. package/themes/kiosk/src/components/CartBottomSheet/styles.tsx +53 -53
  896. package/themes/kiosk/src/components/CartContent/index.tsx +76 -76
  897. package/themes/kiosk/src/components/CartContent/styles.tsx +15 -15
  898. package/themes/kiosk/src/components/CartItem/index.tsx +207 -207
  899. package/themes/kiosk/src/components/CartItem/styles.tsx +33 -33
  900. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +227 -227
  901. package/themes/kiosk/src/components/Checkout/index.tsx +157 -157
  902. package/themes/kiosk/src/components/Checkout/styles.tsx +94 -94
  903. package/themes/kiosk/src/components/CouponControl/index.tsx +138 -138
  904. package/themes/kiosk/src/components/CouponControl/styles.tsx +22 -22
  905. package/themes/kiosk/src/components/CustomerName/index.tsx +171 -171
  906. package/themes/kiosk/src/components/CustomerName/styles.tsx +10 -10
  907. package/themes/kiosk/src/components/DrawerView/index.tsx +57 -57
  908. package/themes/kiosk/src/components/DrawerView/styles.tsx +30 -30
  909. package/themes/kiosk/src/components/Intro/index.tsx +148 -148
  910. package/themes/kiosk/src/components/LanguageSelector/index.tsx +138 -138
  911. package/themes/kiosk/src/components/LanguageSelector/lang_country.json +140 -140
  912. package/themes/kiosk/src/components/LanguageSelector/styles.tsx +12 -12
  913. package/themes/kiosk/src/components/LoginForm/index.tsx +272 -272
  914. package/themes/kiosk/src/components/LoginForm/styles.tsx +9 -9
  915. package/themes/kiosk/src/components/LogoutPopup/index.tsx +173 -173
  916. package/themes/kiosk/src/components/LogoutPopup/styles.tsx +26 -26
  917. package/themes/kiosk/src/components/NavBar/index.tsx +131 -131
  918. package/themes/kiosk/src/components/NotFoundSource/index.tsx +51 -51
  919. package/themes/kiosk/src/components/NotFoundSource/styles.tsx +16 -16
  920. package/themes/kiosk/src/components/OptionCard/index.tsx +102 -102
  921. package/themes/kiosk/src/components/OptionCard/styles.tsx +22 -22
  922. package/themes/kiosk/src/components/OrderDetails/index.tsx +593 -593
  923. package/themes/kiosk/src/components/OrderDetails/styles.tsx +53 -53
  924. package/themes/kiosk/src/components/OrderSummary/index.tsx +195 -195
  925. package/themes/kiosk/src/components/OrderSummary/styles.tsx +33 -33
  926. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +151 -151
  927. package/themes/kiosk/src/components/OrderTypeCardSelector/styles.tsx +6 -6
  928. package/themes/kiosk/src/components/OrderTypeSelector/index.tsx +98 -98
  929. package/themes/kiosk/src/components/OrderTypeSelector/styles.tsx +6 -6
  930. package/themes/kiosk/src/components/PaymentOptionCash/index.tsx +100 -100
  931. package/themes/kiosk/src/components/PaymentOptionCash/styles.tsx +18 -18
  932. package/themes/kiosk/src/components/PaymentOptionStripe/index.tsx +70 -70
  933. package/themes/kiosk/src/components/PaymentOptionStripe/styles.tsx +7 -7
  934. package/themes/kiosk/src/components/PaymentOptions/index.tsx +277 -277
  935. package/themes/kiosk/src/components/PaymentOptions/styles.tsx +55 -55
  936. package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +112 -112
  937. package/themes/kiosk/src/components/PhoneInputNumber/styles.tsx +5 -5
  938. package/themes/kiosk/src/components/ProductForm/index.tsx +554 -554
  939. package/themes/kiosk/src/components/ProductForm/styles.tsx +83 -83
  940. package/themes/kiosk/src/components/ProductIngredient/index.tsx +44 -44
  941. package/themes/kiosk/src/components/ProductIngredient/styles.tsx +7 -7
  942. package/themes/kiosk/src/components/ProductItemAccordion/index.tsx +244 -244
  943. package/themes/kiosk/src/components/ProductItemAccordion/styles.tsx +71 -71
  944. package/themes/kiosk/src/components/ProductOption/index.tsx +54 -54
  945. package/themes/kiosk/src/components/ProductOption/styles.tsx +15 -15
  946. package/themes/kiosk/src/components/ProductOptionSubOption/index.tsx +174 -174
  947. package/themes/kiosk/src/components/ProductOptionSubOption/styles.tsx +42 -42
  948. package/themes/kiosk/src/components/PromoCard/index.tsx +117 -117
  949. package/themes/kiosk/src/components/QuantityControl/index.tsx +92 -92
  950. package/themes/kiosk/src/components/QuantityControl/styles.tsx +9 -9
  951. package/themes/kiosk/src/components/UpsellingProducts/index.tsx +339 -339
  952. package/themes/kiosk/src/components/UpsellingProducts/styles.tsx +26 -26
  953. package/themes/kiosk/src/components/shared/OAlert.tsx +55 -55
  954. package/themes/kiosk/src/components/shared/OBottomPopup.tsx +77 -77
  955. package/themes/kiosk/src/components/shared/OButton.tsx +132 -132
  956. package/themes/kiosk/src/components/shared/OCard.tsx +110 -110
  957. package/themes/kiosk/src/components/shared/OChatBubble.tsx +52 -52
  958. package/themes/kiosk/src/components/shared/OCheckbox.tsx +77 -77
  959. package/themes/kiosk/src/components/shared/ODropDown.tsx +161 -161
  960. package/themes/kiosk/src/components/shared/OIcon.tsx +51 -51
  961. package/themes/kiosk/src/components/shared/OIconButton.tsx +134 -134
  962. package/themes/kiosk/src/components/shared/OIconText.tsx +53 -53
  963. package/themes/kiosk/src/components/shared/OImage.tsx +31 -31
  964. package/themes/kiosk/src/components/shared/OInput.tsx +121 -121
  965. package/themes/kiosk/src/components/shared/OKeyButton.tsx +34 -34
  966. package/themes/kiosk/src/components/shared/OModal.tsx +159 -159
  967. package/themes/kiosk/src/components/shared/OOptionToggle.tsx +130 -130
  968. package/themes/kiosk/src/components/shared/OSegment.tsx +66 -66
  969. package/themes/kiosk/src/components/shared/OText.tsx +51 -51
  970. package/themes/kiosk/src/components/shared/OTextarea.tsx +36 -36
  971. package/themes/kiosk/src/components/shared/OToast.tsx +94 -94
  972. package/themes/kiosk/src/components/shared/OToggle.tsx +157 -157
  973. package/themes/kiosk/src/components/shared/index.tsx +37 -37
  974. package/themes/kiosk/src/layouts/Container.tsx +38 -38
  975. package/themes/kiosk/src/layouts/GridContainer.tsx +25 -25
  976. package/themes/kiosk/src/layouts/SafeAreaContainer.tsx +6 -6
  977. package/themes/kiosk/src/providers/CartBottomSheetProvider.tsx +35 -35
  978. package/themes/kiosk/src/types/index.d.ts +472 -472
  979. package/themes/original/index.tsx +106 -106
  980. package/themes/original/src/components/ActiveOrders/index.tsx +143 -143
  981. package/themes/original/src/components/ActiveOrders/styles.tsx +44 -44
  982. package/themes/original/src/components/AddressDetails/index.tsx +77 -77
  983. package/themes/original/src/components/AddressDetails/styles.tsx +21 -21
  984. package/themes/original/src/components/AddressForm/index.tsx +860 -860
  985. package/themes/original/src/components/AddressForm/styles.tsx +28 -28
  986. package/themes/original/src/components/AddressList/index.tsx +338 -338
  987. package/themes/original/src/components/AddressList/styles.tsx +19 -19
  988. package/themes/original/src/components/AppleLogin/index.tsx +148 -148
  989. package/themes/original/src/components/AppleLogin/styles.tsx +21 -21
  990. package/themes/original/src/components/BottomWrapper/index.tsx +29 -29
  991. package/themes/original/src/components/BusinessBasicInformation/index.tsx +234 -234
  992. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +43 -43
  993. package/themes/original/src/components/BusinessController/index.tsx +196 -196
  994. package/themes/original/src/components/BusinessController/styles.tsx +55 -55
  995. package/themes/original/src/components/BusinessFeaturedController/index.tsx +189 -189
  996. package/themes/original/src/components/BusinessFeaturedController/styles.tsx +50 -50
  997. package/themes/original/src/components/BusinessInformation/index.tsx +202 -202
  998. package/themes/original/src/components/BusinessInformation/styles.tsx +38 -38
  999. package/themes/original/src/components/BusinessItemAccordion/index.tsx +125 -125
  1000. package/themes/original/src/components/BusinessItemAccordion/styles.tsx +54 -54
  1001. package/themes/original/src/components/BusinessProductsCategories/index.tsx +153 -153
  1002. package/themes/original/src/components/BusinessProductsCategories/styles.tsx +7 -7
  1003. package/themes/original/src/components/BusinessProductsList/index.tsx +213 -213
  1004. package/themes/original/src/components/BusinessProductsList/styles.tsx +13 -13
  1005. package/themes/original/src/components/BusinessProductsListing/index.tsx +346 -346
  1006. package/themes/original/src/components/BusinessProductsListing/styles.tsx +35 -35
  1007. package/themes/original/src/components/BusinessReviews/index.tsx +249 -249
  1008. package/themes/original/src/components/BusinessReviews/styles.tsx +59 -59
  1009. package/themes/original/src/components/BusinessTypeFilter/index.tsx +201 -201
  1010. package/themes/original/src/components/BusinessTypeFilter/styles.tsx +40 -40
  1011. package/themes/original/src/components/BusinessesListing/index.tsx +358 -358
  1012. package/themes/original/src/components/BusinessesListing/styles.tsx +74 -74
  1013. package/themes/original/src/components/Cart/index.tsx +268 -268
  1014. package/themes/original/src/components/Cart/styles.tsx +28 -28
  1015. package/themes/original/src/components/CartContent/index.tsx +61 -61
  1016. package/themes/original/src/components/CartContent/styles.tsx +19 -19
  1017. package/themes/original/src/components/Checkout/index.tsx +671 -671
  1018. package/themes/original/src/components/Checkout/styles.tsx +89 -89
  1019. package/themes/original/src/components/CouponControl/index.tsx +119 -119
  1020. package/themes/original/src/components/CouponControl/styles.tsx +22 -22
  1021. package/themes/original/src/components/DriverTips/index.tsx +144 -144
  1022. package/themes/original/src/components/DriverTips/styles.tsx +66 -66
  1023. package/themes/original/src/components/FacebookLogin/index.tsx +107 -107
  1024. package/themes/original/src/components/FacebookLogin/styles.tsx +21 -21
  1025. package/themes/original/src/components/FloatingButton/index.tsx +100 -100
  1026. package/themes/original/src/components/FloatingButton/styles.tsx +26 -26
  1027. package/themes/original/src/components/ForgotPasswordForm/index.tsx +156 -156
  1028. package/themes/original/src/components/ForgotPasswordForm/styles.tsx +11 -11
  1029. package/themes/original/src/components/GPSButton/index.tsx +84 -84
  1030. package/themes/original/src/components/GPSButton/styles.ts +5 -5
  1031. package/themes/original/src/components/GoogleLogin/index.tsx +119 -119
  1032. package/themes/original/src/components/GoogleLogin/styles.tsx +23 -23
  1033. package/themes/original/src/components/GoogleMap/index.tsx +229 -229
  1034. package/themes/original/src/components/Help/index.tsx +54 -54
  1035. package/themes/original/src/components/Help/styles.tsx +11 -11
  1036. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +67 -67
  1037. package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  1038. package/themes/original/src/components/HelpGuide/index.tsx +66 -66
  1039. package/themes/original/src/components/HelpGuide/styles.tsx +6 -6
  1040. package/themes/original/src/components/HelpOrder/index.tsx +78 -78
  1041. package/themes/original/src/components/HelpOrder/styles.tsx +5 -5
  1042. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +130 -130
  1043. package/themes/original/src/components/HighestRatedBusinesses/styles.tsx +7 -7
  1044. package/themes/original/src/components/Home/index.tsx +102 -102
  1045. package/themes/original/src/components/Home/styles.tsx +18 -18
  1046. package/themes/original/src/components/LanguageSelector/index.tsx +92 -92
  1047. package/themes/original/src/components/LanguageSelector/styles.tsx +10 -10
  1048. package/themes/original/src/components/LastOrder/index.tsx +168 -168
  1049. package/themes/original/src/components/LastOrder/styles.tsx +16 -16
  1050. package/themes/original/src/components/LastOrders/index.tsx +112 -112
  1051. package/themes/original/src/components/LastOrders/styles.tsx +17 -17
  1052. package/themes/original/src/components/LoginForm/index.tsx +539 -539
  1053. package/themes/original/src/components/LoginForm/styles.tsx +82 -82
  1054. package/themes/original/src/components/LogoutButton/index.tsx +36 -36
  1055. package/themes/original/src/components/Messages/index.tsx +424 -424
  1056. package/themes/original/src/components/Messages/styles.tsx +19 -19
  1057. package/themes/original/src/components/MomentOption/index.tsx +329 -329
  1058. package/themes/original/src/components/MomentOption/styles.tsx +66 -66
  1059. package/themes/original/src/components/NavBar/index.tsx +134 -134
  1060. package/themes/original/src/components/NotFoundSource/index.tsx +50 -50
  1061. package/themes/original/src/components/NotFoundSource/styles.tsx +16 -16
  1062. package/themes/original/src/components/OrderDetails/index.tsx +766 -766
  1063. package/themes/original/src/components/OrderDetails/styles.tsx +120 -120
  1064. package/themes/original/src/components/OrderProgress/index.tsx +222 -222
  1065. package/themes/original/src/components/OrderProgress/styles.tsx +30 -30
  1066. package/themes/original/src/components/OrderSummary/index.tsx +198 -198
  1067. package/themes/original/src/components/OrderSummary/styles.tsx +35 -35
  1068. package/themes/original/src/components/OrderTypeSelector/index.tsx +93 -93
  1069. package/themes/original/src/components/OrderTypeSelector/styles.tsx +26 -26
  1070. package/themes/original/src/components/OrdersOption/index.tsx +213 -213
  1071. package/themes/original/src/components/OrdersOption/styles.tsx +5 -5
  1072. package/themes/original/src/components/PaymentOptionCash/index.tsx +102 -102
  1073. package/themes/original/src/components/PaymentOptionCash/styles.tsx +18 -18
  1074. package/themes/original/src/components/PaymentOptionStripe/index.tsx +234 -234
  1075. package/themes/original/src/components/PaymentOptionStripe/styles.tsx +69 -69
  1076. package/themes/original/src/components/PaymentOptions/index.tsx +417 -417
  1077. package/themes/original/src/components/PaymentOptions/styles.tsx +55 -55
  1078. package/themes/original/src/components/PhoneInputNumber/index.tsx +127 -127
  1079. package/themes/original/src/components/PhoneInputNumber/styles.tsx +3 -3
  1080. package/themes/original/src/components/PreviousOrders/index.tsx +181 -181
  1081. package/themes/original/src/components/PreviousOrders/styles.tsx +34 -34
  1082. package/themes/original/src/components/ProductForm/index.tsx +803 -803
  1083. package/themes/original/src/components/ProductForm/styles.tsx +80 -80
  1084. package/themes/original/src/components/ProductIngredient/index.tsx +43 -43
  1085. package/themes/original/src/components/ProductIngredient/styles.tsx +7 -7
  1086. package/themes/original/src/components/ProductItemAccordion/index.tsx +276 -276
  1087. package/themes/original/src/components/ProductItemAccordion/styles.tsx +57 -57
  1088. package/themes/original/src/components/ProductOption/index.tsx +50 -50
  1089. package/themes/original/src/components/ProductOption/styles.tsx +11 -11
  1090. package/themes/original/src/components/ProductOptionSubOption/index.tsx +146 -146
  1091. package/themes/original/src/components/ProductOptionSubOption/styles.tsx +32 -32
  1092. package/themes/original/src/components/ReviewOrder/index.tsx +202 -202
  1093. package/themes/original/src/components/ReviewOrder/styles.tsx +33 -33
  1094. package/themes/original/src/components/SearchBar/index.tsx +110 -110
  1095. package/themes/original/src/components/SignupForm/index.tsx +694 -694
  1096. package/themes/original/src/components/SignupForm/styles.tsx +27 -27
  1097. package/themes/original/src/components/SingleProductCard/index.tsx +129 -129
  1098. package/themes/original/src/components/SingleProductCard/styles.tsx +23 -23
  1099. package/themes/original/src/components/StripeCardForm/index.tsx +97 -97
  1100. package/themes/original/src/components/StripeCardForm/naked.tsx +128 -128
  1101. package/themes/original/src/components/StripeCardForm/styles.tsx +32 -32
  1102. package/themes/original/src/components/StripeCardsList/index.tsx +143 -143
  1103. package/themes/original/src/components/StripeElementsForm/index.tsx +226 -226
  1104. package/themes/original/src/components/StripeElementsForm/naked.tsx +90 -90
  1105. package/themes/original/src/components/StripeElementsForm/styles.tsx +13 -13
  1106. package/themes/original/src/components/StripeRedirectForm/index.tsx +159 -159
  1107. package/themes/original/src/components/StripeRedirectForm/styles.tsx +23 -23
  1108. package/themes/original/src/components/UpsellingProducts/index.tsx +229 -229
  1109. package/themes/original/src/components/UpsellingProducts/styles.tsx +49 -49
  1110. package/themes/original/src/components/UserDetails/index.tsx +135 -135
  1111. package/themes/original/src/components/UserDetails/styles.tsx +25 -25
  1112. package/themes/original/src/components/UserFormDetails/index.tsx +351 -351
  1113. package/themes/original/src/components/UserFormDetails/styles.tsx +34 -34
  1114. package/themes/original/src/components/UserProfile/index.tsx +175 -175
  1115. package/themes/original/src/components/UserProfile/styles.ts +42 -42
  1116. package/themes/original/src/components/UserProfileForm/index.tsx +254 -254
  1117. package/themes/original/src/components/UserProfileForm/styles.tsx +29 -29
  1118. package/themes/original/src/components/VerifyPhone/index.tsx +188 -188
  1119. package/themes/original/src/components/VerifyPhone/styles.tsx +43 -43
  1120. package/themes/original/src/components/shared/OAlert.tsx +55 -55
  1121. package/themes/original/src/components/shared/OBottomPopup.tsx +76 -76
  1122. package/themes/original/src/components/shared/OButton.tsx +138 -138
  1123. package/themes/original/src/components/shared/ODropDown.tsx +168 -168
  1124. package/themes/original/src/components/shared/OIcon.tsx +59 -59
  1125. package/themes/original/src/components/shared/OIconButton.tsx +127 -127
  1126. package/themes/original/src/components/shared/OIconText.tsx +53 -53
  1127. package/themes/original/src/components/shared/OInput.tsx +113 -113
  1128. package/themes/original/src/components/shared/OKeyButton.tsx +34 -34
  1129. package/themes/original/src/components/shared/OModal.tsx +189 -189
  1130. package/themes/original/src/components/shared/OText.tsx +52 -52
  1131. package/themes/original/src/components/shared/OTextarea.tsx +36 -36
  1132. package/themes/original/src/components/shared/OToast.tsx +93 -93
  1133. package/themes/original/src/components/shared/OToggle.tsx +157 -157
  1134. package/themes/original/src/components/shared/index.tsx +29 -29
  1135. package/themes/original/src/config/constants.tsx +32 -32
  1136. package/themes/original/src/layouts/Container.tsx +26 -26
  1137. package/themes/original/src/layouts/SafeAreaContainer.tsx +6 -6
  1138. package/themes/original/src/providers/AlertProvider.tsx +43 -43
  1139. package/themes/original/src/providers/StoreUtil.tsx +50 -50
  1140. package/themes/original/src/types/index.tsx +438 -438
  1141. package/themes/original/src/utils/index.tsx +170 -170
  1142. package/themes/single-business/index.tsx +203 -203
  1143. package/themes/single-business/src/components/ActiveOrders/index.tsx +135 -135
  1144. package/themes/single-business/src/components/ActiveOrders/styles.tsx +44 -44
  1145. package/themes/single-business/src/components/AddressDetails/index.tsx +77 -77
  1146. package/themes/single-business/src/components/AddressDetails/styles.tsx +21 -21
  1147. package/themes/single-business/src/components/AddressForm/index.tsx +856 -856
  1148. package/themes/single-business/src/components/AddressForm/styles.tsx +27 -27
  1149. package/themes/single-business/src/components/AddressList/index.tsx +338 -338
  1150. package/themes/single-business/src/components/AddressList/styles.tsx +20 -20
  1151. package/themes/single-business/src/components/AppleLogin/index.tsx +108 -108
  1152. package/themes/single-business/src/components/AppleLogin/styles.tsx +21 -21
  1153. package/themes/single-business/src/components/BottomWrapper/index.tsx +29 -29
  1154. package/themes/single-business/src/components/BusinessBasicInformation/index.tsx +315 -315
  1155. package/themes/single-business/src/components/BusinessBasicInformation/styles.tsx +65 -65
  1156. package/themes/single-business/src/components/BusinessController/index.tsx +186 -186
  1157. package/themes/single-business/src/components/BusinessController/styles.tsx +56 -56
  1158. package/themes/single-business/src/components/BusinessFeaturedController/index.tsx +189 -189
  1159. package/themes/single-business/src/components/BusinessFeaturedController/styles.tsx +50 -50
  1160. package/themes/single-business/src/components/BusinessInformation/index.tsx +244 -244
  1161. package/themes/single-business/src/components/BusinessInformation/styles.tsx +39 -39
  1162. package/themes/single-business/src/components/BusinessItemAccordion/index.tsx +125 -125
  1163. package/themes/single-business/src/components/BusinessItemAccordion/styles.tsx +54 -54
  1164. package/themes/single-business/src/components/BusinessProductsCategories/index.tsx +87 -87
  1165. package/themes/single-business/src/components/BusinessProductsCategories/styles.tsx +7 -7
  1166. package/themes/single-business/src/components/BusinessProductsList/index.tsx +199 -199
  1167. package/themes/single-business/src/components/BusinessProductsList/styles.tsx +13 -13
  1168. package/themes/single-business/src/components/BusinessProductsListing/index.tsx +284 -284
  1169. package/themes/single-business/src/components/BusinessProductsListing/styles.tsx +30 -30
  1170. package/themes/single-business/src/components/BusinessReviews/index.tsx +249 -249
  1171. package/themes/single-business/src/components/BusinessReviews/styles.tsx +59 -59
  1172. package/themes/single-business/src/components/BusinessTypeFilter/index.tsx +127 -127
  1173. package/themes/single-business/src/components/BusinessTypeFilter/styles.tsx +40 -40
  1174. package/themes/single-business/src/components/BusinessesListing/index.tsx +337 -337
  1175. package/themes/single-business/src/components/BusinessesListing/styles.tsx +69 -69
  1176. package/themes/single-business/src/components/Cart/index.tsx +325 -325
  1177. package/themes/single-business/src/components/Cart/styles.tsx +63 -63
  1178. package/themes/single-business/src/components/CartContent/index.tsx +60 -60
  1179. package/themes/single-business/src/components/CartContent/styles.tsx +19 -19
  1180. package/themes/single-business/src/components/Checkout/index.tsx +662 -662
  1181. package/themes/single-business/src/components/Checkout/styles.tsx +89 -89
  1182. package/themes/single-business/src/components/CouponControl/index.tsx +119 -119
  1183. package/themes/single-business/src/components/CouponControl/styles.tsx +22 -22
  1184. package/themes/single-business/src/components/DriverTips/index.tsx +160 -160
  1185. package/themes/single-business/src/components/DriverTips/styles.tsx +64 -64
  1186. package/themes/single-business/src/components/FacebookLogin/index.tsx +107 -107
  1187. package/themes/single-business/src/components/FacebookLogin/styles.tsx +21 -21
  1188. package/themes/single-business/src/components/FloatingButton/index.tsx +100 -100
  1189. package/themes/single-business/src/components/FloatingButton/styles.tsx +26 -26
  1190. package/themes/single-business/src/components/ForgotPasswordForm/index.tsx +156 -156
  1191. package/themes/single-business/src/components/ForgotPasswordForm/styles.tsx +11 -11
  1192. package/themes/single-business/src/components/GPSButton/index.tsx +84 -84
  1193. package/themes/single-business/src/components/GPSButton/styles.ts +5 -5
  1194. package/themes/single-business/src/components/GoogleLogin/index.tsx +114 -114
  1195. package/themes/single-business/src/components/GoogleLogin/styles.tsx +23 -23
  1196. package/themes/single-business/src/components/GoogleMap/index.tsx +229 -229
  1197. package/themes/single-business/src/components/Help/index.tsx +55 -55
  1198. package/themes/single-business/src/components/Help/styles.tsx +11 -11
  1199. package/themes/single-business/src/components/HelpAccountAndPayment/index.tsx +67 -67
  1200. package/themes/single-business/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  1201. package/themes/single-business/src/components/HelpGuide/index.tsx +66 -66
  1202. package/themes/single-business/src/components/HelpGuide/styles.tsx +6 -6
  1203. package/themes/single-business/src/components/HelpOrder/index.tsx +78 -78
  1204. package/themes/single-business/src/components/HelpOrder/styles.tsx +5 -5
  1205. package/themes/single-business/src/components/Home/index.tsx +102 -102
  1206. package/themes/single-business/src/components/Home/styles.tsx +18 -18
  1207. package/themes/single-business/src/components/LanguageSelector/index.tsx +92 -92
  1208. package/themes/single-business/src/components/LanguageSelector/styles.tsx +7 -7
  1209. package/themes/single-business/src/components/LastOrder/index.tsx +168 -168
  1210. package/themes/single-business/src/components/LastOrder/styles.tsx +16 -16
  1211. package/themes/single-business/src/components/LastOrders/index.tsx +104 -104
  1212. package/themes/single-business/src/components/LastOrders/styles.tsx +17 -17
  1213. package/themes/single-business/src/components/LoginForm/index.tsx +570 -570
  1214. package/themes/single-business/src/components/LoginForm/styles.tsx +82 -82
  1215. package/themes/single-business/src/components/LogoutButton/index.tsx +36 -36
  1216. package/themes/single-business/src/components/Messages/index.tsx +350 -350
  1217. package/themes/single-business/src/components/Messages/styles.tsx +20 -20
  1218. package/themes/single-business/src/components/MomentOption/index.tsx +321 -321
  1219. package/themes/single-business/src/components/MomentOption/styles.tsx +66 -66
  1220. package/themes/single-business/src/components/NavBar/index.tsx +129 -129
  1221. package/themes/single-business/src/components/NotFoundSource/index.tsx +50 -50
  1222. package/themes/single-business/src/components/NotFoundSource/styles.tsx +16 -16
  1223. package/themes/single-business/src/components/Notifications/index.tsx +120 -120
  1224. package/themes/single-business/src/components/Notifications/styles.ts +20 -20
  1225. package/themes/single-business/src/components/OrderDetails/index.tsx +786 -786
  1226. package/themes/single-business/src/components/OrderDetails/styles.tsx +120 -120
  1227. package/themes/single-business/src/components/OrderSummary/index.tsx +198 -198
  1228. package/themes/single-business/src/components/OrderSummary/styles.tsx +35 -35
  1229. package/themes/single-business/src/components/OrderTypeSelector/index.tsx +92 -92
  1230. package/themes/single-business/src/components/OrderTypeSelector/styles.tsx +26 -26
  1231. package/themes/single-business/src/components/OrdersOption/index.tsx +243 -243
  1232. package/themes/single-business/src/components/OrdersOption/styles.tsx +5 -5
  1233. package/themes/single-business/src/components/PaymentOptionCash/index.tsx +102 -102
  1234. package/themes/single-business/src/components/PaymentOptionCash/styles.tsx +18 -18
  1235. package/themes/single-business/src/components/PaymentOptionStripe/index.tsx +234 -234
  1236. package/themes/single-business/src/components/PaymentOptionStripe/styles.tsx +69 -69
  1237. package/themes/single-business/src/components/PaymentOptions/index.tsx +431 -431
  1238. package/themes/single-business/src/components/PaymentOptions/styles.tsx +74 -74
  1239. package/themes/single-business/src/components/PhoneInputNumber/index.tsx +127 -127
  1240. package/themes/single-business/src/components/PhoneInputNumber/styles.tsx +3 -3
  1241. package/themes/single-business/src/components/PreviousOrders/index.tsx +195 -195
  1242. package/themes/single-business/src/components/PreviousOrders/styles.tsx +33 -33
  1243. package/themes/single-business/src/components/ProductForm/index.tsx +695 -695
  1244. package/themes/single-business/src/components/ProductForm/styles.tsx +77 -77
  1245. package/themes/single-business/src/components/ProductIngredient/index.tsx +43 -43
  1246. package/themes/single-business/src/components/ProductIngredient/styles.tsx +7 -7
  1247. package/themes/single-business/src/components/ProductItemAccordion/index.tsx +276 -276
  1248. package/themes/single-business/src/components/ProductItemAccordion/styles.tsx +57 -57
  1249. package/themes/single-business/src/components/ProductOption/index.tsx +50 -50
  1250. package/themes/single-business/src/components/ProductOption/styles.tsx +11 -11
  1251. package/themes/single-business/src/components/ProductOptionSubOption/index.tsx +146 -146
  1252. package/themes/single-business/src/components/ProductOptionSubOption/styles.tsx +32 -32
  1253. package/themes/single-business/src/components/PromotionCard/index.tsx +103 -103
  1254. package/themes/single-business/src/components/PromotionCard/styles.tsx +28 -28
  1255. package/themes/single-business/src/components/Promotions/index.tsx +78 -78
  1256. package/themes/single-business/src/components/Promotions/styles.tsx +3 -3
  1257. package/themes/single-business/src/components/ReviewOrder/index.tsx +331 -331
  1258. package/themes/single-business/src/components/ReviewOrder/styles.tsx +44 -44
  1259. package/themes/single-business/src/components/SearchBar/index.tsx +112 -112
  1260. package/themes/single-business/src/components/SignupForm/index.tsx +643 -643
  1261. package/themes/single-business/src/components/SignupForm/styles.tsx +27 -27
  1262. package/themes/single-business/src/components/SingleProductCard/index.tsx +124 -124
  1263. package/themes/single-business/src/components/SingleProductCard/styles.tsx +23 -23
  1264. package/themes/single-business/src/components/StripeCardForm/index.tsx +97 -97
  1265. package/themes/single-business/src/components/StripeCardForm/naked.tsx +128 -128
  1266. package/themes/single-business/src/components/StripeCardForm/styles.tsx +32 -32
  1267. package/themes/single-business/src/components/StripeCardsList/index.tsx +143 -143
  1268. package/themes/single-business/src/components/StripeElementsForm/index.tsx +204 -204
  1269. package/themes/single-business/src/components/StripeElementsForm/naked.tsx +90 -90
  1270. package/themes/single-business/src/components/StripeElementsForm/styles.tsx +13 -13
  1271. package/themes/single-business/src/components/StripeRedirectForm/index.tsx +159 -159
  1272. package/themes/single-business/src/components/StripeRedirectForm/styles.tsx +23 -23
  1273. package/themes/single-business/src/components/TagSelector/index.tsx +94 -94
  1274. package/themes/single-business/src/components/UpsellingProducts/index.tsx +259 -259
  1275. package/themes/single-business/src/components/UpsellingProducts/styles.tsx +57 -57
  1276. package/themes/single-business/src/components/UserDetails/index.tsx +134 -134
  1277. package/themes/single-business/src/components/UserDetails/styles.tsx +25 -25
  1278. package/themes/single-business/src/components/UserFormDetails/index.tsx +351 -351
  1279. package/themes/single-business/src/components/UserFormDetails/styles.tsx +35 -35
  1280. package/themes/single-business/src/components/UserProfile/index.tsx +179 -179
  1281. package/themes/single-business/src/components/UserProfile/styles.ts +42 -42
  1282. package/themes/single-business/src/components/UserProfileForm/index.tsx +253 -253
  1283. package/themes/single-business/src/components/UserProfileForm/styles.tsx +29 -29
  1284. package/themes/single-business/src/components/VerifyPhone/index.tsx +188 -188
  1285. package/themes/single-business/src/components/VerifyPhone/styles.tsx +43 -43
  1286. package/themes/single-business/src/components/shared/OAlert.tsx +55 -55
  1287. package/themes/single-business/src/components/shared/OBottomPopup.tsx +73 -73
  1288. package/themes/single-business/src/components/shared/OButton.tsx +132 -132
  1289. package/themes/single-business/src/components/shared/ODropDown.tsx +169 -169
  1290. package/themes/single-business/src/components/shared/OIcon.tsx +53 -53
  1291. package/themes/single-business/src/components/shared/OIconButton.tsx +127 -127
  1292. package/themes/single-business/src/components/shared/OIconText.tsx +53 -53
  1293. package/themes/single-business/src/components/shared/OInput.tsx +113 -113
  1294. package/themes/single-business/src/components/shared/OKeyButton.tsx +34 -34
  1295. package/themes/single-business/src/components/shared/OModal.tsx +172 -172
  1296. package/themes/single-business/src/components/shared/OText.tsx +52 -52
  1297. package/themes/single-business/src/components/shared/OTextarea.tsx +36 -36
  1298. package/themes/single-business/src/components/shared/OToast.tsx +93 -93
  1299. package/themes/single-business/src/components/shared/OToggle.tsx +157 -157
  1300. package/themes/single-business/src/components/shared/index.tsx +31 -31
  1301. package/themes/single-business/src/config/constants.tsx +41 -41
  1302. package/themes/single-business/src/layouts/Container.tsx +23 -23
  1303. package/themes/single-business/src/layouts/SafeAreaContainer.tsx +6 -6
  1304. package/themes/single-business/src/providers/AlertProvider.tsx +43 -43
  1305. package/themes/single-business/src/providers/StoreUtil.tsx +50 -50
  1306. package/themes/single-business/src/types/index.tsx +430 -430
  1307. package/themes/single-business/src/utils/index.tsx +221 -221
  1308. package/themes/uber-eats/index.tsx +127 -127
  1309. package/themes/uber-eats/src/assets/json/order.json +204 -204
  1310. package/themes/uber-eats/src/assets/json/orders.json +3591 -3591
  1311. package/themes/uber-eats/src/components/Account/index.tsx +200 -200
  1312. package/themes/uber-eats/src/components/Account/styles.tsx +21 -21
  1313. package/themes/uber-eats/src/components/ActiveOrders/index.tsx +135 -135
  1314. package/themes/uber-eats/src/components/ActiveOrders/styles.tsx +50 -50
  1315. package/themes/uber-eats/src/components/AddressDetails/index.tsx +71 -71
  1316. package/themes/uber-eats/src/components/AddressDetails/styles.tsx +13 -13
  1317. package/themes/uber-eats/src/components/AddressForm/index.tsx +715 -715
  1318. package/themes/uber-eats/src/components/AddressForm/styles.tsx +31 -31
  1319. package/themes/uber-eats/src/components/AddressList/index.tsx +323 -323
  1320. package/themes/uber-eats/src/components/AddressList/styles.tsx +23 -23
  1321. package/themes/uber-eats/src/components/BusinessBasicInformation/index.tsx +226 -226
  1322. package/themes/uber-eats/src/components/BusinessBasicInformation/styles.tsx +41 -41
  1323. package/themes/uber-eats/src/components/BusinessController/index.tsx +201 -201
  1324. package/themes/uber-eats/src/components/BusinessController/styles.tsx +58 -58
  1325. package/themes/uber-eats/src/components/BusinessInformation/index.tsx +101 -101
  1326. package/themes/uber-eats/src/components/BusinessInformation/styles.tsx +36 -36
  1327. package/themes/uber-eats/src/components/BusinessItemAccordion/index.tsx +145 -145
  1328. package/themes/uber-eats/src/components/BusinessItemAccordion/styles.tsx +61 -61
  1329. package/themes/uber-eats/src/components/BusinessProductsCategories/index.tsx +141 -141
  1330. package/themes/uber-eats/src/components/BusinessProductsCategories/styles.tsx +7 -7
  1331. package/themes/uber-eats/src/components/BusinessProductsList/index.tsx +195 -195
  1332. package/themes/uber-eats/src/components/BusinessProductsList/styles.tsx +13 -13
  1333. package/themes/uber-eats/src/components/BusinessProductsListing/index.tsx +411 -411
  1334. package/themes/uber-eats/src/components/BusinessProductsListing/styles.tsx +52 -52
  1335. package/themes/uber-eats/src/components/BusinessReviews/index.tsx +121 -121
  1336. package/themes/uber-eats/src/components/BusinessReviews/styles.tsx +33 -33
  1337. package/themes/uber-eats/src/components/BusinessTypeFilter/index.tsx +194 -194
  1338. package/themes/uber-eats/src/components/BusinessTypeFilter/styles.tsx +28 -28
  1339. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +214 -214
  1340. package/themes/uber-eats/src/components/BusinessesListing/styles.tsx +54 -54
  1341. package/themes/uber-eats/src/components/Cart/index.tsx +270 -270
  1342. package/themes/uber-eats/src/components/Cart/styles.tsx +26 -26
  1343. package/themes/uber-eats/src/components/CartContent/index.tsx +50 -50
  1344. package/themes/uber-eats/src/components/CartContent/styles.tsx +19 -19
  1345. package/themes/uber-eats/src/components/Checkout/index.tsx +709 -709
  1346. package/themes/uber-eats/src/components/Checkout/styles.tsx +72 -72
  1347. package/themes/uber-eats/src/components/CouponControl/index.tsx +120 -120
  1348. package/themes/uber-eats/src/components/CouponControl/styles.tsx +22 -22
  1349. package/themes/uber-eats/src/components/DriverTips/index.tsx +167 -167
  1350. package/themes/uber-eats/src/components/DriverTips/styles.tsx +47 -47
  1351. package/themes/uber-eats/src/components/FacebookLogin/index.tsx +124 -124
  1352. package/themes/uber-eats/src/components/FacebookLogin/styles.tsx +21 -21
  1353. package/themes/uber-eats/src/components/FloatingButton/index.tsx +74 -74
  1354. package/themes/uber-eats/src/components/FloatingButton/styles.tsx +31 -31
  1355. package/themes/uber-eats/src/components/GoogleMap/index.tsx +236 -236
  1356. package/themes/uber-eats/src/components/Help/index.tsx +54 -54
  1357. package/themes/uber-eats/src/components/Help/styles.tsx +11 -11
  1358. package/themes/uber-eats/src/components/HelpAccountAndPayment/index.tsx +67 -67
  1359. package/themes/uber-eats/src/components/HelpAccountAndPayment/styles.tsx +6 -6
  1360. package/themes/uber-eats/src/components/HelpGuide/index.tsx +66 -66
  1361. package/themes/uber-eats/src/components/HelpGuide/styles.tsx +6 -6
  1362. package/themes/uber-eats/src/components/HelpOrder/index.tsx +78 -78
  1363. package/themes/uber-eats/src/components/HelpOrder/styles.tsx +5 -5
  1364. package/themes/uber-eats/src/components/HighestRatedBusinesses/index.tsx +132 -132
  1365. package/themes/uber-eats/src/components/HighestRatedBusinesses/styles.tsx +6 -6
  1366. package/themes/uber-eats/src/components/Home/index.tsx +117 -117
  1367. package/themes/uber-eats/src/components/Home/styles.tsx +13 -13
  1368. package/themes/uber-eats/src/components/LanguageSelector/index.tsx +154 -154
  1369. package/themes/uber-eats/src/components/LanguageSelector/styles.tsx +18 -18
  1370. package/themes/uber-eats/src/components/LastOrders/index.tsx +104 -104
  1371. package/themes/uber-eats/src/components/LastOrders/styles.tsx +17 -17
  1372. package/themes/uber-eats/src/components/LoginForm/index.tsx +435 -435
  1373. package/themes/uber-eats/src/components/LoginForm/styles.tsx +65 -65
  1374. package/themes/uber-eats/src/components/LogoutButton/index.tsx +67 -67
  1375. package/themes/uber-eats/src/components/Messages/index.tsx +366 -366
  1376. package/themes/uber-eats/src/components/Messages/styles.tsx +21 -21
  1377. package/themes/uber-eats/src/components/MomentOption/index.tsx +211 -211
  1378. package/themes/uber-eats/src/components/MomentOption/styles.tsx +66 -66
  1379. package/themes/uber-eats/src/components/NavBar/index.tsx +122 -122
  1380. package/themes/uber-eats/src/components/NotFoundSource/index.tsx +55 -55
  1381. package/themes/uber-eats/src/components/NotFoundSource/styles.tsx +16 -16
  1382. package/themes/uber-eats/src/components/OrderDetails/index.tsx +444 -444
  1383. package/themes/uber-eats/src/components/OrderDetails/styles.tsx +140 -140
  1384. package/themes/uber-eats/src/components/OrderSummary/index.tsx +199 -199
  1385. package/themes/uber-eats/src/components/OrderSummary/styles.tsx +31 -31
  1386. package/themes/uber-eats/src/components/OrderTypeSelector/index.tsx +130 -130
  1387. package/themes/uber-eats/src/components/OrderTypeSelector/styles.tsx +6 -6
  1388. package/themes/uber-eats/src/components/OrdersOption/index.tsx +223 -223
  1389. package/themes/uber-eats/src/components/OrdersOption/styles.tsx +3 -3
  1390. package/themes/uber-eats/src/components/PaymentOptionCash/index.tsx +102 -102
  1391. package/themes/uber-eats/src/components/PaymentOptionCash/styles.tsx +18 -18
  1392. package/themes/uber-eats/src/components/PaymentOptionStripe/index.tsx +232 -232
  1393. package/themes/uber-eats/src/components/PaymentOptionStripe/styles.tsx +62 -62
  1394. package/themes/uber-eats/src/components/PaymentOptions/index.tsx +547 -547
  1395. package/themes/uber-eats/src/components/PaymentOptions/styles.tsx +41 -41
  1396. package/themes/uber-eats/src/components/PhoneInputNumber/index.tsx +108 -108
  1397. package/themes/uber-eats/src/components/PhoneInputNumber/styles.tsx +4 -4
  1398. package/themes/uber-eats/src/components/PreviousOrders/index.tsx +149 -149
  1399. package/themes/uber-eats/src/components/PreviousOrders/styles.tsx +34 -34
  1400. package/themes/uber-eats/src/components/ProductForm/index.tsx +440 -440
  1401. package/themes/uber-eats/src/components/ProductForm/styles.tsx +91 -91
  1402. package/themes/uber-eats/src/components/ProductIngredient/index.tsx +44 -44
  1403. package/themes/uber-eats/src/components/ProductIngredient/styles.tsx +7 -7
  1404. package/themes/uber-eats/src/components/ProductItemAccordion/index.tsx +252 -252
  1405. package/themes/uber-eats/src/components/ProductItemAccordion/styles.tsx +61 -61
  1406. package/themes/uber-eats/src/components/ProductOption/index.tsx +109 -109
  1407. package/themes/uber-eats/src/components/ProductOption/styles.tsx +27 -27
  1408. package/themes/uber-eats/src/components/ProductOptionSubOption/index.tsx +159 -159
  1409. package/themes/uber-eats/src/components/ProductOptionSubOption/styles.tsx +32 -32
  1410. package/themes/uber-eats/src/components/SearchBar/index.tsx +106 -106
  1411. package/themes/uber-eats/src/components/SignupForm/index.tsx +574 -574
  1412. package/themes/uber-eats/src/components/SignupForm/styles.tsx +29 -29
  1413. package/themes/uber-eats/src/components/SingleProductCard/index.tsx +88 -88
  1414. package/themes/uber-eats/src/components/SingleProductCard/styles.tsx +26 -26
  1415. package/themes/uber-eats/src/components/StripeCardsList/index.tsx +144 -144
  1416. package/themes/uber-eats/src/components/StripeElementsForm/index.tsx +188 -188
  1417. package/themes/uber-eats/src/components/StripeElementsForm/naked.tsx +90 -90
  1418. package/themes/uber-eats/src/components/StripeElementsForm/styles.tsx +9 -9
  1419. package/themes/uber-eats/src/components/UpsellingProducts/index.tsx +189 -189
  1420. package/themes/uber-eats/src/components/UpsellingProducts/styles.tsx +37 -37
  1421. package/themes/uber-eats/src/components/UserDetails/index.tsx +125 -125
  1422. package/themes/uber-eats/src/components/UserDetails/styles.tsx +21 -21
  1423. package/themes/uber-eats/src/components/UserFormDetails/index.tsx +304 -304
  1424. package/themes/uber-eats/src/components/UserFormDetails/styles.tsx +38 -38
  1425. package/themes/uber-eats/src/components/UserProfileForm/index.tsx +106 -106
  1426. package/themes/uber-eats/src/components/UserProfileForm/styles.tsx +37 -37
  1427. package/themes/uber-eats/src/components/VerifyPhone/index.tsx +187 -187
  1428. package/themes/uber-eats/src/components/VerifyPhone/styles.tsx +43 -43
  1429. package/themes/uber-eats/src/components/shared/OAlert.tsx +53 -53
  1430. package/themes/uber-eats/src/components/shared/OBottomPopup.tsx +108 -108
  1431. package/themes/uber-eats/src/components/shared/OButton.tsx +134 -134
  1432. package/themes/uber-eats/src/components/shared/ODropDown.tsx +167 -167
  1433. package/themes/uber-eats/src/components/shared/OIcon.tsx +52 -52
  1434. package/themes/uber-eats/src/components/shared/OIconButton.tsx +134 -134
  1435. package/themes/uber-eats/src/components/shared/OInput.tsx +122 -122
  1436. package/themes/uber-eats/src/components/shared/OModal.tsx +151 -151
  1437. package/themes/uber-eats/src/components/shared/OText.tsx +52 -52
  1438. package/themes/uber-eats/src/components/shared/OToast.tsx +94 -94
  1439. package/themes/uber-eats/src/components/shared/index.tsx +22 -22
  1440. package/themes/uber-eats/src/config/constants.tsx +10 -10
  1441. package/themes/uber-eats/src/layouts/Container.tsx +28 -28
  1442. package/themes/uber-eats/src/layouts/SafeAreaContainer.tsx +6 -6
  1443. package/themes/uber-eats/src/providers/AlertProvider.tsx +43 -43
  1444. package/themes/uber-eats/src/providers/StoreUtil.tsx +58 -58
  1445. package/themes/uber-eats/src/types/@stripe/stripe-react-native/index.d.ts +1 -1
  1446. package/themes/uber-eats/src/types/index.tsx +451 -451
  1447. package/themes/uber-eats/src/types/ordering-api-sdk/index.d.ts +1 -1
  1448. package/themes/uber-eats/src/types/ordering-components/index.d.ts +1 -1
  1449. package/themes/uber-eats/src/types/react-hook-form/index.d.ts +1 -1
  1450. package/themes/uber-eats/src/types/react-native-credit-card-input/index.d.ts +1 -1
  1451. package/themes/uber-eats/src/types/react-native-fbsdk/index.d.ts +1 -1
  1452. package/themes/uber-eats/src/types/react-native-gesture-handler/index.d.ts +1 -1
  1453. package/themes/uber-eats/src/types/react-native-gifted-chat/index.d.ts +1 -1
  1454. package/themes/uber-eats/src/types/react-native-image-picker/index.d.ts +1 -1
  1455. package/themes/uber-eats/src/types/react-native-restart/index.d.ts +1 -1
  1456. package/themes/uber-eats/src/types/styled-components/index.d.ts +1 -1
  1457. package/themes/uber-eats/src/utils/index.tsx +164 -164
@@ -1,803 +1,803 @@
1
- import React, { useEffect } from 'react';
2
- import {
3
- ProductForm as ProductOptions,
4
- useSession,
5
- useLanguage,
6
- useOrder,
7
- useUtils
8
- } from 'ordering-components/native';
9
- import { useTheme } from 'styled-components/native';
10
- import { ProductIngredient } from '../ProductIngredient';
11
- import { ProductOption } from '../ProductOption';
12
- import Swiper from 'react-native-swiper'
13
- import FastImage from 'react-native-fast-image';
14
- import IconAntDesign from 'react-native-vector-icons/AntDesign';
15
-
16
- import { View, TouchableOpacity, StyleSheet, Dimensions, Platform, AppRegistry } from 'react-native';
17
-
18
- import {
19
- ProductHeader,
20
- WrapHeader,
21
- TopHeader,
22
- WrapContent,
23
- ProductTitle,
24
- ProductDescription,
25
- ProductEditions,
26
- SectionTitle,
27
- WrapperIngredients,
28
- WrapperSubOption,
29
- ProductComment,
30
- ProductActions,
31
- ExtraOptionWrap
32
- } from './styles';
33
- import { OButton, OIcon, OInput, OText } from '../shared';
34
- import { ScrollView } from 'react-native-gesture-handler';
35
- import { ProductOptionSubOption } from '../ProductOptionSubOption';
36
- import { NotFoundSource } from '../NotFoundSource';
37
- import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
38
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
39
- import { useState } from 'react';
40
- import { useWindowDimensions } from 'react-native';
41
-
42
- const windowHeight = Dimensions.get('window').height;
43
- const windowWidth = Dimensions.get('window').width;
44
-
45
- export const ProductOptionsUI = (props: any) => {
46
- const {
47
- navigation,
48
- editMode,
49
- isSoldOut,
50
- productCart,
51
- increment,
52
- decrement,
53
- showOption,
54
- maxProductQuantity,
55
- errors,
56
- handleSave,
57
- handleChangeIngredientState,
58
- handleChangeSuboptionState,
59
- handleChangeCommentState,
60
- productObject,
61
- onClose,
62
- isFromCheckout,
63
- } = props;
64
-
65
- const theme = useTheme();
66
-
67
- const styles = StyleSheet.create({
68
- mainContainer: {
69
-
70
- },
71
- headerItem: {
72
- overflow: 'hidden',
73
- backgroundColor: theme.colors.clear,
74
- width: 35,
75
- marginVertical: 18,
76
- },
77
- optionContainer: {
78
- marginBottom: 20,
79
- },
80
- comment: {
81
- borderWidth: 1,
82
- borderRadius: 8,
83
- borderColor: theme.colors.border,
84
- height: 100,
85
- alignItems: 'flex-start',
86
- },
87
- quantityControl: {
88
- flexDirection: 'row',
89
- justifyContent: 'space-between',
90
- alignItems: 'center',
91
- marginRight: 10,
92
- },
93
- btnBackArrow: {
94
- borderWidth: 0,
95
- backgroundColor: 'rgba(0,0,0,0.3)',
96
- borderRadius: 24,
97
- marginRight: 15,
98
- },
99
- productHeaderSkeleton: {
100
- flexDirection: 'row',
101
- width: '100%',
102
- position: 'relative',
103
- maxHeight: 260,
104
- height: 260,
105
- resizeMode: 'cover',
106
- minHeight: 200,
107
- zIndex: 0,
108
- },
109
- extraItem: {
110
- paddingHorizontal: 7,
111
- paddingBottom: 10,
112
- borderBottomWidth: 1,
113
- borderBottomColor: theme.colors.border,
114
- justifyContent: 'center',
115
- },
116
- slide1: {
117
- flex: 1,
118
- },
119
- mainSwiper : {
120
- height: 258,
121
- },
122
- swiperButton: {
123
- marginHorizontal: 30,
124
- alignItems: 'center',
125
- justifyContent: 'center',
126
- width: 32,
127
- height: 32,
128
- borderRadius: 16,
129
- backgroundColor: 'rgba(255,255,255,0.3)'
130
- }
131
- });
132
-
133
- const [{ parsePrice, optimizeImage }] = useUtils();
134
- const [, t] = useLanguage();
135
- const [orderState] = useOrder();
136
- const [{ auth }] = useSession();
137
- const { product, loading, error } = productObject;
138
- const [gallery, setGallery] = useState([])
139
- const [thumbsSwiper, setThumbsSwiper] = useState(0)
140
-
141
- const { top, bottom } = useSafeAreaInsets();
142
- const { height } = useWindowDimensions();
143
- const [selOpt, setSelectedOpt] = useState(0);
144
-
145
- const isError = (id: number) => {
146
- let bgColor = theme.colors.white;
147
- if (errors[`id:${id}`]) {
148
- bgColor = 'rgba(255, 0, 0, 0.05)';
149
- }
150
- if (isSoldOut || maxProductQuantity <= 0) {
151
- bgColor = 'hsl(0, 0%, 72%)';
152
- }
153
- return bgColor;
154
- };
155
-
156
- const handleSaveProduct = () => {
157
- console.log('----- click handle ------')
158
- const isErrors = Object.values(errors).length > 0;
159
- if (!isErrors) {
160
- console.log('----- save handle ------')
161
- handleSave && handleSave();
162
- return;
163
- }
164
- };
165
-
166
- const hasRespected = (options: Array<any>, respect_id: number) => {
167
- if (respect_id == null) return;
168
- const option: any = options.filter(({ id }: any) => id === selOpt);
169
- if (option == undefined) return false;
170
- if (option?.suboptions?.length == 0) return false;
171
- const sel = option[0]?.suboptions?.filter(
172
- ({ id }: any) => id === respect_id,
173
- );
174
- return sel[0]?.id !== undefined;
175
- };
176
-
177
- const handleChangeMainIndex = (index: number) => {
178
- setThumbsSwiper(index)
179
- }
180
-
181
- const handleRedirectLogin = () => {
182
- onClose();
183
- navigation.navigate('Login');
184
- };
185
-
186
- useEffect(() => {
187
- const productImgList: any = []
188
- product?.images && productImgList.push(product.images)
189
- for (const img of product?.gallery) {
190
- productImgList.push(img.file)
191
- }
192
- setGallery(productImgList)
193
- }, [product])
194
-
195
- const saveErrors =
196
- orderState.loading ||
197
- maxProductQuantity === 0 ||
198
- Object.keys(errors).length > 0;
199
-
200
- const ExtraOptions = ({ eID, options }: any) => (
201
- <>
202
- {product?.ingredients.length > 0 && (
203
- <TouchableOpacity
204
- key={`eopt_all_00`}
205
- onPress={() => setSelectedOpt(-1)}
206
- style={[
207
- styles.extraItem,
208
- {
209
- borderBottomColor:
210
- selOpt == -1 ? theme.colors.textNormal : theme.colors.border,
211
- },
212
- ]}>
213
- <OText
214
- color={selOpt == -1 ? theme.colors.textNormal : theme.colors.textSecondary}
215
- size={selOpt == -1 ? 14 : 12}
216
- weight={selOpt == -1 ? '600' : 'normal'}>
217
- {t('INGREDIENTS', 'Ingredients')}
218
- </OText>
219
- </TouchableOpacity>
220
- )}
221
- {options.map(({ id, name, respect_to }: any) => (
222
- <React.Fragment key={`cont_key_${id}`}>
223
- {respect_to == null && (
224
- <TouchableOpacity
225
- key={`eopt_key_${id}`}
226
- onPress={() => setSelectedOpt(id)}
227
- style={[
228
- styles.extraItem,
229
- {
230
- borderBottomColor:
231
- selOpt == id ? theme.colors.textNormal : theme.colors.border,
232
- },
233
- ]}>
234
- <OText
235
- color={
236
- selOpt == id ? theme.colors.textNormal : theme.colors.textSecondary
237
- }
238
- size={selOpt == id ? 14 : 12}
239
- weight={selOpt == id ? '600' : 'normal'}>
240
- {name}
241
- </OText>
242
- </TouchableOpacity>
243
- )}
244
- </React.Fragment>
245
- ))}
246
- </>
247
- );
248
-
249
- return (
250
- <>
251
- <TopHeader>
252
- <TouchableOpacity
253
- style={styles.headerItem}
254
- onPress={onClose}>
255
- <OIcon src={theme.images.general.close} width={16} />
256
- </TouchableOpacity>
257
- </TopHeader>
258
- <ScrollView>
259
- {!error && (
260
- <View style={{ paddingBottom: 80 }}>
261
- <WrapHeader>
262
- {loading && !product ? (
263
- <View style={styles.productHeaderSkeleton}>
264
- <Placeholder Animation={Fade}>
265
- <PlaceholderLine
266
- height={258}
267
- style={{ borderRadius: 0 }}
268
- width={windowWidth}
269
- />
270
- </Placeholder>
271
- </View>
272
- ) : (
273
- <>
274
- <Swiper
275
- loop={false}
276
- showsButtons={true}
277
- style={styles.mainSwiper}
278
- // index={thumbsSwiper}
279
- onIndexChanged={(index) => handleChangeMainIndex(index)}
280
- prevButton={
281
- <View style={styles.swiperButton}>
282
- <IconAntDesign
283
- name="caretleft"
284
- color={theme.colors.white}
285
- size={13}
286
- // style={styles.starIcon}
287
- />
288
- </View>
289
- }
290
- nextButton={
291
- <View style={styles.swiperButton}>
292
- <IconAntDesign
293
- name="caretright"
294
- color={theme.colors.white}
295
- size={13}
296
- // style={styles.starIcon}
297
- />
298
- </View>
299
- }
300
- >
301
- {gallery.length > 0 && gallery.map((img, i) => (
302
- <View
303
- style={styles.slide1}
304
- key={i}
305
- >
306
- <FastImage
307
- style={{ height: '100%' }}
308
- source={{
309
- uri: optimizeImage(img, 'h_258,c_limit'),
310
- priority: FastImage.priority.normal,
311
- }}
312
- />
313
- </View>
314
- ))}
315
- </Swiper>
316
- <ScrollView
317
- horizontal
318
- contentContainerStyle={{
319
- paddingHorizontal: 30,
320
- paddingVertical: 15
321
- }}
322
- >
323
- {gallery.length > 0 && gallery.map((img, index) => (
324
- <View
325
- key={index}
326
- style={{
327
- height: 56,
328
- borderRadius: 8,
329
- margin: 8,
330
- opacity: index === thumbsSwiper ? 1 : 0.8
331
- }}
332
- >
333
- <OIcon
334
- url={img}
335
- style={{
336
- borderColor: theme.colors.lightGray,
337
- borderRadius: 8,
338
- minHeight: '100%'
339
- }}
340
- width={56}
341
- height={56}
342
- cover
343
- />
344
- {/* {thumbsSwiper === 2 && <OText color='red'>{index.toString()}</OText>}
345
- {thumbsSwiper === 3 && <OText color='red'>{index.toString()}</OText>} */}
346
- </View>
347
- ))}
348
- </ScrollView>
349
- </>
350
- )}
351
- </WrapHeader>
352
- <WrapContent>
353
- <ProductTitle>
354
- {loading && !product ? (
355
- <Placeholder Animation={Fade}>
356
- <View
357
- style={{
358
- flexDirection: 'row',
359
- justifyContent: 'space-between',
360
- }}>
361
- <PlaceholderLine width={40} height={20} />
362
- <PlaceholderLine width={30} height={20} />
363
- </View>
364
- </Placeholder>
365
- ) : (
366
- <>
367
- <OText
368
- size={20}
369
- lineHeight={30}
370
- weight={'600'}
371
- style={{ flex: 1, marginBottom: 5 }}>
372
- {product?.name || productCart.name}
373
- </OText>
374
- <OText size={16} lineHeight={24} color={theme.colors.textNormal}>
375
- {productCart.price ? parsePrice(productCart.price) : ''}
376
- </OText>
377
- </>
378
- )}
379
- </ProductTitle>
380
- <ProductDescription>
381
- <OText color={theme.colors.textSecondary} size={12} lineHeight={18}>
382
- {product?.description || productCart?.description}
383
- </OText>
384
- {((product?.sku &&
385
- product?.sku !== '-1' &&
386
- product?.sku !== '1') ||
387
- (productCart?.sku &&
388
- productCart?.sku !== '-1' &&
389
- productCart?.sku !== '1')) && (
390
- <>
391
- <OText size={16}>{t('SKU', 'Sku')}</OText>
392
- <OText>{product?.sku || productCart?.sku}</OText>
393
- </>
394
- )}
395
- </ProductDescription>
396
- {loading && !product ? (
397
- <>
398
- {[...Array(2)].map((item, i) => (
399
- <Placeholder
400
- key={i}
401
- style={{ marginBottom: 20 }}
402
- Animation={Fade}>
403
- <PlaceholderLine
404
- height={40}
405
- style={{ flex: 1, marginTop: 10 }}
406
- />
407
- {[...Array(3)].map((item, i) => (
408
- <View
409
- key={'place_key_' + i}
410
- style={{
411
- flexDirection: 'row',
412
- justifyContent: 'space-between',
413
- }}>
414
- <PlaceholderLine
415
- height={30}
416
- width={10}
417
- style={{ marginBottom: 20 }}
418
- />
419
- <PlaceholderLine
420
- height={30}
421
- width={50}
422
- style={{ marginBottom: 20 }}
423
- />
424
- <PlaceholderLine
425
- height={30}
426
- width={30}
427
- style={{ marginBottom: 20 }}
428
- />
429
- </View>
430
- ))}
431
- </Placeholder>
432
- ))}
433
- </>
434
- ) : (
435
- <ProductEditions>
436
- <ExtraOptionWrap
437
- horizontal
438
- showsHorizontalScrollIndicator={false}
439
- style={{ marginBottom: 20 }}
440
- contentContainerStyle={{ paddingHorizontal: 33 }}
441
- >
442
- <TouchableOpacity
443
- key={`eopt_all_0`}
444
- onPress={() => setSelectedOpt(0)}
445
- style={[
446
- styles.extraItem,
447
- {
448
- borderBottomColor: selOpt == 0 ? theme.colors.textNormal : theme.colors.border,
449
- },
450
- ]}>
451
- <OText
452
- color={selOpt == 0 ? theme.colors.textNormal : theme.colors.textSecondary}
453
- size={selOpt == 0 ? 14 : 12}
454
- weight={selOpt == 0 ? '600' : 'normal'}>
455
- {t('ALL', 'All')}
456
- </OText>
457
- </TouchableOpacity>
458
- {product?.extras.map((extra: any) =>
459
- <ExtraOptions key={extra.id} options={extra.options} />
460
- )}
461
- </ExtraOptionWrap>
462
-
463
- {selOpt == 0 ? (
464
- <>
465
- {product?.ingredients.length > 0 && (
466
- <View style={styles.optionContainer}>
467
- <SectionTitle>
468
- <OText size={16}>
469
- {t('INGREDIENTS', 'Ingredients')}
470
- </OText>
471
- </SectionTitle>
472
- <WrapperIngredients
473
- style={{
474
- backgroundColor:
475
- isSoldOut || maxProductQuantity <= 0
476
- ? 'hsl(0, 0%, 72%)'
477
- : theme.colors.white,
478
- }}>
479
- {product?.ingredients.map((ingredient: any) => (
480
- <ProductIngredient
481
- key={ingredient.id}
482
- ingredient={ingredient}
483
- state={
484
- productCart.ingredients[`id:${ingredient.id}`]
485
- }
486
- onChange={handleChangeIngredientState}
487
- />
488
- ))}
489
- </WrapperIngredients>
490
- </View>
491
- )}
492
- {product?.extras.map((extra: any) =>
493
- extra.options.map((option: any) => {
494
- const currentState =
495
- productCart.options[`id:${option.id}`] || {};
496
- return (
497
- <React.Fragment key={`popt_${option.id}`}>
498
- {showOption(option) && (
499
- <View style={styles.optionContainer}>
500
- <ProductOption
501
- option={option}
502
- currentState={currentState}
503
- error={errors[`id:${option.id}`]}>
504
- <WrapperSubOption
505
- style={{
506
- backgroundColor: isError(option.id),
507
- }}>
508
- {option.suboptions.map(
509
- (suboption: any) => {
510
- const currentState =
511
- productCart.options[
512
- `id:${option.id}`
513
- ]?.suboptions[
514
- `id:${suboption.id}`
515
- ] || {};
516
- const balance =
517
- productCart.options[
518
- `id:${option.id}`
519
- ]?.balance || 0;
520
- return (
521
- <ProductOptionSubOption
522
- key={suboption.id}
523
- onChange={
524
- handleChangeSuboptionState
525
- }
526
- balance={balance}
527
- option={option}
528
- suboption={suboption}
529
- state={currentState}
530
- disabled={
531
- isSoldOut ||
532
- maxProductQuantity <= 0
533
- }
534
- />
535
- );
536
- },
537
- )}
538
- </WrapperSubOption>
539
- </ProductOption>
540
- </View>
541
- )}
542
- </React.Fragment>
543
- );
544
- }),
545
- )}
546
- </>
547
- ) : (
548
- <>
549
- {selOpt == -1 ? (
550
- <View style={styles.optionContainer}>
551
- <SectionTitle>
552
- <OText size={16}>
553
- {t('INGREDIENTS', 'Ingredients')}
554
- </OText>
555
- </SectionTitle>
556
- <WrapperIngredients
557
- style={{
558
- backgroundColor:
559
- isSoldOut || maxProductQuantity <= 0
560
- ? 'hsl(0, 0%, 72%)'
561
- : theme.colors.white,
562
- }}>
563
- {product?.ingredients.map((ingredient: any) => (
564
- <ProductIngredient
565
- key={ingredient.id}
566
- ingredient={ingredient}
567
- state={
568
- productCart.ingredients[`id:${ingredient.id}`]
569
- }
570
- onChange={handleChangeIngredientState}
571
- />
572
- ))}
573
- </WrapperIngredients>
574
- </View>
575
- ) : (
576
- <>
577
- {product?.extras.map((extra: any) =>
578
- extra.options.map((option: any) => {
579
- if (
580
- option.id == selOpt ||
581
- (hasRespected(
582
- extra.options,
583
- option.respect_to,
584
- ) &&
585
- showOption(option))
586
- ) {
587
- const currentState =
588
- productCart.options[`id:${option.id}`] || {};
589
- return (
590
- <React.Fragment key={option.id}>
591
- {showOption(option) && (
592
- <View style={styles.optionContainer}>
593
- <ProductOption
594
- option={option}
595
- currentState={currentState}
596
- error={errors[`id:${option.id}`]}>
597
- <WrapperSubOption
598
- style={{
599
- backgroundColor: isError(
600
- option.id,
601
- ),
602
- }}>
603
- {option.suboptions.map(
604
- (suboption: any) => {
605
- const currentState =
606
- productCart.options[
607
- `id:${option.id}`
608
- ]?.suboptions[
609
- `id:${suboption.id}`
610
- ] || {};
611
- const balance =
612
- productCart.options[
613
- `id:${option.id}`
614
- ]?.balance || 0;
615
- return (
616
- <ProductOptionSubOption
617
- key={suboption.id}
618
- onChange={
619
- handleChangeSuboptionState
620
- }
621
- balance={balance}
622
- option={option}
623
- suboption={suboption}
624
- state={currentState}
625
- disabled={
626
- isSoldOut ||
627
- maxProductQuantity <= 0
628
- }
629
- />
630
- );
631
- },
632
- )}
633
- </WrapperSubOption>
634
- </ProductOption>
635
- </View>
636
- )}
637
- </React.Fragment>
638
- );
639
- }
640
- }),
641
- )}
642
- </>
643
- )}
644
- </>
645
- )}
646
- <ProductComment>
647
- <SectionTitle>
648
- <OText size={16} weight={'600'} lineHeight={24}>
649
- {t('SPECIAL_COMMENT', 'Special comment')}
650
- </OText>
651
- </SectionTitle>
652
- <OInput
653
- multiline
654
- placeholder={t('SPECIAL_COMMENT', 'Special comment')}
655
- value={productCart.comment}
656
- onChange={(val: string) =>
657
- handleChangeCommentState({ target: { value: val } })
658
- }
659
- isDisabled={
660
- !(productCart && !isSoldOut && maxProductQuantity)
661
- }
662
- style={styles.comment}
663
- />
664
- </ProductComment>
665
- </ProductEditions>
666
- )}
667
- </WrapContent>
668
- </View>
669
- )}
670
- {error && error.length > 0 && (
671
- <NotFoundSource content={error[0]?.message || error[0]} />
672
- )}
673
- </ScrollView>
674
- {!loading && !error && product && (
675
- <ProductActions
676
- style={{
677
- paddingBottom: Platform.OS === 'ios' ? bottom + 30 : bottom + 80
678
- }}
679
- >
680
- <OText size={16} lineHeight={24} weight={'600'}>
681
- {productCart.total ? parsePrice(productCart?.total) : ''}
682
- </OText>
683
- {productCart && !isSoldOut && maxProductQuantity > 0 && (
684
- <View style={styles.quantityControl}>
685
- <TouchableOpacity
686
- onPress={decrement}
687
- disabled={productCart.quantity === 1 || isSoldOut}>
688
- <OIcon
689
- src={theme.images.general.minus}
690
- width={16}
691
- color={
692
- productCart.quantity === 1 || isSoldOut
693
- ? theme.colors.backgroundGray
694
- : theme.colors.backgroundDark
695
- }
696
- />
697
- </TouchableOpacity>
698
- <OText
699
- size={12}
700
- lineHeight={18}
701
- style={{ minWidth: 29, textAlign: 'center' }}>
702
- {productCart.quantity}
703
- </OText>
704
- <TouchableOpacity
705
- onPress={increment}
706
- disabled={
707
- maxProductQuantity <= 0 ||
708
- productCart.quantity >= maxProductQuantity ||
709
- isSoldOut
710
- }>
711
- <OIcon
712
- src={theme.images.general.plus}
713
- width={16}
714
- color={
715
- maxProductQuantity <= 0 ||
716
- productCart.quantity >= maxProductQuantity ||
717
- isSoldOut
718
- ? theme.colors.backgroundGray
719
- : theme.colors.backgroundDark
720
- }
721
- />
722
- </TouchableOpacity>
723
- </View>
724
- )}
725
- <View
726
- style={{
727
- width: isSoldOut || maxProductQuantity <= 0 ? '60%' : '40%',
728
- }}>
729
- {productCart &&
730
- !isSoldOut &&
731
- maxProductQuantity > 0 &&
732
- auth &&
733
- orderState.options?.address_id && (
734
- <OButton
735
- onClick={() => handleSaveProduct()}
736
- imgRightSrc=""
737
- text={`${orderState.loading
738
- ? t('LOADING', 'Loading')
739
- : editMode
740
- ? t('UPDATE', 'Update')
741
- : t('ADD', 'Add')
742
- }`}
743
- textStyle={{
744
- color: saveErrors ? theme.colors.primary : theme.colors.white,
745
- fontSize: orderState.loading || editMode ? 10 : 14
746
- }}
747
- style={{
748
- backgroundColor: saveErrors ? theme.colors.lightGray : theme.colors.primary,
749
- borderColor: saveErrors ? theme.colors.white : theme.colors.primary,
750
- opacity: saveErrors ? 0.3 : 1,
751
- borderRadius: 7.6,
752
- height: 44,
753
- shadowOpacity: 0,
754
- borderWidth: 1,
755
- }}
756
- />
757
- )}
758
- {auth &&
759
- !orderState.options?.address_id &&
760
- (orderState.loading ? (
761
- <OButton
762
- isDisabled
763
- text={t('LOADING', 'Loading')}
764
- imgRightSrc=""
765
- textStyle={{fontSize: 10}}
766
- />
767
- ) : (
768
- <OButton onClick={navigation.navigate('AddressList')} />
769
- ))}
770
- {(!auth || isSoldOut || maxProductQuantity <= 0) && (
771
- <OButton
772
- isDisabled={isSoldOut || maxProductQuantity <= 0}
773
- onClick={() => handleRedirectLogin()}
774
- text={
775
- isSoldOut || maxProductQuantity <= 0
776
- ? t('SOLD_OUT', 'Sold out')
777
- : t('LOGIN_SIGNUP', 'Login / Sign Up')
778
- }
779
- imgRightSrc=""
780
- textStyle={{ color: theme.colors.primary, fontSize: 14 }}
781
- style={{
782
- height: 44,
783
- borderColor: theme.colors.primary,
784
- backgroundColor: theme.colors.white,
785
- }}
786
- />
787
- )}
788
- </View>
789
- </ProductActions>
790
- )}
791
- </>
792
- );
793
- };
794
-
795
-
796
- export const ProductForm = (props: any) => {
797
- const productOptionsProps = {
798
- ...props,
799
- UIComponent: ProductOptionsUI,
800
- };
801
-
802
- return <ProductOptions {...productOptionsProps} />;
803
- };
1
+ import React, { useEffect } from 'react';
2
+ import {
3
+ ProductForm as ProductOptions,
4
+ useSession,
5
+ useLanguage,
6
+ useOrder,
7
+ useUtils
8
+ } from 'ordering-components/native';
9
+ import { useTheme } from 'styled-components/native';
10
+ import { ProductIngredient } from '../ProductIngredient';
11
+ import { ProductOption } from '../ProductOption';
12
+ import Swiper from 'react-native-swiper'
13
+ import FastImage from 'react-native-fast-image';
14
+ import IconAntDesign from 'react-native-vector-icons/AntDesign';
15
+
16
+ import { View, TouchableOpacity, StyleSheet, Dimensions, Platform, AppRegistry } from 'react-native';
17
+
18
+ import {
19
+ ProductHeader,
20
+ WrapHeader,
21
+ TopHeader,
22
+ WrapContent,
23
+ ProductTitle,
24
+ ProductDescription,
25
+ ProductEditions,
26
+ SectionTitle,
27
+ WrapperIngredients,
28
+ WrapperSubOption,
29
+ ProductComment,
30
+ ProductActions,
31
+ ExtraOptionWrap
32
+ } from './styles';
33
+ import { OButton, OIcon, OInput, OText } from '../shared';
34
+ import { ScrollView } from 'react-native-gesture-handler';
35
+ import { ProductOptionSubOption } from '../ProductOptionSubOption';
36
+ import { NotFoundSource } from '../NotFoundSource';
37
+ import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
38
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
39
+ import { useState } from 'react';
40
+ import { useWindowDimensions } from 'react-native';
41
+
42
+ const windowHeight = Dimensions.get('window').height;
43
+ const windowWidth = Dimensions.get('window').width;
44
+
45
+ export const ProductOptionsUI = (props: any) => {
46
+ const {
47
+ navigation,
48
+ editMode,
49
+ isSoldOut,
50
+ productCart,
51
+ increment,
52
+ decrement,
53
+ showOption,
54
+ maxProductQuantity,
55
+ errors,
56
+ handleSave,
57
+ handleChangeIngredientState,
58
+ handleChangeSuboptionState,
59
+ handleChangeCommentState,
60
+ productObject,
61
+ onClose,
62
+ isFromCheckout,
63
+ } = props;
64
+
65
+ const theme = useTheme();
66
+
67
+ const styles = StyleSheet.create({
68
+ mainContainer: {
69
+
70
+ },
71
+ headerItem: {
72
+ overflow: 'hidden',
73
+ backgroundColor: theme.colors.clear,
74
+ width: 35,
75
+ marginVertical: 18,
76
+ },
77
+ optionContainer: {
78
+ marginBottom: 20,
79
+ },
80
+ comment: {
81
+ borderWidth: 1,
82
+ borderRadius: 8,
83
+ borderColor: theme.colors.border,
84
+ height: 100,
85
+ alignItems: 'flex-start',
86
+ },
87
+ quantityControl: {
88
+ flexDirection: 'row',
89
+ justifyContent: 'space-between',
90
+ alignItems: 'center',
91
+ marginRight: 10,
92
+ },
93
+ btnBackArrow: {
94
+ borderWidth: 0,
95
+ backgroundColor: 'rgba(0,0,0,0.3)',
96
+ borderRadius: 24,
97
+ marginRight: 15,
98
+ },
99
+ productHeaderSkeleton: {
100
+ flexDirection: 'row',
101
+ width: '100%',
102
+ position: 'relative',
103
+ maxHeight: 260,
104
+ height: 260,
105
+ resizeMode: 'cover',
106
+ minHeight: 200,
107
+ zIndex: 0,
108
+ },
109
+ extraItem: {
110
+ paddingHorizontal: 7,
111
+ paddingBottom: 10,
112
+ borderBottomWidth: 1,
113
+ borderBottomColor: theme.colors.border,
114
+ justifyContent: 'center',
115
+ },
116
+ slide1: {
117
+ flex: 1,
118
+ },
119
+ mainSwiper : {
120
+ height: 258,
121
+ },
122
+ swiperButton: {
123
+ marginHorizontal: 30,
124
+ alignItems: 'center',
125
+ justifyContent: 'center',
126
+ width: 32,
127
+ height: 32,
128
+ borderRadius: 16,
129
+ backgroundColor: 'rgba(255,255,255,0.3)'
130
+ }
131
+ });
132
+
133
+ const [{ parsePrice, optimizeImage }] = useUtils();
134
+ const [, t] = useLanguage();
135
+ const [orderState] = useOrder();
136
+ const [{ auth }] = useSession();
137
+ const { product, loading, error } = productObject;
138
+ const [gallery, setGallery] = useState([])
139
+ const [thumbsSwiper, setThumbsSwiper] = useState(0)
140
+
141
+ const { top, bottom } = useSafeAreaInsets();
142
+ const { height } = useWindowDimensions();
143
+ const [selOpt, setSelectedOpt] = useState(0);
144
+
145
+ const isError = (id: number) => {
146
+ let bgColor = theme.colors.white;
147
+ if (errors[`id:${id}`]) {
148
+ bgColor = 'rgba(255, 0, 0, 0.05)';
149
+ }
150
+ if (isSoldOut || maxProductQuantity <= 0) {
151
+ bgColor = 'hsl(0, 0%, 72%)';
152
+ }
153
+ return bgColor;
154
+ };
155
+
156
+ const handleSaveProduct = () => {
157
+ console.log('----- click handle ------')
158
+ const isErrors = Object.values(errors).length > 0;
159
+ if (!isErrors) {
160
+ console.log('----- save handle ------')
161
+ handleSave && handleSave();
162
+ return;
163
+ }
164
+ };
165
+
166
+ const hasRespected = (options: Array<any>, respect_id: number) => {
167
+ if (respect_id == null) return;
168
+ const option: any = options.filter(({ id }: any) => id === selOpt);
169
+ if (option == undefined) return false;
170
+ if (option?.suboptions?.length == 0) return false;
171
+ const sel = option[0]?.suboptions?.filter(
172
+ ({ id }: any) => id === respect_id,
173
+ );
174
+ return sel[0]?.id !== undefined;
175
+ };
176
+
177
+ const handleChangeMainIndex = (index: number) => {
178
+ setThumbsSwiper(index)
179
+ }
180
+
181
+ const handleRedirectLogin = () => {
182
+ onClose();
183
+ navigation.navigate('Login');
184
+ };
185
+
186
+ useEffect(() => {
187
+ const productImgList: any = []
188
+ product?.images && productImgList.push(product.images)
189
+ for (const img of product?.gallery) {
190
+ productImgList.push(img.file)
191
+ }
192
+ setGallery(productImgList)
193
+ }, [product])
194
+
195
+ const saveErrors =
196
+ orderState.loading ||
197
+ maxProductQuantity === 0 ||
198
+ Object.keys(errors).length > 0;
199
+
200
+ const ExtraOptions = ({ eID, options }: any) => (
201
+ <>
202
+ {product?.ingredients.length > 0 && (
203
+ <TouchableOpacity
204
+ key={`eopt_all_00`}
205
+ onPress={() => setSelectedOpt(-1)}
206
+ style={[
207
+ styles.extraItem,
208
+ {
209
+ borderBottomColor:
210
+ selOpt == -1 ? theme.colors.textNormal : theme.colors.border,
211
+ },
212
+ ]}>
213
+ <OText
214
+ color={selOpt == -1 ? theme.colors.textNormal : theme.colors.textSecondary}
215
+ size={selOpt == -1 ? 14 : 12}
216
+ weight={selOpt == -1 ? '600' : 'normal'}>
217
+ {t('INGREDIENTS', 'Ingredients')}
218
+ </OText>
219
+ </TouchableOpacity>
220
+ )}
221
+ {options.map(({ id, name, respect_to }: any) => (
222
+ <React.Fragment key={`cont_key_${id}`}>
223
+ {respect_to == null && (
224
+ <TouchableOpacity
225
+ key={`eopt_key_${id}`}
226
+ onPress={() => setSelectedOpt(id)}
227
+ style={[
228
+ styles.extraItem,
229
+ {
230
+ borderBottomColor:
231
+ selOpt == id ? theme.colors.textNormal : theme.colors.border,
232
+ },
233
+ ]}>
234
+ <OText
235
+ color={
236
+ selOpt == id ? theme.colors.textNormal : theme.colors.textSecondary
237
+ }
238
+ size={selOpt == id ? 14 : 12}
239
+ weight={selOpt == id ? '600' : 'normal'}>
240
+ {name}
241
+ </OText>
242
+ </TouchableOpacity>
243
+ )}
244
+ </React.Fragment>
245
+ ))}
246
+ </>
247
+ );
248
+
249
+ return (
250
+ <>
251
+ <TopHeader>
252
+ <TouchableOpacity
253
+ style={styles.headerItem}
254
+ onPress={onClose}>
255
+ <OIcon src={theme.images.general.close} width={16} />
256
+ </TouchableOpacity>
257
+ </TopHeader>
258
+ <ScrollView>
259
+ {!error && (
260
+ <View style={{ paddingBottom: 80 }}>
261
+ <WrapHeader>
262
+ {loading && !product ? (
263
+ <View style={styles.productHeaderSkeleton}>
264
+ <Placeholder Animation={Fade}>
265
+ <PlaceholderLine
266
+ height={258}
267
+ style={{ borderRadius: 0 }}
268
+ width={windowWidth}
269
+ />
270
+ </Placeholder>
271
+ </View>
272
+ ) : (
273
+ <>
274
+ <Swiper
275
+ loop={false}
276
+ showsButtons={true}
277
+ style={styles.mainSwiper}
278
+ // index={thumbsSwiper}
279
+ onIndexChanged={(index) => handleChangeMainIndex(index)}
280
+ prevButton={
281
+ <View style={styles.swiperButton}>
282
+ <IconAntDesign
283
+ name="caretleft"
284
+ color={theme.colors.white}
285
+ size={13}
286
+ // style={styles.starIcon}
287
+ />
288
+ </View>
289
+ }
290
+ nextButton={
291
+ <View style={styles.swiperButton}>
292
+ <IconAntDesign
293
+ name="caretright"
294
+ color={theme.colors.white}
295
+ size={13}
296
+ // style={styles.starIcon}
297
+ />
298
+ </View>
299
+ }
300
+ >
301
+ {gallery.length > 0 && gallery.map((img, i) => (
302
+ <View
303
+ style={styles.slide1}
304
+ key={i}
305
+ >
306
+ <FastImage
307
+ style={{ height: '100%' }}
308
+ source={{
309
+ uri: optimizeImage(img, 'h_258,c_limit'),
310
+ priority: FastImage.priority.normal,
311
+ }}
312
+ />
313
+ </View>
314
+ ))}
315
+ </Swiper>
316
+ <ScrollView
317
+ horizontal
318
+ contentContainerStyle={{
319
+ paddingHorizontal: 30,
320
+ paddingVertical: 15
321
+ }}
322
+ >
323
+ {gallery.length > 0 && gallery.map((img, index) => (
324
+ <View
325
+ key={index}
326
+ style={{
327
+ height: 56,
328
+ borderRadius: 8,
329
+ margin: 8,
330
+ opacity: index === thumbsSwiper ? 1 : 0.8
331
+ }}
332
+ >
333
+ <OIcon
334
+ url={img}
335
+ style={{
336
+ borderColor: theme.colors.lightGray,
337
+ borderRadius: 8,
338
+ minHeight: '100%'
339
+ }}
340
+ width={56}
341
+ height={56}
342
+ cover
343
+ />
344
+ {/* {thumbsSwiper === 2 && <OText color='red'>{index.toString()}</OText>}
345
+ {thumbsSwiper === 3 && <OText color='red'>{index.toString()}</OText>} */}
346
+ </View>
347
+ ))}
348
+ </ScrollView>
349
+ </>
350
+ )}
351
+ </WrapHeader>
352
+ <WrapContent>
353
+ <ProductTitle>
354
+ {loading && !product ? (
355
+ <Placeholder Animation={Fade}>
356
+ <View
357
+ style={{
358
+ flexDirection: 'row',
359
+ justifyContent: 'space-between',
360
+ }}>
361
+ <PlaceholderLine width={40} height={20} />
362
+ <PlaceholderLine width={30} height={20} />
363
+ </View>
364
+ </Placeholder>
365
+ ) : (
366
+ <>
367
+ <OText
368
+ size={20}
369
+ lineHeight={30}
370
+ weight={'600'}
371
+ style={{ flex: 1, marginBottom: 5 }}>
372
+ {product?.name || productCart.name}
373
+ </OText>
374
+ <OText size={16} lineHeight={24} color={theme.colors.textNormal}>
375
+ {productCart.price ? parsePrice(productCart.price) : ''}
376
+ </OText>
377
+ </>
378
+ )}
379
+ </ProductTitle>
380
+ <ProductDescription>
381
+ <OText color={theme.colors.textSecondary} size={12} lineHeight={18}>
382
+ {product?.description || productCart?.description}
383
+ </OText>
384
+ {((product?.sku &&
385
+ product?.sku !== '-1' &&
386
+ product?.sku !== '1') ||
387
+ (productCart?.sku &&
388
+ productCart?.sku !== '-1' &&
389
+ productCart?.sku !== '1')) && (
390
+ <>
391
+ <OText size={16}>{t('SKU', 'Sku')}</OText>
392
+ <OText>{product?.sku || productCart?.sku}</OText>
393
+ </>
394
+ )}
395
+ </ProductDescription>
396
+ {loading && !product ? (
397
+ <>
398
+ {[...Array(2)].map((item, i) => (
399
+ <Placeholder
400
+ key={i}
401
+ style={{ marginBottom: 20 }}
402
+ Animation={Fade}>
403
+ <PlaceholderLine
404
+ height={40}
405
+ style={{ flex: 1, marginTop: 10 }}
406
+ />
407
+ {[...Array(3)].map((item, i) => (
408
+ <View
409
+ key={'place_key_' + i}
410
+ style={{
411
+ flexDirection: 'row',
412
+ justifyContent: 'space-between',
413
+ }}>
414
+ <PlaceholderLine
415
+ height={30}
416
+ width={10}
417
+ style={{ marginBottom: 20 }}
418
+ />
419
+ <PlaceholderLine
420
+ height={30}
421
+ width={50}
422
+ style={{ marginBottom: 20 }}
423
+ />
424
+ <PlaceholderLine
425
+ height={30}
426
+ width={30}
427
+ style={{ marginBottom: 20 }}
428
+ />
429
+ </View>
430
+ ))}
431
+ </Placeholder>
432
+ ))}
433
+ </>
434
+ ) : (
435
+ <ProductEditions>
436
+ <ExtraOptionWrap
437
+ horizontal
438
+ showsHorizontalScrollIndicator={false}
439
+ style={{ marginBottom: 20 }}
440
+ contentContainerStyle={{ paddingHorizontal: 33 }}
441
+ >
442
+ <TouchableOpacity
443
+ key={`eopt_all_0`}
444
+ onPress={() => setSelectedOpt(0)}
445
+ style={[
446
+ styles.extraItem,
447
+ {
448
+ borderBottomColor: selOpt == 0 ? theme.colors.textNormal : theme.colors.border,
449
+ },
450
+ ]}>
451
+ <OText
452
+ color={selOpt == 0 ? theme.colors.textNormal : theme.colors.textSecondary}
453
+ size={selOpt == 0 ? 14 : 12}
454
+ weight={selOpt == 0 ? '600' : 'normal'}>
455
+ {t('ALL', 'All')}
456
+ </OText>
457
+ </TouchableOpacity>
458
+ {product?.extras.map((extra: any) =>
459
+ <ExtraOptions key={extra.id} options={extra.options} />
460
+ )}
461
+ </ExtraOptionWrap>
462
+
463
+ {selOpt == 0 ? (
464
+ <>
465
+ {product?.ingredients.length > 0 && (
466
+ <View style={styles.optionContainer}>
467
+ <SectionTitle>
468
+ <OText size={16}>
469
+ {t('INGREDIENTS', 'Ingredients')}
470
+ </OText>
471
+ </SectionTitle>
472
+ <WrapperIngredients
473
+ style={{
474
+ backgroundColor:
475
+ isSoldOut || maxProductQuantity <= 0
476
+ ? 'hsl(0, 0%, 72%)'
477
+ : theme.colors.white,
478
+ }}>
479
+ {product?.ingredients.map((ingredient: any) => (
480
+ <ProductIngredient
481
+ key={ingredient.id}
482
+ ingredient={ingredient}
483
+ state={
484
+ productCart.ingredients[`id:${ingredient.id}`]
485
+ }
486
+ onChange={handleChangeIngredientState}
487
+ />
488
+ ))}
489
+ </WrapperIngredients>
490
+ </View>
491
+ )}
492
+ {product?.extras.map((extra: any) =>
493
+ extra.options.map((option: any) => {
494
+ const currentState =
495
+ productCart.options[`id:${option.id}`] || {};
496
+ return (
497
+ <React.Fragment key={`popt_${option.id}`}>
498
+ {showOption(option) && (
499
+ <View style={styles.optionContainer}>
500
+ <ProductOption
501
+ option={option}
502
+ currentState={currentState}
503
+ error={errors[`id:${option.id}`]}>
504
+ <WrapperSubOption
505
+ style={{
506
+ backgroundColor: isError(option.id),
507
+ }}>
508
+ {option.suboptions.map(
509
+ (suboption: any) => {
510
+ const currentState =
511
+ productCart.options[
512
+ `id:${option.id}`
513
+ ]?.suboptions[
514
+ `id:${suboption.id}`
515
+ ] || {};
516
+ const balance =
517
+ productCart.options[
518
+ `id:${option.id}`
519
+ ]?.balance || 0;
520
+ return (
521
+ <ProductOptionSubOption
522
+ key={suboption.id}
523
+ onChange={
524
+ handleChangeSuboptionState
525
+ }
526
+ balance={balance}
527
+ option={option}
528
+ suboption={suboption}
529
+ state={currentState}
530
+ disabled={
531
+ isSoldOut ||
532
+ maxProductQuantity <= 0
533
+ }
534
+ />
535
+ );
536
+ },
537
+ )}
538
+ </WrapperSubOption>
539
+ </ProductOption>
540
+ </View>
541
+ )}
542
+ </React.Fragment>
543
+ );
544
+ }),
545
+ )}
546
+ </>
547
+ ) : (
548
+ <>
549
+ {selOpt == -1 ? (
550
+ <View style={styles.optionContainer}>
551
+ <SectionTitle>
552
+ <OText size={16}>
553
+ {t('INGREDIENTS', 'Ingredients')}
554
+ </OText>
555
+ </SectionTitle>
556
+ <WrapperIngredients
557
+ style={{
558
+ backgroundColor:
559
+ isSoldOut || maxProductQuantity <= 0
560
+ ? 'hsl(0, 0%, 72%)'
561
+ : theme.colors.white,
562
+ }}>
563
+ {product?.ingredients.map((ingredient: any) => (
564
+ <ProductIngredient
565
+ key={ingredient.id}
566
+ ingredient={ingredient}
567
+ state={
568
+ productCart.ingredients[`id:${ingredient.id}`]
569
+ }
570
+ onChange={handleChangeIngredientState}
571
+ />
572
+ ))}
573
+ </WrapperIngredients>
574
+ </View>
575
+ ) : (
576
+ <>
577
+ {product?.extras.map((extra: any) =>
578
+ extra.options.map((option: any) => {
579
+ if (
580
+ option.id == selOpt ||
581
+ (hasRespected(
582
+ extra.options,
583
+ option.respect_to,
584
+ ) &&
585
+ showOption(option))
586
+ ) {
587
+ const currentState =
588
+ productCart.options[`id:${option.id}`] || {};
589
+ return (
590
+ <React.Fragment key={option.id}>
591
+ {showOption(option) && (
592
+ <View style={styles.optionContainer}>
593
+ <ProductOption
594
+ option={option}
595
+ currentState={currentState}
596
+ error={errors[`id:${option.id}`]}>
597
+ <WrapperSubOption
598
+ style={{
599
+ backgroundColor: isError(
600
+ option.id,
601
+ ),
602
+ }}>
603
+ {option.suboptions.map(
604
+ (suboption: any) => {
605
+ const currentState =
606
+ productCart.options[
607
+ `id:${option.id}`
608
+ ]?.suboptions[
609
+ `id:${suboption.id}`
610
+ ] || {};
611
+ const balance =
612
+ productCart.options[
613
+ `id:${option.id}`
614
+ ]?.balance || 0;
615
+ return (
616
+ <ProductOptionSubOption
617
+ key={suboption.id}
618
+ onChange={
619
+ handleChangeSuboptionState
620
+ }
621
+ balance={balance}
622
+ option={option}
623
+ suboption={suboption}
624
+ state={currentState}
625
+ disabled={
626
+ isSoldOut ||
627
+ maxProductQuantity <= 0
628
+ }
629
+ />
630
+ );
631
+ },
632
+ )}
633
+ </WrapperSubOption>
634
+ </ProductOption>
635
+ </View>
636
+ )}
637
+ </React.Fragment>
638
+ );
639
+ }
640
+ }),
641
+ )}
642
+ </>
643
+ )}
644
+ </>
645
+ )}
646
+ <ProductComment>
647
+ <SectionTitle>
648
+ <OText size={16} weight={'600'} lineHeight={24}>
649
+ {t('SPECIAL_COMMENT', 'Special comment')}
650
+ </OText>
651
+ </SectionTitle>
652
+ <OInput
653
+ multiline
654
+ placeholder={t('SPECIAL_COMMENT', 'Special comment')}
655
+ value={productCart.comment}
656
+ onChange={(val: string) =>
657
+ handleChangeCommentState({ target: { value: val } })
658
+ }
659
+ isDisabled={
660
+ !(productCart && !isSoldOut && maxProductQuantity)
661
+ }
662
+ style={styles.comment}
663
+ />
664
+ </ProductComment>
665
+ </ProductEditions>
666
+ )}
667
+ </WrapContent>
668
+ </View>
669
+ )}
670
+ {error && error.length > 0 && (
671
+ <NotFoundSource content={error[0]?.message || error[0]} />
672
+ )}
673
+ </ScrollView>
674
+ {!loading && !error && product && (
675
+ <ProductActions
676
+ style={{
677
+ paddingBottom: Platform.OS === 'ios' ? bottom + 30 : bottom + 80
678
+ }}
679
+ >
680
+ <OText size={16} lineHeight={24} weight={'600'}>
681
+ {productCart.total ? parsePrice(productCart?.total) : ''}
682
+ </OText>
683
+ {productCart && !isSoldOut && maxProductQuantity > 0 && (
684
+ <View style={styles.quantityControl}>
685
+ <TouchableOpacity
686
+ onPress={decrement}
687
+ disabled={productCart.quantity === 1 || isSoldOut}>
688
+ <OIcon
689
+ src={theme.images.general.minus}
690
+ width={16}
691
+ color={
692
+ productCart.quantity === 1 || isSoldOut
693
+ ? theme.colors.backgroundGray
694
+ : theme.colors.backgroundDark
695
+ }
696
+ />
697
+ </TouchableOpacity>
698
+ <OText
699
+ size={12}
700
+ lineHeight={18}
701
+ style={{ minWidth: 29, textAlign: 'center' }}>
702
+ {productCart.quantity}
703
+ </OText>
704
+ <TouchableOpacity
705
+ onPress={increment}
706
+ disabled={
707
+ maxProductQuantity <= 0 ||
708
+ productCart.quantity >= maxProductQuantity ||
709
+ isSoldOut
710
+ }>
711
+ <OIcon
712
+ src={theme.images.general.plus}
713
+ width={16}
714
+ color={
715
+ maxProductQuantity <= 0 ||
716
+ productCart.quantity >= maxProductQuantity ||
717
+ isSoldOut
718
+ ? theme.colors.backgroundGray
719
+ : theme.colors.backgroundDark
720
+ }
721
+ />
722
+ </TouchableOpacity>
723
+ </View>
724
+ )}
725
+ <View
726
+ style={{
727
+ width: isSoldOut || maxProductQuantity <= 0 ? '60%' : '40%',
728
+ }}>
729
+ {productCart &&
730
+ !isSoldOut &&
731
+ maxProductQuantity > 0 &&
732
+ auth &&
733
+ orderState.options?.address_id && (
734
+ <OButton
735
+ onClick={() => handleSaveProduct()}
736
+ imgRightSrc=""
737
+ text={`${orderState.loading
738
+ ? t('LOADING', 'Loading')
739
+ : editMode
740
+ ? t('UPDATE', 'Update')
741
+ : t('ADD', 'Add')
742
+ }`}
743
+ textStyle={{
744
+ color: saveErrors ? theme.colors.primary : theme.colors.white,
745
+ fontSize: orderState.loading || editMode ? 10 : 14
746
+ }}
747
+ style={{
748
+ backgroundColor: saveErrors ? theme.colors.lightGray : theme.colors.primary,
749
+ borderColor: saveErrors ? theme.colors.white : theme.colors.primary,
750
+ opacity: saveErrors ? 0.3 : 1,
751
+ borderRadius: 7.6,
752
+ height: 44,
753
+ shadowOpacity: 0,
754
+ borderWidth: 1,
755
+ }}
756
+ />
757
+ )}
758
+ {auth &&
759
+ !orderState.options?.address_id &&
760
+ (orderState.loading ? (
761
+ <OButton
762
+ isDisabled
763
+ text={t('LOADING', 'Loading')}
764
+ imgRightSrc=""
765
+ textStyle={{fontSize: 10}}
766
+ />
767
+ ) : (
768
+ <OButton onClick={navigation.navigate('AddressList')} />
769
+ ))}
770
+ {(!auth || isSoldOut || maxProductQuantity <= 0) && (
771
+ <OButton
772
+ isDisabled={isSoldOut || maxProductQuantity <= 0}
773
+ onClick={() => handleRedirectLogin()}
774
+ text={
775
+ isSoldOut || maxProductQuantity <= 0
776
+ ? t('SOLD_OUT', 'Sold out')
777
+ : t('LOGIN_SIGNUP', 'Login / Sign Up')
778
+ }
779
+ imgRightSrc=""
780
+ textStyle={{ color: theme.colors.primary, fontSize: 14 }}
781
+ style={{
782
+ height: 44,
783
+ borderColor: theme.colors.primary,
784
+ backgroundColor: theme.colors.white,
785
+ }}
786
+ />
787
+ )}
788
+ </View>
789
+ </ProductActions>
790
+ )}
791
+ </>
792
+ );
793
+ };
794
+
795
+
796
+ export const ProductForm = (props: any) => {
797
+ const productOptionsProps = {
798
+ ...props,
799
+ UIComponent: ProductOptionsUI,
800
+ };
801
+
802
+ return <ProductOptions {...productOptionsProps} />;
803
+ };