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

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 (668) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +73 -18
  3. package/build/@types/app.js +19 -1
  4. package/build/@types/config.d.ts +49 -0
  5. package/build/@types/config.js +1 -0
  6. package/build/@types/form.d.ts +18 -3
  7. package/build/@types/index.d.ts +1 -0
  8. package/build/@types/index.js +1 -0
  9. package/build/@types/redux.d.ts +1 -0
  10. package/build/@types/theme.d.ts +4 -0
  11. package/build/@types/theme.js +5 -0
  12. package/build/api/account.d.ts +6 -0
  13. package/build/api/account.js +16 -2
  14. package/build/api/auth.d.ts +44 -2
  15. package/build/api/auth.js +18 -1
  16. package/build/api/availabilityServices.d.ts +1 -0
  17. package/build/api/country.d.ts +1 -0
  18. package/build/api/country.js +8 -1
  19. package/build/api/data.d.ts +4 -17
  20. package/build/api/data.js +5 -45
  21. package/build/api/entity.d.ts +28 -3
  22. package/build/api/entity.js +23 -10
  23. package/build/api/firebase.js +68 -8
  24. package/build/api/index.d.ts +24 -29
  25. package/build/api/lead.d.ts +27 -3
  26. package/build/api/lead.js +63 -1
  27. package/build/api/operator.d.ts +6 -3
  28. package/build/api/operator.js +4 -16
  29. package/build/api/user.d.ts +7 -0
  30. package/build/api/user.js +9 -1
  31. package/build/app/rootReducer.d.ts +2 -0
  32. package/build/app/rootReducer.js +5 -1
  33. package/build/app/settings.d.ts +13 -6
  34. package/build/app/settings.js +118 -78
  35. package/build/app/store.d.ts +4 -0
  36. package/build/assets/locales/ar.json +351 -143
  37. package/build/assets/locales/en.json +347 -142
  38. package/build/components/AnimationFlow/AnimationFlow.d.ts +14 -3
  39. package/build/components/AnimationFlow/AnimationFlow.js +16 -5
  40. package/build/components/AnimationFlow/BottomSheet.d.ts +7 -2
  41. package/build/components/AnimationFlow/BottomSheet.js +44 -15
  42. package/build/components/AnimationFlow/Dialog.d.ts +11 -2
  43. package/build/components/AnimationFlow/Dialog.js +10 -12
  44. package/build/components/AnimationFlow/Loader.d.ts +6 -1
  45. package/build/components/AnimationFlow/Loader.js +17 -5
  46. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  47. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  48. package/build/components/ArabicDatePicker/style.css +32 -3
  49. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  50. package/build/components/DatePicker/DatePicker.js +2 -2
  51. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  52. package/build/components/Footer/Footer.js +2 -1
  53. package/build/components/Input/Input.js +1 -1
  54. package/build/components/Providers/ThemeProvider.js +3 -3
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/components/Tooltip/Tooltip.js +1 -1
  57. package/build/constants/api.d.ts +9 -7
  58. package/build/constants/api.js +19 -15
  59. package/build/constants/app.d.ts +62 -0
  60. package/build/constants/app.js +480 -25
  61. package/build/constants/assets.d.ts +4 -0
  62. package/build/constants/assets.js +5 -1
  63. package/build/constants/dummy.d.ts +43 -196
  64. package/build/constants/dummy.js +614 -6141
  65. package/build/constants/flows.d.ts +24 -0
  66. package/build/constants/flows.js +25 -0
  67. package/build/constants/index.d.ts +1 -0
  68. package/build/constants/index.js +1 -0
  69. package/build/constants/validation.d.ts +5 -0
  70. package/build/constants/validation.js +6 -1
  71. package/build/features/app/auth/authStore.d.ts +103 -0
  72. package/build/features/app/auth/authStore.js +1184 -0
  73. package/build/features/app/bank/bankStore.d.ts +13 -18
  74. package/build/features/app/bank/bankStore.js +194 -161
  75. package/build/features/app/board/boardStore.d.ts +33 -0
  76. package/build/features/app/board/boardStore.js +269 -0
  77. package/build/features/app/brand/brandStore.d.ts +17 -31
  78. package/build/features/app/brand/brandStore.js +272 -266
  79. package/build/features/app/business/businessStore.d.ts +37 -10
  80. package/build/features/app/business/businessStore.js +469 -218
  81. package/build/features/app/connect/connectStore.d.ts +46 -15
  82. package/build/features/app/connect/connectStore.js +419 -217
  83. package/build/features/app/connectExpress/connectExpressStore.d.ts +70 -29
  84. package/build/features/app/connectExpress/connectExpressStore.js +876 -383
  85. package/build/features/app/entity/entityStore.d.ts +20 -34
  86. package/build/features/app/entity/entityStore.js +224 -249
  87. package/build/features/app/individual/individualStore.d.ts +22 -32
  88. package/build/features/app/individual/individualStore.js +331 -290
  89. package/build/features/app/password/passwordStore.d.ts +33 -18
  90. package/build/features/app/password/passwordStore.js +263 -223
  91. package/build/features/app/signIn/signInStore.js +19 -15
  92. package/build/features/app/tax/taxStore.d.ts +13 -7
  93. package/build/features/app/tax/taxStore.js +178 -144
  94. package/build/features/auth/Auth.d.ts +14 -0
  95. package/build/features/auth/Auth.js +168 -0
  96. package/build/features/auth/index.d.ts +1 -0
  97. package/build/features/auth/index.js +1 -0
  98. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  99. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  100. package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -0
  101. package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -0
  102. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
  103. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -0
  104. package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
  105. package/build/features/auth/screens/AccountNotFound/index.js +2 -0
  106. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  107. package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -0
  108. package/build/features/{connectExpress/screens/AuthenticationList → auth/screens/AuthMerchant}/MerchantList.d.ts +2 -1
  109. package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -0
  110. package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -0
  111. package/build/features/auth/screens/AuthMerchant/index.js +2 -0
  112. package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -0
  113. package/build/features/auth/screens/AuthMerchant/validation.js +4 -0
  114. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  115. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  116. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  117. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  118. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  119. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -0
  120. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
  121. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
  122. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  123. package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -0
  124. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  125. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -0
  126. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
  127. package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -0
  128. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  129. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -0
  130. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
  131. package/build/features/auth/screens/AuthenticationList/index.js +2 -0
  132. package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -0
  133. package/build/features/auth/screens/AuthenticationList/validation.js +68 -0
  134. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  135. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -0
  136. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
  137. package/build/features/auth/screens/BusinessCountry/index.js +2 -0
  138. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
  139. package/build/features/auth/screens/CivilID/CivilID.js +57 -0
  140. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
  141. package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
  142. package/build/features/auth/screens/CivilID/index.d.ts +3 -0
  143. package/build/features/auth/screens/CivilID/index.js +2 -0
  144. package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
  145. package/build/features/auth/screens/CivilID/validation.js +4 -0
  146. package/build/features/auth/screens/DOB/DOB.js +47 -0
  147. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  148. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  149. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  150. package/build/features/auth/screens/DOB/index.js +2 -0
  151. package/build/features/auth/screens/DOB/validation.d.ts +8 -0
  152. package/build/features/auth/screens/DOB/validation.js +4 -0
  153. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  154. package/build/features/auth/screens/Email/Email.js +57 -0
  155. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  156. package/build/features/auth/screens/Email/EmailField.js +52 -0
  157. package/build/features/auth/screens/Email/index.d.ts +3 -0
  158. package/build/features/auth/screens/Email/index.js +2 -0
  159. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  160. package/build/features/auth/screens/Email/validation.js +4 -0
  161. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  162. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  163. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  164. package/build/features/auth/screens/EmailSent/index.js +2 -0
  165. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  166. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  167. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  168. package/build/features/auth/screens/MigratingData/index.js +2 -0
  169. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
  170. package/build/features/auth/screens/Mobile/Mobile.js +82 -0
  171. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
  172. package/build/features/auth/screens/Mobile/MobileNumber.js +156 -0
  173. package/build/features/auth/screens/Mobile/index.d.ts +3 -0
  174. package/build/features/auth/screens/Mobile/index.js +2 -0
  175. package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
  176. package/build/features/auth/screens/Mobile/validation.js +38 -0
  177. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
  178. package/build/features/auth/screens/NID/IDNumber.js +55 -0
  179. package/build/features/auth/screens/NID/NID.d.ts +5 -0
  180. package/build/features/auth/screens/NID/NID.js +56 -0
  181. package/build/features/auth/screens/NID/index.d.ts +3 -0
  182. package/build/features/auth/screens/NID/index.js +2 -0
  183. package/build/features/auth/screens/NID/validation.d.ts +8 -0
  184. package/build/features/auth/screens/NID/validation.js +10 -0
  185. package/build/features/auth/screens/OTP/OTP.js +118 -0
  186. package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTPInput.js +27 -7
  187. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  188. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  189. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  190. package/build/features/auth/screens/OperatorError/index.js +2 -0
  191. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  192. package/build/features/auth/screens/Password/Password.js +61 -0
  193. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  194. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  195. package/build/features/auth/screens/Password/index.d.ts +3 -0
  196. package/build/features/auth/screens/Password/index.js +2 -0
  197. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  198. package/build/features/auth/screens/Password/validation.js +4 -0
  199. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
  200. package/build/features/auth/screens/PreparingData/PreparingData.js +44 -0
  201. package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
  202. package/build/features/auth/screens/PreparingData/index.js +2 -0
  203. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  204. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  205. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  206. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  207. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  208. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  209. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  210. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  211. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  212. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
  213. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
  214. package/build/features/auth/screens/VerifyPACI/index.js +2 -0
  215. package/build/features/bank/Bank.d.ts +6 -1
  216. package/build/features/bank/Bank.js +26 -12
  217. package/build/features/bank/screens/BankDetails/BankDetails.js +21 -7
  218. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  219. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  220. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  221. package/build/features/bank/screens/OperatorError/index.js +2 -0
  222. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  223. package/build/features/bank/screens/Verify/Verify.js +8 -7
  224. package/build/features/board/Board.d.ts +13 -0
  225. package/build/features/board/Board.js +87 -0
  226. package/build/features/board/index.d.ts +1 -0
  227. package/build/features/board/index.js +1 -0
  228. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  229. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  230. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  231. package/build/features/board/screens/OperatorError/index.js +2 -0
  232. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  233. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  234. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  235. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  236. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  237. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  238. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  239. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  240. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  241. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +44 -0
  242. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  243. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  244. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  245. package/build/features/{business/screens/OTP → board/screens/Verify}/OTPInput.js +9 -7
  246. package/build/features/{connectExpress/screens/IdentityOTP/OTP.js → board/screens/Verify/Verify.js} +25 -37
  247. package/build/features/board/screens/Verify/index.d.ts +2 -0
  248. package/build/features/board/screens/Verify/index.js +2 -0
  249. package/build/features/brand/Brand.d.ts +6 -1
  250. package/build/features/brand/Brand.js +26 -12
  251. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +9 -9
  252. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  253. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  254. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  255. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +5 -2
  256. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  257. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  258. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  259. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  260. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  261. package/build/features/brand/screens/BrandInfo/BrandInfo.js +27 -7
  262. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  263. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  264. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  265. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  266. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  267. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  268. package/build/features/brand/screens/OperatorError/index.js +2 -0
  269. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  270. package/build/features/brand/screens/Verify/Verify.js +4 -3
  271. package/build/features/business/Business.js +20 -12
  272. package/build/features/business/screens/Activities/Activities.js +27 -10
  273. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  274. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  275. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  276. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  277. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  278. package/build/features/business/screens/BusinessType/BusinessType.js +24 -8
  279. package/build/features/business/screens/BusinessType/EntityName.js +3 -3
  280. package/build/features/business/screens/BusinessType/LicenseList.js +3 -3
  281. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  282. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  283. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  284. package/build/features/business/screens/BusinessType/validation.js +16 -0
  285. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  286. package/build/features/business/screens/Customers/CustomerLocations.d.ts +14 -12
  287. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  288. package/build/features/business/screens/Customers/Customers.js +51 -11
  289. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  290. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  291. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  292. package/build/features/business/screens/Customers/ExpectedSalesRange.js +10 -4
  293. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  294. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  295. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  296. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  297. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  298. package/build/features/business/screens/Customers/validation.js +3 -8
  299. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  300. package/build/features/business/screens/DOB/DOB.js +45 -0
  301. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  302. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  303. package/build/features/business/screens/DOB/index.d.ts +3 -0
  304. package/build/features/business/screens/DOB/index.js +2 -0
  305. package/build/features/business/screens/DOB/validation.d.ts +8 -0
  306. package/build/features/business/screens/DOB/validation.js +4 -0
  307. package/build/features/business/screens/IDBOD/ID.js +6 -2
  308. package/build/features/business/screens/IDBOD/IDBOD.js +18 -19
  309. package/build/features/business/screens/IDBOD/validation.d.ts +7 -0
  310. package/build/features/business/screens/IDBOD/validation.js +4 -1
  311. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  312. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +105 -0
  313. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  314. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  315. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  316. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  317. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  318. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  319. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  320. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  321. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  322. package/build/features/business/screens/OperatorError/index.js +2 -0
  323. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  324. package/build/features/business/screens/Verify/Verify.js +16 -5
  325. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  326. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  327. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  328. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  329. package/build/features/connect/Connect.d.ts +5 -1
  330. package/build/features/connect/Connect.js +48 -31
  331. package/build/features/connect/screens/BrandSegment/BrandSegment.js +4 -26
  332. package/build/features/connect/screens/BrandSegment/TeamSize.js +1 -1
  333. package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -9
  334. package/build/features/connect/screens/BrandSegment/validation.js +0 -3
  335. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  336. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +113 -0
  337. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  338. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  339. package/build/features/connect/screens/CivilID/CivilID.js +12 -4
  340. package/build/features/{connectExpress/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  341. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  342. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  343. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  344. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  345. package/build/features/connect/screens/DOB/index.js +2 -0
  346. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  347. package/build/features/connect/screens/DOB/validation.js +4 -0
  348. package/build/features/connect/screens/Individual/Individual.js +12 -6
  349. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  350. package/build/features/connect/screens/Individual/validation.js +11 -3
  351. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  352. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  353. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  354. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  355. package/build/features/connect/screens/Merchant/validation.js +2 -2
  356. package/build/features/connect/screens/Mobile/Mobile.js +14 -7
  357. package/build/features/connect/screens/Mobile/MobileNumber.js +15 -11
  358. package/build/features/connect/screens/Mobile/validation.js +11 -3
  359. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  360. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  361. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  362. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  363. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  364. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  365. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  366. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  367. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  368. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  369. package/build/features/connect/screens/NID/NID.js +10 -13
  370. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  371. package/build/features/connect/screens/NID/validation.js +0 -1
  372. package/build/features/connect/screens/OTP/OTP.js +7 -7
  373. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  374. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +5 -0
  375. package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
  376. package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
  377. package/build/features/connect/screens/OperatorError/index.js +2 -0
  378. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  379. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  380. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  381. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  382. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  383. package/build/features/connectExpress/ConnectExpress.js +69 -36
  384. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  385. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  386. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  387. package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
  388. package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
  389. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  390. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
  391. package/build/features/connectExpress/screens/{AuthenticationList/TerminalList.d.ts → AuthMerchant/MerchantList.d.ts} +4 -3
  392. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
  393. package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
  394. package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
  395. package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
  396. package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
  397. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +28 -17
  398. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  399. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
  400. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  401. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  402. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +3 -3
  403. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +52 -10
  404. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  405. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
  406. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +13 -10
  407. package/build/features/connectExpress/screens/AuthenticationList/validation.js +66 -7
  408. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  409. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -0
  410. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  411. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  412. package/build/features/connectExpress/screens/CivilID/CivilID.js +16 -5
  413. package/build/features/connectExpress/screens/CivilID/IDNumber.js +7 -2
  414. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
  415. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  416. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +20 -5
  417. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +6 -5
  418. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  419. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  420. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
  421. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  422. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  423. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +68 -1
  424. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +34 -7
  425. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  426. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  427. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  428. package/build/features/connectExpress/screens/DOB/DOB.d.ts +6 -0
  429. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  430. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  431. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  432. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  433. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  434. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  435. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  436. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  437. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  438. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  439. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  440. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +2 -2
  441. package/build/features/connectExpress/screens/Mobile/Mobile.js +17 -7
  442. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +18 -14
  443. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  444. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  445. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  446. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +108 -0
  447. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  448. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  449. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  450. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  451. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  452. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  453. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  454. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  455. package/build/features/connectExpress/screens/NID/NID.js +15 -12
  456. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  457. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  458. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  459. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  460. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +6 -2
  461. package/build/features/connectExpress/screens/NIDMissed/NID.js +10 -8
  462. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +7 -0
  463. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -1
  464. package/build/features/connectExpress/screens/OTP/OTP.js +14 -16
  465. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  466. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  467. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  468. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  469. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  470. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  471. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  472. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  473. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  474. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  475. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  476. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  477. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  478. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  479. package/build/features/entity/Entity.d.ts +5 -1
  480. package/build/features/entity/Entity.js +26 -12
  481. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  482. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +5 -3
  483. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +6 -4
  484. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  485. package/build/features/entity/screens/EntityName/EntityName.js +44 -19
  486. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +9 -9
  487. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  488. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  489. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  490. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  491. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  492. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  493. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -11
  494. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  495. package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
  496. package/build/features/entity/screens/EntityName/validation.js +38 -9
  497. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  498. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  499. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  500. package/build/features/entity/screens/OperatorError/index.js +2 -0
  501. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  502. package/build/features/entity/screens/Verify/Verify.js +4 -3
  503. package/build/features/featuresScreens.d.ts +2 -0
  504. package/build/features/featuresScreens.js +265 -16
  505. package/build/features/individual/Individual.d.ts +5 -1
  506. package/build/features/individual/Individual.js +26 -12
  507. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  508. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +55 -15
  509. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +36 -0
  510. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  511. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  512. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -4
  513. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -4
  514. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  515. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +4 -3
  516. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  517. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  518. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  519. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  520. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  521. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  522. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -2
  523. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  524. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +79 -21
  525. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  526. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  527. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +75 -63
  528. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  529. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  530. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  531. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  532. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  533. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  534. package/build/features/individual/screens/OperatorError/index.js +2 -0
  535. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  536. package/build/features/individual/screens/Verify/Verify.js +4 -3
  537. package/build/features/password/Password.d.ts +5 -1
  538. package/build/features/password/Password.js +90 -33
  539. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  540. package/build/features/password/screens/OTP/OTP.js +4 -4
  541. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  542. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  543. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  544. package/build/features/password/screens/OperatorError/index.js +2 -0
  545. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  546. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  547. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  548. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  549. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  550. package/build/features/password/screens/Verify/Verify.js +8 -7
  551. package/build/features/shared/Address/CountryList.d.ts +7 -7
  552. package/build/features/shared/Address/InputSelect.d.ts +7 -7
  553. package/build/features/shared/Background/Background.d.ts +3 -1
  554. package/build/features/shared/Background/Background.js +9 -11
  555. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  556. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  557. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  558. package/build/features/shared/BusinessCountry/index.js +2 -0
  559. package/build/features/shared/Button/Button.js +11 -5
  560. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  561. package/build/features/shared/Button/FlowsButtons.js +20 -5
  562. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  563. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  564. package/build/features/shared/Button/index.d.ts +2 -2
  565. package/build/features/shared/Button/index.js +2 -2
  566. package/build/features/shared/Calender/Calender.d.ts +2 -1
  567. package/build/features/shared/Calender/Calender.js +3 -3
  568. package/build/features/shared/Containers/FeatureContainer.d.ts +3 -1
  569. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  570. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  571. package/build/features/shared/DataLoading/DataLoading.d.ts +4 -1
  572. package/build/features/shared/DataLoading/DataLoading.js +2 -2
  573. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  574. package/build/features/shared/Footer/Footer.js +2 -1
  575. package/build/features/shared/Input/Input.d.ts +2 -2
  576. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  577. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  578. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  579. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  580. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  581. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  582. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  583. package/build/features/shared/NafathVerification/index.js +2 -0
  584. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  585. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  586. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  587. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  588. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  589. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  590. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  591. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  592. package/build/features/signIn/SignIn.js +18 -7
  593. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  594. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  595. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  596. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  597. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  598. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  599. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  600. package/build/features/tax/Tax.d.ts +5 -1
  601. package/build/features/tax/Tax.js +26 -12
  602. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  603. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  604. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  605. package/build/features/tax/screens/OperatorError/index.js +2 -0
  606. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  607. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  608. package/build/features/tax/screens/Verify/Verify.js +8 -7
  609. package/build/hooks/index.d.ts +3 -0
  610. package/build/hooks/index.js +3 -0
  611. package/build/hooks/useAppConfig.d.ts +3 -3
  612. package/build/hooks/useAppConfig.js +10 -8
  613. package/build/hooks/useAppDispatch.d.ts +2 -0
  614. package/build/hooks/useAppTheme.js +4 -3
  615. package/build/hooks/useCountDown.d.ts +10 -0
  616. package/build/hooks/useCountDown.js +17 -0
  617. package/build/hooks/useCountry.d.ts +1 -0
  618. package/build/hooks/useCountry.js +4 -3
  619. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  620. package/build/hooks/useFormDirtyCheck.js +66 -0
  621. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  622. package/build/hooks/useSanitizedTranslation.js +15 -0
  623. package/build/hooks/useVerifyToken.d.ts +5 -2
  624. package/build/hooks/useVerifyToken.js +10 -5
  625. package/build/index.css +360 -120
  626. package/build/index.d.ts +4 -2
  627. package/build/index.js +6 -2
  628. package/build/theme/components.js +7 -0
  629. package/build/theme/palette.js +4 -2
  630. package/build/theme/shadows.js +1 -1
  631. package/build/theme/theme.d.ts +1 -1
  632. package/build/theme/theme.js +2 -2
  633. package/build/utils/array.js +2 -2
  634. package/build/utils/common.d.ts +3 -0
  635. package/build/utils/common.js +38 -2
  636. package/build/utils/device.d.ts +2 -0
  637. package/build/utils/device.js +6 -0
  638. package/build/utils/locale.js +2 -1
  639. package/build/utils/object.d.ts +1 -0
  640. package/build/utils/object.js +4 -1
  641. package/build/utils/string.d.ts +7 -2
  642. package/build/utils/string.js +32 -5
  643. package/build/utils/validation.d.ts +5 -0
  644. package/build/utils/validation.js +16 -0
  645. package/package.json +2 -2
  646. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  647. package/build/features/business/screens/OTP/OTP.js +0 -90
  648. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +0 -8
  649. package/build/features/connect/screens/BrandSegment/SegmentLocations.js +0 -66
  650. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +0 -8
  651. package/build/features/connect/screens/BrandSegment/SegmentProfits.js +0 -66
  652. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +0 -8
  653. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +0 -66
  654. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +0 -100
  655. package/build/features/connectExpress/screens/AuthenticationList/TerminalList.js +0 -101
  656. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  657. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  658. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  659. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
  660. /package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTP.d.ts +0 -0
  661. /package/build/features/{business → auth}/screens/OTP/OTPInput.d.ts +0 -0
  662. /package/build/features/{business → auth}/screens/OTP/index.d.ts +0 -0
  663. /package/build/features/{business → auth}/screens/OTP/index.js +0 -0
  664. /package/build/features/{business → auth}/screens/OTP/validation.d.ts +0 -0
  665. /package/build/features/{business → auth}/screens/OTP/validation.js +0 -0
  666. /package/build/features/{connectExpress/screens/IdentityOTP/OTPInput.d.ts → board/screens/Verify/Verify.d.ts} +0 -0
  667. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.d.ts +0 -0
  668. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.js +0 -0
@@ -9,31 +9,21 @@ 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
- };
23
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import * as React from 'react';
25
14
  import { useTranslation } from 'react-i18next';
