@tap-payments/auth-jsconnect 2.0.45-test → 2.0.45

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 (645) hide show
  1. package/README.md +34 -34
  2. package/build/@types/app.d.ts +120 -27
  3. package/build/@types/app.js +22 -3
  4. package/build/@types/form.d.ts +70 -32
  5. package/build/@types/theme.d.ts +1 -1
  6. package/build/api/account.d.ts +6 -1
  7. package/build/api/account.js +9 -1
  8. package/build/api/auth.d.ts +45 -16
  9. package/build/api/auth.js +57 -2
  10. package/build/api/availabilityServices.d.ts +3 -3
  11. package/build/api/axios.js +3 -3
  12. package/build/api/board.d.ts +4 -3
  13. package/build/api/board.js +8 -1
  14. package/build/api/brand.d.ts +3 -1
  15. package/build/api/brand.js +18 -1
  16. package/build/api/country.d.ts +3 -1
  17. package/build/api/country.js +3 -1
  18. package/build/api/data.d.ts +46 -7
  19. package/build/api/data.js +73 -17
  20. package/build/api/entity.d.ts +88 -12
  21. package/build/api/entity.js +50 -10
  22. package/build/api/file.d.ts +13 -0
  23. package/build/api/file.js +24 -0
  24. package/build/api/firebase.d.ts +1 -1
  25. package/build/api/firebase.js +3 -1
  26. package/build/api/index.d.ts +69 -17
  27. package/build/api/index.js +5 -3
  28. package/build/api/individual.d.ts +84 -21
  29. package/build/api/individual.js +29 -2
  30. package/build/api/lead.d.ts +25 -16
  31. package/build/api/lead.js +24 -1
  32. package/build/api/location.d.ts +5 -0
  33. package/build/api/location.js +19 -0
  34. package/build/api/operator.d.ts +1 -1
  35. package/build/api/operator.js +1 -1
  36. package/build/api/user.d.ts +1 -1
  37. package/build/app/rootReducer.d.ts +2 -2
  38. package/build/app/rootReducer.js +4 -4
  39. package/build/app/settings.d.ts +20 -2
  40. package/build/app/settings.js +41 -26
  41. package/build/app/store.d.ts +8 -8
  42. package/build/assets/locales/ar.json +297 -183
  43. package/build/assets/locales/en.json +231 -108
  44. package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
  45. package/build/components/AnimationFlow/AnimationFlow.js +6 -8
  46. package/build/components/AnimationFlow/BottomSheet.d.ts +2 -1
  47. package/build/components/AnimationFlow/BottomSheet.js +4 -3
  48. package/build/components/AnimationFlow/Dialog.d.ts +4 -1
  49. package/build/components/AnimationFlow/Dialog.js +5 -3
  50. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
  51. package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
  52. package/build/components/ArabicDatePicker/index.d.ts +2 -0
  53. package/build/components/ArabicDatePicker/index.js +2 -0
  54. package/build/components/ArabicDatePicker/style.css +24 -0
  55. package/build/components/Button/Button.js +1 -5
  56. package/build/components/FileInput/DragAndDrop.d.ts +12 -2
  57. package/build/components/FileInput/DragAndDrop.js +109 -11
  58. package/build/components/Lottie/Lottie.d.ts +4204 -0
  59. package/build/components/Lottie/Lottie.js +66 -0
  60. package/build/components/Lottie/files/account_creating.json +732 -0
  61. package/build/components/Lottie/files/error.json +692 -0
  62. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
  63. package/build/components/Lottie/files/start_loading.json +1140 -0
  64. package/build/components/Lottie/files/still_loading.json +1140 -0
  65. package/build/components/Lottie/files/success.json +425 -0
  66. package/build/components/Lottie/index.d.ts +3 -0
  67. package/build/components/Lottie/index.js +3 -0
  68. package/build/components/OTPField/OTPField.d.ts +2 -1
  69. package/build/components/OTPField/OTPField.js +2 -2
  70. package/build/components/OTPTimer/OTPTimer.js +1 -1
  71. package/build/components/ProgressBar/CircularProgressBar.d.ts +16 -0
  72. package/build/components/ProgressBar/CircularProgressBar.js +48 -0
  73. package/build/components/ProgressBar/index.d.ts +2 -0
  74. package/build/components/ProgressBar/index.js +2 -0
  75. package/build/components/Radio/Radio.js +1 -1
  76. package/build/components/RadioLabel/RadioLabel.d.ts +5 -2
  77. package/build/components/RadioLabel/RadioLabel.js +2 -2
  78. package/build/components/SimpleList/SimpleList.d.ts +2 -1
  79. package/build/components/SimpleList/SimpleList.js +22 -10
  80. package/build/components/Slide/Slide.d.ts +1 -1
  81. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +2 -6
  82. package/build/components/SocialMediaGroup/SocialMediaGroup.js +4 -49
  83. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  84. package/build/components/Tooltip/Tooltip.js +12 -3
  85. package/build/constants/api.d.ts +14 -0
  86. package/build/constants/api.js +30 -1
  87. package/build/constants/app.d.ts +26 -4
  88. package/build/constants/app.js +229 -33
  89. package/build/constants/assets.d.ts +17 -0
  90. package/build/constants/assets.js +19 -2
  91. package/build/constants/dummy.d.ts +1 -1
  92. package/build/constants/dummy.js +2 -2
  93. package/build/constants/validation.d.ts +13 -0
  94. package/build/constants/validation.js +14 -1
  95. package/build/features/app/bank/bankStore.d.ts +87 -15
  96. package/build/features/app/bank/bankStore.js +99 -78
  97. package/build/features/app/brand/brandStore.d.ts +191 -0
  98. package/build/features/app/brand/brandStore.js +654 -0
  99. package/build/features/app/business/businessStore.d.ts +200 -20
  100. package/build/features/app/business/businessStore.js +513 -362
  101. package/build/features/app/connect/connectStore.d.ts +148 -40
  102. package/build/features/app/connect/connectStore.js +465 -374
  103. package/build/features/app/connectExpress/connectExpressStore.d.ts +282 -0
  104. package/build/features/app/connectExpress/connectExpressStore.js +1013 -0
  105. package/build/features/app/entity/entityStore.d.ts +127 -18
  106. package/build/features/app/entity/entityStore.js +436 -192
  107. package/build/features/app/individual/individualStore.d.ts +96 -15
  108. package/build/features/app/individual/individualStore.js +258 -134
  109. package/build/features/app/password/passwordStore.d.ts +107 -24
  110. package/build/features/app/password/passwordStore.js +50 -34
  111. package/build/features/app/signIn/signInStore.d.ts +61 -7
  112. package/build/features/app/signIn/signInStore.js +24 -47
  113. package/build/features/app/tax/taxStore.d.ts +69 -9
  114. package/build/features/app/tax/taxStore.js +112 -94
  115. package/build/features/bank/Bank.d.ts +5 -3
  116. package/build/features/bank/Bank.js +39 -36
  117. package/build/features/bank/screens/BankDetails/BankDetails.js +27 -10
  118. package/build/features/bank/screens/BankDetails/BankName.js +2 -1
  119. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +4 -1
  120. package/build/features/bank/screens/BankDetails/BankStatement.js +12 -12
  121. package/build/features/bank/screens/BankDetails/Beneficiary.js +10 -11
  122. package/build/features/bank/screens/BankDetails/IBAN.js +5 -2
  123. package/build/features/bank/screens/BankDetails/validation.d.ts +22 -6
  124. package/build/features/bank/screens/BankDetails/validation.js +11 -24
  125. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  126. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  127. package/build/features/bank/screens/PrepareDataLoading/index.d.ts +2 -0
  128. package/build/features/bank/screens/PrepareDataLoading/index.js +2 -0
  129. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  130. package/build/features/bank/screens/Success/Success.js +7 -3
  131. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
  132. package/build/features/brand/Brand.d.ts +9 -0
  133. package/build/features/brand/Brand.js +72 -0
  134. package/build/features/brand/index.d.ts +1 -0
  135. package/build/features/brand/index.js +1 -0
  136. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +91 -0
  137. package/build/features/{entity/screens/EntityInfoConfirm → brand/screens/BrandActivities}/ActivitiesList.js +58 -35
  138. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -0
  139. package/build/features/brand/screens/BrandActivities/BrandActivities.js +72 -0
  140. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +82 -0
  141. package/build/features/brand/screens/BrandActivities/CustomerBase.js +143 -0
  142. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +8 -0
  143. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +97 -0
  144. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +8 -0
  145. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +130 -0
  146. package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +20 -0
  147. package/build/features/brand/screens/BrandActivities/OperationStartDate.js +45 -0
  148. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +36 -0
  149. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +82 -0
  150. package/build/features/brand/screens/BrandActivities/TAC.d.ts +6 -0
  151. package/build/features/brand/screens/BrandActivities/TAC.js +84 -0
  152. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -0
  153. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +42 -0
  154. package/build/features/brand/screens/BrandActivities/index.d.ts +2 -0
  155. package/build/features/brand/screens/BrandActivities/index.js +2 -0
  156. package/build/features/brand/screens/BrandActivities/validation.d.ts +71 -0
  157. package/build/features/brand/screens/BrandActivities/validation.js +21 -0
  158. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -0
  159. package/build/features/brand/screens/BrandInfo/BrandInfo.js +72 -0
  160. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +8 -0
  161. package/build/features/brand/screens/BrandInfo/BrandName.js +142 -0
  162. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +5 -0
  163. package/build/features/brand/screens/BrandInfo/SalesChannels.js +30 -0
  164. package/build/features/brand/screens/BrandInfo/Segments.d.ts +8 -0
  165. package/build/features/brand/screens/BrandInfo/Segments.js +74 -0
  166. package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +8 -0
  167. package/build/features/brand/screens/BrandInfo/TeamSize.js +74 -0
  168. package/build/features/brand/screens/BrandInfo/index.d.ts +2 -0
  169. package/build/features/brand/screens/BrandInfo/index.js +2 -0
  170. package/build/features/brand/screens/BrandInfo/validation.d.ts +41 -0
  171. package/build/features/brand/screens/BrandInfo/validation.js +106 -0
  172. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  173. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  174. package/build/features/brand/screens/PrepareDataLoading/index.d.ts +2 -0
  175. package/build/features/brand/screens/PrepareDataLoading/index.js +2 -0
  176. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  177. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +16 -0
  178. package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +3 -0
  179. package/build/features/brand/screens/ResetPasswordSuccess/index.js +2 -0
  180. package/build/features/brand/screens/Success/Success.d.ts +5 -0
  181. package/build/features/brand/screens/Success/Success.js +20 -0
  182. package/build/features/brand/screens/Success/index.d.ts +3 -0
  183. package/build/features/brand/screens/Success/index.js +2 -0
  184. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  185. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +22 -0
  186. package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  187. package/build/features/brand/screens/SuccessWithFlowButtons/index.js +2 -0
  188. package/build/features/brand/screens/Verify/OTPInput.d.ts +7 -0
  189. package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/OTPInput.js +2 -2
  190. package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/Verify.d.ts +0 -0
  191. package/build/features/brand/screens/Verify/Verify.js +91 -0
  192. package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.d.ts +0 -0
  193. package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.js +0 -0
  194. package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.d.ts +0 -0
  195. package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.js +0 -0
  196. package/build/features/business/Business.d.ts +4 -3
  197. package/build/features/business/Business.js +12 -17
  198. package/build/features/business/screens/Activities/Activities.js +8 -17
  199. package/build/features/business/screens/Activities/ActivitiesList.d.ts +44 -8
  200. package/build/features/business/screens/Activities/ActivitiesList.js +49 -16
  201. package/build/features/business/screens/Activities/OperationStartDate.d.ts +15 -1
  202. package/build/features/business/screens/Activities/OperationStartDate.js +21 -2
  203. package/build/features/business/screens/Activities/validation.d.ts +0 -51
  204. package/build/features/business/screens/Activities/validation.js +4 -10
  205. package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
  206. package/build/features/business/screens/BusinessType/Article.js +87 -0
  207. package/build/features/business/screens/BusinessType/BusinessType.js +23 -9
  208. package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
  209. package/build/features/business/screens/BusinessType/EntityName.js +56 -0
  210. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
  211. package/build/features/business/screens/BusinessType/LicenseCertificate.js +42 -0
  212. package/build/features/business/screens/BusinessType/LicenseList.js +27 -7
  213. package/build/features/business/screens/BusinessType/LicenseNumber.js +12 -6
  214. package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -0
  215. package/build/features/business/screens/BusinessType/LicenseType.js +103 -0
  216. package/build/features/business/screens/BusinessType/validation.d.ts +22 -0
  217. package/build/features/business/screens/BusinessType/validation.js +60 -3
  218. package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
  219. package/build/features/business/screens/CivilID/CivilID.js +67 -0
  220. package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
  221. package/build/features/business/screens/CivilID/IDNumber.js +59 -0
  222. package/build/features/business/screens/CivilID/index.d.ts +3 -0
  223. package/build/features/business/screens/CivilID/index.js +2 -0
  224. package/build/features/business/screens/CivilID/validation.d.ts +8 -0
  225. package/build/features/business/screens/CivilID/validation.js +4 -0
  226. package/build/features/business/screens/Customers/CustomerLocations.d.ts +24 -11
  227. package/build/features/business/screens/Customers/CustomerLocations.js +31 -8
  228. package/build/features/business/screens/Customers/Customers.js +15 -9
  229. package/build/features/business/screens/Customers/ExpectedCustomers.js +15 -4
  230. package/build/features/business/screens/Customers/ExpectedSalesRange.js +36 -15
  231. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
  232. package/build/features/business/screens/Customers/RefundPolicy.js +6 -2
  233. package/build/features/business/screens/Customers/TransactionPolicy.js +6 -2
  234. package/build/features/business/screens/IDBOD/IDBOD.js +15 -2
  235. package/build/features/business/screens/OTP/OTP.js +15 -2
  236. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  237. package/build/features/business/screens/Success/Success.js +10 -3
  238. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
  239. package/build/features/business/screens/Verify/Verify.js +4 -4
  240. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  241. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -0
  242. package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
  243. package/build/features/business/screens/VerifyPACI/index.js +2 -0
  244. package/build/features/connect/Connect.d.ts +4 -3
  245. package/build/features/connect/Connect.js +32 -21
  246. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
  247. package/build/features/connect/screens/CivilID/CivilID.js +102 -0
  248. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
  249. package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
  250. package/build/features/connect/screens/CivilID/index.d.ts +3 -0
  251. package/build/features/connect/screens/CivilID/index.js +2 -0
  252. package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
  253. package/build/features/connect/screens/CivilID/validation.js +4 -0
  254. package/build/features/connect/screens/Individual/Email.js +12 -4
  255. package/build/features/connect/screens/Individual/Individual.js +46 -29
  256. package/build/features/connect/screens/Individual/validation.js +2 -8
  257. package/build/features/connect/screens/Merchant/BrandList.js +29 -8
  258. package/build/features/connect/screens/Merchant/BrandName.js +8 -5
  259. package/build/features/connect/screens/Merchant/Merchant.js +46 -73
  260. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +4 -4
  261. package/build/features/connect/screens/Merchant/SalesChannels.js +26 -102
  262. package/build/features/connect/screens/Merchant/Segments.d.ts +8 -0
  263. package/build/features/connect/screens/Merchant/Segments.js +74 -0
  264. package/build/features/connect/screens/Merchant/TAC.js +6 -2
  265. package/build/features/connect/screens/Merchant/TeamSize.d.ts +8 -0
  266. package/build/features/connect/screens/Merchant/TeamSize.js +74 -0
  267. package/build/features/connect/screens/Merchant/validation.d.ts +19 -123
  268. package/build/features/connect/screens/Merchant/validation.js +110 -173
  269. package/build/features/connect/screens/Mobile/Mobile.js +33 -12
  270. package/build/features/connect/screens/NID/NID.js +5 -1
  271. package/build/features/connect/screens/OTP/OTP.js +20 -6
  272. package/build/features/connect/screens/OTP/OTPInput.js +3 -2
  273. package/build/features/connect/screens/ThankYou/ThankYou.js +9 -2
  274. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  275. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -0
  276. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
  277. package/build/features/connect/screens/VerifyPACI/index.js +2 -0
  278. package/build/features/connectExpress/ConnectExpress.d.ts +11 -0
  279. package/build/features/connectExpress/ConnectExpress.js +84 -0
  280. package/build/features/connectExpress/index.d.ts +1 -0
  281. package/build/features/connectExpress/index.js +1 -0
  282. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +5 -0
  283. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +15 -0
  284. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +3 -0
  285. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +2 -0
  286. package/build/features/connectExpress/screens/Brand/Brand.d.ts +5 -0
  287. package/build/features/connectExpress/screens/Brand/Brand.js +71 -0
  288. package/build/features/connectExpress/screens/Brand/index.d.ts +2 -0
  289. package/build/features/connectExpress/screens/Brand/index.js +2 -0
  290. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -0
  291. package/build/features/connectExpress/screens/CivilID/CivilID.js +84 -0
  292. package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -0
  293. package/build/features/connectExpress/screens/CivilID/IDNumber.js +55 -0
  294. package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -0
  295. package/build/features/connectExpress/screens/CivilID/index.js +2 -0
  296. package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -0
  297. package/build/features/connectExpress/screens/CivilID/validation.js +4 -0
  298. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +5 -0
  299. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +53 -0
  300. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +7 -0
  301. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +55 -0
  302. package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +3 -0
  303. package/build/features/connectExpress/screens/CivilIDMissed/index.js +2 -0
  304. package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +8 -0
  305. package/build/features/connectExpress/screens/CivilIDMissed/validation.js +4 -0
  306. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +8 -0
  307. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +142 -0
  308. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -0
  309. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +80 -0
  310. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +8 -0
  311. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +144 -0
  312. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +7 -0
  313. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +52 -0
  314. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +34 -0
  315. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +94 -0
  316. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +6 -0
  317. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +83 -0
  318. package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +3 -0
  319. package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +2 -0
  320. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +27 -0
  321. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +155 -0
  322. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +5 -0
  323. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +89 -0
  324. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +8 -0
  325. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +113 -0
  326. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +10 -0
  327. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +149 -0
  328. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +6 -0
  329. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +45 -0
  330. package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +3 -0
  331. package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +2 -0
  332. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +14 -0
  333. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +31 -0
  334. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +5 -0
  335. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -0
  336. package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +2 -0
  337. package/build/features/connectExpress/screens/CreateAccountLoader/index.js +2 -0
  338. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.d.ts +0 -0
  339. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.js +26 -11
  340. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.d.ts +0 -0
  341. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.js +10 -2
  342. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.d.ts +0 -0
  343. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.js +0 -0
  344. package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.d.ts +0 -0
  345. package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.js +0 -0
  346. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +5 -0
  347. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +34 -0
  348. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +3 -0
  349. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +2 -0
  350. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -0
  351. package/build/features/connectExpress/screens/Mobile/Mobile.js +110 -0
  352. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +12 -0
  353. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +151 -0
  354. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +6 -0
  355. package/build/features/connectExpress/screens/Mobile/TAC.js +83 -0
  356. package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -0
  357. package/build/features/connectExpress/screens/Mobile/Title.js +29 -0
  358. package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -0
  359. package/build/features/connectExpress/screens/Mobile/index.js +2 -0
  360. package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -0
  361. package/build/features/connectExpress/screens/Mobile/validation.js +60 -0
  362. package/build/features/connectExpress/screens/NID/DOB.d.ts +6 -0
  363. package/build/features/connectExpress/screens/NID/DOB.js +47 -0
  364. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +6 -0
  365. package/build/features/connectExpress/screens/NID/IDNumber.js +61 -0
  366. package/build/features/connectExpress/screens/NID/NID.d.ts +5 -0
  367. package/build/features/connectExpress/screens/NID/NID.js +92 -0
  368. package/build/features/connectExpress/screens/NID/TAC.d.ts +6 -0
  369. package/build/features/connectExpress/screens/NID/TAC.js +83 -0
  370. package/build/features/connectExpress/screens/NID/index.d.ts +3 -0
  371. package/build/features/connectExpress/screens/NID/index.js +2 -0
  372. package/build/features/connectExpress/screens/NID/validation.d.ts +11 -0
  373. package/build/features/connectExpress/screens/NID/validation.js +22 -0
  374. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +6 -0
  375. package/build/features/connectExpress/screens/NIDMissed/DOB.js +47 -0
  376. package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +6 -0
  377. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +56 -0
  378. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -0
  379. package/build/features/connectExpress/screens/NIDMissed/NID.js +59 -0
  380. package/build/features/connectExpress/screens/NIDMissed/index.d.ts +3 -0
  381. package/build/features/connectExpress/screens/NIDMissed/index.js +2 -0
  382. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +11 -0
  383. package/build/features/connectExpress/screens/NIDMissed/validation.js +9 -0
  384. package/build/features/connectExpress/screens/OTP/OTP.d.ts +5 -0
  385. package/build/features/connectExpress/screens/OTP/OTP.js +88 -0
  386. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -0
  387. package/build/features/connectExpress/screens/OTP/OTPInput.js +55 -0
  388. package/build/features/connectExpress/screens/OTP/index.d.ts +3 -0
  389. package/build/features/connectExpress/screens/OTP/index.js +2 -0
  390. package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -0
  391. package/build/features/connectExpress/screens/OTP/validation.js +4 -0
  392. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  393. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
  394. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  395. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +2 -0
  396. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  397. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +34 -0
  398. package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -0
  399. package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -0
  400. package/build/features/entity/Entity.d.ts +5 -3
  401. package/build/features/entity/Entity.js +39 -37
  402. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +90 -0
  403. package/build/features/entity/screens/EntityCapital/ActivityList.js +175 -0
  404. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +5 -0
  405. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +47 -0
  406. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +5 -0
  407. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +42 -0
  408. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +5 -0
  409. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +47 -0
  410. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -0
  411. package/build/features/entity/screens/EntityCapital/EntityCapital.js +75 -0
  412. package/build/features/entity/screens/EntityCapital/index.d.ts +2 -0
  413. package/build/features/entity/screens/EntityCapital/index.js +2 -0
  414. package/build/features/entity/screens/EntityCapital/validation.d.ts +62 -0
  415. package/build/features/entity/screens/EntityCapital/validation.js +21 -0
  416. package/build/features/entity/screens/EntityName/Article.d.ts +6 -0
  417. package/build/features/entity/screens/EntityName/Article.js +87 -0
  418. package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -0
  419. package/build/features/entity/screens/EntityName/EntityName.js +93 -0
  420. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +90 -0
  421. package/build/features/entity/screens/EntityName/EntityTypeList.js +151 -0
  422. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +19 -0
  423. package/build/features/entity/screens/EntityName/ExpiryDate.js +46 -0
  424. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +19 -0
  425. package/build/features/entity/screens/EntityName/IssuingDate.js +46 -0
  426. package/build/features/entity/screens/EntityName/LegalName.d.ts +5 -0
  427. package/build/features/entity/screens/EntityName/LegalName.js +48 -0
  428. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +6 -0
  429. package/build/features/entity/screens/EntityName/LicenseCertificate.js +42 -0
  430. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +6 -0
  431. package/build/features/entity/screens/EntityName/LicenseNumber.js +51 -0
  432. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +6 -0
  433. package/build/features/entity/screens/EntityName/UnifiedNumber.js +43 -0
  434. package/build/features/entity/screens/EntityName/index.d.ts +2 -0
  435. package/build/features/entity/screens/EntityName/index.js +2 -0
  436. package/build/features/entity/screens/EntityName/validation.d.ts +60 -0
  437. package/build/features/entity/screens/EntityName/validation.js +116 -0
  438. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  439. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  440. package/build/features/entity/screens/PrepareDataLoading/index.d.ts +2 -0
  441. package/build/features/entity/screens/PrepareDataLoading/index.js +2 -0
  442. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  443. package/build/features/entity/screens/Success/Success.js +7 -3
  444. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
  445. package/build/features/entity/screens/Verify/Verify.js +18 -5
  446. package/build/features/featuresScreens.d.ts +2 -2
  447. package/build/features/featuresScreens.js +151 -14
  448. package/build/features/individual/Individual.d.ts +5 -3
  449. package/build/features/individual/Individual.js +39 -37
  450. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +23 -28
  451. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -0
  452. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +30 -0
  453. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +5 -1
  454. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +21 -3
  455. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +11 -3
  456. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +28 -0
  457. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +24 -1
  458. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +6 -0
  459. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +42 -0
  460. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +2 -2
  461. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +6 -0
  462. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -0
  463. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  464. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  465. package/build/features/individual/screens/PrepareDataLoading/index.d.ts +2 -0
  466. package/build/features/individual/screens/PrepareDataLoading/index.js +2 -0
  467. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  468. package/build/features/individual/screens/Success/Success.js +7 -3
  469. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
  470. package/build/features/individual/screens/Verify/Verify.js +18 -5
  471. package/build/features/password/Password.d.ts +5 -3
  472. package/build/features/password/Password.js +12 -17
  473. package/build/features/password/screens/CreatePassword/CreatePassword.js +16 -3
  474. package/build/features/password/screens/OTP/OTP.js +15 -2
  475. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  476. package/build/features/password/screens/Success/Success.js +7 -3
  477. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -94
  478. package/build/features/password/screens/Verify/Verify.js +16 -3
  479. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +1 -1
  480. package/build/features/shared/Address/Address.d.ts +11 -0
  481. package/build/features/shared/Address/Address.js +63 -0
  482. package/build/features/shared/Address/CountryList.d.ts +72 -0
  483. package/build/features/shared/Address/CountryList.js +89 -0
  484. package/build/features/shared/Address/InputSelect.d.ts +71 -0
  485. package/build/features/shared/Address/InputSelect.js +172 -0
  486. package/build/features/shared/Address/InputText.d.ts +11 -0
  487. package/build/features/shared/Address/InputText.js +12 -0
  488. package/build/features/shared/Address/index.d.ts +2 -0
  489. package/build/features/shared/Address/index.js +2 -0
  490. package/build/features/shared/Background/Background.d.ts +2 -5
  491. package/build/features/shared/Background/Background.js +7 -9
  492. package/build/features/shared/Button/Button.js +2 -3
  493. package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
  494. package/build/features/shared/Button/EmailProvidersButtons.js +7 -2
  495. package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
  496. package/build/features/shared/Button/FlowsButtons.js +39 -7
  497. package/build/features/shared/Button/MobileButton.d.ts +2 -1
  498. package/build/features/shared/Button/MobileButton.js +2 -2
  499. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  500. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  501. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +6 -0
  502. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -0
  503. package/build/features/shared/CreateAccountLoading/index.d.ts +2 -0
  504. package/build/features/shared/CreateAccountLoading/index.js +2 -0
  505. package/build/features/shared/DataLoading/DataLoading.d.ts +6 -0
  506. package/build/features/shared/DataLoading/DataLoading.js +58 -0
  507. package/build/features/shared/DataLoading/index.d.ts +2 -0
  508. package/build/features/shared/DataLoading/index.js +2 -0
  509. package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
  510. package/build/features/shared/Dialog/CloseDialog.js +71 -0
  511. package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
  512. package/build/features/shared/Dialog/DialogContainer.js +56 -0
  513. package/build/features/shared/Dialog/index.d.ts +4 -0
  514. package/build/features/shared/Dialog/index.js +4 -0
  515. package/build/features/shared/Footer/Footer.js +1 -1
  516. package/build/features/shared/GenericError/GenericError.d.ts +7 -0
  517. package/build/features/shared/GenericError/GenericError.js +55 -0
  518. package/build/features/shared/GenericError/index.d.ts +2 -0
  519. package/build/features/shared/GenericError/index.js +2 -0
  520. package/build/features/shared/Input/Input.d.ts +9 -7
  521. package/build/features/shared/Input/Input.js +2 -2
  522. package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
  523. package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
  524. package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -0
  525. package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -0
  526. package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -0
  527. package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -0
  528. package/build/features/shared/PaciVerification/index.d.ts +2 -0
  529. package/build/features/shared/PaciVerification/index.js +2 -0
  530. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
  531. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
  532. package/build/features/shared/SalesChannels/SalesChannel.d.ts +11 -0
  533. package/build/features/shared/SalesChannels/SalesChannel.js +149 -0
  534. package/build/features/shared/SalesChannels/index.d.ts +2 -0
  535. package/build/features/shared/SalesChannels/index.js +2 -0
  536. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +16 -0
  537. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +113 -0
  538. package/build/features/shared/SuccessFlowButtons/index.d.ts +2 -0
  539. package/build/features/shared/SuccessFlowButtons/index.js +2 -0
  540. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  541. package/build/features/shared/SuccessScreen/SuccessScreen.js +3 -2
  542. package/build/features/shared/UploadFile/UploadFile.d.ts +14 -6
  543. package/build/features/shared/UploadFile/UploadFile.js +32 -17
  544. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +38 -0
  545. package/build/features/shared/UploadMultipleFile/UploadFile.js +184 -0
  546. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +27 -0
  547. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +149 -0
  548. package/build/features/shared/UploadMultipleFile/index.d.ts +2 -0
  549. package/build/features/shared/UploadMultipleFile/index.js +2 -0
  550. package/build/features/signIn/SignIn.d.ts +4 -3
  551. package/build/features/signIn/SignIn.js +12 -18
  552. package/build/features/signIn/screens/Email/Email.js +4 -2
  553. package/build/features/signIn/screens/Mobile/Mobile.js +5 -1
  554. package/build/features/signIn/screens/OTP/OTP.js +14 -1
  555. package/build/features/signIn/screens/Password/Password.js +15 -2
  556. package/build/features/tax/Tax.d.ts +5 -3
  557. package/build/features/tax/Tax.js +39 -38
  558. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  559. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  560. package/build/features/tax/screens/PrepareDataLoading/index.d.ts +2 -0
  561. package/build/features/tax/screens/PrepareDataLoading/index.js +2 -0
  562. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  563. package/build/features/tax/screens/Success/Success.js +9 -3
  564. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
  565. package/build/features/tax/screens/TaxDetails/TaxDetails.js +21 -10
  566. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +6 -0
  567. package/build/features/tax/screens/TaxDetails/TaxDocument.js +42 -0
  568. package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
  569. package/build/features/tax/screens/TaxDetails/validation.d.ts +3 -0
  570. package/build/features/tax/screens/TaxDetails/validation.js +2 -1
  571. package/build/features/tax/screens/Verify/Verify.js +16 -3
  572. package/build/hooks/index.d.ts +5 -0
  573. package/build/hooks/index.js +5 -0
  574. package/build/hooks/useAppConfig.d.ts +5 -1
  575. package/build/hooks/useAppConfig.js +6 -4
  576. package/build/hooks/useAppDispatch.d.ts +2 -2
  577. package/build/hooks/useCountUp.d.ts +9 -0
  578. package/build/hooks/useCountUp.js +17 -0
  579. package/build/hooks/useCountry.d.ts +4 -0
  580. package/build/hooks/useCountry.js +7 -0
  581. package/build/hooks/useErrorListener.js +0 -6
  582. package/build/hooks/useScreen.d.ts +3 -0
  583. package/build/hooks/useScreen.js +14 -0
  584. package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
  585. package/build/hooks/useSetFromDefaultValues.js +26 -0
  586. package/build/hooks/useVerifyToken.d.ts +15 -0
  587. package/build/hooks/useVerifyToken.js +25 -0
  588. package/build/index.d.ts +12 -12
  589. package/build/index.js +13 -24
  590. package/build/theme/typography.js +1 -1
  591. package/build/utils/array.d.ts +52 -1
  592. package/build/utils/array.js +82 -3
  593. package/build/utils/common.d.ts +1 -0
  594. package/build/utils/common.js +4 -0
  595. package/build/utils/date.d.ts +1 -0
  596. package/build/utils/date.js +5 -0
  597. package/build/utils/device.d.ts +1 -0
  598. package/build/utils/device.js +13 -0
  599. package/build/utils/html.d.ts +0 -1
  600. package/build/utils/html.js +2 -10
  601. package/build/utils/index.d.ts +2 -0
  602. package/build/utils/index.js +2 -0
  603. package/build/utils/locale.js +1 -1
  604. package/build/utils/object.d.ts +1 -0
  605. package/build/utils/object.js +12 -0
  606. package/build/utils/string.d.ts +15 -0
  607. package/build/utils/string.js +94 -3
  608. package/build/utils/validation.d.ts +2 -0
  609. package/build/utils/validation.js +6 -0
  610. package/package.json +4 -3
  611. package/build/api/ip.d.ts +0 -4
  612. package/build/api/ip.js +0 -12
  613. package/build/features/app/auth/authStore.d.ts +0 -20
  614. package/build/features/app/auth/authStore.js +0 -99
  615. package/build/features/app/otp/otpStore.d.ts +0 -28
  616. package/build/features/app/otp/otpStore.js +0 -153
  617. package/build/features/auth/Auth.d.ts +0 -9
  618. package/build/features/auth/Auth.js +0 -59
  619. package/build/features/auth/index.d.ts +0 -1
  620. package/build/features/auth/index.js +0 -1
  621. package/build/features/business/screens/Activities/SalesChannels.d.ts +0 -5
  622. package/build/features/business/screens/Activities/SalesChannels.js +0 -112
  623. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -9
  624. package/build/features/connect/screens/Merchant/SocialMedia.js +0 -162
  625. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -54
  626. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
  627. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -56
  628. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
  629. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -17
  630. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
  631. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -28
  632. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
  633. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -38
  634. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
  635. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
  636. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
  637. package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
  638. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -107
  639. package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -17
  640. package/build/features/otp/OTP.d.ts +0 -7
  641. package/build/features/otp/OTP.js +0 -58
  642. package/build/features/otp/index.d.ts +0 -0
  643. package/build/features/otp/index.js +0 -1
  644. package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
  645. package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
