@tap-payments/auth-jsconnect 2.7.4-test → 2.7.5

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 (557) hide show
  1. package/build/@types/app.d.ts +45 -3
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +19 -0
  4. package/build/@types/form.d.ts +11 -1
  5. package/build/@types/redux.d.ts +1 -0
  6. package/build/api/account.d.ts +5 -0
  7. package/build/api/account.js +16 -2
  8. package/build/api/auth.d.ts +35 -20
  9. package/build/api/auth.js +1 -1
  10. package/build/api/axios.js +1 -2
  11. package/build/api/data.d.ts +4 -17
  12. package/build/api/data.js +5 -45
  13. package/build/api/entity.d.ts +5 -2
  14. package/build/api/entity.js +12 -4
  15. package/build/api/firebase.js +68 -8
  16. package/build/api/index.d.ts +14 -25
  17. package/build/api/lead.d.ts +16 -3
  18. package/build/api/lead.js +16 -0
  19. package/build/api/user.d.ts +7 -0
  20. package/build/api/user.js +9 -1
  21. package/build/app/rootReducer.d.ts +1 -0
  22. package/build/app/rootReducer.js +3 -1
  23. package/build/app/settings.d.ts +2 -1
  24. package/build/app/settings.js +51 -21
  25. package/build/app/store.d.ts +2 -0
  26. package/build/assets/locales/ar.json +353 -151
  27. package/build/assets/locales/en.json +349 -150
  28. package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -5
  29. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  30. package/build/components/AnimationFlow/BottomSheet.d.ts +5 -2
  31. package/build/components/AnimationFlow/BottomSheet.js +43 -14
  32. package/build/components/AnimationFlow/Dialog.d.ts +4 -3
  33. package/build/components/AnimationFlow/Dialog.js +5 -3
  34. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  35. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  36. package/build/components/ArabicDatePicker/style.css +32 -3
  37. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  38. package/build/components/DatePicker/DatePicker.js +2 -2
  39. package/build/components/Footer/Footer.js +2 -1
  40. package/build/components/Input/Input.js +1 -1
  41. package/build/components/Providers/ThemeProvider.js +3 -3
  42. package/build/components/Tooltip/Tooltip.js +1 -1
  43. package/build/constants/api.d.ts +5 -7
  44. package/build/constants/api.js +11 -15
  45. package/build/constants/app.d.ts +39 -0
  46. package/build/constants/app.js +345 -35
  47. package/build/constants/assets.d.ts +3 -0
  48. package/build/constants/assets.js +4 -1
  49. package/build/constants/dummy.d.ts +4 -219
  50. package/build/constants/dummy.js +64 -6194
  51. package/build/constants/flows.d.ts +26 -0
  52. package/build/constants/flows.js +27 -0
  53. package/build/constants/index.d.ts +1 -0
  54. package/build/constants/index.js +1 -0
  55. package/build/constants/validation.d.ts +2 -0
  56. package/build/constants/validation.js +2 -0
  57. package/build/features/app/auth/authStore.d.ts +74 -8
  58. package/build/features/app/auth/authStore.js +496 -148
  59. package/build/features/app/bank/bankStore.d.ts +13 -18
  60. package/build/features/app/bank/bankStore.js +186 -153
  61. package/build/features/app/board/boardStore.d.ts +5 -1
  62. package/build/features/app/board/boardStore.js +82 -51
  63. package/build/features/app/brand/brandStore.d.ts +17 -33
  64. package/build/features/app/brand/brandStore.js +254 -257
  65. package/build/features/app/business/businessStore.d.ts +64 -15
  66. package/build/features/app/business/businessStore.js +442 -234
  67. package/build/features/app/connect/connectStore.d.ts +69 -14
  68. package/build/features/app/connect/connectStore.js +355 -120
  69. package/build/features/app/connectExpress/connectExpressStore.d.ts +89 -41
  70. package/build/features/app/connectExpress/connectExpressStore.js +671 -367
  71. package/build/features/app/entity/entityStore.d.ts +20 -36
  72. package/build/features/app/entity/entityStore.js +204 -238
  73. package/build/features/app/individual/individualStore.d.ts +18 -34
  74. package/build/features/app/individual/individualStore.js +269 -292
  75. package/build/features/app/kyc/kycStore.d.ts +121 -0
  76. package/build/features/app/kyc/kycStore.js +432 -0
  77. package/build/features/app/password/passwordStore.d.ts +42 -18
  78. package/build/features/app/password/passwordStore.js +260 -219
  79. package/build/features/app/signIn/signInStore.js +19 -15
  80. package/build/features/app/tax/taxStore.d.ts +13 -7
  81. package/build/features/app/tax/taxStore.js +170 -136
  82. package/build/features/auth/Auth.d.ts +5 -6
  83. package/build/features/auth/Auth.js +40 -15
  84. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  85. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  86. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  87. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  88. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  89. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  90. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  91. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  92. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  93. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  94. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  95. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  96. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  97. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  98. package/build/features/auth/screens/DOB/index.js +2 -0
  99. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  100. package/build/features/auth/screens/DOB/validation.js +4 -0
  101. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  102. package/build/features/auth/screens/Email/Email.js +57 -0
  103. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  104. package/build/features/auth/screens/Email/EmailField.js +52 -0
  105. package/build/features/auth/screens/Email/index.d.ts +3 -0
  106. package/build/features/auth/screens/Email/index.js +2 -0
  107. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  108. package/build/features/auth/screens/Email/validation.js +4 -0
  109. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  110. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  111. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  112. package/build/features/auth/screens/EmailSent/index.js +2 -0
  113. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  114. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  115. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  116. package/build/features/auth/screens/MigratingData/index.js +2 -0
  117. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  118. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  119. package/build/features/auth/screens/Mobile/validation.js +11 -3
  120. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  121. package/build/features/auth/screens/NID/NID.js +7 -43
  122. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  123. package/build/features/auth/screens/NID/validation.js +0 -1
  124. package/build/features/auth/screens/OTP/OTP.js +41 -10
  125. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  126. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  127. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  128. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  129. package/build/features/auth/screens/OperatorError/index.js +2 -0
  130. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  131. package/build/features/auth/screens/Password/Password.js +61 -0
  132. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  133. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  134. package/build/features/auth/screens/Password/index.d.ts +3 -0
  135. package/build/features/auth/screens/Password/index.js +2 -0
  136. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  137. package/build/features/auth/screens/Password/validation.js +4 -0
  138. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  139. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  140. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  141. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  142. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  143. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  144. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  145. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  146. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  147. package/build/features/bank/Bank.d.ts +5 -1
  148. package/build/features/bank/Bank.js +22 -9
  149. package/build/features/bank/screens/BankDetails/BankDetails.js +20 -6
  150. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  151. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  152. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  153. package/build/features/bank/screens/OperatorError/index.js +2 -0
  154. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  155. package/build/features/bank/screens/Verify/Verify.js +7 -6
  156. package/build/features/board/Board.d.ts +2 -0
  157. package/build/features/board/Board.js +24 -13
  158. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  159. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  160. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  161. package/build/features/board/screens/OperatorError/index.js +2 -0
  162. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  163. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  164. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  165. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  166. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  167. package/build/features/board/screens/Verify/Verify.js +3 -2
  168. package/build/features/brand/Brand.d.ts +5 -1
  169. package/build/features/brand/Brand.js +22 -9
  170. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +8 -35
  171. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  172. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  173. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  174. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  175. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -18
  176. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  177. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
  178. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  179. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  180. package/build/features/brand/screens/BrandInfo/BrandInfo.js +26 -6
  181. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  182. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  183. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  184. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  185. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  186. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  187. package/build/features/brand/screens/OperatorError/index.js +2 -0
  188. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  189. package/build/features/brand/screens/Verify/Verify.js +3 -2
  190. package/build/features/business/Business.js +20 -12
  191. package/build/features/business/screens/Activities/Activities.js +26 -9
  192. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  193. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  194. package/build/features/business/screens/Activities/OperationStartDate.d.ts +4 -2
  195. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  196. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  197. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  198. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  199. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
  200. package/build/features/business/screens/Customers/CustomerLocations.d.ts +12 -37
  201. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  202. package/build/features/business/screens/Customers/Customers.js +50 -10
  203. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  204. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  205. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  206. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  207. package/build/features/business/screens/Customers/RefundPolicy.d.ts +13 -19
  208. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  209. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  210. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  211. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  212. package/build/features/business/screens/Customers/validation.js +3 -8
  213. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  214. package/build/features/business/screens/DOB/DOB.js +45 -0
  215. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  216. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  217. package/build/features/business/screens/DOB/index.d.ts +3 -0
  218. package/build/features/business/screens/DOB/index.js +2 -0
  219. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  220. package/build/features/business/screens/DOB/validation.js +4 -0
  221. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  222. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  223. package/build/features/business/screens/IDBOD/validation.js +0 -1
  224. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -0
  225. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  226. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  227. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  228. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  229. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  230. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  231. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  232. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  233. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  234. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  235. package/build/features/business/screens/OperatorError/index.js +2 -0
  236. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  237. package/build/features/business/screens/Verify/Verify.js +15 -4
  238. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  239. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  240. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  241. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  242. package/build/features/connect/Connect.d.ts +5 -1
  243. package/build/features/connect/Connect.js +16 -9
  244. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  245. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  246. package/build/features/connect/screens/DOB/DOB.d.ts +5 -0
  247. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  248. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  249. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  250. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  251. package/build/features/connect/screens/DOB/index.js +2 -0
  252. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  253. package/build/features/connect/screens/DOB/validation.js +4 -0
  254. package/build/features/connect/screens/Individual/Email.js +1 -3
  255. package/build/features/connect/screens/Individual/Individual.js +11 -5
  256. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  257. package/build/features/connect/screens/Individual/validation.js +11 -3
  258. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  259. package/build/features/connect/screens/Merchant/validation.js +2 -2
  260. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  261. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  262. package/build/features/connect/screens/Mobile/validation.js +11 -3
  263. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -0
  264. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  265. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  266. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  267. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  268. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  269. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  270. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  271. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  272. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  273. package/build/features/connect/screens/NID/NID.js +5 -11
  274. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  275. package/build/features/connect/screens/NID/validation.js +0 -1
  276. package/build/features/connect/screens/OTP/OTP.js +6 -6
  277. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  278. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  279. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  280. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  281. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  282. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  283. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  284. package/build/features/connectExpress/ConnectExpress.js +62 -39
  285. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  286. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  287. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  288. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  289. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  290. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  291. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  292. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  293. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
  294. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
  295. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  296. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  297. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  298. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  299. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  300. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  301. package/build/features/connectExpress/screens/DOB/DOB.d.ts +5 -0
  302. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  303. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  304. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  305. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  306. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  307. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  308. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  309. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  310. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  311. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  312. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  313. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  314. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  315. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  316. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -0
  317. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  318. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  319. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  320. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  321. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  322. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  323. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  324. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  325. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  326. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  327. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
  328. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  329. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  330. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  331. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  332. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  333. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  334. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  335. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  336. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  337. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  338. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  339. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  340. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  341. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  342. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  343. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  344. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  345. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  346. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  347. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  348. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  349. package/build/features/entity/Entity.d.ts +4 -1
  350. package/build/features/entity/Entity.js +22 -9
  351. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  352. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  353. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  354. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  355. package/build/features/entity/screens/EntityName/EntityName.js +33 -15
  356. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -35
  357. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  358. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  359. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  360. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  361. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  362. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  363. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  364. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  365. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  366. package/build/features/entity/screens/EntityName/validation.js +1 -10
  367. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  368. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  369. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  370. package/build/features/entity/screens/OperatorError/index.js +2 -0
  371. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  372. package/build/features/entity/screens/Verify/Verify.js +3 -2
  373. package/build/features/featuresScreens.d.ts +1 -0
  374. package/build/features/featuresScreens.js +211 -13
  375. package/build/features/individual/Individual.d.ts +4 -1
  376. package/build/features/individual/Individual.js +22 -9
  377. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  378. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  379. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +4 -26
  380. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  381. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
  382. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  383. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  384. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  385. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  386. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  387. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  388. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  389. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  390. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
  391. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  392. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  393. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  394. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  395. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  396. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  397. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  398. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  399. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  400. package/build/features/individual/screens/OperatorError/index.js +2 -0
  401. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  402. package/build/features/individual/screens/Verify/Verify.js +3 -2
  403. package/build/features/kyc/KYC.d.ts +10 -0
  404. package/build/features/kyc/KYC.js +99 -0
  405. package/build/features/kyc/index.d.ts +1 -0
  406. package/build/features/kyc/index.js +1 -0
  407. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  408. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  409. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  410. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  411. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  412. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  413. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  414. package/build/features/kyc/screens/Loading/index.js +2 -0
  415. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  416. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  417. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  418. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  419. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  420. package/build/features/kyc/screens/Success/Success.js +32 -0
  421. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  422. package/build/features/kyc/screens/Success/index.js +2 -0
  423. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  424. package/build/features/kyc/screens/Terms/Header.js +36 -0
  425. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  426. package/build/features/kyc/screens/Terms/Terms.js +81 -0
  427. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  428. package/build/features/kyc/screens/Terms/index.js +2 -0
  429. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  430. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  431. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  432. package/build/features/kyc/screens/TokenError/index.js +2 -0
  433. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  434. package/build/features/kyc/screens/Users/Users.js +76 -0
  435. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  436. package/build/features/kyc/screens/Users/index.js +2 -0
  437. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  438. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  439. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  440. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  441. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  442. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  443. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  444. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  445. package/build/features/password/Password.d.ts +4 -1
  446. package/build/features/password/Password.js +88 -31
  447. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  448. package/build/features/password/screens/OTP/OTP.js +3 -3
  449. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  450. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  451. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  452. package/build/features/password/screens/OperatorError/index.js +2 -0
  453. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  454. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  455. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  456. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  457. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  458. package/build/features/password/screens/Verify/Verify.js +7 -6
  459. package/build/features/shared/Address/CountryList.d.ts +7 -23
  460. package/build/features/shared/Address/InputSelect.d.ts +7 -23
  461. package/build/features/shared/Background/Background.js +1 -1
  462. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  463. package/build/features/shared/Button/Button.js +3 -1
  464. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  465. package/build/features/shared/Button/FlowsButtons.js +18 -4
  466. package/build/features/shared/Button/NafathButton.d.ts +7 -0
  467. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  468. package/build/features/shared/Button/index.d.ts +2 -2
  469. package/build/features/shared/Button/index.js +2 -2
  470. package/build/features/shared/Calender/Calender.d.ts +2 -1
  471. package/build/features/shared/Calender/Calender.js +3 -3
  472. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -0
  473. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  474. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  475. package/build/features/shared/Input/Input.d.ts +2 -2
  476. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  477. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  478. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  479. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  480. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  481. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  482. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  483. package/build/features/shared/NafathVerification/index.js +2 -0
  484. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  485. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  486. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  487. package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
  488. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
  489. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
  490. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
  491. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
  492. package/build/features/signIn/SignIn.js +18 -7
  493. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  494. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  495. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  496. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  497. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  498. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  499. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  500. package/build/features/tax/Tax.d.ts +4 -1
  501. package/build/features/tax/Tax.js +22 -9
  502. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  503. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  504. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  505. package/build/features/tax/screens/OperatorError/index.js +2 -0
  506. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  507. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  508. package/build/features/tax/screens/Verify/Verify.js +7 -6
  509. package/build/hooks/index.d.ts +3 -0
  510. package/build/hooks/index.js +3 -0
  511. package/build/hooks/useAppConfig.d.ts +1 -1
  512. package/build/hooks/useAppConfig.js +4 -3
  513. package/build/hooks/useAppDispatch.d.ts +1 -0
  514. package/build/hooks/useAppTheme.js +4 -3
  515. package/build/hooks/useCountDown.d.ts +10 -0
  516. package/build/hooks/useCountDown.js +17 -0
  517. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  518. package/build/hooks/useFormDirtyCheck.js +66 -0
  519. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  520. package/build/hooks/useSanitizedTranslation.js +15 -0
  521. package/build/hooks/useVerifyToken.d.ts +4 -2
  522. package/build/hooks/useVerifyToken.js +9 -4
  523. package/build/index.css +360 -120
  524. package/build/index.d.ts +3 -2
  525. package/build/index.js +4 -2
  526. package/build/theme/components.js +7 -0
  527. package/build/theme/palette.js +2 -1
  528. package/build/theme/shadows.js +1 -1
  529. package/build/theme/theme.d.ts +1 -1
  530. package/build/theme/theme.js +2 -2
  531. package/build/utils/array.js +2 -2
  532. package/build/utils/common.d.ts +1 -0
  533. package/build/utils/common.js +16 -3
  534. package/build/utils/object.d.ts +1 -0
  535. package/build/utils/object.js +3 -0
  536. package/build/utils/string.d.ts +6 -2
  537. package/build/utils/string.js +28 -3
  538. package/build/utils/validation.d.ts +2 -0
  539. package/build/utils/validation.js +6 -0
  540. package/package.json +2 -2
  541. package/build/features/auth/screens/NID/DOB.d.ts +0 -6
  542. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  543. package/build/features/business/screens/OTP/OTP.js +0 -90
  544. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  545. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  546. package/build/features/business/screens/OTP/index.d.ts +0 -3
  547. package/build/features/business/screens/OTP/index.js +0 -2
  548. package/build/features/business/screens/OTP/validation.js +0 -4
  549. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  550. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  551. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  552. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  553. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  554. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  555. package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -6
  556. package/build/features/shared/Button/AbsherButton.d.ts +0 -7
  557. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -163,7 +163,7 @@ var BusinessCountry = function (_a) {
163
163
  handleOpenSubMenu(item.id.toString());
164
164
  }, renderItem: function (item) {
165
165
  var isSelected = !!item.countries.find(function (c) { var _a; return c.country.iso2.toLocaleLowerCase() === ((_a = countryValue === null || countryValue === void 0 ? void 0 : countryValue.country) === null || _a === void 0 ? void 0 : _a.iso2.toLocaleLowerCase()); });
166
- return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, { children: [_jsx(NameContainer, __assign({ sx: { padding: 0 }, isSelected: isSelected }, { children: item.title })), _jsx(ExpandIcon, { anchorEl: subIndex === item.id.toString() })] }), _jsx(Collapse, __assign({ in: item.id.toString() === subIndex || !!searchValue }, { children: _jsx(CountryListStyled, { sx: { pt: 0, pb: 0 }, list: item.countries || [], onSelectItem: function (i, e) {
166
+ return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: { width: 'unset' } }, { children: [_jsx(NameContainer, __assign({ sx: { padding: 0 }, isSelected: isSelected }, { children: isAr ? item.title_ar : item.title })), _jsx(ExpandIcon, { anchorEl: subIndex === item.id.toString() })] })), _jsx(Collapse, __assign({ in: item.id.toString() === subIndex || !!searchValue }, { children: _jsx(CountryListStyled, { sx: { pt: 0, pb: 0 }, list: item.countries || [], onSelectItem: function (i, e) {
167
167
  e.stopPropagation();
168
168
  onSelectItem(i);
169
169
  }, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (item, idx) {
@@ -46,7 +46,8 @@ var BackIconStyled = styled(Icon, { shouldForwardProp: function (prop) { return
46
46
  width: theme.spacing(3),
47
47
  height: theme.spacing(3),
48
48
  transform: isAr ? 'scaleX(1)' : 'scaleX(-1)',
49
- marginInlineStart: theme.spacing(-1)
49
+ marginInlineStart: theme.spacing(-1),
50
+ objectFit: 'none'
50
51
  });
51
52
  });
52
53
  var ButtonBoxStyled = styled(Box)(function (_a) {
@@ -77,6 +78,7 @@ var BackButtonStyled = styled(Button, { shouldForwardProp: function (prop) { ret
77
78
  var theme = _a.theme, isAr = _a.isAr;
78
79
  return ({
79
80
  minWidth: theme.spacing(5),
81
+ padding: theme.spacing(0.75, 0),
80
82
  paddingInlineStart: theme.spacing(2.5),
81
83
  width: '10%',
82
84
  zIndex: 1,
@@ -30,6 +30,8 @@ var ButtonBoxStyled = styled(Box)(function (_a) {
30
30
  var _b;
31
31
  var theme = _a.theme;
32
32
  return (_b = {
33
+ display: 'flex',
34
+ flexDirection: 'column',
33
35
  margin: theme.spacing(0, 2.5, 2.5, 2.5)
34
36
  },
35
37
  _b[theme.breakpoints.down('sm')] = {
@@ -48,6 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
49
  import { useState } from 'react';
50
50
  import { useTranslation } from 'react-i18next';
51
+ import { capitalize } from 'lodash-es';
51
52
  import Button from '../../../components/Button';
52
53
  import { Button as SharedButton } from '../../shared/Button';
53
54
  import { alpha, styled } from '@mui/material/styles';
@@ -57,7 +58,8 @@ import { ICONS_NAMES } from '../../../constants';
57
58
  import CheckIcon from '@mui/icons-material/Check';
58
59
  import { useAppDispatch, useAppSelector, useLanguage } from '../../../hooks';
59
60
  import { handleOpen, handleCurrentActiveScreen, handleNextScreenStep, settingsSelector } from '../../../app/settings';
60
- import { dangerousMessage, getScreenNameBasedOnFlow, isKWOrSA } from '../../../utils';
61
+ import { FlowsTypes } from '../../../@types';
62
+ import { dangerousMessage, getScreenNameBasedOnFlow, isKWOrSA, sendCustomEventToGTM } from '../../../utils';
61
63
  import API from '../../../api';
62
64
  import Text from '../../../components/Text';
63
65
  import Dot from '../Dot';
@@ -127,6 +129,9 @@ var CheckIconStyled = styled(CheckIcon)(function (_a) {
127
129
  color: theme.palette.success.main
128
130
  });
129
131
  });
132
+ var LinkStyled = styled(Link)(function () { return ({
133
+ display: 'flex'
134
+ }); });
130
135
  var BrandImage = styled(Box)(function (_a) {
131
136
  var theme = _a.theme;
132
137
  return ({
@@ -160,7 +165,16 @@ export default function FlowsButtons(_a) {
160
165
  var onRedirect = function (item) {
161
166
  if (!item.href)
162
167
  return;
163
- if (flowName === item.name && item.name !== 'password') {
168
+ var name = item.name === FlowsTypes.BANK ? 'Wallet' : capitalize(item.name);
169
+ if (item.name === FlowsTypes.PASSWORD)
170
+ name = 'Set Password';
171
+ sendCustomEventToGTM({
172
+ event: 'Send Event',
173
+ event_category: "Board Flows - ".concat(name),
174
+ event_action: "".concat(name, " Kit Click"),
175
+ event_label: settingsData.businessCountry.iso2
176
+ });
177
+ if (flowName === item.name && !isResetPassword(item.name, item.status)) {
164
178
  var isOtherThanSAOrKWCountry = !isKWOrSA(settingsData.businessCountry.iso2);
165
179
  dispatch(handleCurrentActiveScreen(getScreenNameBasedOnFlow(item.name, isAuthorizedUser, isOtherThanSAOrKWCountry)));
166
180
  return;
@@ -222,11 +236,11 @@ export default function FlowsButtons(_a) {
222
236
  return (_jsxs(ButtonBoxStyled, { children: [buttons.map(function (_a, idx) {
223
237
  var title = _a.title, href = _a.href, src = _a.src, hoverSrc = _a.hoverSrc, isCompleted = _a.isCompleted, sx = _a.sx, name = _a.name, status = _a.status, token = _a.token;
224
238
  var isLast = idx === buttons.length - 1;
225
- return (_jsx(Link, __assign({ underline: 'none', onClick: function () {
239
+ return (_jsx(LinkStyled, __assign({ underline: 'none', onClick: function () {
226
240
  if (isResetPassword(name, status))
227
241
  onResetPassword();
228
242
  else
229
243
  onRedirect({ title: title, href: href, src: src, hoverSrc: hoverSrc, isCompleted: isCompleted, name: name, status: status, token: token });
230
- } }, { children: _jsx(ButtonStyled, __assign({ variant: 'outlined', disabled: isResetPassword(name, status) && loading, isCompleted: isCompleted, hasUrl: !!href, sx: __assign({ mb: isLast ? 2.5 : 1.8 }, sx), endIcon: isResetPassword(name, status) && loading ? (_jsx(_Fragment, {})) : isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsxs("div", __assign({ style: { display: 'flex', alignItems: 'center' } }, { children: [name !== 'password' && _jsx(Dot, { completed: status === 'complete' || status === 'completed' || status === 'reviewed' }), _jsx(Image, { sx: { height: 15, transform: isAr ? 'scale(-1)' : 'scale(1)', marginInlineStart: 0 }, src: ICONS_NAMES.Arrow_filled_right_icon })] }))), startIcon: isResetPassword(name, status) && loading ? (_jsx(_Fragment, {})) : isBrand(name) ? (_jsx(_Fragment, { children: _jsx(BrandImage, { children: _jsx(BrandNameStyled, { children: brandName }) }) })) : (_jsx(Image, { src: src, alt: title })), type: 'button' }, { children: title })) }), idx));
244
+ } }, { children: _jsx(ButtonStyled, __assign({ variant: 'outlined', disabled: isResetPassword(name, status) && loading, isCompleted: isCompleted, hasUrl: !!href, sx: __assign({ mb: isLast ? 2.5 : 1.8 }, sx), endIcon: isResetPassword(name, status) && loading ? (_jsx(_Fragment, {})) : isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsxs("div", __assign({ style: { display: 'flex', alignItems: 'center' } }, { children: [name !== 'password' && _jsx(Dot, { completed: ['complete', 'completed', 'reviewed'].includes(status === null || status === void 0 ? void 0 : status.toLowerCase()) }), _jsx(Image, { sx: { height: 15, transform: isAr ? 'scale(-1)' : 'scale(1)', marginInlineStart: 0 }, src: ICONS_NAMES.Arrow_filled_right_icon })] }))), startIcon: isResetPassword(name, status) && loading ? (_jsx(_Fragment, {})) : isBrand(name) ? (_jsx(_Fragment, { children: _jsx(BrandImage, { children: _jsx(BrandNameStyled, { children: brandName }) }) })) : (_jsx(Image, { src: src, alt: title })), type: 'button' }, { children: title })) }), idx));
231
245
  }), onClose && (_jsx(SharedButton, __assign({ sx: { mt: 2.5, ml: 0, mr: 0 }, isAr: isAr, disableBack: true, loading: storeLoading, onClick: onClose }, { children: t('close_and_complete_later') })))] }));
232
246
  }
@@ -0,0 +1,7 @@
1
+ import { ButtonProps } from '../../../components/Button';
2
+ interface NafathButtonProps extends ButtonProps {
3
+ loading?: boolean;
4
+ hideIcon?: boolean;
5
+ }
6
+ export default function NafathButton({ children, hideIcon, disabled, ...props }: NafathButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -28,7 +28,7 @@ import Box from '@mui/material/Box';
28
28
  import { ICONS_NAMES } from '../../../constants';
29
29
  var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
30
30
  var theme = _a.theme, disabled = _a.disabled;
31
- return (__assign({ width: theme.spacing(3), height: theme.spacing(3), marginInlineStart: theme.spacing(0.75) }, (disabled && {
31
+ return (__assign({ width: theme.spacing(3), height: theme.spacing(3) }, (disabled && {
32
32
  opacity: 0.3
33
33
  })));
34
34
  });
@@ -38,9 +38,18 @@ var ButtonBoxStyled = styled(Box)(function (_a) {
38
38
  margin: theme.spacing(0, 2.5, 2.5, 2.5)
39
39
  });
40
40
  });
41
- export default function AbsherButton(_a) {
41
+ var ButtonStyled = styled(Button)(function (_a) {
42
+ var theme = _a.theme;
43
+ return ({
44
+ paddingInlineStart: theme.spacing(1.75),
45
+ '& .MuiButton-startIcon': {
46
+ margin: theme.spacing(0)
47
+ }
48
+ });
49
+ });
50
+ export default function NafathButton(_a) {
42
51
  var children = _a.children, hideIcon = _a.hideIcon, disabled = _a.disabled, props = __rest(_a, ["children", "hideIcon", "disabled"]);
43
52
  var theme = useTheme();
44
53
  var btnColor = theme.palette.primary.light;
45
- return (_jsx(ButtonBoxStyled, { children: _jsx(Button, __assign({ outLineColor: btnColor, variant: 'outlined', disabled: disabled, type: 'button', startIcon: !hideIcon && _jsx(IconStyled, { disabled: disabled, src: ICONS_NAMES.ABSHER_LOGO }) }, props, { children: children })) }));
54
+ return (_jsx(ButtonBoxStyled, { children: _jsx(ButtonStyled, __assign({ outLineColor: btnColor, variant: 'outlined', disabled: disabled, type: 'button', startIcon: !hideIcon && _jsx(IconStyled, { disabled: disabled, src: ICONS_NAMES.NAFATH_LOGO }) }, props, { children: children })) }));
46
55
  }
@@ -1,9 +1,9 @@
1
1
  import Button from './Button';
2
- import AbsherButton from './AbsherButton';
2
+ import NafathButton from './NafathButton';
3
3
  import MobileButton from './MobileButton';
4
4
  import EmailProvidersButton from './EmailProvidersButtons';
5
5
  import FlowsButtons from './FlowsButtons';
6
6
  import SuccessButton from './SuccessButton';
7
7
  import ListButton from './IndividualActionButtons';
8
- export { AbsherButton, MobileButton, EmailProvidersButton, FlowsButtons, SuccessButton, Button, ListButton };
8
+ export { NafathButton, MobileButton, EmailProvidersButton, FlowsButtons, SuccessButton, Button, ListButton };
9
9
  export default Button;
@@ -1,9 +1,9 @@
1
1
  import Button from './Button';
2
- import AbsherButton from './AbsherButton';
2
+ import NafathButton from './NafathButton';
3
3
  import MobileButton from './MobileButton';
4
4
  import EmailProvidersButton from './EmailProvidersButtons';
5
5
  import FlowsButtons from './FlowsButtons';
6
6
  import SuccessButton from './SuccessButton';
7
7
  import ListButton from './IndividualActionButtons';
8
- export { AbsherButton, MobileButton, EmailProvidersButton, FlowsButtons, SuccessButton, Button, ListButton };
8
+ export { NafathButton, MobileButton, EmailProvidersButton, FlowsButtons, SuccessButton, Button, ListButton };
9
9
  export default Button;
@@ -7,6 +7,7 @@ interface CustomCalenderProps extends CalendarProps {
7
7
  disabled?: boolean;
8
8
  isVerified?: boolean;
9
9
  maxDate?: Date;
10
+ minDate?: Date;
10
11
  }
11
- declare const CustomCalender: ({ onDateClicked, onDateChange, defaultValue, isDob, disabled, isVerified, maxDate }: CustomCalenderProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const CustomCalender: ({ onDateClicked, onDateChange, defaultValue, isDob, disabled, isVerified, maxDate, minDate }: CustomCalenderProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export default CustomCalender;
@@ -29,7 +29,7 @@ var SwitchBoxStyled = styled(Box)(function (_a) {
29
29
  } }));
30
30
  });
31
31
  var CustomCalender = function (_a) {
32
- var onDateClicked = _a.onDateClicked, onDateChange = _a.onDateChange, defaultValue = _a.defaultValue, isDob = _a.isDob, disabled = _a.disabled, isVerified = _a.isVerified, maxDate = _a.maxDate;
32
+ var onDateClicked = _a.onDateClicked, onDateChange = _a.onDateChange, defaultValue = _a.defaultValue, isDob = _a.isDob, disabled = _a.disabled, isVerified = _a.isVerified, maxDate = _a.maxDate, minDate = _a.minDate;
33
33
  var t = useTranslation().t;
34
34
  var theme = useTheme();
35
35
  var data = useAppSelector(settingsSelector).data;
@@ -39,13 +39,13 @@ var CustomCalender = function (_a) {
39
39
  var onSwitchCalender = function () {
40
40
  dispatch(handleSwitchCalender(!isHijriCalender));
41
41
  };
42
- return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !isHijriCalender }, { children: _jsx(DatePicker, { open: open, defaultValue: defaultValue, readOnly: true, disabled: disabled, isVerified: isVerified, dir: 'ltr', locale: 'en', isDob: isDob, maxDate: maxDate, onDateChange: onDateChange, onClick: function () {
42
+ return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !isHijriCalender }, { children: _jsx(DatePicker, { open: open, defaultValue: defaultValue, readOnly: true, disabled: disabled, isVerified: isVerified, dir: 'ltr', locale: 'en', isDob: isDob, maxDate: maxDate, minDate: minDate, onDateChange: onDateChange, onClick: function () {
43
43
  onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true);
44
44
  setOpen(true);
45
45
  }, onDatePicked: function () {
46
46
  onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false);
47
47
  setOpen(false);
48
- } }) })), _jsx(Collapse, __assign({ in: isHijriCalender }, { children: _jsx(ArabicDatePicker, { open: open, readOnly: true, disabled: disabled, isVerified: isVerified, dir: theme.direction, isDob: isDob, maxDate: maxDate, onClick: function () {
48
+ } }) })), _jsx(Collapse, __assign({ in: isHijriCalender }, { children: _jsx(ArabicDatePicker, { open: open, readOnly: true, disabled: disabled, isVerified: isVerified, dir: theme.direction, isDob: isDob, maxDate: maxDate, minDate: minDate, onClick: function () {
49
49
  onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true);
50
50
  setOpen(true);
51
51
  }, onDatePicked: function () {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  interface FeatureContainerProps extends BoxProps {
4
4
  isMaturityExpress?: boolean;
5
+ isTapOrigin?: boolean;
5
6
  mode?: 'popup' | 'page' | 'content';
6
7
  }
7
8
  declare const FeatureContainer: React.ForwardRefExoticComponent<Omit<FeatureContainerProps, "ref"> & React.RefAttributes<unknown>>;
@@ -13,9 +13,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import React from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
- var Container = styled(Box, { shouldForwardProp: function (prop) { return !['isMaturityExpress', 'mode'].includes(prop); } })(function (_a) {
16
+ var Container = styled(Box, {
17
+ shouldForwardProp: function (prop) { return !['isMaturityExpress', 'mode', 'isTapOrigin'].includes(prop); }
18
+ })(function (_a) {
17
19
  var _b;
18
- var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress, mode = _a.mode;
20
+ var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress, mode = _a.mode, isTapOrigin = _a.isTapOrigin;
19
21
  return (_b = {
20
22
  width: '100%',
21
23
  minHeight: theme.spacing(30),
@@ -27,7 +29,7 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return !['isM
27
29
  property: 'all'
28
30
  },
29
31
  _b[theme.breakpoints.down('sm')] = {
30
- paddingTop: isMaturityExpress || mode === 'content' ? theme.spacing(0.625) : theme.spacing(6)
32
+ paddingTop: (isMaturityExpress && !isTapOrigin) || mode === 'content' ? theme.spacing(1.25) : theme.spacing(6)
31
33
  },
32
34
  _b);
33
35
  });
@@ -21,7 +21,8 @@ var CloseIconStyled = styled(Icon)(function (_a) {
21
21
  var theme = _a.theme;
22
22
  return ({
23
23
  width: theme.spacing(3.75),
24
- height: theme.spacing(3.75)
24
+ height: theme.spacing(3.75),
25
+ cursor: 'pointer'
25
26
  });
26
27
  });
27
28
  var CloseBox = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isTapOrigin'; } })(function (_a) {
@@ -31,11 +32,11 @@ var CloseBox = styled(Box, { shouldForwardProp: function (prop) { return prop !=
31
32
  justifyContent: 'end',
32
33
  marginBlockStart: theme.spacing(2),
33
34
  marginInlineEnd: theme.spacing(2),
34
- cursor: 'pointer',
35
35
  direction: theme.direction,
36
36
  position: isTapOrigin ? 'initial' : 'absolute',
37
37
  right: 0,
38
- left: 0
38
+ left: 0,
39
+ zIndex: 9999
39
40
  });
40
41
  });
41
42
  export default function Dialog(_a) {
@@ -52,5 +53,5 @@ export default function Dialog(_a) {
52
53
  var handleOnCancel = function () {
53
54
  setOpen(false);
54
55
  };
55
- return (_jsxs(_Fragment, { children: [onClose && (_jsx(CloseBox, __assign({ isTapOrigin: isTapOrigin, id: 'close-container', onClick: handleOnCloseButton }, { children: _jsx(CloseIconStyled, { src: ICONS_NAMES.CLOSE_ICON }) }))), children, onClose && (_jsx(CloseDialog, { message: t('confirm_close_flow_title'), confirmTitle: t('confirm_close_flow_yes'), closeTitle: t('confirm_close_flow_no'), open: open, onConfirm: handleOnConfirm, onCancel: handleOnCancel }))] }));
56
+ return (_jsxs(_Fragment, { children: [onClose && (_jsx(CloseBox, __assign({ isTapOrigin: isTapOrigin, id: 'close-container' }, { children: _jsx(CloseIconStyled, { src: ICONS_NAMES.CLOSE_ICON, onClick: handleOnCloseButton }) }))), children, onClose && (_jsx(CloseDialog, { message: t('confirm_close_flow_title'), confirmTitle: t('confirm_close_flow_yes'), closeTitle: t('confirm_close_flow_no'), open: open, onConfirm: handleOnConfirm, onCancel: handleOnCancel }))] }));
56
57
  }
@@ -3,10 +3,10 @@ import { SxProps, Theme } from '@mui/material/styles';
3
3
  import { InputProps } from '../../../components/Input';
4
4
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
6
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
6
+ }, "left" | "right" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
7
7
  component?: React.ElementType<any> | undefined;
8
8
  } & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
9
- export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<InputProps, "content" | "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "disabled" | "error" | "value" | "components" | "componentsProps" | "slotProps" | "slots" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
9
+ export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<InputProps, "content" | "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "ref" | "sx" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "error" | "size" | "value" | "disabled" | "components" | "componentsProps" | "slotProps" | "slots" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
10
10
  placeholder?: string | undefined;
11
11
  hide?: boolean | undefined;
12
12
  warningType?: "alert" | "error" | "hint" | undefined;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface VerifyNafathProps {
3
+ randomNumber: string;
4
+ success: boolean;
5
+ failed?: boolean;
6
+ expiryInSeconds: number;
7
+ urls?: {
8
+ android: string;
9
+ ios: string;
10
+ };
11
+ onFinish?: () => void;
12
+ }
13
+ declare const _default: React.MemoExoticComponent<({ randomNumber, success, failed, expiryInSeconds, urls, onFinish }: VerifyNafathProps) => import("react/jsx-runtime").JSX.Element>;
14
+ export default _default;
@@ -0,0 +1,92 @@
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import Box from '@mui/material/Box/Box';
15
+ import { styled } from '@mui/material/styles';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../components/Text';
18
+ import { ScreenContainer } from '../../shared/Containers';
19
+ import { MobileButton } from '../../shared/Button';
20
+ import { mobileOS } from '../../../utils';
21
+ import { useCountDown, useCountUp } from '../../../hooks';
22
+ import VerifyNafathLoading from './VerifyNafathLoading';
23
+ import VerifyNafathSuccess from './VerifyNafathSuccess';
24
+ var VerifyNafathTitleContainerStyled = styled(Box)(function (_a) {
25
+ var theme = _a.theme;
26
+ return ({
27
+ direction: theme.direction,
28
+ display: 'flex',
29
+ flexDirection: 'column',
30
+ alignItems: 'center',
31
+ marginBottom: theme.spacing(2.5)
32
+ });
33
+ });
34
+ var VerifyNafathTitleStyled = styled(Text)(function (_a) {
35
+ var theme = _a.theme;
36
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightBold, marginBottom: theme.spacing(2.4), lineHeight: '19.2px' }));
37
+ });
38
+ var VerifyNafathSubTitleStyled = styled(Text)(function (_a) {
39
+ var theme = _a.theme;
40
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium, lineHeight: '16.8px', textAlign: 'center', marginLeft: theme.spacing(3), marginRight: theme.spacing(3) }));
41
+ });
42
+ var Container = styled(Box)(function (_a) {
43
+ var theme = _a.theme;
44
+ return ({
45
+ position: 'relative',
46
+ display: 'flex',
47
+ justifyContent: 'center',
48
+ alignItems: 'center',
49
+ maxHeight: '300px',
50
+ marginBottom: theme.spacing(3.25)
51
+ });
52
+ });
53
+ var VerifyNafath = function (_a) {
54
+ var randomNumber = _a.randomNumber, success = _a.success, failed = _a.failed, expiryInSeconds = _a.expiryInSeconds, urls = _a.urls, onFinish = _a.onFinish;
55
+ var t = useTranslation().t;
56
+ var count = useCountUp({ start: 0, end: expiryInSeconds, sleepMS: 1000 }).count;
57
+ var errorWaitingTime = 3;
58
+ var failedCount = useCountDown({ startTimer: !!failed, start: errorWaitingTime, end: 0, sleepMS: 1000 }).count;
59
+ var phases = 2;
60
+ var remainingTime = expiryInSeconds - errorWaitingTime;
61
+ var phaseNumber = Math.floor((count / remainingTime) * phases) + 1;
62
+ var isEnded = failed ? failedCount === 0 : count === expiryInSeconds;
63
+ var endPhaseStarted = count >= remainingTime;
64
+ React.useEffect(function () {
65
+ if (isEnded && onFinish)
66
+ onFinish();
67
+ }, [isEnded]);
68
+ var onRedirect = React.useCallback(function () {
69
+ if (os === 'Android') {
70
+ window.open(urls === null || urls === void 0 ? void 0 : urls.android, '_blank');
71
+ }
72
+ if (os === 'iOS') {
73
+ window.open(urls === null || urls === void 0 ? void 0 : urls.ios, '_blank');
74
+ }
75
+ }, [urls]);
76
+ var os = React.useMemo(function () { return mobileOS(); }, []);
77
+ var isAndroid = React.useMemo(function () { return os === 'Android' && (urls === null || urls === void 0 ? void 0 : urls.android); }, [os, urls]);
78
+ var isIOS = React.useMemo(function () { return os === 'iOS' && (urls === null || urls === void 0 ? void 0 : urls.ios); }, [os, urls]);
79
+ var title = React.useMemo(function () {
80
+ if (phaseNumber === 1)
81
+ return 'nafath_verification_title_wait';
82
+ return 'nafath_verification_title_check';
83
+ }, [phaseNumber]);
84
+ var description = React.useMemo(function () {
85
+ if (phaseNumber === 1)
86
+ return 'nafath_verification_description_wait';
87
+ return 'nafath_verification_description_check';
88
+ }, [phaseNumber]);
89
+ var isErrorPhase = (endPhaseStarted && !success) || failed;
90
+ return (_jsxs(ScreenContainer, __assign({ sx: { mb: 2.5 } }, { children: [_jsxs(VerifyNafathTitleContainerStyled, { children: [_jsx(Container, { children: success ? _jsx(VerifyNafathSuccess, {}) : _jsx(VerifyNafathLoading, { randomNumber: randomNumber, type: isErrorPhase ? 3 : phaseNumber }) }), isErrorPhase ? (_jsxs(_Fragment, { children: [_jsx(VerifyNafathTitleStyled, { children: t('nafath_verification_title_error') }), _jsx(VerifyNafathSubTitleStyled, __assign({ sx: { pb: 1 } }, { children: t('nafath_verification_description_error') })), _jsx(VerifyNafathSubTitleStyled, { children: t('nafath_verification_redirection_message') })] })) : (_jsxs(_Fragment, { children: [_jsx(VerifyNafathTitleStyled, { children: t(title) }), _jsx(VerifyNafathSubTitleStyled, { children: t(description) })] }))] }), (isAndroid || isIOS) && (_jsx(MobileButton, __assign({ onClick: onRedirect, hideIcon: true }, { children: t('open_nafath_app') })))] })));
91
+ };
92
+ export default React.memo(VerifyNafath);
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface VerifyNafathLoadingProps {
3
+ loop?: boolean;
4
+ type: number;
5
+ randomNumber: string;
6
+ }
7
+ declare const _default: React.NamedExoticComponent<VerifyNafathLoadingProps>;
8
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { styled } from '@mui/material/styles';
4
+ import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
5
+ import Icon from '../../../components/Icon';
6
+ import { ICONS_NAMES } from '../../../constants';
7
+ import Text from '../../../components/Text';
8
+ import Box from '@mui/material/Box';
9
+ var IconStyled = styled(Icon)(function (_a) {
10
+ var theme = _a.theme;
11
+ return ({
12
+ position: 'absolute',
13
+ top: '50%',
14
+ left: '50%',
15
+ transform: 'translate(-50%, -50%)',
16
+ width: theme.spacing(10),
17
+ height: theme.spacing(10)
18
+ });
19
+ });
20
+ var NumberBoxStyled = styled(Box)(function (_a) {
21
+ var theme = _a.theme;
22
+ return ({
23
+ position: 'absolute',
24
+ top: '92%',
25
+ left: '50%',
26
+ transform: 'translate(-59%, -59%)',
27
+ width: 59,
28
+ height: 59,
29
+ background: theme.palette.primary.contrastText,
30
+ display: 'flex',
31
+ justifyContent: 'center',
32
+ alignItems: 'center',
33
+ borderRadius: '100%'
34
+ });
35
+ });
36
+ var NumberStyled = styled(Text)(function (_a) {
37
+ var theme = _a.theme;
38
+ return ({
39
+ fontWeight: theme.typography.fontWeightMedium,
40
+ fontSize: '26.47px',
41
+ lineHeight: '31.77px'
42
+ });
43
+ });
44
+ var VerifyNafathLoading = function (_a) {
45
+ var _b = _a.loop, loop = _b === void 0 ? true : _b, type = _a.type, randomNumber = _a.randomNumber;
46
+ if (type === 1)
47
+ return (_jsxs(_Fragment, { children: [_jsx(LottieFile, { file: LottieAnimationFiles.pulsating_circle_waves, loop: loop, width: '90%' }), _jsx(IconStyled, { src: ICONS_NAMES.NAFATH_VERIFY_ICON }), _jsx(NumberBoxStyled, { children: _jsx(NumberStyled, { children: randomNumber }) })] }));
48
+ if (type === 2)
49
+ return (_jsxs(_Fragment, { children: [_jsx(LottieFile, { file: LottieAnimationFiles.pulsating_circle_waves, loop: loop, width: '90%' }), _jsx(IconStyled, { src: ICONS_NAMES.NAFATH_VERIFY_ICON }), _jsx(NumberBoxStyled, { children: _jsx(NumberStyled, { children: randomNumber }) })] }));
50
+ return (_jsx(_Fragment, { children: _jsx(LottieFile, { file: LottieAnimationFiles.error, loop: false, width: '60%' }) }));
51
+ };
52
+ VerifyNafathLoading.defaultProps = {};
53
+ export default memo(VerifyNafathLoading);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface VerifyPACISuccessProps {
3
+ }
4
+ declare const _default: React.NamedExoticComponent<VerifyPACISuccessProps>;
5
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
4
+ var VerifyPACISuccess = function () {
5
+ return (_jsx(_Fragment, { children: _jsx(LottieFile, { loop: false, file: LottieAnimationFiles.success, width: '90%' }) }));
6
+ };
7
+ VerifyPACISuccess.defaultProps = {};
8
+ export default memo(VerifyPACISuccess);
@@ -0,0 +1,2 @@
1
+ import NafathVerification from './NafathVerification';
2
+ export default NafathVerification;
@@ -0,0 +1,2 @@
1
+ import NafathVerification from './NafathVerification';
2
+ export default NafathVerification;
@@ -12,8 +12,13 @@ interface SuccessFlowButtonsProps {
12
12
  boardInfoId: string;
13
13
  boardId: string;
14
14
  flowName: FlowsTypes;
15
+ recipient: {
16
+ id: string;
17
+ type: string;
18
+ };
15
19
  onClose?: () => void;
16
20
  loading?: boolean;
21
+ status: 'complete' | 'incomplete';
17
22
  }
18
- declare const _default: React.MemoExoticComponent<({ brand, entity, business, merchant, bank, user, flows, boardInfoId, boardId, flowName, individuals, onClose, loading }: SuccessFlowButtonsProps) => import("react/jsx-runtime").JSX.Element>;
23
+ declare const _default: React.MemoExoticComponent<({ brand, entity, business, merchant, bank, user, flows, boardInfoId, boardId, flowName, individuals, recipient, onClose, loading, status }: SuccessFlowButtonsProps) => import("react/jsx-runtime").JSX.Element>;
19
24
  export default _default;
@@ -45,7 +45,7 @@ var ButtonGroupStyled = styled(Box)(function (_a) {
45
45
  });
46
46
  var SuccessFlowButtons = function (_a) {
47
47
  var _b, _c, _d;
48
- var brand = _a.brand, entity = _a.entity, business = _a.business, merchant = _a.merchant, bank = _a.bank, user = _a.user, flows = _a.flows, boardInfoId = _a.boardInfoId, boardId = _a.boardId, flowName = _a.flowName, individuals = _a.individuals, onClose = _a.onClose, loading = _a.loading;
48
+ var brand = _a.brand, entity = _a.entity, business = _a.business, merchant = _a.merchant, bank = _a.bank, user = _a.user, flows = _a.flows, boardInfoId = _a.boardInfoId, boardId = _a.boardId, flowName = _a.flowName, individuals = _a.individuals, recipient = _a.recipient, onClose = _a.onClose, loading = _a.loading, status = _a.status;
49
49
  var _e = useState([]), buttons = _e[0], setButtons = _e[1];
50
50
  var t = useTranslation().t;
51
51
  var isAr = useLanguage().isAr;
@@ -66,7 +66,7 @@ var SuccessFlowButtons = function (_a) {
66
66
  var isPayout = payout_status === MerchantStatus.ENABLED;
67
67
  var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_d = identification === null || identification === void 0 ? void 0 : identification.id) === null || _d === void 0 ? void 0 : _d.slice(-2)) : '';
68
68
  var email = (primary_contact || {}).email;
69
- var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, boardId, boardInfoId);
69
+ var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, boardId, boardInfoId, recipient === null || recipient === void 0 ? void 0 : recipient.id, recipient === null || recipient === void 0 ? void 0 : recipient.type);
70
70
  var flowsDetails = [
71
71
  { name: 'brand', status: brand === null || brand === void 0 ? void 0 : brand.data_state },
72
72
  { name: 'entity', status: entity === null || entity === void 0 ? void 0 : entity.data_state },
@@ -111,20 +111,17 @@ var SuccessFlowButtons = function (_a) {
111
111
  });
112
112
  setButtons(mappedFlows);
113
113
  };
114
- var checkIfFlowsAreCompletedExceptPassword = function (data) {
115
- var isFlowsCompleted = data.every(function (flow) { return (flow.status === 'complete' || flow.status === 'reviewed' || flow.status === 'verified') && flow.name !== 'password'; });
116
- return isFlowsCompleted;
117
- };
118
114
  useEffect(function () {
119
- var _a, _b;
120
- if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
115
+ if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0)
121
116
  reMapFlowData(flows);
122
- var isFlowsCompleted = checkIfFlowsAreCompletedExceptPassword(flowsDetails);
123
- if (isFlowsCompleted) {
124
- (_b = (_a = settings.data.appConfig).onBoardCompleted) === null || _b === void 0 ? void 0 : _b.call(_a);
125
- }
126
- }
127
117
  }, [flows, isAr]);
118
+ useEffect(function () {
119
+ var _a, _b;
120
+ console.log('status', status);
121
+ if ((status === null || status === void 0 ? void 0 : status.toLocaleLowerCase()) === 'complete') {
122
+ (_b = (_a = settings.data.appConfig).onBoardCompleted) === null || _b === void 0 ? void 0 : _b.call(_a);
123
+ }
124
+ }, [status]);
128
125
  return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons, onClose: onClose, loading: loading, data: {
129
126
  flowName: flowName,
130
127
  email: email || '',
@@ -58,6 +58,6 @@ var ThankYou = function (_a) {
58
58
  var title = _a.title, description = _a.description, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, loading = _a.loading, error = _a.error, enableBack = _a.enableBack, onBack = _a.onBack;
59
59
  var t = useTranslation().t;
60
60
  var isAr = useLanguage().isAr;
61
- return (_jsxs(ContainerStyled, { children: [_jsx(IconStyled, { src: ICONS_NAMES.SUCCESS_GIF, alt: 'loading...' }), _jsxs(TitleStyled, { children: [title, " "] }), _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'mailto:' }, mail: { title: t('mail_btn_open_title'), href: 'mailto:' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ onClick: onSuccess, disableBack: true, disableNextIcon: true, disabled: loading, isAr: isAr, loading: loading, error: t(error || '') }, { children: t(successTitle || '') })) })), enableBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 0 }, onClick: function () { return onBack === null || onBack === void 0 ? void 0 : onBack(); }, variant: 'text' }, { children: t('back') })))] }));
61
+ return (_jsxs(ContainerStyled, { children: [_jsx(IconStyled, { src: ICONS_NAMES.SUCCESS_GIF, alt: 'loading...' }), _jsxs(TitleStyled, { children: [title, " "] }), description && _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'mailto:' }, mail: { title: t('mail_btn_open_title'), href: 'mailto:' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ onClick: onSuccess, disableBack: true, disableNextIcon: true, disabled: loading, isAr: isAr, loading: loading, error: t(error || '') }, { children: t(successTitle || '') })) })), enableBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 0 }, onClick: function () { return onBack === null || onBack === void 0 ? void 0 : onBack(); }, variant: 'text' }, { children: t('back') })))] }));
62
62
  };
63
63
  export default React.memo(ThankYou);