26
15
  import { useForm, FormProvider } from 'react-hook-form';
27
16
  import { styled } from '@mui/material/styles';
28
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { settingsSelector } from '../../../../app/settings';
29
19
  import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
30
20
  import Form from '../../../../components/Form';
31
21
  import Button from '../../../shared/Button';
32
22
  import { ScreenContainer } from '../../../shared/Containers';
33
23
  import { businessSelector, clearError, updateLeadIdentity } from '../../../app/business/businessStore';
34
24
  import Collapse from '../../../../components/Collapse';
35
- import { deepCopy } from '../../../../utils';
36
- import { NIDValidationSchema } from './validation';
25
+ import { deepCopy, isOtherThanKWOrSA, sendCustomEventToGTM } from '../../../../utils';
26
+ import { NIDOtherCountryValidationSchema, NIDValidationSchema } from './validation';
37
27
  import ID from './ID';
38
28
  import DOB from './DOB';
39
29
  var FormStyled = styled(Form)(function () { return ({
@@ -46,13 +36,22 @@ var IDBOD = function (_a) {
46
36
  var dispatch = useAppDispatch();
47
37
  var t = useTranslation().t;
48
38
  var _c = useAppSelector(businessSelector), data = _c.data, loading = _c.loading, error = _c.error;
49
- var _d = data.nidData, responseBody = _d.responseBody, defaultValues = __rest(_d, ["responseBody"]);
39
+ var settingsData = useAppSelector(settingsSelector).data;
40
+ var isOtherCountry = React.useMemo(function () { return isOtherThanKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
50
41
  var methods = useForm({
51
- resolver: yupResolver(NIDValidationSchema),
52
- defaultValues: defaultValues,
42
+ resolver: yupResolver(isOtherCountry ? NIDOtherCountryValidationSchema : NIDValidationSchema),
43
+ defaultValues: data.nidData,
53
44
  mode: 'onChange'
54
45
  });
55
- useSetFromDefaultValues(methods, defaultValues);
46
+ useSetFromDefaultValues(methods, data.nidData);
47
+ React.useEffect(function () {
48
+ sendCustomEventToGTM({
49
+ event: 'Send Event',
50
+ event_category: 'Account Creation Flow',
51
+ event_action: 'ID Details Step',
52
+ event_label: settingsData.businessCountry.iso2
53
+ });
54
+ }, []);
56
55
  React.useEffect(function () {
57
56
  if (error)
58
57
  dispatch(clearError());
@@ -63,7 +62,7 @@ var IDBOD = function (_a) {
63
62
  var handleCollapseOpenClose = function (flag) {
64
63
  setCollapse(flag);
65
64
  };
66
- var disabled = !methods.formState.isValid || !!error;
67
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(ID, {}) })), _jsx(DOB, { onDateClicked: handleCollapseOpenClose }), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ loading: loading, disableBack: true, isAr: isAr, disabled: disabled, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
65
+ var disabled = !methods.formState.isValid;
66
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(ID, {}) })), _jsx(Collapse, __assign({ in: isOtherCountry }, { children: _jsx(DOB, { onDateClicked: handleCollapseOpenClose }) })), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ sx: !isOtherCountry ? { mt: 10 } : {}, loading: loading, disableBack: true, isAr: isAr, disabled: disabled, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
68
67
  };
69
68
  export default React.memo(IDBOD);
@@ -1,5 +1,12 @@
1
1
  import * as yup from 'yup';
2
2
  export declare const NIDValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
9
+ export declare const NIDOtherCountryValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
10
  dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
11
  nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
5
12
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
@@ -1,9 +1,12 @@
1
1
  import * as yup from 'yup';
2
2
  export var NIDValidationSchema = yup.object().shape({
3
- dob: yup.string().min(5).required('enter_valid_birth_date'),
4
3
  nid: yup
5
4
  .string()
6
5
  .matches(/^(1|2)([0-9]{1,})$/g, 'signup_invalid_national_id_format')
7
6
  .min(10, 'signup_invalid_national_id')
8
7
  .required('signup_invalid_national_id')
9
8
  });
9
+ export var NIDOtherCountryValidationSchema = yup.object().shape({
10
+ dob: yup.string().min(5).required('enter_valid_birth_date'),
11
+ nid: yup.string().min(3, 'signup_invalid_national_id').required('signup_invalid_national_id')
12
+ });
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CollectMobileOwnership: () => JSX.Element;
3
+ export default CollectMobileOwnership;
@@ -0,0 +1,105 @@
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, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { FormProvider, useForm } from 'react-hook-form';
14
+ import { ScreenContainer } from '../../../../features/shared/Containers';
15
+ import { styled } from '@mui/material/styles';
16
+ import Form from '../../../../components/Form';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { PhoneValidationSchema } from './validation';
19
+ import { Box, alpha } from '@mui/material';
20
+ import { useTranslation } from 'react-i18next';
21
+ import Text from '../../../../components/Text';
22
+ import { Button as SharedButton } from '../../../shared/Button';
23
+ import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
24
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
25
+ import { businessSelector, skipUpdateLeadMobile, updateLeadMobile } from '../../../../features/app/business/businessStore';
26
+ import Button from '../../../../components/Button';
27
+ import MobileNumber from './MobileNumber';
28
+ var FormStyled = styled(Form)(function () { return ({
29
+ display: 'flex',
30
+ flexDirection: 'column',
31
+ justifyContent: 'flex-start'
32
+ }); });
33
+ var TitleContainerStyled = styled(Box)(function (_a) {
34
+ var theme = _a.theme;
35
+ return ({
36
+ background: theme.palette.common.white,
37
+ borderTop: '1px solid rgba(227, 232, 238, 0.8)',
38
+ borderBottom: '1px solid rgba(227, 232, 238, 0.8)',
39
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
40
+ });
41
+ });
42
+ var TitleStyled = styled(Text)(function (_a) {
43
+ var theme = _a.theme;
44
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightLight, margin: theme.spacing(1.75, 2.5), lineHeight: 1.2 }));
45
+ });
46
+ var InputLabelStyled = styled(Text)(function (_a) {
47
+ var theme = _a.theme;
48
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular }, theme.typography.caption), { lineHeight: 1.2 }));
49
+ });
50
+ var CurrentMobileContainerStyled = styled(Box)(function (_a) {
51
+ var theme = _a.theme;
52
+ return ({
53
+ display: 'flex',
54
+ flexDirection: 'column',
55
+ rowGap: theme.spacing(1.6),
56
+ height: theme.spacing(9.375),
57
+ marginTop: theme.spacing(2.85),
58
+ marginInlineStart: theme.spacing(2.375)
59
+ });
60
+ });
61
+ var MobileNumberContainer = styled(Box)(function (_a) {
62
+ var theme = _a.theme;
63
+ return ({
64
+ display: 'flex',
65
+ columnGap: theme.spacing(0.9)
66
+ });
67
+ });
68
+ var CountryCodeStyled = styled(Text)(function (_a) {
69
+ var theme = _a.theme;
70
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium, lineHeight: 1.2 }));
71
+ });
72
+ var MobileNumberStyled = styled(Text)(function (_a) {
73
+ var theme = _a.theme;
74
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, lineHeight: 1.2 }));
75
+ });
76
+ var UpdateLaterContainerStyled = styled(Box)(function (_a) {
77
+ var theme = _a.theme;
78
+ return ({
79
+ marginLeft: theme.spacing(2.5),
80
+ marginRight: theme.spacing(2.5)
81
+ });
82
+ });
83
+ var CollectMobileOwnership = function () {
84
+ var dispatch = useAppDispatch();
85
+ var t = useTranslation().t;
86
+ var isAr = useLanguage().isAr;
87
+ var settingsData = useAppSelector(settingsSelector).data;
88
+ var _a = useAppSelector(businessSelector), data = _a.data, loading = _a.loading, error = _a.error;
89
+ var methods = useForm({
90
+ resolver: yupResolver(PhoneValidationSchema()),
91
+ defaultValues: { mobile: '', countryCode: settingsData.businessCountry },
92
+ mode: 'onChange'
93
+ });
94
+ var onSubmit = function (data) {
95
+ dispatch(updateLeadMobile(data));
96
+ };
97
+ var onBack = function () {
98
+ dispatch(handlePrevScreenStep());
99
+ };
100
+ var onUpdateLater = function () {
101
+ dispatch(skipUpdateLeadMobile());
102
+ };
103
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(TitleContainerStyled, { children: _jsx(TitleStyled, { children: t('mobile_ownership_title') }) }), _jsxs(CurrentMobileContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('current_mobile_number') }), _jsxs(MobileNumberContainer, { children: [_jsxs(CountryCodeStyled, { children: ["+", data.mobileData.countryCode.idd_prefix] }), _jsx(MobileNumberStyled, { children: data.mobileData.mobile })] })] }), _jsx(MobileNumber, {}), _jsx(SharedButton, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('update_mobile_number') })), _jsx(UpdateLaterContainerStyled, { children: _jsx(Button, __assign({ variant: 'text', onClick: function () { return onUpdateLater(); } }, { children: t('update_later') })) })] })) })) }));
104
+ };
105
+ export default CollectMobileOwnership;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,72 @@
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, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useController, useFormContext } from 'react-hook-form';
16
+ import Box from '@mui/material/Box';
17
+ import { styled, alpha } from '@mui/material/styles';
18
+ import { getMobileNumberLen, removeAllCharsFromNumber } from '../../../../utils';
19
+ import { useAppSelector } from '../../../../hooks';
20
+ import Text from '../../../../components/Text';
21
+ import ClearIcon from '../../../shared/ClearIcon';
22
+ import CheckIcon from '../../../shared/CheckIcon';
23
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
24
+ import Input from '../../../shared/Input';
25
+ import { settingsSelector } from '../../../../app/settings';
26
+ var LabelContainerStyled = styled(Box)(function (_a) {
27
+ var theme = _a.theme;
28
+ return ({
29
+ display: 'flex',
30
+ justifyContent: 'space-between',
31
+ padding: theme.spacing(0, 2.5, 1.25, 2.5)
32
+ });
33
+ });
34
+ var InputLabelStyled = styled(Text)(function (_a) {
35
+ var theme = _a.theme;
36
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
37
+ });
38
+ var InputStyled = styled(Input)(function () { return ({
39
+ direction: 'ltr',
40
+ '& .MuiInputBase-input': {
41
+ cursor: 'auto'
42
+ }
43
+ }); });
44
+ var MobileNumber = function () {
45
+ var _a;
46
+ var t = useTranslation().t;
47
+ var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
48
+ var data = useAppSelector(settingsSelector).data;
49
+ var phoneControl = useController({ name: 'mobile', control: control });
50
+ var countryCodeValue = data.businessCountry;
51
+ var mobileValue = phoneControl.field.value || '';
52
+ var error = !!mobileValue ? (_a = phoneControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message : '';
53
+ var isSA = countryCodeValue.iso2 === 'SA';
54
+ var mobileMaxLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.max_digits;
55
+ var mobileMinLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.min_digits;
56
+ var requiredMaxLen = getMobileNumberLen(mobileMaxLen, mobileValue);
57
+ var requiredMinLen = getMobileNumberLen(mobileMinLen, mobileValue);
58
+ React.useEffect(function () {
59
+ if (mobileValue)
60
+ setValue('mobile', mobileValue, { shouldValidate: true });
61
+ }, []);
62
+ var onPhoneNumberChange = function (_a) {
63
+ var target = _a.target;
64
+ var value = removeAllCharsFromNumber(target.value);
65
+ phoneControl.field.onChange(value);
66
+ };
67
+ var clearMobileNumber = function () {
68
+ phoneControl.field.onChange('');
69
+ };
70
+ return (_jsx(_Fragment, { children: _jsxs(ScreenContainer, __assign({ sx: { mb: 3 } }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('new_mobile_number') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredMaxLen }, type: 'tel', onChange: onPhoneNumberChange, value: mobileValue, startAdornment: "+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), endAdornment: !error && mobileValue ? _jsx(CheckIcon, {}) : mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber }), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: error && t(error, { minLength: requiredMinLen, length: requiredMaxLen, number: '05|5' }) })] })) }));
71
+ };
72
+ export default React.memo(MobileNumber);
@@ -0,0 +1,2 @@
1
+ import CollectMobileOwnership from './CollectMobileOwnership';
2
+ export default CollectMobileOwnership;
@@ -0,0 +1,2 @@
1
+ import CollectMobileOwnership from './CollectMobileOwnership';
2
+ export default CollectMobileOwnership;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const PhoneValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,38 @@
1
+ import { getMobileNumberLen } from '../../../../utils';
2
+ import * as yup from 'yup';
3
+ export var PhoneValidationSchema = function () {
4
+ return yup.object().shape({
5
+ mobile: yup
6
+ .string()
7
+ .test({
8
+ test: function (value) {
9
+ var countryCode = this.parent.countryCode;
10
+ var isSA = countryCode.iso2 === 'SA';
11
+ var maxDigits = countryCode.max_digits;
12
+ var minDigits = countryCode.min_digits;
13
+ var mobileValue = value || '';
14
+ var valueLen = mobileValue.length;
15
+ var isNumber = mobileValue.match(/^[0-9]/g);
16
+ if (!isNumber)
17
+ return this.createError({ message: 'enter_valid_mobile_number' });
18
+ var isStartWithZero = mobileValue.startsWith('05');
19
+ var isStartWith5 = mobileValue.startsWith('5');
20
+ var isSaudiNumber = isStartWith5 || isStartWithZero;
21
+ if (isSA) {
22
+ if (!isSaudiNumber)
23
+ return this.createError({ message: 'start_with_number' });
24
+ var requiredLen = isStartWithZero ? maxDigits + 1 : maxDigits;
25
+ return valueLen === requiredLen ? true : this.createError({ message: 'enter_valid_mobile_number' });
26
+ }
27
+ var requiredMaxLen = getMobileNumberLen(maxDigits, mobileValue);
28
+ var requiredMinLen = getMobileNumberLen(minDigits, mobileValue);
29
+ if (valueLen >= requiredMinLen && valueLen <= requiredMaxLen)
30
+ return true;
31
+ if (minDigits === maxDigits)
32
+ return this.createError({ message: 'enter_valid_mobile_number' });
33
+ return this.createError({ message: 'enter_valid_mobile_number_min_max_length' });
34
+ }
35
+ })
36
+ .required('mobile_number_error')
37
+ });
38
+ };
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OperatorErrorProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import GenericError from '../../../shared/GenericError';
5
+ var OperatorError = function (_a) {
6
+ var t = useTranslation().t;
7
+ return _jsx(GenericError, { error: t('operator_is_invalid'), errorTitle: t('oops') });
8
+ };
9
+ export default React.memo(OperatorError);
@@ -0,0 +1,3 @@
1
+ import OperatorError, { OperatorErrorProps } from './OperatorError';
2
+ export type { OperatorErrorProps };
3
+ export default OperatorError;
@@ -0,0 +1,2 @@
1
+ import OperatorError from './OperatorError';
2
+ export default OperatorError;
@@ -10,13 +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 { memo } from 'react';
13
+ import React, { memo } from 'react';
14
14
  import { useAppSelector } from '../../../../hooks';
15
15
  import { businessSelector } from '../../../app/business/businessStore';
16
16
  import SuccessFlowButtons from '../../../shared/SuccessFlowButtons';
17
+ import { sendCustomEventToGTM } from '../../../../utils';
18
+ import { settingsSelector } from '../../../../app/settings';
17
19
  var SuccessWithFlowButtons = function () {
18
20
  var data = useAppSelector(businessSelector).data;
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, individuals = _a.individuals;
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, individuals: individuals, boardInfoId: board_info_id, flows: flows || [] }));
21
+ var settingsData = useAppSelector(settingsSelector).data;
22
+ 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, individuals = _a.individuals, recipient = _a.recipient, board_status = _a.board_status;
23
+ React.useEffect(function () {
24
+ sendCustomEventToGTM({
25
+ event: 'Send Event',
26
+ event_category: 'Account Creation Flow',
27
+ event_action: 'Board Page View',
28
+ event_label: settingsData.businessCountry.iso2
29
+ });
30
+ }, []);
31
+ 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, individuals: individuals, boardInfoId: board_info_id, flows: flows || [], recipient: recipient, status: board_status }));
21
32
  };