@@ -15,7 +15,7 @@ import { useTranslation } from 'react-i18next';
15
15
  import { alpha, styled } from '@mui/material/styles';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
- import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
18
+ import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
19
19
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
20
20
  import { clearError, signInSelector, createEmailAuth } from '../../../app/signIn/signInStore';
21
21
  import Form from '../../../../components/Form';
@@ -70,11 +70,13 @@ var Email = function (_a) {
70
70
  var t = useTranslation().t;
71
71
  var _b = useAppSelector(signInSelector), data = _b.data, loading = _b.loading, error = _b.error;
72
72
  var settingsStore = useAppSelector(settingsSelector);
73
+ var _c = data.auth, responseBody = _c.responseBody, email = _c.email;
73
74
  var methods = useForm({
74
75
  resolver: yupResolver(EmailValidationSchema),
75
- defaultValues: { email: data.auth.email || '' },
76
+ defaultValues: { email: email || '' },
76
77
  mode: 'onChange'
77
78
  });
79
+ useSetFromDefaultValues(methods, { email: email || '' });
78
80
  React.useEffect(function () {
79
81
  handleClearError();
80
82
  }, [methods.formState.isValid]);
@@ -19,7 +19,7 @@ import { styled, alpha } from '@mui/material/styles';
19
19
  import Collapse from '../../../../components/Collapse';
20
20
  import Form from '../../../../components/Form';
21
21
  import Button, { MobileButton } from '../../../shared/Button';
22
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
22
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
23
23
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
24
24
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
25
25
  import { clearError, createMobileAuth, signInSelector } from '../../../app/signIn/signInStore';
@@ -79,6 +79,10 @@ var Mobile = function (_a) {
79
79
  defaultValues: { mobile: data.auth.mobile || '', countryCode: data.auth.countryCode },
80
80
  mode: 'onChange'
81
81
  });
82
+ useSetFromDefaultValues(methods, {
83
+ mobile: data.auth.mobile || '',
84
+ countryCode: data.auth.countryCode
85
+ });
82
86
  var t = useTranslation().t;
83
87
  var isAr = useLanguage().isAr;
84
88
  var handleMenuListClick = function (flag) {
@@ -9,6 +9,17 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
24
  import Box from '@mui/material/Box/Box';
14
25
  import { styled } from '@mui/material/styles';
@@ -18,7 +29,7 @@ import Text from '../../../../components/Text';
18
29
  import { clearError, signInSelector, resetOTPScreen, verifyAuthOTP } from '../../../app/signIn/signInStore';
19
30
  import Button from '../../../shared/Button';
20
31
  import { ScreenContainer } from '../../../shared/Containers';
21
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
32
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
22
33
  import { handlePrevScreenStep } from '../../../../app/settings';
23
34
  import { useLanguage } from '../../../../hooks';
24
35
  import { useForm, FormProvider } from 'react-hook-form';
@@ -50,11 +61,13 @@ var OTP = function () {
50
61
  var _a;
51
62
  var dispatch = useAppDispatch();
52
63
  var _b = useAppSelector(signInSelector), data = _b.data, loading = _b.loading, error = _b.error;
64
+ var _c = data.otpData, responseBody = _c.responseBody, defaultValues = __rest(_c, ["responseBody"]);
53
65
  var methods = useForm({
54
66
  resolver: yupResolver(OTPValidation),
55
67
  defaultValues: data.otpData,
56
68
  mode: 'onChange'
57
69
  });
70
+ useSetFromDefaultValues(methods, defaultValues);
58
71
  var t = useTranslation().t;
59
72
  var isAr = useLanguage().isAr;
60
73
  var isEmail = !!data.auth.email;
@@ -9,6 +9,17 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
24
  import * as React from 'react';
14
25
  import { useForm, FormProvider } from 'react-hook-form';
@@ -17,7 +28,7 @@ import { useSelector } from 'react-redux';
17
28
  import { yupResolver } from '@hookform/resolvers/yup';
18
29
  import Box from '@mui/material/Box';
19
30
  import { styled } from '@mui/material/styles';
20
- import { useAppDispatch } from '../../../../hooks';
31
+ import { useAppDispatch, useSetFromDefaultValues } from '../../../../hooks';
21
32
  import { handlePrevScreenStep } from '../../../../app/settings';
22
33
  import Form from '../../../../components/Form';
23
34
  import { useLanguage } from '../../../../hooks';
@@ -38,11 +49,13 @@ var Password = function (_a) {
38
49
  var dispatch = useAppDispatch();
39
50
  var _b = useSelector(signInSelector), data = _b.data, loading = _b.loading, error = _b.error;
40
51
  var isEmail = !!data.auth.email;
52
+ var _c = data.passwordData, responseBody = _c.responseBody, defaultValues = __rest(_c, ["responseBody"]);
41
53
  var methods = useForm({
42
54
  resolver: yupResolver(PasswordValidation),
43
- defaultValues: data.passwordData,
55
+ defaultValues: defaultValues,
44
56
  mode: 'onChange'
45
57
  });
58
+ useSetFromDefaultValues(methods, defaultValues);
46
59
  var onSubmit = function (data) {
47
60
  dispatch(verifyAuthPassword(data));
48
61
  };
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { LibConfig } from '../../@types';
3
3
  export interface TaxLibProps extends LibConfig {
4
+ verifyToken?: string;
4
5
  }
5
- export declare function TaxLib(props: TaxLibProps): JSX.Element;
6
- export declare function renderTaxLib(config: TaxLibProps, elementId: string): void;
7
- export declare function unmountTaxLib(elementId: string, unmountTimeout?: number): void;
6
+ export declare function TaxElement(props: TaxLibProps): JSX.Element;
7
+ export declare function renderTaxLib(config: TaxLibProps, elementId: string): {
8
+ unmount: () => void;
9
+ };
@@ -9,63 +9,64 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { memo, useEffect } from 'react';
14
- import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
15
- import { handleLanguage, settingsSelector } from '../../app/settings';
24
+ import { memo } from 'react';
25
+ import { createRoot } from 'react-dom/client';
26
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
27
+ import { settingsSelector } from '../../app/settings';
16
28
  import AnimationFlow from '../../components/AnimationFlow';
17
29
  import { store } from '../../app/store';
18
30
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
19
31
  import Collapse from '../../components/Collapse';
20
- import { getParameterByName, reactElement } from '../../utils';
32
+ import { createElementAndInject } from '../../utils';
21
33
  import { FeatureContainer } from '../shared/Containers';
22
- import { DIALOG_ID, TAX_SCREENS_NAVIGATION } from '../../constants';
34
+ import { TAX_SCREENS_NAVIGATION } from '../../constants';
23
35
  import { taxFeatureScreens } from '../featuresScreens';
24
36
  import CustomFooter from '../shared/Footer';
25
37
  import { taxSelector, verifyLeadToken } from '../app/tax/taxStore';
26
38
  import Background from '../shared/Background';
27
- var Tax = memo(function (props) {
39
+ var Tax = memo(function (_a) {
40
+ var verifyToken = _a.verifyToken, props = __rest(_a, ["verifyToken"]);
28
41
  var theme = useAppTheme().theme;
29
- var dispatch = useAppDispatch();
30
- var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, loading = _a.loading;
31
- var _b = useAppSelector(taxSelector), customLoading = _b.customLoading, taxError = _b.error;
32
- useAppConfig(__assign({ navigation: TAX_SCREENS_NAVIGATION }, props));
42
+ var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
43
+ var _c = useAppSelector(taxSelector), customLoading = _c.customLoading, taxError = _c.error, loading = _c.loading;
44
+ useAppConfig(__assign(__assign({ navigation: TAX_SCREENS_NAVIGATION }, props), { disableSettingFetching: !!verifyToken }));
33
45
  useErrorListener(taxError || error);
34
46
  useStepStartedListener();
35
- var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
36
- var verifyToken = function () {
37
- var token = getParameterByName('token');
38
- var lang = getParameterByName('lang');
39
- if (lang)
40
- dispatch(handleLanguage(lang));
41
- if (!token)
42
- throw new Error('Auth token is not found!');
43
- dispatch(verifyLeadToken(token));
44
- };
45
- useEffect(function () {
46
- if (!loading)
47
- verifyToken();
48
- }, [loading]);
49
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: loading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, open: open, error: error, loading: loading || customLoading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: taxFeatureScreens.map(function (_a, index) {
47
+ var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation;
48
+ useVerifyToken({
49
+ verify: verifyLeadToken,
50
+ loadingScreenName: 'TAX_LOADING_DATA_STEP',
51
+ navigation: featureScreensNavigation,
52
+ open: open,
53
+ internalToken: verifyToken,
54
+ settingLoading: settingLoading
55
+ });
56
+ var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
57
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, open: open, error: error, loading: initialLoading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: taxFeatureScreens.map(function (_a, index) {
50
58
  var Element = _a.element, name = _a.name;
51
59
  var isActive = activeScreen.name === name;
52
60
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
53
61
  }) }) })) })) })));