22
33
  export default memo(SuccessWithFlowButtons);
@@ -11,15 +11,15 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
14
+ import { useAppDispatch, useAppSelector, useSanitizedTranslation } from '../../../../hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
18
  import Box from '@mui/material/Box/Box';
19
19
  import { styled } from '@mui/material/styles';
20
- import { handlePrevScreenStep } from '../../../../app/settings';
20
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
21
21
  import { useLanguage } from '../../../../hooks';
22
- import { deepCopy, maskPhone } from '../../../../utils';
22
+ import { deepCopy, maskPhone, sendCustomEventToGTM } from '../../../../utils';
23
23
  import Form from '../../../../components/Form';
24
24
  import Text from '../../../../components/Text';
25
25
  import { ScreenContainer } from '../../../shared/Containers';
@@ -49,6 +49,8 @@ var FormStyled = styled(Form)(function () { return ({
49
49
  var VerifyNumber = function (_a) {
50
50
  var _b, _c;
51
51
  var dispatch = useAppDispatch();
52
+ var st = useSanitizedTranslation();
53
+ var settingsData = useAppSelector(settingsSelector).data;
52
54
  var _d = useAppSelector(businessSelector), data = _d.data, loading = _d.loading, error = _d.error;
53
55
  var methods = useForm({
54
56
  resolver: yupResolver(OTPValidation),
@@ -59,6 +61,15 @@ var VerifyNumber = function (_a) {
59
61
  var isAr = useLanguage().isAr;
60
62
  var _e = React.useState(false), resendLoading = _e[0], setResendLoading = _e[1];
61
63
  var phone = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verification_by) === null || _c === void 0 ? void 0 : _c.sent_to;
64
+ React.useEffect(function () {
65
+ var _a;
66
+ sendCustomEventToGTM({
67
+ event: 'Send Event',
68
+ event_category: 'Account Creation Flow',
69
+ event_action: 'Business OTP Step',
70
+ event_label: (_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
71
+ });
72
+ }, []);
62
73
  React.useEffect(function () {
63
74
  if (error && methods.formState.isValid && phone)
64
75
  dispatch(clearError());
@@ -72,7 +83,7 @@ var VerifyNumber = function (_a) {
72
83
  var onBack = function () {
73
84
  dispatch(handlePrevScreenStep());
74
85
  };
75
- var disabled = !methods.formState.isValid || !!error || !phone || resendLoading;
76
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
86
+ var disabled = !methods.formState.isValid || !phone || resendLoading;
87
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? st('ide_otp_waiting_title') : st('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: st(error || '') }, { children: t('next') }))] })) })) }));
77
88
  };
78
89
  export default React.memo(VerifyNumber);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface VerifyNafathProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element | null>;
5
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { businessSelector, verifyNafath } from '../../../app/business/businessStore';
4
+ import NafathVerification from '../../../shared/NafathVerification';
5
+ import { handlePrevScreenStep } from '../../../../app/settings';
6
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
7
+ var VerifyNafath = function () {
8
+ var _a = React.useState(false), success = _a[0], setSuccess = _a[1];
9
+ var _b = React.useState(false), failed = _b[0], setFailed = _b[1];
10
+ var _c = React.useState(false), isReady = _c[0], setIsReady = _c[1];
11
+ var dispatch = useAppDispatch();
12
+ var data = useAppSelector(businessSelector).data;
13
+ var responseBody = data.nidData.responseBody;
14
+ var _d = responseBody || {}, expiry = _d.expiry, app_url_android = _d.app_url_android, app_url_ios = _d.app_url_ios, random = _d.random;
15
+ React.useEffect(function () {
16
+ if (responseBody && !isReady) {
17
+ setIsReady(true);
18
+ }
19
+ }, [responseBody]);
20
+ React.useEffect(function () {
21
+ if (!isReady)
22
+ return;
23
+ var promise = dispatch(verifyNafath({ onSuccess: function () { return setSuccess(true); }, onFailure: function () { return setFailed(true); } }));
24
+ return function () {
25
+ promise === null || promise === void 0 ? void 0 : promise.abort();
26
+ };
27
+ }, [isReady]);
28
+ var onBack = React.useCallback(function () {
29
+ dispatch(handlePrevScreenStep());
30
+ }, []);
31
+ if (!isReady)
32
+ return null;
33
+ return (_jsx(NafathVerification, { randomNumber: random, expiryInSeconds: expiry, success: success, failed: failed, urls: { android: app_url_android, ios: app_url_ios }, onFinish: function () { return onBack(); } }));
34
+ };
35
+ export default React.memo(VerifyNafath);
@@ -0,0 +1,3 @@
1
+ import VerifyNafath, { VerifyNafathProps } from './VerifyNafath';
2
+ export type { VerifyNafathProps };
3
+ export default VerifyNafath;
@@ -0,0 +1,2 @@
1
+ import VerifyNafath from './VerifyNafath';
2
+ export default VerifyNafath;
@@ -4,7 +4,11 @@ export interface ConnectLibProps extends LibConfig {
4
4
  configToken?: string;
5
5
  leadId?: string;
6
6
  }
7
- export declare function ConnectElement(props: ConnectLibProps): JSX.Element;
7
+ interface ConnectFullProps extends ConnectLibProps {
8
+ unmount?: () => void;
9
+ }
10
+ export declare function ConnectElement(props: ConnectFullProps): JSX.Element;
8
11
  export declare function renderConnectLib(config: ConnectLibProps, elementId: string): {
9
12
  unmount: () => void;
10
13
  };
14
+ export {};