54
62
  });
55
- export function TaxLib(props) {
63
+ export function TaxElement(props) {
56
64
  return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Tax, __assign({}, props)) })));
57
65
  }
58
66
  export function renderTaxLib(config, elementId) {
59
- reactElement(elementId).render(_jsx(TaxLib, __assign({}, config)));
60
- }
61
- export function unmountTaxLib(elementId, unmountTimeout) {
62
- if (unmountTimeout === void 0) { unmountTimeout = 1000; }
63
- var element = document.getElementById(elementId);
64
- var dialogEl = document.getElementById(DIALOG_ID);
65
- setTimeout(function () {
66
- var _a;
67
- ((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
68
- dialogEl && dialogEl.remove();
69
- reactElement(elementId).unmount();
70
- }, unmountTimeout);
67
+ var element = createElementAndInject(elementId);
68
+ var root = createRoot(element);
69
+ root.render(_jsx(TaxElement, __assign({}, config)));
70
+ var unmount = function () { return root.unmount(); };
71
+ return { unmount: unmount };
71
72
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const PrepareDataLoading: () => JSX.Element;
3
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { useAppSelector } from '../../../../hooks';
4
+ import DataLoading from '../../../shared/DataLoading';
5
+ import { taxSelector } from '../../../app/tax/taxStore';
6
+ export var PrepareDataLoading = function () {
7
+ var error = useAppSelector(taxSelector).error;
8
+ return _jsx(DataLoading, { error: error });
9
+ };
10
+ export default memo(PrepareDataLoading);
@@ -0,0 +1,2 @@
1
+ import PrepareDataLoading from './PrepareDataLoading';
2
+ export default PrepareDataLoading;
@@ -0,0 +1,2 @@
1
+ import PrepareDataLoading from './PrepareDataLoading';
2
+ export default PrepareDataLoading;
@@ -1,9 +1,16 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import { useTranslation } from 'react-i18next';
3
+ import { Trans, useTranslation } from 'react-i18next';
4
4
  import SuccessScreen from '../../../shared/SuccessScreen';
5
+ import { useAppSelector } from '../../../../hooks';
6
+ import { maskEmail } from '../../../../utils';
7
+ import { taxSelector } from '../../../../features/app/tax/taxStore';
5
8
  var ResetPasswordSuccess = function (_a) {
9
+ var _b, _c;
6
10
  var t = useTranslation().t;
7
- return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: t("reset_password_success_description"), showEmailProviders: true }));
11
+ var data = useAppSelector(taxSelector).data;
12
+ var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
13
+ var maskedEmail = maskEmail(email);
14
+ return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
8
15
  };
9
16
  export default React.memo(ResetPasswordSuccess);
@@ -7,10 +7,16 @@ import SuccessScreen from '../../../shared/SuccessScreen';
7
7
  var Success = function (_a) {
8
8
  var t = useTranslation().t;
9
9
  var dispatch = useAppDispatch();
10
- var _b = useAppSelector(taxSelector), loading = _b.loading, error = _b.error;
11
- var onSuccess = function () {
10
+ var _b = useAppSelector(taxSelector), error = _b.error, data = _b.data;
11
+ var _c = React.useState(false), clicked = _c[0], setClicked = _c[1];
12
+ var responseBody = data.verify.responseBody;
13
+ var updateBoardSuccessLoading = (responseBody || {}).updateBoardSuccessLoading;
14
+ React.useEffect(function () {
12
15
  dispatch(updateLeadSuccess());
16
+ }, []);
17
+ var onSuccess = function () {
18
+ setClicked(true);
13
19
  };
14
- return (_jsx(SuccessScreen, { title: t('tax_success_title'), onSuccess: onSuccess, successTitle: t('continue'), loading: loading, error: error || '' }));
20
+ return (_jsx(SuccessScreen, { title: t('tax_success_title'), onSuccess: onSuccess, successTitle: t('continue'), loading: clicked && updateBoardSuccessLoading, error: error || '' }));
15
21
  };
16
22
  export default React.memo(Success);
@@ -9,101 +9,14 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
- import { memo, useEffect, useState } from 'react';
14
- import { useTranslation } from 'react-i18next';
15
- import { styled } from '@mui/material/styles';
16
- import { FlowsButtons } from '../../../shared/Button';
17
- import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '../../../../constants';
18
- import { useAppSelector, useLanguage } from '../../../../hooks';
19
- import { getResetFlowUrl, showLastFour } from '../../../../utils';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import { useAppSelector } from '../../../../hooks';
20
15
  import { taxSelector } from '../../../app/tax/taxStore';
21
- import Box from '@mui/material/Box';
22
- import Text from '../../../../components/Text';
23
- import Container from '../../../shared/Containers/ScreenContainer';
24
- import AcceptancePayouts from '../../../shared/AcceptancePayouts';
25
- import { settingsSelector } from '../../../../app/settings';
26
- var TitleStyled = styled(Text)(function (_a) {
27
- var _b;
28
- var theme = _a.theme;
29
- return (__assign(__assign({}, theme.typography.body1), (_b = { fontWeight: theme.typography.fontWeightBold, color: theme.palette.text.primary, lineHeight: 1.75, paddingBottom: theme.spacing(3) }, _b[theme.breakpoints.down('sm')] = {}, _b)));
30
- });
31
- var ContainerStyled = styled(Container)(function (_a) {
32
- var theme = _a.theme;
33
- return ({
34
- justifyContent: 'space-between',
35
- minHeight: theme.spacing(30),
36
- alignItems: 'center'
37
- });
38
- });
39
- var ButtonGroupStyled = styled(Box)(function (_a) {
40
- var theme = _a.theme;
41
- return ({
42
- width: '100%',
43
- paddingTop: theme.spacing(3)
44
- });
45
- });
16
+ import SuccessFlowButtons from '../../../shared/SuccessFlowButtons';
46
17
  var SuccessWithFlowButtons = function () {
47
- var _a, _b, _c;
48
- var t = useTranslation().t;
49
- var isAr = useLanguage().isAr;
50
18
  var data = useAppSelector(taxSelector).data;
51
- var _d = data.verify.responseBody || {}, flows = _d.flows, nameObj = _d.name, entity = _d.entity, brand = _d.brand, bank = _d.bank, merchant = _d.merchant, identification_id = _d.identification_id, vatID = _d.vatID;
52
- var _e = useState([]), buttons = _e[0], setButtons = _e[1];
53
- var username = ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.first) || '') + ' ' + ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.last) || '');
54
- var licenseNumber = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
55
- var bankName = (bank === null || bank === void 0 ? void 0 : bank.bank_name) || t('bank');
56
- var iban = showLastFour((bank === null || bank === void 0 ? void 0 : bank.iban) || '');
57
- var taxID = vatID || '';
58
- var brandName = (isAr ? (_b = brand === null || brand === void 0 ? void 0 : brand.name) === null || _b === void 0 ? void 0 : _b.ar : (_c = brand === null || brand === void 0 ? void 0 : brand.name) === null || _c === void 0 ? void 0 : _c.en) || '';
59
- var isAcceptance = merchant === null || merchant === void 0 ? void 0 : merchant.is_acceptance_allowed;
60
- var isPayout = merchant === null || merchant === void 0 ? void 0 : merchant.is_payout_allowed;
61
- var maskedId = !!identification_id ? " ".concat(t('masking_symbols')).concat(identification_id) : '';
62
- var settings = useAppSelector(settingsSelector);
63
- var _f = data.verify.responseBody || { contact: {}, board_id: '' }, contact = _f.contact, board_id = _f.board_id, board_info_id = _f.board_info_id;
64
- var email = (contact || { email: '' }).email;
65
- var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
66
- var reMapFlowData = function (flows) {
67
- if (flows === void 0) { flows = []; }
68
- var images = ICONS_NAMES;
69
- var mappedFlows = flows
70
- .filter(function (item) { return item === null || item === void 0 ? void 0 : item.name; })
71
- .map(function (_a) {
72
- var name = _a.name, url = _a.url, status = _a.status;
73
- var type = status === 'initiated' || status === 'in_progress' ? 'pending' : 'completed';
74
- var title = t("".concat(name, "_flow_").concat(type), {
75
- individual_name: username.toLowerCase() + maskedId,
76
- business_type: brandName,
77
- license_number: t('masking_symbols') + showLastFour(licenseNumber),
78
- bank_name: bankName,
79
- iban: t('masking_symbols') + iban,
80
- tax_id: t('masking_symbols') + showLastFour(taxID)
81
- });
82
- var isCompleted = status === 'completed' && name !== 'password';
83
- var isIndividual = name === 'individual';
84
- var src = isCompleted ? "".concat(name, "_green_icon") : "".concat(name, "_filled_icon");
85
- var hoverSrc = "".concat(name, "_white_icon");
86
- return {
87
- name: name,
88
- status: status,
89
- title: title,
90
- href: url,
91
- src: images[src],
92
- hoverSrc: images[hoverSrc],
93
- isCompleted: isCompleted,
94
- sx: isIndividual ? { textTransform: 'capitalize' } : {}
95
- };
96
- });
97
- setButtons(mappedFlows);
98
- };
99
- useEffect(function () {
100
- if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0)
101
- reMapFlowData(flows);
102
- }, [flows, isAr]);
103
- return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons, data: {
104
- flowName: data.flowName,
105
- email: email,
106
- emailUrl: url
107
- } }) })] }));
19
+ var _a = data.verify.responseBody || {}, flows = _a.flows, entity = _a.entity, brand = _a.brand, bank = _a.bank_account, merchant = _a.merchant, user = _a.user, business = _a.business, board_id = _a.board_id, board_info_id = _a.board_info_id, name = _a.name;
20
+ return (_jsx(SuccessFlowButtons, { flowName: data.flowName, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, flows: flows || [] }));
108
21
  };
109
22
  export default memo(SuccessWithFlowButtons);
@@ -10,19 +10,22 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { ScreenContainer } from '../../../shared/Containers';
14
- import Button from '../../../shared/Button';
15
- import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
13
+ import * as React from 'react';
16
14
  import { useTranslation } from 'react-i18next';
17
- import { styled } from '@mui/material/styles';
18
15
  import { useForm, FormProvider } from 'react-hook-form';
19
- import Form from '../../../../components/Form';
20
- import { Validation } from './validation';
21
16
  import { yupResolver } from '@hookform/resolvers/yup';
17
+ import { styled } from '@mui/material/styles';
18
+ import Form from '../../../../components/Form';
19
+ import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
20
+ import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
21
+ import { isSA } from '../../../../utils';
22
+ import { ScreenContainer } from '../../../shared/Containers';
23
+ import Button from '../../../shared/Button';
22
24
  import { taxSelector, updateTaxInfo } from '../../../app/tax/taxStore';
23
- import { handleCurrentActiveScreen } from '../../../../app/settings';
25
+ import { Validation } from './validation';
24
26
  import VATId from './VATId';
25
27
  import ConfirmPolicy from './ConfirmPolicy';
28
+ import TaxDocument from './TaxDocument';
26
29
  var FormStyled = styled(Form)(function () { return ({
27
30
  height: '100%',
28
31
  display: 'flex',
@@ -31,20 +34,28 @@ var FormStyled = styled(Form)(function () { return ({
31
34
  }); });
32
35
  var TaxDetails = function () {
33
36
  var dispatch = useAppDispatch();
34
- var _a = useAppSelector(taxSelector), data = _a.data, loading = _a.loading, error = _a.error;
37
+ var _a = useAppSelector(taxSelector), data = _a.data, loading = _a.loading, error = _a.error, uploading = _a.uploading;
38
+ var settingsData = useAppSelector(settingsSelector).data;
39
+ var _b = data.taxData, vatId = _b.vatId, confirmPolicy = _b.confirmPolicy, documentId = _b.documentId;
35
40
  var methods = useForm({
36
41
  resolver: yupResolver(Validation),
37
- defaultValues: data.taxData,
42
+ defaultValues: {
43
+ vatId: vatId,
44
+ confirmPolicy: confirmPolicy,
45
+ documentId: documentId
46
+ },
38
47
  mode: 'onChange'
39
48
  });
49
+ useSetFromDefaultValues(methods, data.taxData);
40
50
  var t = useTranslation().t;
41
51
  var isAr = useLanguage().isAr;
52
+ var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
42
53
  var onSubmit = function (data) {
43
54
  dispatch(updateTaxInfo(data));
44
55
  };
45
56
  var onBack = function () {
46
57
  dispatch(handleCurrentActiveScreen('TAX_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
47
58
  };
48
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(VATId, {}), _jsx(ConfirmPolicy, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
59
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(VATId, {}), _jsx(TaxDocument, { show: isSACountry }), _jsx(ConfirmPolicy, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disableBack: true, disabled: !methods.formState.isValid || uploading, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
49
60
  };
50
61
  export default TaxDetails;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface TaxDocumentProps {
3
+ show: boolean;
4
+ }
5
+ declare const TaxDocument: ({ show }: TaxDocumentProps) => JSX.Element;
6
+ export default TaxDocument;
@@ -0,0 +1,42 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useTranslation } from 'react-i18next';
14
+ import { useController, useFormContext } from 'react-hook-form';
15
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
+ import { styled } from '@mui/material/styles';
17
+ import Collapse from '../../../../components/Collapse';
18
+ import { ScreenContainer } from '../../../shared/Containers';
19
+ import { taxSelector, uploadingStatus } from '../../../app/tax/taxStore';
20
+ import UploadMultipleFile from '../../../shared/UploadMultipleFile';
21
+ var FeatureStyled = styled(ScreenContainer)(function (_a) {
22
+ var theme = _a.theme;
23
+ return ({
24
+ marginBlockStart: theme.spacing(3)
25
+ });
26
+ });
27
+ var TaxDocument = function (_a) {
28
+ var show = _a.show;
29
+ var t = useTranslation().t;
30
+ var control = useFormContext().control;
31
+ var dispatch = useAppDispatch();
32
+ var documentIdControl = useController({ name: 'documentId', control: control });
33
+ var loading = useAppSelector(taxSelector).loading;
34
+ var handleTaxDocumentChange = function (ids) {
35
+ documentIdControl.field.onChange(ids);
36
+ };
37
+ var handleReset = function (ids) {
38
+ documentIdControl.field.onChange(ids);
39
+ };
40
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(FeatureStyled, __assign({ sx: { mb: 2.5 } }, { children: _jsx(UploadMultipleFile, { label: t('title_tax_document'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop_tax_document'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleTaxDocumentChange, isSubmitting: loading, onDeleteFile: handleReset, maxLimit: 4, purpose: 'tax_document_user_upload', fileUploadingStatus: function (uploading) { return dispatch(uploadingStatus(uploading)); } }) })) })));
41
+ };
42
+ export default TaxDocument;
@@ -10,19 +10,24 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from 'react';
13
14
  import Box from '@mui/material/Box';
14
15
  import Input from '../../../shared/Input';
15
16
  import { useTranslation } from 'react-i18next';
16
17
  import { useController, useFormContext } from 'react-hook-form';
17
18
  import { VAT_ID_LENGTH } from '../../../../constants';
19
+ import { useAppSelector } from '../../../../hooks';
20
+ import { isSA, removeAllCharsFromNumber } from '../../../../utils';
21
+ import { settingsSelector } from '../../../../app/settings';
18
22
  import ClearIcon from '../../../shared/ClearIcon';
19
23
  import CheckIcon from '../../../shared/CheckIcon';
20
- import { removeAllCharsFromNumber } from '../../../../utils';
21
24
  var VATId = function () {
22
25
  var _a;
23
26
  var t = useTranslation().t;
24
27
  var control = useFormContext().control;
25
28
  var vatControl = useController({ name: 'vatId', control: control });
29
+ var settingsData = useAppSelector(settingsSelector).data;
30
+ var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
26
31
  var handleOnChange = function (vat) {
27
32
  var value = removeAllCharsFromNumber(vat);
28
33
  vatControl.field.onChange(value);
@@ -32,6 +37,6 @@ var VATId = function () {
32
37
  var clearValue = function () {
33
38
  vatControl.field.onChange('');
34
39
  };
35
- return (_jsx(Box, __assign({ sx: { height: '200px' } }, { children: _jsx(Input, { label: t('vat_id'), inputProps: { maxLength: VAT_ID_LENGTH }, value: vatValue, onChange: function (event) { return handleOnChange(event.target.value); }, placeholder: t('vat_id_placeholder'), warningType: 'alert', warningMessage: vatError && t(vatError), required: true, endAdornment: !vatError && vatValue ? _jsx(CheckIcon, {}) : vatValue && _jsx(ClearIcon, { onClick: clearValue }) }) })));
40
+ return (_jsx(Box, __assign({ sx: isSACountry ? {} : { height: '200px' } }, { children: _jsx(Input, { label: t('vat_id'), inputProps: { maxLength: VAT_ID_LENGTH }, value: vatValue, onChange: function (event) { return handleOnChange(event.target.value); }, placeholder: t('vat_id_placeholder'), warningType: 'alert', warningMessage: vatError && t(vatError), required: true, endAdornment: !vatError && vatValue ? _jsx(CheckIcon, {}) : vatValue && _jsx(ClearIcon, { onClick: clearValue }) }) })));
36
41
  };
37
42
  export default VATId;
@@ -2,10 +2,13 @@ import * as yup from 'yup';
2
2
  export declare const Validation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
3
  vatId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
4
  confirmPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
5
+ documentId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
5
6
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
6
7
  vatId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
8
  confirmPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
9
+ documentId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
8
10
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
11
  vatId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
10
12
  confirmPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
13
+ documentId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
11
14
  }>>>;
@@ -1,5 +1,6 @@
1
1
  import * as yup from 'yup';
2
2
  export var Validation = yup.object().shape({
3
3
  vatId: yup.string().min(9, 'alert_vat').max(15, 'alert_vat').required('alert_vat'),
4
- confirmPolicy: yup.boolean().required('alert_tax_confirm').isTrue('alert_tax_confirm')
4
+ confirmPolicy: yup.boolean().required('alert_tax_confirm').isTrue('alert_tax_confirm'),
5
+ documentId: yup.array().optional()
5
6
  });