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

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 (1605) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +167 -167
  3. package/build/@types/app.d.ts +788 -748
  4. package/build/@types/app.js +105 -89
  5. package/build/@types/config.d.ts +49 -35
  6. package/build/@types/config.js +1 -1
  7. package/build/@types/form.d.ts +166 -156
  8. package/build/@types/form.js +1 -1
  9. package/build/@types/index.d.ts +6 -6
  10. package/build/@types/index.js +6 -6
  11. package/build/@types/redux.d.ts +19 -18
  12. package/build/@types/redux.js +1 -1
  13. package/build/@types/theme.d.ts +18 -18
  14. package/build/@types/theme.js +20 -20
  15. package/build/@types/user.d.ts +177 -177
  16. package/build/@types/user.js +1 -1
  17. package/build/api/account.d.ts +26 -23
  18. package/build/api/account.js +42 -28
  19. package/build/api/auth.d.ts +135 -120
  20. package/build/api/auth.js +93 -93
  21. package/build/api/availabilityServices.d.ts +21 -21
  22. package/build/api/availabilityServices.js +17 -17
  23. package/build/api/axios.d.ts +7 -7
  24. package/build/api/axios.js +110 -111
  25. package/build/api/board.d.ts +43 -43
  26. package/build/api/board.js +72 -72
  27. package/build/api/brand.d.ts +16 -16
  28. package/build/api/brand.js +66 -66
  29. package/build/api/country.d.ts +11 -11
  30. package/build/api/country.js +29 -29
  31. package/build/api/data.d.ts +44 -57
  32. package/build/api/data.js +84 -124
  33. package/build/api/document.d.ts +25 -25
  34. package/build/api/document.js +38 -38
  35. package/build/api/entity.d.ts +161 -160
  36. package/build/api/entity.js +160 -152
  37. package/build/api/file.d.ts +14 -14
  38. package/build/api/file.js +37 -37
  39. package/build/api/firebase.d.ts +4 -4
  40. package/build/api/firebase.js +74 -14
  41. package/build/api/index.d.ts +170 -181
  42. package/build/api/index.js +39 -39
  43. package/build/api/individual.d.ts +163 -163
  44. package/build/api/individual.js +55 -55
  45. package/build/api/init.d.ts +17 -17
  46. package/build/api/init.js +13 -13
  47. package/build/api/lead.d.ts +133 -120
  48. package/build/api/lead.js +138 -122
  49. package/build/api/location.d.ts +5 -5
  50. package/build/api/location.js +19 -19
  51. package/build/api/operator.d.ts +22 -22
  52. package/build/api/operator.js +73 -73
  53. package/build/api/user.d.ts +21 -14
  54. package/build/api/user.js +28 -20
  55. package/build/app/rootReducer.d.ts +17 -16
  56. package/build/app/rootReducer.js +31 -29
  57. package/build/app/settings.d.ts +60 -77
  58. package/build/app/settings.js +395 -365
  59. package/build/app/store.d.ts +35 -33
  60. package/build/app/store.js +11 -11
  61. package/build/assets/locales/ar.json +642 -440
  62. package/build/assets/locales/en.json +669 -470
  63. package/build/components/AnimationFlow/AnimationFlow.d.ts +30 -26
  64. package/build/components/AnimationFlow/AnimationFlow.js +45 -45
  65. package/build/components/AnimationFlow/BottomSheet.d.ts +19 -16
  66. package/build/components/AnimationFlow/BottomSheet.js +139 -110
  67. package/build/components/AnimationFlow/Dialog.d.ts +26 -25
  68. package/build/components/AnimationFlow/Dialog.js +132 -130
  69. package/build/components/AnimationFlow/Error.d.ts +6 -5
  70. package/build/components/AnimationFlow/Error.js +32 -32
  71. package/build/components/AnimationFlow/Loader.d.ts +7 -6
  72. package/build/components/AnimationFlow/Loader.js +36 -36
  73. package/build/components/AnimationFlow/index.d.ts +2 -2
  74. package/build/components/AnimationFlow/index.js +2 -2
  75. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +16 -16
  76. package/build/components/ArabicDatePicker/ArabicDatePicker.js +116 -116
  77. package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -8
  78. package/build/components/ArabicDatePicker/arabicAr.js +32 -32
  79. package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -8
  80. package/build/components/ArabicDatePicker/arabicEn.js +32 -32
  81. package/build/components/ArabicDatePicker/index.d.ts +2 -2
  82. package/build/components/ArabicDatePicker/index.js +2 -2
  83. package/build/components/ArabicDatePicker/style.css +32 -3
  84. package/build/components/Button/Button.d.ts +14 -14
  85. package/build/components/Button/Button.js +97 -97
  86. package/build/components/Button/index.d.ts +4 -4
  87. package/build/components/Button/index.js +2 -2
  88. package/build/components/CheckBox/CheckBox.d.ts +5 -5
  89. package/build/components/CheckBox/CheckBox.js +39 -39
  90. package/build/components/CheckBox/index.d.ts +4 -4
  91. package/build/components/CheckBox/index.js +2 -2
  92. package/build/components/Collapse/Collapse.d.ts +5 -4
  93. package/build/components/Collapse/Collapse.js +28 -28
  94. package/build/components/Collapse/index.d.ts +3 -3
  95. package/build/components/Collapse/index.js +2 -2
  96. package/build/components/DatePicker/DatePicker.d.ts +17 -17
  97. package/build/components/DatePicker/DatePicker.js +111 -111
  98. package/build/components/DatePicker/index.d.ts +3 -3
  99. package/build/components/DatePicker/index.js +2 -2
  100. package/build/components/ExpandIcon/ExpandIcon.d.ts +9 -8
  101. package/build/components/ExpandIcon/ExpandIcon.js +24 -24
  102. package/build/components/ExpandIcon/index.d.ts +2 -2
  103. package/build/components/ExpandIcon/index.js +2 -2
  104. package/build/components/FileInput/DragAndDrop.d.ts +17 -16
  105. package/build/components/FileInput/DragAndDrop.js +136 -136
  106. package/build/components/FileInput/UploadInput.d.ts +7 -6
  107. package/build/components/FileInput/UploadInput.js +38 -38
  108. package/build/components/FileInput/index.d.ts +3 -3
  109. package/build/components/FileInput/index.js +3 -3
  110. package/build/components/Footer/Footer.d.ts +15 -15
  111. package/build/components/Footer/Footer.js +63 -62
  112. package/build/components/Footer/index.d.ts +4 -4
  113. package/build/components/Footer/index.js +2 -2
  114. package/build/components/Form/Form.d.ts +11 -11
  115. package/build/components/Form/Form.js +38 -38
  116. package/build/components/Form/index.d.ts +3 -3
  117. package/build/components/Form/index.js +2 -2
  118. package/build/components/Icon/Icon.d.ts +11 -11
  119. package/build/components/Icon/Icon.js +26 -26
  120. package/build/components/Icon/index.d.ts +3 -3
  121. package/build/components/Icon/index.js +2 -2
  122. package/build/components/Input/Input.d.ts +19 -19
  123. package/build/components/Input/Input.js +84 -84
  124. package/build/components/Input/index.d.ts +3 -3
  125. package/build/components/Input/index.js +2 -2
  126. package/build/components/InputAdornment/InputAdornment.d.ts +10 -10
  127. package/build/components/InputAdornment/InputAdornment.js +46 -46
  128. package/build/components/InputAdornment/index.d.ts +3 -3
  129. package/build/components/InputAdornment/index.js +2 -2
  130. package/build/components/List/List.d.ts +5 -5
  131. package/build/components/List/List.js +52 -52
  132. package/build/components/List/index.d.ts +3 -3
  133. package/build/components/List/index.js +2 -2
  134. package/build/components/ListItem/ListItem.d.ts +5 -5
  135. package/build/components/ListItem/ListItem.js +35 -35
  136. package/build/components/ListItem/index.d.ts +3 -3
  137. package/build/components/ListItem/index.js +2 -2
  138. package/build/components/Loader/Loader.d.ts +24 -24
  139. package/build/components/Loader/Loader.js +41 -41
  140. package/build/components/Loader/index.d.ts +4 -4
  141. package/build/components/Loader/index.js +2 -2
  142. package/build/components/LogoBadge/LogoBadge.d.ts +7 -7
  143. package/build/components/LogoBadge/LogoBadge.js +64 -64
  144. package/build/components/LogoBadge/index.d.ts +3 -3
  145. package/build/components/LogoBadge/index.js +2 -2
  146. package/build/components/Lottie/Lottie.d.ts +4203 -4203
  147. package/build/components/Lottie/Lottie.js +66 -66
  148. package/build/components/Lottie/files/account_creating.json +732 -732
  149. package/build/components/Lottie/files/error.json +692 -692
  150. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -236
  151. package/build/components/Lottie/files/start_loading.json +1140 -1140
  152. package/build/components/Lottie/files/still_loading.json +1140 -1140
  153. package/build/components/Lottie/files/success.json +425 -425
  154. package/build/components/Lottie/index.d.ts +3 -3
  155. package/build/components/Lottie/index.js +3 -3
  156. package/build/components/OTPField/OTPField.d.ts +18 -18
  157. package/build/components/OTPField/OTPField.js +45 -45
  158. package/build/components/OTPField/index.d.ts +4 -4
  159. package/build/components/OTPField/index.js +2 -2
  160. package/build/components/OTPTimer/OTPTimer.d.ts +14 -14
  161. package/build/components/OTPTimer/OTPTimer.js +70 -70
  162. package/build/components/OTPTimer/index.d.ts +4 -4
  163. package/build/components/OTPTimer/index.js +2 -2
  164. package/build/components/ProgressBar/CircularProgressBar.d.ts +16 -15
  165. package/build/components/ProgressBar/CircularProgressBar.js +48 -48
  166. package/build/components/ProgressBar/ProgressBar.d.ts +6 -6
  167. package/build/components/ProgressBar/ProgressBar.js +45 -45
  168. package/build/components/ProgressBar/index.d.ts +6 -6
  169. package/build/components/ProgressBar/index.js +4 -4
  170. package/build/components/Providers/ReduxProvider.d.ts +7 -7
  171. package/build/components/Providers/ReduxProvider.js +17 -17
  172. package/build/components/Providers/ThemeProvider.d.ts +8 -8
  173. package/build/components/Providers/ThemeProvider.js +22 -22
  174. package/build/components/Providers/index.d.ts +3 -3
  175. package/build/components/Providers/index.js +3 -3
  176. package/build/components/Radio/Radio.d.ts +5 -5
  177. package/build/components/Radio/Radio.js +31 -31
  178. package/build/components/Radio/index.d.ts +3 -3
  179. package/build/components/Radio/index.js +2 -2
  180. package/build/components/RadioGroup/RadioGroup.d.ts +8 -8
  181. package/build/components/RadioGroup/RadioGroup.js +37 -37
  182. package/build/components/RadioGroup/index.d.ts +3 -3
  183. package/build/components/RadioGroup/index.js +2 -2
  184. package/build/components/RadioLabel/RadioLabel.d.ts +10 -10
  185. package/build/components/RadioLabel/RadioLabel.js +34 -34
  186. package/build/components/RadioLabel/index.d.ts +3 -3
  187. package/build/components/RadioLabel/index.js +2 -2
  188. package/build/components/SimpleList/SimpleList.d.ts +24 -24
  189. package/build/components/SimpleList/SimpleList.js +136 -136
  190. package/build/components/SimpleList/index.d.ts +3 -3
  191. package/build/components/SimpleList/index.js +2 -2
  192. package/build/components/Slide/Slide.d.ts +6 -6
  193. package/build/components/Slide/Slide.js +30 -30
  194. package/build/components/Slide/index.d.ts +3 -3
  195. package/build/components/Slide/index.js +2 -2
  196. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +11 -11
  197. package/build/components/SocialMediaGroup/SocialMediaGroup.js +34 -34
  198. package/build/components/SocialMediaGroup/index.d.ts +3 -3
  199. package/build/components/SocialMediaGroup/index.js +2 -2
  200. package/build/components/Text/Text.d.ts +5 -5
  201. package/build/components/Text/Text.js +35 -35
  202. package/build/components/Text/index.d.ts +3 -3
  203. package/build/components/Text/index.js +2 -2
  204. package/build/components/ToggleButton/ToggleButton.d.ts +5 -5
  205. package/build/components/ToggleButton/ToggleButton.js +44 -44
  206. package/build/components/ToggleButton/index.d.ts +3 -3
  207. package/build/components/ToggleButton/index.js +2 -2
  208. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -5
  209. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -37
  210. package/build/components/ToggleButtonGroup/index.d.ts +3 -3
  211. package/build/components/ToggleButtonGroup/index.js +2 -2
  212. package/build/components/Tooltip/Tooltip.d.ts +10 -10
  213. package/build/components/Tooltip/Tooltip.js +53 -53
  214. package/build/components/Tooltip/index.d.ts +3 -3
  215. package/build/components/Tooltip/index.js +2 -2
  216. package/build/components/Warning/Warning.d.ts +13 -13
  217. package/build/components/Warning/Warning.js +53 -53
  218. package/build/components/Warning/index.d.ts +4 -4
  219. package/build/components/Warning/index.js +2 -2
  220. package/build/constants/api.d.ts +60 -62
  221. package/build/constants/api.js +118 -122
  222. package/build/constants/app.d.ts +309 -270
  223. package/build/constants/app.js +1220 -910
  224. package/build/constants/assets.d.ts +111 -108
  225. package/build/constants/assets.js +111 -108
  226. package/build/constants/dummy.d.ts +175 -390
  227. package/build/constants/dummy.js +909 -7039
  228. package/build/constants/flows.d.ts +26 -0
  229. package/build/constants/flows.js +27 -0
  230. package/build/constants/index.d.ts +6 -5
  231. package/build/constants/index.js +6 -5
  232. package/build/constants/validation.d.ts +34 -31
  233. package/build/constants/validation.js +34 -31
  234. package/build/features/app/auth/authStore.d.ts +103 -217
  235. package/build/features/app/auth/authStore.js +1216 -870
  236. package/build/features/app/bank/bankStore.d.ts +70 -156
  237. package/build/features/app/bank/bankStore.js +563 -530
  238. package/build/features/app/board/boardStore.d.ts +37 -69
  239. package/build/features/app/board/boardStore.js +274 -243
  240. package/build/features/app/brand/brandStore.d.ts +110 -252
  241. package/build/features/app/brand/brandStore.js +885 -888
  242. package/build/features/app/business/businessStore.d.ts +159 -281
  243. package/build/features/app/business/businessStore.js +1486 -1278
  244. package/build/features/app/connect/connectStore.d.ts +146 -253
  245. package/build/features/app/connect/connectStore.js +1332 -1097
  246. package/build/features/app/connectExpress/connectExpressStore.d.ts +186 -403
  247. package/build/features/app/connectExpress/connectExpressStore.js +1933 -1640
  248. package/build/features/app/entity/entityStore.d.ts +77 -174
  249. package/build/features/app/entity/entityStore.js +749 -783
  250. package/build/features/app/individual/individualStore.d.ts +140 -318
  251. package/build/features/app/individual/individualStore.js +1382 -1405
  252. package/build/features/app/kyc/kycStore.d.ts +67 -0
  253. package/build/features/app/kyc/kycStore.js +432 -0
  254. package/build/features/app/password/passwordStore.d.ts +103 -187
  255. package/build/features/app/password/passwordStore.js +661 -620
  256. package/build/features/app/signIn/signInStore.d.ts +33 -87
  257. package/build/features/app/signIn/signInStore.js +371 -367
  258. package/build/features/app/tax/taxStore.d.ts +63 -129
  259. package/build/features/app/tax/taxStore.js +510 -476
  260. package/build/features/auth/Auth.d.ts +14 -14
  261. package/build/features/auth/Auth.js +168 -143
  262. package/build/features/auth/index.d.ts +1 -1
  263. package/build/features/auth/index.js +1 -1
  264. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -5
  265. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -36
  266. package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -2
  267. package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -2
  268. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -5
  269. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -74
  270. package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -2
  271. package/build/features/auth/screens/AccountNotFound/index.js +2 -2
  272. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -5
  273. package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -73
  274. package/build/features/auth/screens/AuthMerchant/MerchantList.d.ts +11 -11
  275. package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -64
  276. package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -2
  277. package/build/features/auth/screens/AuthMerchant/index.js +2 -2
  278. package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -8
  279. package/build/features/auth/screens/AuthMerchant/validation.js +4 -4
  280. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  281. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  282. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  283. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  284. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -5
  285. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -102
  286. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -10
  287. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -81
  288. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +3 -2
  289. package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -48
  290. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +31 -31
  291. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -90
  292. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -11
  293. package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -138
  294. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -3
  295. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -36
  296. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -3
  297. package/build/features/auth/screens/AuthenticationList/index.js +2 -2
  298. package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -20
  299. package/build/features/auth/screens/AuthenticationList/validation.js +68 -68
  300. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -5
  301. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -105
  302. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -3
  303. package/build/features/auth/screens/BusinessCountry/index.js +2 -2
  304. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -5
  305. package/build/features/auth/screens/CivilID/CivilID.js +57 -88
  306. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -8
  307. package/build/features/auth/screens/CivilID/IDNumber.js +54 -54
  308. package/build/features/auth/screens/CivilID/index.d.ts +3 -3
  309. package/build/features/auth/screens/CivilID/index.js +2 -2
  310. package/build/features/auth/screens/CivilID/validation.d.ts +8 -8
  311. package/build/features/auth/screens/CivilID/validation.js +4 -4
  312. package/build/features/auth/screens/DOB/DOB.d.ts +6 -0
  313. package/build/features/auth/screens/{NID → DOB}/DOB.js +47 -47
  314. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  315. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  316. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  317. package/build/features/auth/screens/DOB/index.js +2 -0
  318. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +8 -8
  319. package/build/features/auth/screens/DOB/validation.js +4 -0
  320. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  321. package/build/features/auth/screens/Email/Email.js +57 -0
  322. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  323. package/build/features/auth/screens/Email/EmailField.js +52 -0
  324. package/build/features/auth/screens/Email/index.d.ts +3 -0
  325. package/build/features/auth/screens/Email/index.js +2 -0
  326. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  327. package/build/features/auth/screens/Email/validation.js +4 -0
  328. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  329. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  330. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  331. package/build/features/auth/screens/EmailSent/index.js +2 -0
  332. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  333. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  334. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  335. package/build/features/auth/screens/MigratingData/index.js +2 -0
  336. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -5
  337. package/build/features/auth/screens/Mobile/Mobile.js +82 -114
  338. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -13
  339. package/build/features/auth/screens/Mobile/MobileNumber.js +156 -158
  340. package/build/features/auth/screens/Mobile/index.d.ts +3 -3
  341. package/build/features/auth/screens/Mobile/index.js +2 -2
  342. package/build/features/auth/screens/Mobile/validation.d.ts +8 -8
  343. package/build/features/auth/screens/Mobile/validation.js +38 -30
  344. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -7
  345. package/build/features/auth/screens/NID/IDNumber.js +55 -55
  346. package/build/features/auth/screens/NID/NID.d.ts +5 -5
  347. package/build/features/auth/screens/NID/NID.js +56 -92
  348. package/build/features/auth/screens/NID/index.d.ts +3 -3
  349. package/build/features/auth/screens/NID/index.js +2 -2
  350. package/build/features/auth/screens/NID/validation.d.ts +8 -11
  351. package/build/features/auth/screens/NID/validation.js +10 -11
  352. package/build/features/auth/screens/OTP/OTP.d.ts +5 -5
  353. package/build/features/auth/screens/OTP/OTP.js +118 -87
  354. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -5
  355. package/build/features/auth/screens/OTP/OTPInput.js +74 -57
  356. package/build/features/auth/screens/OTP/index.d.ts +3 -3
  357. package/build/features/auth/screens/OTP/index.js +2 -2
  358. package/build/features/auth/screens/OTP/validation.d.ts +8 -8
  359. package/build/features/auth/screens/OTP/validation.js +4 -4
  360. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  361. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  362. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  363. package/build/features/auth/screens/OperatorError/index.js +2 -0
  364. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  365. package/build/features/auth/screens/Password/Password.js +61 -0
  366. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  367. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  368. package/build/features/auth/screens/Password/index.d.ts +3 -0
  369. package/build/features/auth/screens/Password/index.js +2 -0
  370. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  371. package/build/features/auth/screens/Password/validation.js +4 -0
  372. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -5
  373. package/build/features/auth/screens/PreparingData/PreparingData.js +44 -41
  374. package/build/features/auth/screens/PreparingData/index.d.ts +2 -2
  375. package/build/features/auth/screens/PreparingData/index.js +2 -2
  376. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  377. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  378. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  379. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  380. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  381. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  382. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  383. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  384. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -5
  385. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -34
  386. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -3
  387. package/build/features/auth/screens/VerifyPACI/index.js +2 -2
  388. package/build/features/bank/Bank.d.ts +15 -10
  389. package/build/features/bank/Bank.js +90 -77
  390. package/build/features/bank/index.d.ts +1 -1
  391. package/build/features/bank/index.js +1 -1
  392. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -4
  393. package/build/features/bank/screens/BankDetails/BankDetails.js +124 -110
  394. package/build/features/bank/screens/BankDetails/BankName.d.ts +7 -6
  395. package/build/features/bank/screens/BankDetails/BankName.js +63 -63
  396. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +10 -9
  397. package/build/features/bank/screens/BankDetails/BankStatement.js +33 -33
  398. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +7 -6
  399. package/build/features/bank/screens/BankDetails/Beneficiary.js +48 -48
  400. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +6 -5
  401. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +66 -66
  402. package/build/features/bank/screens/BankDetails/IBAN.d.ts +9 -8
  403. package/build/features/bank/screens/BankDetails/IBAN.js +102 -102
  404. package/build/features/bank/screens/BankDetails/index.d.ts +3 -3
  405. package/build/features/bank/screens/BankDetails/index.js +2 -2
  406. package/build/features/bank/screens/BankDetails/validation.d.ts +39 -39
  407. package/build/features/bank/screens/BankDetails/validation.js +24 -24
  408. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  409. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  410. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  411. package/build/features/bank/screens/OperatorError/index.js +2 -0
  412. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -4
  413. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +10 -10
  414. package/build/features/bank/screens/PrepareDataLoading/index.d.ts +2 -2
  415. package/build/features/bank/screens/PrepareDataLoading/index.js +2 -2
  416. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  417. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  418. package/build/features/bank/screens/ResetPasswordSuccess/index.d.ts +3 -3
  419. package/build/features/bank/screens/ResetPasswordSuccess/index.js +2 -2
  420. package/build/features/bank/screens/Success/Success.d.ts +5 -5
  421. package/build/features/bank/screens/Success/Success.js +20 -20
  422. package/build/features/bank/screens/Success/index.d.ts +3 -3
  423. package/build/features/bank/screens/Success/index.js +2 -2
  424. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  425. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  426. package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  427. package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -2
  428. package/build/features/bank/screens/Verify/OTPInput.d.ts +7 -7
  429. package/build/features/bank/screens/Verify/OTPInput.js +51 -51
  430. package/build/features/bank/screens/Verify/Verify.d.ts +5 -5
  431. package/build/features/bank/screens/Verify/Verify.js +75 -74
  432. package/build/features/bank/screens/Verify/index.d.ts +2 -2
  433. package/build/features/bank/screens/Verify/index.js +2 -2
  434. package/build/features/bank/screens/Verify/validation.d.ts +8 -8
  435. package/build/features/bank/screens/Verify/validation.js +4 -4
  436. package/build/features/board/Board.d.ts +13 -10
  437. package/build/features/board/Board.js +87 -76
  438. package/build/features/board/index.d.ts +1 -1
  439. package/build/features/board/index.js +1 -1
  440. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  441. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  442. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  443. package/build/features/board/screens/OperatorError/index.js +2 -0
  444. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  445. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  446. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  447. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  448. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  449. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  450. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -3
  451. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -2
  452. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  453. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +44 -35
  454. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  455. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -2
  456. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -7
  457. package/build/features/board/screens/Verify/OTPInput.js +51 -51
  458. package/build/features/board/screens/Verify/Verify.d.ts +5 -5
  459. package/build/features/board/screens/Verify/Verify.js +75 -74
  460. package/build/features/board/screens/Verify/index.d.ts +2 -2
  461. package/build/features/board/screens/Verify/index.js +2 -2
  462. package/build/features/board/screens/Verify/validation.d.ts +8 -8
  463. package/build/features/board/screens/Verify/validation.js +4 -4
  464. package/build/features/brand/Brand.d.ts +15 -10
  465. package/build/features/brand/Brand.js +90 -77
  466. package/build/features/brand/index.d.ts +1 -1
  467. package/build/features/brand/index.js +1 -1
  468. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +74 -58
  469. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +180 -180
  470. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -4
  471. package/build/features/brand/screens/BrandActivities/BrandActivities.js +152 -115
  472. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +55 -31
  473. package/build/features/brand/screens/BrandActivities/CustomerBase.js +135 -135
  474. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +10 -9
  475. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +101 -101
  476. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +10 -9
  477. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +146 -143
  478. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +43 -35
  479. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +93 -93
  480. package/build/features/brand/screens/BrandActivities/TAC.d.ts +18 -18
  481. package/build/features/brand/screens/BrandActivities/TAC.js +93 -93
  482. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +6 -5
  483. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +56 -56
  484. package/build/features/brand/screens/BrandActivities/index.d.ts +2 -2
  485. package/build/features/brand/screens/BrandActivities/index.js +2 -2
  486. package/build/features/brand/screens/BrandActivities/validation.d.ts +71 -71
  487. package/build/features/brand/screens/BrandActivities/validation.js +18 -18
  488. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -4
  489. package/build/features/brand/screens/BrandInfo/BrandInfo.js +106 -86
  490. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +9 -8
  491. package/build/features/brand/screens/BrandInfo/BrandLogo.js +41 -41
  492. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +9 -9
  493. package/build/features/brand/screens/BrandInfo/BrandName.js +143 -140
  494. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +6 -5
  495. package/build/features/brand/screens/BrandInfo/SalesChannels.js +36 -36
  496. package/build/features/brand/screens/BrandInfo/index.d.ts +2 -2
  497. package/build/features/brand/screens/BrandInfo/index.js +2 -2
  498. package/build/features/brand/screens/BrandInfo/validation.d.ts +56 -56
  499. package/build/features/brand/screens/BrandInfo/validation.js +109 -109
  500. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -4
  501. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +119 -103
  502. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +10 -9
  503. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +69 -69
  504. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +10 -9
  505. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -69
  506. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +10 -9
  507. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -69
  508. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +10 -9
  509. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.js +69 -69
  510. package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -2
  511. package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -2
  512. package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -17
  513. package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -9
  514. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  515. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  516. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  517. package/build/features/brand/screens/OperatorError/index.js +2 -0
  518. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -4
  519. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +10 -10
  520. package/build/features/brand/screens/PrepareDataLoading/index.d.ts +2 -2
  521. package/build/features/brand/screens/PrepareDataLoading/index.js +2 -2
  522. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  523. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  524. package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +3 -3
  525. package/build/features/brand/screens/ResetPasswordSuccess/index.js +2 -2
  526. package/build/features/brand/screens/Success/Success.d.ts +5 -5
  527. package/build/features/brand/screens/Success/Success.js +20 -20
  528. package/build/features/brand/screens/Success/index.d.ts +3 -3
  529. package/build/features/brand/screens/Success/index.js +2 -2
  530. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  531. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  532. package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  533. package/build/features/brand/screens/SuccessWithFlowButtons/index.js +2 -2
  534. package/build/features/brand/screens/Verify/OTPInput.d.ts +7 -7
  535. package/build/features/brand/screens/Verify/OTPInput.js +51 -51
  536. package/build/features/brand/screens/Verify/Verify.d.ts +5 -5
  537. package/build/features/brand/screens/Verify/Verify.js +79 -78
  538. package/build/features/brand/screens/Verify/index.d.ts +2 -2
  539. package/build/features/brand/screens/Verify/index.js +2 -2
  540. package/build/features/brand/screens/Verify/validation.d.ts +8 -8
  541. package/build/features/brand/screens/Verify/validation.js +4 -4
  542. package/build/features/business/Business.d.ts +8 -7
  543. package/build/features/business/Business.js +75 -67
  544. package/build/features/business/index.d.ts +1 -1
  545. package/build/features/business/index.js +1 -1
  546. package/build/features/business/screens/Activities/Activities.d.ts +5 -4
  547. package/build/features/business/screens/Activities/Activities.js +87 -70
  548. package/build/features/business/screens/Activities/ActivitiesList.d.ts +37 -21
  549. package/build/features/business/screens/Activities/ActivitiesList.js +292 -292
  550. package/build/features/business/screens/Activities/LicenseName.d.ts +5 -5
  551. package/build/features/business/screens/Activities/LicenseName.js +30 -30
  552. package/build/features/business/screens/Activities/OperationStartDate.d.ts +22 -12
  553. package/build/features/business/screens/Activities/OperationStartDate.js +45 -45
  554. package/build/features/business/screens/Activities/index.d.ts +3 -3
  555. package/build/features/business/screens/Activities/index.js +2 -2
  556. package/build/features/business/screens/Activities/validation.d.ts +191 -191
  557. package/build/features/business/screens/Activities/validation.js +14 -14
  558. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +5 -5
  559. package/build/features/business/screens/BrandDetails/BrandDetails.js +39 -39
  560. package/build/features/business/screens/BrandDetails/BrandName.d.ts +5 -5
  561. package/build/features/business/screens/BrandDetails/BrandName.js +36 -36
  562. package/build/features/business/screens/BrandDetails/Header.d.ts +5 -5
  563. package/build/features/business/screens/BrandDetails/Header.js +49 -49
  564. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +5 -5
  565. package/build/features/business/screens/BrandDetails/LicenseInfo.js +38 -38
  566. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +18 -10
  567. package/build/features/business/screens/BrandDetails/SalesChannel.js +48 -48
  568. package/build/features/business/screens/BrandDetails/index.d.ts +3 -3
  569. package/build/features/business/screens/BrandDetails/index.js +2 -2
  570. package/build/features/business/screens/BusinessType/Article.d.ts +8 -7
  571. package/build/features/business/screens/BusinessType/Article.js +52 -52
  572. package/build/features/business/screens/BusinessType/BusinessType.d.ts +5 -5
  573. package/build/features/business/screens/BusinessType/BusinessType.js +114 -106
  574. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +9 -9
  575. package/build/features/business/screens/BusinessType/EntityLicenseList.js +129 -129
  576. package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -5
  577. package/build/features/business/screens/BusinessType/EntityName.js +55 -55
  578. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -5
  579. package/build/features/business/screens/BusinessType/LicenseCertificate.js +44 -44
  580. package/build/features/business/screens/BusinessType/LicenseList.d.ts +9 -9
  581. package/build/features/business/screens/BusinessType/LicenseList.js +133 -133
  582. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +6 -6
  583. package/build/features/business/screens/BusinessType/LicenseNumber.js +55 -55
  584. package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -34
  585. package/build/features/business/screens/BusinessType/LicenseType.js +103 -103
  586. package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -8
  587. package/build/features/business/screens/BusinessType/SelectType.js +106 -106
  588. package/build/features/business/screens/BusinessType/Switch.d.ts +7 -7
  589. package/build/features/business/screens/BusinessType/Switch.js +35 -35
  590. package/build/features/business/screens/BusinessType/index.d.ts +3 -3
  591. package/build/features/business/screens/BusinessType/index.js +2 -2
  592. package/build/features/business/screens/BusinessType/validation.d.ts +43 -43
  593. package/build/features/business/screens/BusinessType/validation.js +105 -105
  594. package/build/features/business/screens/CivilID/CivilID.d.ts +5 -5
  595. package/build/features/business/screens/CivilID/CivilID.js +68 -68
  596. package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -7
  597. package/build/features/business/screens/CivilID/IDNumber.js +58 -58
  598. package/build/features/business/screens/CivilID/index.d.ts +3 -3
  599. package/build/features/business/screens/CivilID/index.js +2 -2
  600. package/build/features/business/screens/CivilID/validation.d.ts +8 -8
  601. package/build/features/business/screens/CivilID/validation.js +4 -4
  602. package/build/features/business/screens/Customers/CustomerLocations.d.ts +91 -65
  603. package/build/features/business/screens/Customers/CustomerLocations.js +161 -159
  604. package/build/features/business/screens/Customers/Customers.d.ts +5 -5
  605. package/build/features/business/screens/Customers/Customers.js +142 -102
  606. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +10 -7
  607. package/build/features/business/screens/Customers/ExpectedCustomers.js +107 -105
  608. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +10 -7
  609. package/build/features/business/screens/Customers/ExpectedSalesRange.js +144 -138
  610. package/build/features/business/screens/Customers/RefundPolicy.d.ts +43 -28
  611. package/build/features/business/screens/Customers/RefundPolicy.js +93 -93
  612. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +6 -2
  613. package/build/features/business/screens/Customers/TransactionPolicy.js +55 -52
  614. package/build/features/business/screens/Customers/index.d.ts +3 -3
  615. package/build/features/business/screens/Customers/index.js +2 -2
  616. package/build/features/business/screens/Customers/validation.d.ts +20 -20
  617. package/build/features/business/screens/Customers/validation.js +8 -13
  618. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  619. package/build/features/business/screens/DOB/DOB.js +45 -0
  620. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  621. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  622. package/build/features/business/screens/DOB/index.d.ts +3 -0
  623. package/build/features/business/screens/DOB/index.js +2 -0
  624. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +8 -8
  625. package/build/features/business/screens/DOB/validation.js +4 -0
  626. package/build/features/business/screens/IDBOD/DOB.d.ts +6 -6
  627. package/build/features/business/screens/IDBOD/DOB.js +45 -45
  628. package/build/features/business/screens/IDBOD/ID.d.ts +5 -5
  629. package/build/features/business/screens/IDBOD/ID.js +31 -31
  630. package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -5
  631. package/build/features/business/screens/IDBOD/IDBOD.js +68 -60
  632. package/build/features/business/screens/IDBOD/index.d.ts +3 -3
  633. package/build/features/business/screens/IDBOD/index.js +2 -2
  634. package/build/features/business/screens/IDBOD/validation.d.ts +18 -21
  635. package/build/features/business/screens/IDBOD/validation.js +12 -13
  636. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  637. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  638. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  639. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  640. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  641. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  642. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  643. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  644. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  645. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  646. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  647. package/build/features/business/screens/OperatorError/index.js +2 -0
  648. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  649. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  650. package/build/features/business/screens/ResetPasswordSuccess/index.d.ts +3 -3
  651. package/build/features/business/screens/ResetPasswordSuccess/index.js +2 -2
  652. package/build/features/business/screens/Success/Success.d.ts +5 -5
  653. package/build/features/business/screens/Success/Success.js +23 -23
  654. package/build/features/business/screens/Success/index.d.ts +3 -3
  655. package/build/features/business/screens/Success/index.js +2 -2
  656. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  657. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +33 -22
  658. package/build/features/business/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  659. package/build/features/business/screens/SuccessWithFlowButtons/index.js +2 -2
  660. package/build/features/business/screens/Verify/OTPInput.d.ts +7 -7
  661. package/build/features/business/screens/Verify/OTPInput.js +51 -51
  662. package/build/features/business/screens/Verify/Verify.d.ts +5 -5
  663. package/build/features/business/screens/Verify/Verify.js +89 -78
  664. package/build/features/business/screens/Verify/index.d.ts +2 -2
  665. package/build/features/business/screens/Verify/index.js +2 -2
  666. package/build/features/business/screens/Verify/validation.d.ts +8 -8
  667. package/build/features/business/screens/Verify/validation.js +4 -4
  668. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  669. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  670. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  671. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  672. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -5
  673. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -34
  674. package/build/features/business/screens/VerifyPACI/index.d.ts +3 -3
  675. package/build/features/business/screens/VerifyPACI/index.js +2 -2
  676. package/build/features/connect/Connect.d.ts +14 -9
  677. package/build/features/connect/Connect.js +159 -152
  678. package/build/features/connect/index.d.ts +1 -1
  679. package/build/features/connect/index.js +1 -1
  680. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -5
  681. package/build/features/connect/screens/BrandSegment/BrandSegment.js +62 -62
  682. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +8 -7
  683. package/build/features/connect/screens/BrandSegment/TeamSize.js +66 -66
  684. package/build/features/connect/screens/BrandSegment/index.d.ts +3 -3
  685. package/build/features/connect/screens/BrandSegment/index.js +2 -2
  686. package/build/features/connect/screens/BrandSegment/validation.d.ts +8 -8
  687. package/build/features/connect/screens/BrandSegment/validation.js +6 -6
  688. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -5
  689. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +113 -107
  690. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -3
  691. package/build/features/connect/screens/BusinessCountry/index.js +2 -2
  692. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -5
  693. package/build/features/connect/screens/CivilID/CivilID.js +103 -98
  694. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -7
  695. package/build/features/connect/screens/CivilID/IDNumber.js +58 -58
  696. package/build/features/connect/screens/CivilID/index.d.ts +3 -3
  697. package/build/features/connect/screens/CivilID/index.js +2 -2
  698. package/build/features/connect/screens/CivilID/validation.d.ts +8 -8
  699. package/build/features/connect/screens/CivilID/validation.js +4 -4
  700. package/build/features/connect/screens/DOB/DOB.d.ts +6 -0
  701. package/build/features/connect/screens/{NID → DOB}/DOB.js +47 -47
  702. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  703. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  704. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  705. package/build/features/connect/screens/DOB/index.js +2 -0
  706. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  707. package/build/features/connect/screens/DOB/validation.js +4 -0
  708. package/build/features/connect/screens/Individual/Email.d.ts +8 -8
  709. package/build/features/connect/screens/Individual/Email.js +106 -108
  710. package/build/features/connect/screens/Individual/Individual.d.ts +5 -5
  711. package/build/features/connect/screens/Individual/Individual.js +114 -108
  712. package/build/features/connect/screens/Individual/MobileNumber.d.ts +10 -10
  713. package/build/features/connect/screens/Individual/MobileNumber.js +154 -153
  714. package/build/features/connect/screens/Individual/Name.d.ts +6 -6
  715. package/build/features/connect/screens/Individual/Name.js +44 -44
  716. package/build/features/connect/screens/Individual/index.d.ts +3 -3
  717. package/build/features/connect/screens/Individual/index.js +2 -2
  718. package/build/features/connect/screens/Individual/validation.d.ts +24 -24
  719. package/build/features/connect/screens/Individual/validation.js +43 -35
  720. package/build/features/connect/screens/Merchant/BrandList.d.ts +10 -10
  721. package/build/features/connect/screens/Merchant/BrandList.js +88 -88
  722. package/build/features/connect/screens/Merchant/BrandName.d.ts +8 -8
  723. package/build/features/connect/screens/Merchant/BrandName.js +143 -140
  724. package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -5
  725. package/build/features/connect/screens/Merchant/Merchant.js +100 -100
  726. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -4
  727. package/build/features/connect/screens/Merchant/SalesChannels.js +38 -38
  728. package/build/features/connect/screens/Merchant/TAC.d.ts +6 -6
  729. package/build/features/connect/screens/Merchant/TAC.js +84 -84
  730. package/build/features/connect/screens/Merchant/index.d.ts +3 -3
  731. package/build/features/connect/screens/Merchant/index.js +2 -2
  732. package/build/features/connect/screens/Merchant/validation.d.ts +35 -35
  733. package/build/features/connect/screens/Merchant/validation.js +131 -131
  734. package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -5
  735. package/build/features/connect/screens/Mobile/Mobile.js +137 -134
  736. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +12 -12
  737. package/build/features/connect/screens/Mobile/MobileNumber.js +162 -161
  738. package/build/features/connect/screens/Mobile/Title.d.ts +8 -8
  739. package/build/features/connect/screens/Mobile/Title.js +29 -29
  740. package/build/features/connect/screens/Mobile/index.d.ts +3 -3
  741. package/build/features/connect/screens/Mobile/index.js +2 -2
  742. package/build/features/connect/screens/Mobile/validation.d.ts +8 -8
  743. package/build/features/connect/screens/Mobile/validation.js +36 -28
  744. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  745. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  746. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  747. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  748. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  749. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  750. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  751. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  752. package/build/features/connect/screens/NID/IDNumber.d.ts +7 -6
  753. package/build/features/connect/screens/NID/IDNumber.js +59 -59
  754. package/build/features/connect/screens/NID/NID.d.ts +5 -5
  755. package/build/features/connect/screens/NID/NID.js +101 -107
  756. package/build/features/connect/screens/NID/index.d.ts +3 -3
  757. package/build/features/connect/screens/NID/index.js +2 -2
  758. package/build/features/connect/screens/NID/validation.d.ts +8 -11
  759. package/build/features/connect/screens/NID/validation.js +8 -9
  760. package/build/features/connect/screens/OTP/OTP.d.ts +5 -5
  761. package/build/features/connect/screens/OTP/OTP.js +92 -92
  762. package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -5
  763. package/build/features/connect/screens/OTP/OTPInput.js +58 -66
  764. package/build/features/connect/screens/OTP/index.d.ts +3 -3
  765. package/build/features/connect/screens/OTP/index.js +2 -2
  766. package/build/features/connect/screens/OTP/validation.d.ts +8 -8
  767. package/build/features/connect/screens/OTP/validation.js +4 -4
  768. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +5 -5
  769. package/build/features/connect/screens/OperatorError/OperatorError.js +9 -9
  770. package/build/features/connect/screens/OperatorError/index.d.ts +3 -3
  771. package/build/features/connect/screens/OperatorError/index.js +2 -2
  772. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -5
  773. package/build/features/connect/screens/ThankYou/ThankYou.js +31 -31
  774. package/build/features/connect/screens/ThankYou/index.d.ts +3 -3
  775. package/build/features/connect/screens/ThankYou/index.js +2 -2
  776. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  777. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  778. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  779. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  780. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -5
  781. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -95
  782. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -3
  783. package/build/features/connect/screens/VerifyPACI/index.js +2 -2
  784. package/build/features/connectExpress/ConnectExpress.d.ts +14 -10
  785. package/build/features/connectExpress/ConnectExpress.js +174 -151
  786. package/build/features/connectExpress/index.d.ts +1 -1
  787. package/build/features/connectExpress/index.js +1 -1
  788. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +5 -5
  789. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +27 -27
  790. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +3 -3
  791. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +2 -2
  792. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -5
  793. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -36
  794. package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -2
  795. package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -2
  796. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -5
  797. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -74
  798. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +11 -11
  799. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -64
  800. package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -2
  801. package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -2
  802. package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -8
  803. package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -4
  804. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -5
  805. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +104 -104
  806. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -10
  807. package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -81
  808. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +3 -2
  809. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -48
  810. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +31 -31
  811. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -90
  812. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -11
  813. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +138 -138
  814. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -3
  815. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -36
  816. package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -3
  817. package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -2
  818. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +20 -20
  819. package/build/features/connectExpress/screens/AuthenticationList/validation.js +68 -68
  820. package/build/features/connectExpress/screens/Brand/Brand.d.ts +5 -5
  821. package/build/features/connectExpress/screens/Brand/Brand.js +71 -71
  822. package/build/features/connectExpress/screens/Brand/index.d.ts +2 -2
  823. package/build/features/connectExpress/screens/Brand/index.js +2 -2
  824. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -5
  825. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -105
  826. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -3
  827. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -2
  828. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -5
  829. package/build/features/connectExpress/screens/CivilID/CivilID.js +96 -91
  830. package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -7
  831. package/build/features/connectExpress/screens/CivilID/IDNumber.js +59 -59
  832. package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -3
  833. package/build/features/connectExpress/screens/CivilID/index.js +2 -2
  834. package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -8
  835. package/build/features/connectExpress/screens/CivilID/validation.js +4 -4
  836. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +5 -5
  837. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +54 -54
  838. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +7 -7
  839. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +54 -54
  840. package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +3 -3
  841. package/build/features/connectExpress/screens/CivilIDMissed/index.js +2 -2
  842. package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +8 -8
  843. package/build/features/connectExpress/screens/CivilIDMissed/validation.js +4 -4
  844. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +9 -9
  845. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +141 -138
  846. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -5
  847. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +98 -91
  848. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +9 -9
  849. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +140 -140
  850. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +7 -7
  851. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +53 -53
  852. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +35 -35
  853. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +96 -96
  854. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +19 -19
  855. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +82 -82
  856. package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +3 -3
  857. package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +2 -2
  858. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +40 -40
  859. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +222 -222
  860. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +5 -5
  861. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +121 -98
  862. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +9 -9
  863. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +105 -107
  864. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +11 -11
  865. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +154 -153
  866. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +7 -7
  867. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +44 -44
  868. package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +3 -3
  869. package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +2 -2
  870. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +14 -14
  871. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +39 -31
  872. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +5 -5
  873. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +24 -34
  874. package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +2 -2
  875. package/build/features/connectExpress/screens/CreateAccountLoader/index.js +2 -2
  876. package/build/features/connectExpress/screens/DOB/DOB.d.ts +6 -0
  877. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +47 -47
  878. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  879. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  880. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  881. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  882. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  883. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  884. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  885. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  886. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  887. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  888. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +5 -5
  889. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +34 -34
  890. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +3 -3
  891. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +2 -2
  892. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -5
  893. package/build/features/connectExpress/screens/Mobile/Mobile.js +122 -115
  894. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +13 -13
  895. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +159 -158
  896. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +7 -7
  897. package/build/features/connectExpress/screens/Mobile/TAC.js +85 -85
  898. package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -8
  899. package/build/features/connectExpress/screens/Mobile/Title.js +29 -29
  900. package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -3
  901. package/build/features/connectExpress/screens/Mobile/index.js +2 -2
  902. package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -8
  903. package/build/features/connectExpress/screens/Mobile/validation.js +75 -60
  904. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  905. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  906. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  907. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  908. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  909. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  910. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  911. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  912. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +8 -7
  913. package/build/features/connectExpress/screens/NID/IDNumber.js +60 -60
  914. package/build/features/connectExpress/screens/NID/NID.d.ts +5 -5
  915. package/build/features/connectExpress/screens/NID/NID.js +98 -98
  916. package/build/features/connectExpress/screens/NID/TAC.d.ts +19 -19
  917. package/build/features/connectExpress/screens/NID/TAC.js +82 -82
  918. package/build/features/connectExpress/screens/NID/index.d.ts +3 -3
  919. package/build/features/connectExpress/screens/NID/index.js +2 -2
  920. package/build/features/connectExpress/screens/NID/validation.d.ts +8 -11
  921. package/build/features/connectExpress/screens/NID/validation.js +20 -22
  922. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +6 -5
  923. package/build/features/connectExpress/screens/NIDMissed/DOB.js +47 -47
  924. package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +6 -6
  925. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +59 -59
  926. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -5
  927. package/build/features/connectExpress/screens/NIDMissed/NID.js +62 -62
  928. package/build/features/connectExpress/screens/NIDMissed/index.d.ts +3 -3
  929. package/build/features/connectExpress/screens/NIDMissed/index.js +2 -2
  930. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +18 -21
  931. package/build/features/connectExpress/screens/NIDMissed/validation.js +12 -13
  932. package/build/features/connectExpress/screens/OTP/OTP.d.ts +5 -5
  933. package/build/features/connectExpress/screens/OTP/OTP.js +86 -88
  934. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -5
  935. package/build/features/connectExpress/screens/OTP/OTPInput.js +59 -57
  936. package/build/features/connectExpress/screens/OTP/index.d.ts +3 -3
  937. package/build/features/connectExpress/screens/OTP/index.js +2 -2
  938. package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -8
  939. package/build/features/connectExpress/screens/OTP/validation.js +4 -4
  940. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  941. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  942. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  943. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  944. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  945. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  946. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  947. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  948. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  949. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +41 -41
  950. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  951. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +2 -2
  952. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  953. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  954. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  955. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  956. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -5
  957. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +34 -34
  958. package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -3
  959. package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -2
  960. package/build/features/entity/Entity.d.ts +14 -10
  961. package/build/features/entity/Entity.js +90 -77
  962. package/build/features/entity/index.d.ts +1 -1
  963. package/build/features/entity/index.js +1 -1
  964. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +38 -22
  965. package/build/features/entity/screens/EntityCapital/ActivityList.js +290 -290
  966. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +7 -7
  967. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +47 -43
  968. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +7 -7
  969. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +40 -40
  970. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +7 -7
  971. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +47 -43
  972. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -4
  973. package/build/features/entity/screens/EntityCapital/EntityCapital.js +110 -86
  974. package/build/features/entity/screens/EntityCapital/index.d.ts +2 -2
  975. package/build/features/entity/screens/EntityCapital/index.js +2 -2
  976. package/build/features/entity/screens/EntityCapital/validation.d.ts +197 -197
  977. package/build/features/entity/screens/EntityCapital/validation.js +18 -18
  978. package/build/features/entity/screens/EntityName/Article.d.ts +10 -9
  979. package/build/features/entity/screens/EntityName/Article.js +53 -53
  980. package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -4
  981. package/build/features/entity/screens/EntityName/EntityName.js +162 -144
  982. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +74 -58
  983. package/build/features/entity/screens/EntityName/EntityTypeList.js +137 -138
  984. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +21 -13
  985. package/build/features/entity/screens/EntityName/ExpiryDate.js +50 -45
  986. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +21 -13
  987. package/build/features/entity/screens/EntityName/IssuingDate.js +51 -44
  988. package/build/features/entity/screens/EntityName/LegalName.d.ts +7 -7
  989. package/build/features/entity/screens/EntityName/LegalName.js +37 -49
  990. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +9 -8
  991. package/build/features/entity/screens/EntityName/LicenseCertificate.js +54 -54
  992. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +8 -8
  993. package/build/features/entity/screens/EntityName/LicenseNumber.js +52 -54
  994. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +8 -8
  995. package/build/features/entity/screens/EntityName/UnifiedNumber.js +42 -44
  996. package/build/features/entity/screens/EntityName/index.d.ts +2 -2
  997. package/build/features/entity/screens/EntityName/index.js +2 -2
  998. package/build/features/entity/screens/EntityName/validation.d.ts +88 -88
  999. package/build/features/entity/screens/EntityName/validation.js +120 -129
  1000. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  1001. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  1002. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  1003. package/build/features/entity/screens/OperatorError/index.js +2 -0
  1004. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -4
  1005. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +10 -10
  1006. package/build/features/entity/screens/PrepareDataLoading/index.d.ts +2 -2
  1007. package/build/features/entity/screens/PrepareDataLoading/index.js +2 -2
  1008. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  1009. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  1010. package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -3
  1011. package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -2
  1012. package/build/features/entity/screens/Success/Success.d.ts +5 -5
  1013. package/build/features/entity/screens/Success/Success.js +20 -20
  1014. package/build/features/entity/screens/Success/index.d.ts +3 -3
  1015. package/build/features/entity/screens/Success/index.js +2 -2
  1016. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  1017. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  1018. package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  1019. package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -2
  1020. package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -7
  1021. package/build/features/entity/screens/Verify/OTPInput.js +51 -51
  1022. package/build/features/entity/screens/Verify/Verify.d.ts +5 -5
  1023. package/build/features/entity/screens/Verify/Verify.js +79 -78
  1024. package/build/features/entity/screens/Verify/index.d.ts +2 -2
  1025. package/build/features/entity/screens/Verify/index.js +2 -2
  1026. package/build/features/entity/screens/Verify/validation.d.ts +8 -8
  1027. package/build/features/entity/screens/Verify/validation.js +4 -4
  1028. package/build/features/featuresScreens.d.ts +14 -13
  1029. package/build/features/featuresScreens.js +697 -499
  1030. package/build/features/individual/Individual.d.ts +14 -10
  1031. package/build/features/individual/Individual.js +90 -77
  1032. package/build/features/individual/index.d.ts +1 -1
  1033. package/build/features/individual/index.js +1 -1
  1034. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +21 -13
  1035. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +190 -157
  1036. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +9 -8
  1037. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +54 -54
  1038. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +8 -8
  1039. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +59 -59
  1040. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +36 -36
  1041. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -76
  1042. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +11 -11
  1043. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +92 -89
  1044. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +10 -9
  1045. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +131 -131
  1046. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +36 -36
  1047. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +78 -78
  1048. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +7 -7
  1049. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +42 -42
  1050. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +7 -7
  1051. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +50 -45
  1052. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +9 -8
  1053. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +54 -54
  1054. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +11 -11
  1055. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +81 -81
  1056. package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -3
  1057. package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -2
  1058. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +36 -36
  1059. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +17 -17
  1060. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +12 -12
  1061. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +32 -32
  1062. package/build/features/individual/screens/IndividualList/Email.d.ts +10 -10
  1063. package/build/features/individual/screens/IndividualList/Email.js +113 -114
  1064. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +31 -15
  1065. package/build/features/individual/screens/IndividualList/IndividualList.js +73 -58
  1066. package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +12 -12
  1067. package/build/features/individual/screens/IndividualList/MobileNumber.js +140 -142
  1068. package/build/features/individual/screens/IndividualList/UserList.d.ts +5 -4
  1069. package/build/features/individual/screens/IndividualList/UserList.js +211 -211
  1070. package/build/features/individual/screens/IndividualList/index.d.ts +3 -3
  1071. package/build/features/individual/screens/IndividualList/index.js +2 -2
  1072. package/build/features/individual/screens/IndividualList/validation.d.ts +12 -12
  1073. package/build/features/individual/screens/IndividualList/validation.js +47 -40
  1074. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +10 -10
  1075. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +103 -103
  1076. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +12 -12
  1077. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +76 -76
  1078. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +9 -9
  1079. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +46 -46
  1080. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +8 -8
  1081. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +42 -44
  1082. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +9 -9
  1083. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +47 -47
  1084. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +36 -36
  1085. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +84 -84
  1086. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +8 -8
  1087. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +44 -44
  1088. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +21 -13
  1089. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +240 -184
  1090. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +12 -12
  1091. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +76 -76
  1092. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +12 -12
  1093. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +143 -142
  1094. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +8 -8
  1095. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +44 -44
  1096. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +12 -12
  1097. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +76 -76
  1098. package/build/features/individual/screens/IndividualPersonalInfo/index.d.ts +3 -3
  1099. package/build/features/individual/screens/IndividualPersonalInfo/index.js +2 -2
  1100. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +38 -38
  1101. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +80 -72
  1102. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +13 -13
  1103. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +144 -146
  1104. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +5 -5
  1105. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +64 -64
  1106. package/build/features/individual/screens/IndividualPhoneInfo/index.d.ts +3 -3
  1107. package/build/features/individual/screens/IndividualPhoneInfo/index.js +2 -2
  1108. package/build/features/individual/screens/IndividualPhoneInfo/validation.d.ts +8 -8
  1109. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +39 -31
  1110. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  1111. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  1112. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  1113. package/build/features/individual/screens/OperatorError/index.js +2 -0
  1114. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -4
  1115. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +10 -10
  1116. package/build/features/individual/screens/PrepareDataLoading/index.d.ts +2 -2
  1117. package/build/features/individual/screens/PrepareDataLoading/index.js +2 -2
  1118. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  1119. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  1120. package/build/features/individual/screens/ResetPasswordSuccess/index.d.ts +3 -3
  1121. package/build/features/individual/screens/ResetPasswordSuccess/index.js +2 -2
  1122. package/build/features/individual/screens/Success/Success.d.ts +5 -5
  1123. package/build/features/individual/screens/Success/Success.js +20 -20
  1124. package/build/features/individual/screens/Success/index.d.ts +3 -3
  1125. package/build/features/individual/screens/Success/index.js +2 -2
  1126. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  1127. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  1128. package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  1129. package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -2
  1130. package/build/features/individual/screens/Verify/OTPInput.d.ts +7 -7
  1131. package/build/features/individual/screens/Verify/OTPInput.js +51 -51
  1132. package/build/features/individual/screens/Verify/Verify.d.ts +5 -5
  1133. package/build/features/individual/screens/Verify/Verify.js +81 -80
  1134. package/build/features/individual/screens/Verify/index.d.ts +2 -2
  1135. package/build/features/individual/screens/Verify/index.js +2 -2
  1136. package/build/features/individual/screens/Verify/validation.d.ts +8 -8
  1137. package/build/features/individual/screens/Verify/validation.js +4 -4
  1138. package/build/features/kyc/KYC.d.ts +11 -0
  1139. package/build/features/kyc/KYC.js +99 -0
  1140. package/build/features/kyc/index.d.ts +1 -0
  1141. package/build/features/kyc/index.js +1 -0
  1142. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  1143. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  1144. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  1145. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  1146. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  1147. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  1148. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  1149. package/build/features/kyc/screens/Loading/index.js +2 -0
  1150. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  1151. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  1152. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  1153. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  1154. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  1155. package/build/features/kyc/screens/Success/Success.js +32 -0
  1156. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  1157. package/build/features/kyc/screens/Success/index.js +2 -0
  1158. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  1159. package/build/features/kyc/screens/Terms/Header.js +36 -0
  1160. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  1161. package/build/features/kyc/screens/Terms/Terms.js +87 -0
  1162. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  1163. package/build/features/kyc/screens/Terms/index.js +2 -0
  1164. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  1165. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  1166. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  1167. package/build/features/kyc/screens/TokenError/index.js +2 -0
  1168. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  1169. package/build/features/kyc/screens/Users/Users.js +76 -0
  1170. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  1171. package/build/features/kyc/screens/Users/index.js +2 -0
  1172. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  1173. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  1174. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  1175. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  1176. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  1177. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  1178. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  1179. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  1180. package/build/features/password/Password.d.ts +14 -10
  1181. package/build/features/password/Password.js +143 -86
  1182. package/build/features/password/index.d.ts +1 -1
  1183. package/build/features/password/index.js +1 -1
  1184. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -6
  1185. package/build/features/password/screens/CreatePassword/ConditionText.js +23 -23
  1186. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +8 -8
  1187. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +22 -22
  1188. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -5
  1189. package/build/features/password/screens/CreatePassword/CreatePassword.js +73 -67
  1190. package/build/features/password/screens/CreatePassword/Password.d.ts +5 -5
  1191. package/build/features/password/screens/CreatePassword/Password.js +76 -76
  1192. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -6
  1193. package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -29
  1194. package/build/features/password/screens/CreatePassword/index.d.ts +3 -3
  1195. package/build/features/password/screens/CreatePassword/index.js +2 -2
  1196. package/build/features/password/screens/CreatePassword/validation.d.ts +11 -11
  1197. package/build/features/password/screens/CreatePassword/validation.js +8 -8
  1198. package/build/features/password/screens/OTP/OTP.d.ts +8 -8
  1199. package/build/features/password/screens/OTP/OTP.js +91 -91
  1200. package/build/features/password/screens/OTP/OTPInput.d.ts +5 -5
  1201. package/build/features/password/screens/OTP/OTPInput.js +49 -49
  1202. package/build/features/password/screens/OTP/index.d.ts +3 -3
  1203. package/build/features/password/screens/OTP/index.js +2 -2
  1204. package/build/features/password/screens/OTP/validation.d.ts +8 -8
  1205. package/build/features/password/screens/OTP/validation.js +4 -4
  1206. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  1207. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  1208. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  1209. package/build/features/password/screens/OperatorError/index.js +2 -0
  1210. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  1211. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  1212. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  1213. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  1214. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  1215. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  1216. package/build/features/password/screens/ResetPasswordSuccess/index.d.ts +3 -3
  1217. package/build/features/password/screens/ResetPasswordSuccess/index.js +2 -2
  1218. package/build/features/password/screens/Success/Success.d.ts +5 -5
  1219. package/build/features/password/screens/Success/Success.js +26 -26
  1220. package/build/features/password/screens/Success/index.d.ts +3 -3
  1221. package/build/features/password/screens/Success/index.js +2 -2
  1222. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  1223. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  1224. package/build/features/password/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  1225. package/build/features/password/screens/SuccessWithFlowButtons/index.js +2 -2
  1226. package/build/features/password/screens/Verify/OTPInput.d.ts +7 -7
  1227. package/build/features/password/screens/Verify/OTPInput.js +51 -51
  1228. package/build/features/password/screens/Verify/Verify.d.ts +5 -5
  1229. package/build/features/password/screens/Verify/Verify.js +79 -78
  1230. package/build/features/password/screens/Verify/index.d.ts +2 -2
  1231. package/build/features/password/screens/Verify/index.js +2 -2
  1232. package/build/features/password/screens/Verify/validation.d.ts +8 -8
  1233. package/build/features/password/screens/Verify/validation.js +4 -4
  1234. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +7 -6
  1235. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +65 -65
  1236. package/build/features/shared/AcceptancePayouts/index.d.ts +2 -2
  1237. package/build/features/shared/AcceptancePayouts/index.js +2 -2
  1238. package/build/features/shared/Address/Address.d.ts +16 -15
  1239. package/build/features/shared/Address/Address.js +73 -73
  1240. package/build/features/shared/Address/CountryList.d.ts +72 -56
  1241. package/build/features/shared/Address/CountryList.js +89 -89
  1242. package/build/features/shared/Address/InputSelect.d.ts +71 -55
  1243. package/build/features/shared/Address/InputSelect.js +172 -172
  1244. package/build/features/shared/Address/InputText.d.ts +12 -12
  1245. package/build/features/shared/Address/InputText.js +12 -12
  1246. package/build/features/shared/Address/index.d.ts +2 -2
  1247. package/build/features/shared/Address/index.js +2 -2
  1248. package/build/features/shared/Background/Background.d.ts +14 -14
  1249. package/build/features/shared/Background/Background.js +35 -35
  1250. package/build/features/shared/Background/LogoBackground.d.ts +3 -3
  1251. package/build/features/shared/Background/LogoBackground.js +42 -42
  1252. package/build/features/shared/Background/index.d.ts +2 -2
  1253. package/build/features/shared/Background/index.js +2 -2
  1254. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +3 -2
  1255. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.js +31 -31
  1256. package/build/features/shared/BouncingDotsLoader/index.d.ts +2 -2
  1257. package/build/features/shared/BouncingDotsLoader/index.js +2 -2
  1258. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -14
  1259. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -179
  1260. package/build/features/shared/BusinessCountry/index.d.ts +2 -2
  1261. package/build/features/shared/BusinessCountry/index.js +2 -2
  1262. package/build/features/shared/Button/Button.d.ts +14 -13
  1263. package/build/features/shared/Button/Button.js +117 -115
  1264. package/build/features/shared/Button/EmailProvidersButtons.d.ts +14 -13
  1265. package/build/features/shared/Button/EmailProvidersButtons.js +76 -74
  1266. package/build/features/shared/Button/FlowsButtons.d.ts +29 -28
  1267. package/build/features/shared/Button/FlowsButtons.js +246 -232
  1268. package/build/features/shared/Button/IndividualActionButtons.d.ts +21 -21
  1269. package/build/features/shared/Button/IndividualActionButtons.js +156 -156
  1270. package/build/features/shared/Button/MobileButton.d.ts +9 -8
  1271. package/build/features/shared/Button/MobileButton.js +44 -44
  1272. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  1273. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +55 -46
  1274. package/build/features/shared/Button/SuccessButton.d.ts +9 -8
  1275. package/build/features/shared/Button/SuccessButton.js +86 -86
  1276. package/build/features/shared/Button/index.d.ts +9 -9
  1277. package/build/features/shared/Button/index.js +9 -9
  1278. package/build/features/shared/Calender/Calender.d.ts +14 -12
  1279. package/build/features/shared/Calender/Calender.js +56 -56
  1280. package/build/features/shared/Calender/index.d.ts +2 -2
  1281. package/build/features/shared/Calender/index.js +2 -2
  1282. package/build/features/shared/CheckIcon/CheckIcon.d.ts +8 -7
  1283. package/build/features/shared/CheckIcon/CheckIcon.js +15 -15
  1284. package/build/features/shared/CheckIcon/index.d.ts +2 -2
  1285. package/build/features/shared/CheckIcon/index.js +2 -2
  1286. package/build/features/shared/Chip/Chip.d.ts +3 -2
  1287. package/build/features/shared/Chip/Chip.js +21 -21
  1288. package/build/features/shared/Chip/index.d.ts +2 -2
  1289. package/build/features/shared/Chip/index.js +2 -2
  1290. package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -5
  1291. package/build/features/shared/ClearIcon/ClearIcon.js +26 -26
  1292. package/build/features/shared/ClearIcon/index.d.ts +2 -2
  1293. package/build/features/shared/ClearIcon/index.js +2 -2
  1294. package/build/features/shared/Containers/FeatureContainer.d.ts +9 -8
  1295. package/build/features/shared/Containers/FeatureContainer.js +39 -37
  1296. package/build/features/shared/Containers/ScreenContainer.d.ts +4 -4
  1297. package/build/features/shared/Containers/ScreenContainer.js +29 -29
  1298. package/build/features/shared/Containers/index.d.ts +3 -3
  1299. package/build/features/shared/Containers/index.js +3 -3
  1300. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +7 -7
  1301. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -58
  1302. package/build/features/shared/CreateAccountLoading/index.d.ts +2 -2
  1303. package/build/features/shared/CreateAccountLoading/index.js +2 -2
  1304. package/build/features/shared/DataLoading/DataLoading.d.ts +9 -9
  1305. package/build/features/shared/DataLoading/DataLoading.js +58 -58
  1306. package/build/features/shared/DataLoading/index.d.ts +2 -2
  1307. package/build/features/shared/DataLoading/index.js +2 -2
  1308. package/build/features/shared/Dialog/CloseDialog.d.ts +11 -10
  1309. package/build/features/shared/Dialog/CloseDialog.js +71 -71
  1310. package/build/features/shared/Dialog/DialogContainer.d.ts +8 -8
  1311. package/build/features/shared/Dialog/DialogContainer.js +57 -56
  1312. package/build/features/shared/Dialog/index.d.ts +4 -4
  1313. package/build/features/shared/Dialog/index.js +4 -4
  1314. package/build/features/shared/Dot/Dot.d.ts +8 -7
  1315. package/build/features/shared/Dot/Dot.js +29 -29
  1316. package/build/features/shared/Dot/index.d.ts +2 -2
  1317. package/build/features/shared/Dot/index.js +2 -2
  1318. package/build/features/shared/EndAdornment/EndAdornment.d.ts +10 -9
  1319. package/build/features/shared/EndAdornment/EndAdornment.js +17 -17
  1320. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +7 -6
  1321. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +13 -13
  1322. package/build/features/shared/EndAdornment/index.d.ts +3 -3
  1323. package/build/features/shared/EndAdornment/index.js +3 -3
  1324. package/build/features/shared/Footer/Footer.d.ts +2 -1
  1325. package/build/features/shared/Footer/Footer.js +29 -29
  1326. package/build/features/shared/Footer/PoweredByFooter.d.ts +9 -8
  1327. package/build/features/shared/Footer/PoweredByFooter.js +36 -36
  1328. package/build/features/shared/Footer/index.d.ts +3 -3
  1329. package/build/features/shared/Footer/index.js +3 -3
  1330. package/build/features/shared/GenericError/GenericError.d.ts +7 -7
  1331. package/build/features/shared/GenericError/GenericError.js +55 -55
  1332. package/build/features/shared/GenericError/index.d.ts +2 -2
  1333. package/build/features/shared/GenericError/index.js +2 -2
  1334. package/build/features/shared/Input/Input.d.ts +27 -19
  1335. package/build/features/shared/Input/Input.js +55 -55
  1336. package/build/features/shared/Input/index.d.ts +3 -3
  1337. package/build/features/shared/Input/index.js +2 -2
  1338. package/build/features/shared/InputSelect/InputSelect.d.ts +4 -3
  1339. package/build/features/shared/InputSelect/InputSelect.js +33 -33
  1340. package/build/features/shared/InputSelect/index.d.ts +2 -2
  1341. package/build/features/shared/InputSelect/index.js +2 -2
  1342. package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
  1343. package/build/features/shared/Mandatory/Mandatory.js +20 -20
  1344. package/build/features/shared/Mandatory/index.d.ts +2 -2
  1345. package/build/features/shared/Mandatory/index.js +2 -2
  1346. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  1347. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  1348. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  1349. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  1350. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  1351. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  1352. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  1353. package/build/features/shared/NafathVerification/index.js +2 -0
  1354. package/build/features/shared/OTP/OTP.d.ts +11 -11
  1355. package/build/features/shared/OTP/OTP.js +93 -93
  1356. package/build/features/shared/OTP/index.d.ts +2 -2
  1357. package/build/features/shared/OTP/index.js +2 -2
  1358. package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -12
  1359. package/build/features/shared/PaciVerification/PaciVerification.js +91 -91
  1360. package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -7
  1361. package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -27
  1362. package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -5
  1363. package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -8
  1364. package/build/features/shared/PaciVerification/index.d.ts +2 -2
  1365. package/build/features/shared/PaciVerification/index.js +2 -2
  1366. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -7
  1367. package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -37
  1368. package/build/features/shared/PasswordIcon/index.d.ts +2 -2
  1369. package/build/features/shared/PasswordIcon/index.js +2 -2
  1370. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +13 -12
  1371. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +102 -102
  1372. package/build/features/shared/SalesChannels/SalesChannel.d.ts +14 -14
  1373. package/build/features/shared/SalesChannels/SalesChannel.js +154 -154
  1374. package/build/features/shared/SalesChannels/index.d.ts +2 -2
  1375. package/build/features/shared/SalesChannels/index.js +2 -2
  1376. package/build/features/shared/Search/Search.d.ts +8 -7
  1377. package/build/features/shared/Search/Search.js +13 -13
  1378. package/build/features/shared/Search/index.d.ts +2 -2
  1379. package/build/features/shared/Search/index.js +2 -2
  1380. package/build/features/shared/SearchIcon/SearchIcon.d.ts +6 -5
  1381. package/build/features/shared/SearchIcon/SearchIcon.js +26 -26
  1382. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +24 -19
  1383. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +133 -136
  1384. package/build/features/shared/SuccessFlowButtons/index.d.ts +2 -2
  1385. package/build/features/shared/SuccessFlowButtons/index.js +2 -2
  1386. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +14 -14
  1387. package/build/features/shared/SuccessScreen/SuccessScreen.js +63 -63
  1388. package/build/features/shared/SuccessScreen/index.d.ts +2 -2
  1389. package/build/features/shared/SuccessScreen/index.js +2 -2
  1390. package/build/features/shared/UploadFile/FileUpload.d.ts +32 -32
  1391. package/build/features/shared/UploadFile/FileUpload.js +267 -267
  1392. package/build/features/shared/UploadFile/UploadFile.d.ts +29 -29
  1393. package/build/features/shared/UploadFile/UploadFile.js +91 -91
  1394. package/build/features/shared/UploadFile/UploadWrapper.d.ts +36 -36
  1395. package/build/features/shared/UploadFile/UploadWrapper.js +115 -115
  1396. package/build/features/shared/UploadFile/index.d.ts +3 -3
  1397. package/build/features/shared/UploadFile/index.js +3 -3
  1398. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +29 -29
  1399. package/build/features/shared/UploadMultipleFile/UploadFile.js +273 -273
  1400. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +36 -36
  1401. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +178 -178
  1402. package/build/features/shared/UploadMultipleFile/index.d.ts +2 -2
  1403. package/build/features/shared/UploadMultipleFile/index.js +2 -2
  1404. package/build/features/signIn/SignIn.d.ts +8 -7
  1405. package/build/features/signIn/SignIn.js +61 -50
  1406. package/build/features/signIn/index.d.ts +1 -1
  1407. package/build/features/signIn/index.js +1 -1
  1408. package/build/features/signIn/screens/Email/Email.d.ts +5 -5
  1409. package/build/features/signIn/screens/Email/Email.js +98 -98
  1410. package/build/features/signIn/screens/Email/EmailField.d.ts +5 -5
  1411. package/build/features/signIn/screens/Email/EmailField.js +55 -55
  1412. package/build/features/signIn/screens/Email/index.d.ts +3 -3
  1413. package/build/features/signIn/screens/Email/index.js +2 -2
  1414. package/build/features/signIn/screens/Email/validation.d.ts +8 -8
  1415. package/build/features/signIn/screens/Email/validation.js +5 -5
  1416. package/build/features/signIn/screens/Mobile/Mobile.d.ts +5 -5
  1417. package/build/features/signIn/screens/Mobile/Mobile.js +111 -111
  1418. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +11 -11
  1419. package/build/features/signIn/screens/Mobile/MobileNumber.js +152 -151
  1420. package/build/features/signIn/screens/Mobile/index.d.ts +3 -3
  1421. package/build/features/signIn/screens/Mobile/index.js +2 -2
  1422. package/build/features/signIn/screens/Mobile/validation.d.ts +8 -8
  1423. package/build/features/signIn/screens/Mobile/validation.js +36 -28
  1424. package/build/features/signIn/screens/OTP/OTP.d.ts +5 -5
  1425. package/build/features/signIn/screens/OTP/OTP.js +94 -93
  1426. package/build/features/signIn/screens/OTP/OTPInput.d.ts +5 -5
  1427. package/build/features/signIn/screens/OTP/OTPInput.js +55 -55
  1428. package/build/features/signIn/screens/OTP/index.d.ts +3 -3
  1429. package/build/features/signIn/screens/OTP/index.js +2 -2
  1430. package/build/features/signIn/screens/OTP/validation.d.ts +8 -8
  1431. package/build/features/signIn/screens/OTP/validation.js +4 -4
  1432. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  1433. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  1434. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  1435. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  1436. package/build/features/signIn/screens/Password/Password.d.ts +5 -5
  1437. package/build/features/signIn/screens/Password/Password.js +68 -68
  1438. package/build/features/signIn/screens/Password/PasswordInput.d.ts +5 -5
  1439. package/build/features/signIn/screens/Password/PasswordInput.js +28 -28
  1440. package/build/features/signIn/screens/Password/index.d.ts +3 -3
  1441. package/build/features/signIn/screens/Password/index.js +2 -2
  1442. package/build/features/signIn/screens/Password/validation.d.ts +8 -8
  1443. package/build/features/signIn/screens/Password/validation.js +4 -4
  1444. package/build/features/tax/Tax.d.ts +14 -10
  1445. package/build/features/tax/Tax.js +90 -77
  1446. package/build/features/tax/index.d.ts +1 -1
  1447. package/build/features/tax/index.js +1 -1
  1448. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  1449. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  1450. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  1451. package/build/features/tax/screens/OperatorError/index.js +2 -0
  1452. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -4
  1453. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +10 -10
  1454. package/build/features/tax/screens/PrepareDataLoading/index.d.ts +2 -2
  1455. package/build/features/tax/screens/PrepareDataLoading/index.js +2 -2
  1456. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -5
  1457. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -21
  1458. package/build/features/tax/screens/ResetPasswordSuccess/index.d.ts +3 -3
  1459. package/build/features/tax/screens/ResetPasswordSuccess/index.js +2 -2
  1460. package/build/features/tax/screens/Success/Success.d.ts +5 -5
  1461. package/build/features/tax/screens/Success/Success.js +22 -22
  1462. package/build/features/tax/screens/Success/index.d.ts +3 -3
  1463. package/build/features/tax/screens/Success/index.js +2 -2
  1464. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
  1465. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +30 -30
  1466. package/build/features/tax/screens/SuccessWithFlowButtons/index.d.ts +2 -2
  1467. package/build/features/tax/screens/SuccessWithFlowButtons/index.js +2 -2
  1468. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +6 -5
  1469. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +66 -66
  1470. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -4
  1471. package/build/features/tax/screens/TaxDetails/TaxDetails.js +81 -75
  1472. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +9 -8
  1473. package/build/features/tax/screens/TaxDetails/TaxDocument.js +50 -50
  1474. package/build/features/tax/screens/TaxDetails/VATId.d.ts +7 -6
  1475. package/build/features/tax/screens/TaxDetails/VATId.js +42 -42
  1476. package/build/features/tax/screens/TaxDetails/index.d.ts +3 -3
  1477. package/build/features/tax/screens/TaxDetails/index.js +2 -2
  1478. package/build/features/tax/screens/TaxDetails/validation.d.ts +14 -14
  1479. package/build/features/tax/screens/TaxDetails/validation.js +8 -8
  1480. package/build/features/tax/screens/Verify/OTPInput.d.ts +7 -7
  1481. package/build/features/tax/screens/Verify/OTPInput.js +51 -51
  1482. package/build/features/tax/screens/Verify/Verify.d.ts +5 -5
  1483. package/build/features/tax/screens/Verify/Verify.js +76 -75
  1484. package/build/features/tax/screens/Verify/index.d.ts +2 -2
  1485. package/build/features/tax/screens/Verify/index.js +2 -2
  1486. package/build/features/tax/screens/Verify/validation.d.ts +8 -8
  1487. package/build/features/tax/screens/Verify/validation.js +4 -4
  1488. package/build/hooks/index.d.ts +25 -22
  1489. package/build/hooks/index.js +25 -22
  1490. package/build/hooks/useAppConfig.d.ts +12 -12
  1491. package/build/hooks/useAppConfig.js +68 -67
  1492. package/build/hooks/useAppDispatch.d.ts +16 -15
  1493. package/build/hooks/useAppDispatch.js +2 -2
  1494. package/build/hooks/useAppSelector.d.ts +3 -3
  1495. package/build/hooks/useAppSelector.js +2 -2
  1496. package/build/hooks/useAppTheme.d.ts +4 -4
  1497. package/build/hooks/useAppTheme.js +16 -15
  1498. package/build/hooks/useContainerDimensions.d.ts +4 -4
  1499. package/build/hooks/useContainerDimensions.js +21 -21
  1500. package/build/hooks/useCountDown.d.ts +10 -0
  1501. package/build/hooks/useCountDown.js +17 -0
  1502. package/build/hooks/useCountUp.d.ts +9 -9
  1503. package/build/hooks/useCountUp.js +17 -17
  1504. package/build/hooks/useCountry.d.ts +5 -5
  1505. package/build/hooks/useCountry.js +8 -8
  1506. package/build/hooks/useDataNoneEditable.d.ts +2 -2
  1507. package/build/hooks/useDataNoneEditable.js +19 -19
  1508. package/build/hooks/useDataVerified.d.ts +6 -6
  1509. package/build/hooks/useDataVerified.js +19 -19
  1510. package/build/hooks/useErrorListener.d.ts +2 -2
  1511. package/build/hooks/useErrorListener.js +27 -27
  1512. package/build/hooks/useEventListener.d.ts +5 -5
  1513. package/build/hooks/useEventListener.js +20 -20
  1514. package/build/hooks/useExcludeReadOnlyFelids.d.ts +11 -11
  1515. package/build/hooks/useExcludeReadOnlyFelids.js +33 -33
  1516. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  1517. package/build/hooks/useFormDirtyCheck.js +66 -0
  1518. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +6 -6
  1519. package/build/hooks/useFormErrorAndUpdateReadOnly.js +48 -48
  1520. package/build/hooks/useFormReadOnly.d.ts +6 -6
  1521. package/build/hooks/useFormReadOnly.js +40 -40
  1522. package/build/hooks/useLanguage.d.ts +4 -4
  1523. package/build/hooks/useLanguage.js +8 -8
  1524. package/build/hooks/useRedirectionListener.d.ts +4 -4
  1525. package/build/hooks/useRedirectionListener.js +12 -12
  1526. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  1527. package/build/hooks/useSanitizedTranslation.js +15 -0
  1528. package/build/hooks/useScreen.d.ts +3 -3
  1529. package/build/hooks/useScreen.js +14 -14
  1530. package/build/hooks/useSetFromDefaultValues.d.ts +2 -2
  1531. package/build/hooks/useSetFromDefaultValues.js +26 -26
  1532. package/build/hooks/useStepStartedListener.d.ts +1 -1
  1533. package/build/hooks/useStepStartedListener.js +10 -10
  1534. package/build/hooks/useThemeMode.d.ts +4 -4
  1535. package/build/hooks/useThemeMode.js +7 -7
  1536. package/build/hooks/useVerifyToken.d.ts +18 -16
  1537. package/build/hooks/useVerifyToken.js +30 -25
  1538. package/build/hooks/useWindowSize.d.ts +6 -6
  1539. package/build/hooks/useWindowSize.js +19 -19
  1540. package/build/i18n.d.ts +2 -2
  1541. package/build/i18n.js +34 -34
  1542. package/build/index.css +360 -120
  1543. package/build/index.d.ts +17 -16
  1544. package/build/index.js +32 -30
  1545. package/build/theme/components.d.ts +2 -2
  1546. package/build/theme/components.js +26 -19
  1547. package/build/theme/index.d.ts +1 -1
  1548. package/build/theme/index.js +1 -1
  1549. package/build/theme/palette.d.ts +3 -3
  1550. package/build/theme/palette.js +70 -69
  1551. package/build/theme/shadows.d.ts +2 -2
  1552. package/build/theme/shadows.js +27 -27
  1553. package/build/theme/theme.d.ts +2 -2
  1554. package/build/theme/theme.js +43 -43
  1555. package/build/theme/typography.d.ts +2 -2
  1556. package/build/theme/typography.js +31 -31
  1557. package/build/utils/array.d.ts +79 -79
  1558. package/build/utils/array.js +366 -366
  1559. package/build/utils/common.d.ts +6 -5
  1560. package/build/utils/common.js +56 -43
  1561. package/build/utils/date.d.ts +3 -3
  1562. package/build/utils/date.js +17 -17
  1563. package/build/utils/device.d.ts +7 -7
  1564. package/build/utils/device.js +32 -32
  1565. package/build/utils/error.d.ts +3 -2
  1566. package/build/utils/error.js +9 -6
  1567. package/build/utils/gtm.d.ts +6 -6
  1568. package/build/utils/gtm.js +29 -29
  1569. package/build/utils/html.d.ts +4 -4
  1570. package/build/utils/html.js +27 -27
  1571. package/build/utils/index.d.ts +13 -13
  1572. package/build/utils/index.js +13 -13
  1573. package/build/utils/locale.d.ts +2 -2
  1574. package/build/utils/locale.js +23 -23
  1575. package/build/utils/object.d.ts +11 -10
  1576. package/build/utils/object.js +69 -66
  1577. package/build/utils/rsa.d.ts +2 -2
  1578. package/build/utils/rsa.js +19 -19
  1579. package/build/utils/storage.d.ts +5 -5
  1580. package/build/utils/storage.js +21 -21
  1581. package/build/utils/string.d.ts +80 -76
  1582. package/build/utils/string.js +346 -321
  1583. package/build/utils/style.d.ts +1 -1
  1584. package/build/utils/style.js +1 -1
  1585. package/build/utils/validation.d.ts +23 -21
  1586. package/build/utils/validation.js +70 -64
  1587. package/package.json +134 -131
  1588. package/build/features/auth/screens/NID/DOB.d.ts +0 -6
  1589. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  1590. package/build/features/business/screens/OTP/OTP.js +0 -90
  1591. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  1592. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  1593. package/build/features/business/screens/OTP/index.d.ts +0 -3
  1594. package/build/features/business/screens/OTP/index.js +0 -2
  1595. package/build/features/business/screens/OTP/validation.js +0 -4
  1596. package/build/features/connect/screens/NID/DOB.d.ts +0 -5
  1597. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
  1598. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  1599. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  1600. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  1601. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  1602. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  1603. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  1604. package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -6
  1605. package/build/features/shared/Button/AbsherButton.d.ts +0 -7
@@ -1,870 +1,1216 @@
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
- return new (P || (P = Promise))(function (resolve, reject) {
15
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
- var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
- function verb(n) { return function (v) { return step([n, v]); }; }
25
- function step(op) {
26
- if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
- if (y = 0, t) op = [op[0] & 2, t.value];
30
- switch (op[0]) {
31
- case 0: case 1: t = op; break;
32
- case 4: _.label++; return { value: op[1], done: false };
33
- case 5: _.label++; y = op[1]; op = [0]; continue;
34
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
- default:
36
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
- if (t[2]) _.ops.pop();
41
- _.trys.pop(); continue;
42
- }
43
- op = body.call(thisArg, _);
44
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
- }
47
- };
48
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
49
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50
- if (ar || !(i in from)) {
51
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
52
- ar[i] = from[i];
53
- }
54
- }
55
- return to.concat(ar || Array.prototype.slice.call(from));
56
- };
57
- var _a;
58
- import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
- import { AuthForType, FlowsTypes } from '../../../@types';
60
- import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, defaultCountry } from '../../../constants';
61
- import API from '../../../api';
62
- import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handleSetCountryByIso2 } from '../../../app/settings';
63
- import { findCountryByIddPrefix, isSA, openConnect, sleep } from '../../../utils';
64
- export var updateBusinessCountry = createAsyncThunk('auth/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
- var auth, payload, data;
66
- return __generator(this, function (_a) {
67
- switch (_a.label) {
68
- case 0:
69
- auth = thunkApi.getState().auth;
70
- payload = {
71
- id: auth.data.leadId || '',
72
- country_code: countryCode,
73
- encryption_contract: []
74
- };
75
- return [4, API.leadService.updateLead(payload)];
76
- case 1:
77
- data = _a.sent();
78
- return [2, data];
79
- }
80
- });
81
- }); });
82
- export var retrieveLeadIdentityByIdAsync = createAsyncThunk('auth/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
83
- var settingData, countryCode, data, _a, country_code, contact, businessCountryIso2, ipCountryIso2, phone;
84
- var _b, _c;
85
- return __generator(this, function (_d) {
86
- switch (_d.label) {
87
- case 0:
88
- settingData = thunkApi.getState().settings.data;
89
- countryCode = settingData.businessCountry;
90
- return [4, API.leadService.retrieveLeadIdentity(leadId)];
91
- case 1:
92
- data = _d.sent();
93
- _a = data || {}, country_code = _a.country_code, contact = _a.contact;
94
- businessCountryIso2 = (_b = settingData.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2;
95
- ipCountryIso2 = (_c = settingData.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2;
96
- if (country_code) {
97
- thunkApi.dispatch(handleSetCountryByIso2(country_code));
98
- businessCountryIso2 = country_code;
99
- }
100
- phone = (contact || {}).phone;
101
- if (phone === null || phone === void 0 ? void 0 : phone.country_code)
102
- countryCode = findCountryByIddPrefix(settingData.countries, phone.country_code);
103
- if (!businessCountryIso2 && ipCountryIso2 && settingData.appConfig.scope === 'auth') {
104
- thunkApi.dispatch(handleSetCountryByIso2(ipCountryIso2));
105
- businessCountryIso2 = ipCountryIso2;
106
- }
107
- if (!country_code && !businessCountryIso2) {
108
- thunkApi.dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
109
- return [2, { data: data, countryCode: countryCode }];
110
- }
111
- if (!(data === null || data === void 0 ? void 0 : data.identification) && phone) {
112
- thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
113
- return [2, { data: data, countryCode: countryCode }];
114
- }
115
- if (country_code && !businessCountryIso2) {
116
- thunkApi.dispatch(handleSetCountryByIso2(data.country_code));
117
- if (!isSA(data.country_code))
118
- thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
119
- return [2, { data: data, countryCode: countryCode }];
120
- }
121
- if (!isSA(businessCountryIso2)) {
122
- thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
123
- return [2, { data: data, countryCode: countryCode }];
124
- }
125
- return [2, { data: data, countryCode: countryCode }];
126
- }
127
- });
128
- }); });
129
- export var createMobileAuth = createAsyncThunk('auth/createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
130
- var _a, settings, auth, requestBody, data;
131
- var _b, _c;
132
- return __generator(this, function (_d) {
133
- switch (_d.label) {
134
- case 0:
135
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
136
- requestBody = {
137
- country: settings.data.businessCountry.iso2,
138
- scope: settings.data.appConfig.scope,
139
- lang: settings.data.language,
140
- lead_id: auth.data.leadId,
141
- user_credentail: {
142
- phone: params.mobile || '',
143
- code: params.countryCode.idd_prefix.toString()
144
- },
145
- sign_in: false,
146
- is_lead: true,
147
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_MOBILE,
148
- encryption_contract: ['user_credentail.phone', 'user_credentail.code']
149
- };
150
- return [4, API.authService.createAuth(requestBody)];
151
- case 1:
152
- data = _d.sent();
153
- thunkApi.dispatch(handleNextScreenStep());
154
- (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
155
- return [2, { response: data, formData: params }];
156
- }
157
- });
158
- }); });
159
- export var resendMobileAuthOTP = createAsyncThunk('auth/resendMobileAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
160
- var _a, settings, auth, requestBody, data;
161
- return __generator(this, function (_b) {
162
- switch (_b.label) {
163
- case 0:
164
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
165
- requestBody = {
166
- country: settings.data.businessCountry.iso2,
167
- scope: settings.data.appConfig.scope,
168
- lang: settings.data.language,
169
- lead_id: auth.data.leadId,
170
- user_credentail: {
171
- phone: params.mobile,
172
- code: params.countryCode.idd_prefix.toString()
173
- },
174
- sign_in: false,
175
- is_lead: true,
176
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_MOBILE,
177
- encryption_contract: ['user_credentail.phone', 'user_credentail.code']
178
- };
179
- return [4, API.authService.createAuth(requestBody)];
180
- case 1:
181
- data = _b.sent();
182
- return [2, { response: data, formData: params }];
183
- }
184
- });
185
- }); });
186
- export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
187
- var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, scope, payload, data;
188
- var _d, _e, _f, _g;
189
- return __generator(this, function (_h) {
190
- switch (_h.label) {
191
- case 0:
192
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
193
- _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
194
- _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
195
- if (!auth_token)
196
- throw new Error('Auth token is missing');
197
- scope = settings.data.appConfig.scope;
198
- payload = {
199
- auth_token: auth_token,
200
- lead_id: leadId,
201
- data: params.otp,
202
- auth_type: 2,
203
- device_token: device_token,
204
- service_name: service_name,
205
- sign_in: false,
206
- step_name: AUTH_STEP_NAMES.VERIFY_AUTH_MOBILE,
207
- encryption_contract: ['data']
208
- };
209
- return [4, API.authService.verifyAuth(payload)];
210
- case 1:
211
- data = (_h.sent()).data;
212
- if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
213
- throw new Error(data.errors[0].description);
214
- if (scope === 'merchant') {
215
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
216
- return [2, data];
217
- }
218
- (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
219
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
220
- return [2, data];
221
- }
222
- });
223
- }); });
224
- export var createNIDAuth = createAsyncThunk('auth/createNIDAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
225
- var _a, settings, auth, dob, nid, nidType, countryCode, requestBody, data;
226
- var _b, _c;
227
- return __generator(this, function (_d) {
228
- switch (_d.label) {
229
- case 0:
230
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
231
- dob = params.dob, nid = params.nid;
232
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
233
- countryCode = settings.data.businessCountry.iso2;
234
- requestBody = {
235
- country: countryCode,
236
- scope: settings.data.appConfig.scope,
237
- lang: settings.data.language,
238
- lead_id: auth.data.leadId,
239
- user_credentail: {
240
- identification_id: nid,
241
- identification_id_type: nidType,
242
- date_of_birth: dob,
243
- country_code: countryCode
244
- },
245
- sign_in: false,
246
- is_lead: true,
247
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_NID,
248
- encryption_contract: [
249
- 'user_credentail.country_code',
250
- 'user_credentail.identification_id',
251
- 'user_credentail.identification_id_type',
252
- 'user_credentail.date_of_birth'
253
- ]
254
- };
255
- return [4, API.authService.createAuth(requestBody)];
256
- case 1:
257
- data = _d.sent();
258
- thunkApi.dispatch(handleNextScreenStep());
259
- (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
260
- return [2, { response: data, formData: params }];
261
- }
262
- });
263
- }); });
264
- export var resendNIDAuthOTP = createAsyncThunk('auth/resendNIDAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
265
- var _a, settings, auth, dob, nid, nidType, countryCode, requestBody, data;
266
- return __generator(this, function (_b) {
267
- switch (_b.label) {
268
- case 0:
269
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
270
- dob = params.dob, nid = params.nid;
271
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
272
- countryCode = settings.data.businessCountry.iso2;
273
- requestBody = {
274
- country: countryCode,
275
- scope: settings.data.appConfig.scope,
276
- lang: settings.data.language,
277
- lead_id: auth.data.leadId,
278
- user_credentail: {
279
- identification_id: nid,
280
- identification_id_type: nidType,
281
- date_of_birth: dob,
282
- country_code: countryCode
283
- },
284
- sign_in: false,
285
- is_lead: true,
286
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_NID,
287
- encryption_contract: [
288
- 'user_credentail.country_code',
289
- 'user_credentail.identification_id',
290
- 'user_credentail.identification_id_type',
291
- 'user_credentail.date_of_birth'
292
- ]
293
- };
294
- return [4, API.authService.createAuth(requestBody)];
295
- case 1:
296
- data = _b.sent();
297
- return [2, { response: data, formData: params }];
298
- }
299
- });
300
- }); });
301
- export var verifyNIDOtp = createAsyncThunk('auth/verifyNIDOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
302
- var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, scope, payload, data;
303
- var _d, _e, _f, _g;
304
- return __generator(this, function (_h) {
305
- switch (_h.label) {
306
- case 0:
307
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
308
- _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
309
- _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
310
- if (!auth_token)
311
- throw new Error('Auth token is missing');
312
- scope = settings.data.appConfig.scope;
313
- payload = {
314
- auth_token: auth_token,
315
- lead_id: leadId,
316
- data: params.otp,
317
- auth_type: 2,
318
- device_token: device_token,
319
- service_name: service_name || 'ABSHER',
320
- sign_in: false,
321
- step_name: AUTH_STEP_NAMES.VERIFY_AUTH_NID,
322
- encryption_contract: ['data']
323
- };
324
- return [4, API.authService.verifyAuth(payload)];
325
- case 1:
326
- data = (_h.sent()).data;
327
- if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
328
- throw new Error(data.errors[0].description);
329
- if (scope === 'merchant') {
330
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
331
- return [2, data];
332
- }
333
- (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
334
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
335
- return [2, data];
336
- }
337
- });
338
- }); });
339
- export var createCivilIdAuth = createAsyncThunk('auth/createCivilAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
340
- var settings, countryCode, requestBody, data;
341
- var _a, _b;
342
- return __generator(this, function (_c) {
343
- switch (_c.label) {
344
- case 0:
345
- settings = thunkApi.getState().settings;
346
- countryCode = settings.data.businessCountry.iso2;
347
- requestBody = {
348
- country: settings.data.businessCountry.iso2,
349
- scope: settings.data.appConfig.scope,
350
- lang: settings.data.language,
351
- user_credentail: {
352
- identification_id: params.civilId,
353
- country_code: countryCode
354
- },
355
- sign_in: false,
356
- is_lead: true,
357
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
358
- encryption_contract: ['user_credentail.identification_id']
359
- };
360
- return [4, API.authService.createAuth(requestBody)];
361
- case 1:
362
- data = _c.sent();
363
- thunkApi.dispatch(handleNextScreenStep());
364
- (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody.user_credentail);
365
- return [2, { response: data, formData: params }];
366
- }
367
- });
368
- }); });
369
- export var verifyPACI = createAsyncThunk('auth/verifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
370
- var _a, settings, auth, authResponse, scope, expiry, interval, maxCalls, count, data, isSuccess;
371
- var _b, _c, _d;
372
- return __generator(this, function (_e) {
373
- switch (_e.label) {
374
- case 0:
375
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
376
- authResponse = (auth.data.responseData || {}).authResponse;
377
- scope = settings.data.appConfig.scope;
378
- expiry = (authResponse === null || authResponse === void 0 ? void 0 : authResponse.expiry) || 120;
379
- interval = 3;
380
- maxCalls = Math.floor(expiry / interval);
381
- count = 1;
382
- _e.label = 1;
383
- case 1:
384
- if (!(count <= maxCalls)) return [3, 5];
385
- if (thunkApi.signal.aborted) {
386
- return [3, 5];
387
- }
388
- return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
389
- case 2:
390
- data = _e.sent();
391
- isSuccess = ((_b = data === null || data === void 0 ? void 0 : data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
392
- if (isSuccess) {
393
- if (scope === 'merchant') {
394
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
395
- return [2, data];
396
- }
397
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
398
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
399
- return [2, data];
400
- }
401
- return [4, sleep(interval * 1000)];
402
- case 3:
403
- _e.sent();
404
- _e.label = 4;
405
- case 4:
406
- count++;
407
- return [3, 1];
408
- case 5: throw new Error('paci_verification_failed');
409
- }
410
- });
411
- }); });
412
- export var checkAccountAvailability = createAsyncThunk('auth/checkAccountAvailability', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
413
- var _a, settings, auth, authConfigData, isDataHasIndividualOnly, data, authId, accountData, _b, step_name, brands, entities, brandList, entityList, isExistingUser;
414
- var _c;
415
- return __generator(this, function (_d) {
416
- switch (_d.label) {
417
- case 0:
418
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
419
- authConfigData = settings.data.appConfig.data;
420
- isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
421
- data = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.authResponse;
422
- authId = data === null || data === void 0 ? void 0 : data.id;
423
- return [4, API.accountService.checkAccountAvailability(data === null || data === void 0 ? void 0 : data.individual_id)];
424
- case 1:
425
- accountData = _d.sent();
426
- _b = accountData || {}, step_name = _b.step_name, brands = _b.brands, entities = _b.entities;
427
- brandList = brands || [];
428
- entityList = entities || [];
429
- isExistingUser = step_name === 'select_account';
430
- if (!(isExistingUser && isDataHasIndividualOnly && authId)) return [3, 3];
431
- return [4, thunkApi.dispatch(confirmInfo({ authId: authId }))];
432
- case 2:
433
- _d.sent();
434
- return [2, { brandList: brandList, entityList: entityList }];
435
- case 3:
436
- if (isExistingUser && !isDataHasIndividualOnly && brandList.length && entityList.length) {
437
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_AUTHENTICATION_LIST_STEP')); });
438
- return [2, { brandList: brandList, entityList: entityList }];
439
- }
440
- if (auth.data.leadId) {
441
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
442
- return [2, { brandList: brandList, entityList: entityList }];
443
- }
444
- thunkApi.dispatch(handleNextScreenStep('AUTH_ACCOUNT_NOT_FOUND_STEP'));
445
- return [2, { brandList: brandList, entityList: entityList }];
446
- }
447
- });
448
- }); });
449
- export var getMerchantList = createAsyncThunk('auth/getMerchantList', function (_a, thunkApi) {
450
- var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
451
- return __awaiter(void 0, void 0, void 0, function () {
452
- var _b, settings, auth, platforms, payment_provider, payload, merchants, list;
453
- var _c, _d, _e, _f, _g, _h;
454
- return __generator(this, function (_j) {
455
- switch (_j.label) {
456
- case 0:
457
- _b = thunkApi.getState(), settings = _b.settings, auth = _b.auth;
458
- platforms = (_e = (_d = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.leadResponse) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
459
- payment_provider = (_h = (_g = (_f = auth.data.responseData) === null || _f === void 0 ? void 0 : _f.leadResponse) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
460
- payload = {
461
- business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
462
- brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
463
- create_if_not_present: true,
464
- platforms: platforms,
465
- payment_provider: payment_provider
466
- };
467
- return [4, API.entityService.getMerchantListUsingEntityId(payload)];
468
- case 1:
469
- merchants = (_j.sent()).merchants;
470
- list = merchants || [];
471
- if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
472
- thunkApi.dispatch(handleNextScreenStep('AUTH_MERCHANT_LIST_STEP'));
473
- return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
474
- }
475
- sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_ACCOUNT_CREATED_STEP')); });
476
- return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
477
- }
478
- });
479
- });
480
- });
481
- export var createEntity = createAsyncThunk('auth/createEntity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
482
- var settings, brandInfo, legalName, licenseNumber, licenseType, body, data;
483
- var _a;
484
- return __generator(this, function (_b) {
485
- switch (_b.label) {
486
- case 0:
487
- settings = thunkApi.getState().settings;
488
- brandInfo = params.brandInfo, legalName = params.legalName, licenseNumber = params.licenseNumber, licenseType = params.licenseType;
489
- body = {
490
- business_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.business_id) || '',
491
- entity: {
492
- legal_name: {
493
- en: legalName || '',
494
- ar: legalName || ''
495
- },
496
- license: {
497
- number: licenseNumber || '',
498
- type: licenseType || ''
499
- },
500
- country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
501
- }
502
- };
503
- return [4, API.entityService.createEntity(body)];
504
- case 1:
505
- data = _b.sent();
506
- return [2, { data: data, formData: params }];
507
- }
508
- });
509
- }); });
510
- export var confirmInfo = createAsyncThunk('auth/confirmInfo', function (_a, thunkApi) {
511
- var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo, merchantInfo = _a.merchantInfo, authId = _a.authId;
512
- return __awaiter(void 0, void 0, void 0, function () {
513
- var _b, auth, settings, authResponse, _c, postURL, redirectUrl, bi, authenticationId, body, data, urlQueryStart;
514
- var _d, _e, _f;
515
- return __generator(this, function (_g) {
516
- switch (_g.label) {
517
- case 0:
518
- _b = thunkApi.getState(), auth = _b.auth, settings = _b.settings;
519
- authResponse = ((_d = auth.data.responseData) !== null && _d !== void 0 ? _d : {}).authResponse;
520
- _c = settings.data.appConfig, postURL = _c.postURL, redirectUrl = _c.redirectUrl;
521
- bi = settings.data.deviceInfo.browser.browser_id;
522
- authenticationId = authId || (authResponse === null || authResponse === void 0 ? void 0 : authResponse.id);
523
- body = {
524
- post_url: postURL || '',
525
- authentication_id: authenticationId,
526
- bi: bi,
527
- brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
528
- merchant_id: (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.id) || '',
529
- entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
530
- data: settings.data.appConfig.data || []
531
- };
532
- return [4, API.operatorService.confirm(body)];
533
- case 1:
534
- data = _g.sent();
535
- (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, data);
536
- if (authenticationId) {
537
- if (settings.data.appConfig.mode === 'popup') {
538
- settings.data.appConfig.onFlowCompleted({ auth_id: authenticationId, bi: bi });
539
- thunkApi.dispatch(handleOpen(false));
540
- return [2];
541
- }
542
- if (redirectUrl) {
543
- urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
544
- window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authenticationId, "&bi=").concat(bi), '_self');
545
- }
546
- }
547
- return [2];
548
- }
549
- });
550
- });
551
- });
552
- export var onSignUp = createAsyncThunk('auth/onSignUp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
553
- var _a, auth, settings, authResponse, _b, appConfig, businessCountry, isMaturityExpress, language, publicKey, boardMaturity, merchantDomain, scope, postURL, body, data, redirectUrl;
554
- var _c, _d, _e, _f;
555
- return __generator(this, function (_g) {
556
- switch (_g.label) {
557
- case 0:
558
- _a = thunkApi.getState(), auth = _a.auth, settings = _a.settings;
559
- authResponse = ((_c = auth.data.responseData) !== null && _c !== void 0 ? _c : {}).authResponse;
560
- _b = settings.data, appConfig = _b.appConfig, businessCountry = _b.businessCountry, isMaturityExpress = _b.isMaturityExpress, language = _b.language;
561
- publicKey = appConfig.publicKey, boardMaturity = appConfig.boardMaturity, merchantDomain = appConfig.merchantDomain, scope = appConfig.scope, postURL = appConfig.postURL;
562
- body = __assign({ board: true, public_key: publicKey, board_maturity: boardMaturity, domain: merchantDomain, language: language, country: businessCountry.iso2, scope: scope, lead_id: authResponse === null || authResponse === void 0 ? void 0 : authResponse.lead_id, maturity: !isMaturityExpress }, (postURL && {
563
- post: {
564
- url: postURL
565
- }
566
- }));
567
- return [4, API.authService.generateConfigToken(body)];
568
- case 1:
569
- data = _g.sent();
570
- (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, data);
571
- redirectUrl = (_f = data === null || data === void 0 ? void 0 : data.redirect) === null || _f === void 0 ? void 0 : _f.url;
572
- if (!redirectUrl)
573
- throw new Error('Internal server error');
574
- window.open(redirectUrl, '_self');
575
- return [2];
576
- }
577
- });
578
- }); });
579
- var initialState = {
580
- error: null,
581
- loading: false,
582
- customLoading: false,
583
- data: {
584
- isStartFromBusinessCountry: false,
585
- flowName: FlowsTypes.AUTH,
586
- mobileData: {
587
- countryCode: defaultCountry,
588
- mobile: '',
589
- termAndConditionChecked: false
590
- },
591
- nidData: {
592
- nid: '',
593
- dob: '',
594
- termAndConditionChecked: false
595
- },
596
- civilIdData: {
597
- civilId: ''
598
- },
599
- otpData: {
600
- otp: '',
601
- authFor: AuthForType.MOBILE
602
- },
603
- authenticationData: {
604
- brandInfo: undefined,
605
- entityInfo: undefined
606
- },
607
- authMerchantData: {
608
- merchantInfo: undefined
609
- }
610
- }
611
- };
612
- export var authSlice = createSlice({
613
- name: 'auth/store',
614
- initialState: initialState,
615
- reducers: {
616
- setLeadId: function (state, action) {
617
- state.data.leadId = action.payload;
618
- },
619
- setMobileCountryCode: function (state, action) {
620
- state.data.mobileData.countryCode = action.payload;
621
- },
622
- clearError: function (state) {
623
- state.error = null;
624
- },
625
- storeIsStartFromBusinessCountry: function (state, action) {
626
- state.data.isStartFromBusinessCountry = action.payload;
627
- },
628
- resetStore: function (state) {
629
- state.data = __assign(__assign({}, state.data), { responseData: undefined });
630
- },
631
- resetOTPValue: function (state) {
632
- state.data.otpData.otp = '';
633
- },
634
- resetAuthenticationScreen: function (state) {
635
- state.data.authenticationData = __assign(__assign({}, state.data.authenticationData), initialState.data.authenticationData);
636
- }
637
- },
638
- extraReducers: function (builder) {
639
- builder
640
- .addCase(updateBusinessCountry.pending, function (state) {
641
- state.loading = true;
642
- state.error = null;
643
- })
644
- .addCase(updateBusinessCountry.rejected, function (state, action) {
645
- state.loading = false;
646
- state.error = action.error.message;
647
- })
648
- .addCase(updateBusinessCountry.fulfilled, function (state) {
649
- state.loading = false;
650
- state.error = null;
651
- })
652
- .addCase(retrieveLeadIdentityByIdAsync.pending, function (state) {
653
- state.error = null;
654
- state.customLoading = true;
655
- })
656
- .addCase(retrieveLeadIdentityByIdAsync.fulfilled, function (state, action) {
657
- state.customLoading = false;
658
- var _a = action.payload, data = _a.data, countryCode = _a.countryCode;
659
- var _b = data || {}, identification = _b.identification, date_of_birth = _b.date_of_birth, contact = _b.contact;
660
- if (identification === null || identification === void 0 ? void 0 : identification.id)
661
- state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
662
- if (date_of_birth)
663
- state.data.nidData.dob = date_of_birth;
664
- var phone = (contact || {}).phone;
665
- if (phone) {
666
- state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
667
- }
668
- if (countryCode) {
669
- state.data.mobileData.countryCode = countryCode;
670
- }
671
- state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: data });
672
- })
673
- .addCase(retrieveLeadIdentityByIdAsync.rejected, function (state, action) {
674
- state.customLoading = false;
675
- state.error = action.error.message;
676
- })
677
- .addCase(createMobileAuth.pending, function (state) {
678
- state.loading = true;
679
- state.error = null;
680
- })
681
- .addCase(createMobileAuth.fulfilled, function (state, action) {
682
- state.loading = false;
683
- state.data.mobileData = action.payload.formData;
684
- state.data.otpData.authFor = AuthForType.MOBILE;
685
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
686
- })
687
- .addCase(createMobileAuth.rejected, function (state, action) {
688
- state.loading = false;
689
- state.error = action.error.message;
690
- })
691
- .addCase(resendMobileAuthOTP.pending, function (state) {
692
- state.error = null;
693
- })
694
- .addCase(resendMobileAuthOTP.fulfilled, function (state, action) {
695
- state.data.mobileData = action.payload.formData;
696
- state.data.otpData.authFor = AuthForType.MOBILE;
697
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
698
- })
699
- .addCase(resendMobileAuthOTP.rejected, function (state, action) {
700
- state.error = action.error.message;
701
- })
702
- .addCase(verifyMobileOtp.pending, function (state) {
703
- state.loading = true;
704
- state.error = null;
705
- })
706
- .addCase(verifyMobileOtp.fulfilled, function (state, action) {
707
- var _a;
708
- state.loading = false;
709
- var data = action.payload;
710
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
711
- })
712
- .addCase(verifyMobileOtp.rejected, function (state, action) {
713
- state.loading = false;
714
- state.error = action.error.message;
715
- })
716
- .addCase(createNIDAuth.pending, function (state) {
717
- state.loading = true;
718
- state.error = null;
719
- })
720
- .addCase(createNIDAuth.fulfilled, function (state, action) {
721
- state.loading = false;
722
- state.data.nidData = action.payload.formData;
723
- state.data.otpData.authFor = AuthForType.NATIONAL_ID;
724
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
725
- })
726
- .addCase(createNIDAuth.rejected, function (state, action) {
727
- state.loading = false;
728
- state.error = action.error.message;
729
- })
730
- .addCase(resendNIDAuthOTP.pending, function (state) {
731
- state.error = null;
732
- })
733
- .addCase(resendNIDAuthOTP.fulfilled, function (state, action) {
734
- state.data.nidData = action.payload.formData;
735
- state.data.otpData.authFor = AuthForType.NATIONAL_ID;
736
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
737
- })
738
- .addCase(resendNIDAuthOTP.rejected, function (state, action) {
739
- state.error = action.error.message;
740
- })
741
- .addCase(verifyNIDOtp.pending, function (state) {
742
- state.loading = true;
743
- state.error = null;
744
- })
745
- .addCase(verifyNIDOtp.fulfilled, function (state, action) {
746
- var _a;
747
- state.loading = false;
748
- var data = action.payload;
749
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
750
- })
751
- .addCase(verifyNIDOtp.rejected, function (state, action) {
752
- state.loading = false;
753
- state.error = action.error.message;
754
- })
755
- .addCase(createCivilIdAuth.pending, function (state) {
756
- state.loading = true;
757
- state.error = null;
758
- })
759
- .addCase(createCivilIdAuth.fulfilled, function (state, action) {
760
- state.loading = false;
761
- state.data.civilIdData = action.payload.formData;
762
- state.data.otpData.authFor = AuthForType.NATIONAL_ID;
763
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
764
- })
765
- .addCase(createCivilIdAuth.rejected, function (state, action) {
766
- state.loading = false;
767
- state.error = action.error.message;
768
- })
769
- .addCase(verifyPACI.pending, function (state) {
770
- state.loading = true;
771
- state.error = null;
772
- })
773
- .addCase(verifyPACI.fulfilled, function (state, action) {
774
- var _a;
775
- state.loading = false;
776
- var data = action.payload;
777
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
778
- })
779
- .addCase(verifyPACI.rejected, function (state, action) {
780
- state.loading = false;
781
- var error = action.error.message;
782
- if (error !== 'Aborted') {
783
- state.error = error;
784
- }
785
- })
786
- .addCase(checkAccountAvailability.pending, function (state) {
787
- state.loading = true;
788
- state.error = null;
789
- })
790
- .addCase(checkAccountAvailability.fulfilled, function (state, action) {
791
- state.error = null;
792
- state.loading = false;
793
- var _a = action.payload, brandList = _a.brandList, entityList = _a.entityList;
794
- var eList = __spreadArray(__spreadArray([], entityList, true), [ADD_NEW_ENTITY], false);
795
- if (brandList === null || brandList === void 0 ? void 0 : brandList.length)
796
- state.data.authenticationData.brandInfo = brandList[0];
797
- state.data.responseData = __assign(__assign({}, state.data.responseData), { brandList: brandList, entityList: eList });
798
- })
799
- .addCase(checkAccountAvailability.rejected, function (state, action) {
800
- state.loading = false;
801
- state.error = action.error.message;
802
- })
803
- .addCase(getMerchantList.pending, function (state) {
804
- state.loading = true;
805
- state.error = null;
806
- })
807
- .addCase(getMerchantList.fulfilled, function (state, action) {
808
- state.loading = false;
809
- state.error = null;
810
- var _a = action.payload, list = _a.list, brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
811
- state.data.authenticationData.brandInfo = brandInfo;
812
- state.data.authenticationData.entityInfo = entityInfo;
813
- if (list === null || list === void 0 ? void 0 : list.length) {
814
- state.data.authMerchantData.merchantInfo = list[0];
815
- }
816
- state.data.responseData = __assign(__assign({}, state.data.responseData), { merchantList: list });
817
- })
818
- .addCase(getMerchantList.rejected, function (state, action) {
819
- state.loading = false;
820
- state.error = action.error.message;
821
- })
822
- .addCase(confirmInfo.pending, function (state) {
823
- state.loading = true;
824
- state.error = null;
825
- })
826
- .addCase(confirmInfo.fulfilled, function (state) {
827
- state.loading = false;
828
- state.error = null;
829
- })
830
- .addCase(confirmInfo.rejected, function (state, action) {
831
- state.loading = false;
832
- state.error = action.error.message;
833
- })
834
- .addCase(onSignUp.pending, function (state) {
835
- state.loading = true;
836
- state.error = null;
837
- })
838
- .addCase(onSignUp.fulfilled, function (state) {
839
- state.loading = false;
840
- state.error = null;
841
- })
842
- .addCase(onSignUp.rejected, function (state, action) {
843
- state.loading = false;
844
- state.error = action.error.message;
845
- })
846
- .addCase(createEntity.pending, function (state) {
847
- state.loading = true;
848
- state.error = null;
849
- })
850
- .addCase(createEntity.rejected, function (state, action) {
851
- state.loading = false;
852
- state.error = action.error.message;
853
- })
854
- .addCase(createEntity.fulfilled, function (state, action) {
855
- state.loading = false;
856
- state.error = null;
857
- var data = action.payload.data;
858
- var entityList = (state.data.responseData || {}).entityList;
859
- if (data === null || data === void 0 ? void 0 : data.entity) {
860
- var entity = __assign(__assign({}, data.entity), { business_id: data === null || data === void 0 ? void 0 : data.business_id });
861
- var list = __spreadArray([entity], entityList, true);
862
- state.data.authenticationData.entityInfo = list[0];
863
- state.data.responseData = __assign(__assign({}, state.data.responseData), { entityData: data, entityList: list });
864
- }
865
- });
866
- }
867
- });
868
- export var clearError = (_a = authSlice.actions, _a.clearError), resetStore = _a.resetStore, setMobileCountryCode = _a.setMobileCountryCode, setLeadId = _a.setLeadId, resetOTPValue = _a.resetOTPValue, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen;
869
- export default authSlice.reducer;
870
- export var authSelector = function (state) { return state.auth; };
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (_) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
49
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50
+ if (ar || !(i in from)) {
51
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
52
+ ar[i] = from[i];
53
+ }
54
+ }
55
+ return to.concat(ar || Array.prototype.slice.call(from));
56
+ };
57
+ var _a;
58
+ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
+ import { AuthForType, AuthTypeNumber, FlowsTypes, MigrationStatus } from '../../../@types';
60
+ import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, COLLECT_DOB_INFO_NAFATH, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED, SCOPE_AUTH, defaultCountry } from '../../../constants';
61
+ import API from '../../../api';
62
+ import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
63
+ import { findCountryByIddPrefix, isNetworkError, isTimeoutError, openConnect, sendCustomEventToGTM, sleep } from '../../../utils';
64
+ export var updateBusinessCountry = createAsyncThunk('auth/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
+ var auth, payload, data;
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0:
69
+ auth = thunkApi.getState().auth;
70
+ payload = {
71
+ id: auth.data.leadId || '',
72
+ country_code: countryCode,
73
+ encryption_contract: []
74
+ };
75
+ return [4, API.leadService.updateLead(payload)];
76
+ case 1:
77
+ data = _a.sent();
78
+ return [2, data];
79
+ }
80
+ });
81
+ }); });
82
+ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('auth/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
83
+ var settingData, countryCode, data, _a, country_code, contact, businessCountryIso2, ipCountryIso2, phone;
84
+ var _b, _c;
85
+ return __generator(this, function (_d) {
86
+ switch (_d.label) {
87
+ case 0:
88
+ settingData = thunkApi.getState().settings.data;
89
+ countryCode = settingData.businessCountry;
90
+ return [4, API.leadService.retrieveLeadIdentity(leadId)];
91
+ case 1:
92
+ data = _d.sent();
93
+ _a = data || {}, country_code = _a.country_code, contact = _a.contact;
94
+ businessCountryIso2 = (_b = settingData.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2;
95
+ ipCountryIso2 = (_c = settingData.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2;
96
+ if (country_code) {
97
+ thunkApi.dispatch(handleSetCountryByIso2(country_code));
98
+ businessCountryIso2 = country_code;
99
+ }
100
+ phone = (contact || {}).phone;
101
+ if (phone === null || phone === void 0 ? void 0 : phone.country_code)
102
+ countryCode = findCountryByIddPrefix(settingData.countries, phone.country_code);
103
+ if (!businessCountryIso2 && ipCountryIso2 && settingData.appConfig.scope === 'auth') {
104
+ thunkApi.dispatch(storeIsBusinessCountryPassed(false));
105
+ thunkApi.dispatch(handleSetCountryByIso2(ipCountryIso2));
106
+ businessCountryIso2 = ipCountryIso2;
107
+ }
108
+ if (!country_code && !businessCountryIso2) {
109
+ thunkApi.dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
110
+ return [2, { data: data, countryCode: countryCode }];
111
+ }
112
+ return [2, { data: data, countryCode: countryCode }];
113
+ }
114
+ });
115
+ }); });
116
+ export var createMobileAuth = createAsyncThunk('auth/createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
117
+ var _a, settings, auth, isStartWithZero, mobileNumber, requestBody, data;
118
+ var _b, _c, _d;
119
+ return __generator(this, function (_e) {
120
+ switch (_e.label) {
121
+ case 0:
122
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
123
+ isStartWithZero = (_b = params.mobile) === null || _b === void 0 ? void 0 : _b.startsWith('0');
124
+ mobileNumber = isStartWithZero ? params.mobile.slice(1) : params.mobile;
125
+ requestBody = {
126
+ country: settings.data.businessCountry.iso2,
127
+ scope: settings.data.appConfig.scope,
128
+ lang: settings.data.language,
129
+ lead_id: auth.data.leadId,
130
+ user_credentail: {
131
+ phone: mobileNumber || '',
132
+ code: params.countryCode.idd_prefix.toString()
133
+ },
134
+ sign_in: false,
135
+ is_lead: true,
136
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_MOBILE,
137
+ encryption_contract: ['user_credentail.phone', 'user_credentail.code']
138
+ };
139
+ return [4, API.authService.createAuth(requestBody)];
140
+ case 1:
141
+ data = _e.sent();
142
+ thunkApi.dispatch(handleNextScreenStep());
143
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.user_credentail);
144
+ return [2, { response: data, formData: params }];
145
+ }
146
+ });
147
+ }); });
148
+ export var resendMobileAuthOTP = createAsyncThunk('auth/resendMobileAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
149
+ var _a, settings, auth, isStartWithZero, mobileNumber, requestBody, data;
150
+ var _b;
151
+ return __generator(this, function (_c) {
152
+ switch (_c.label) {
153
+ case 0:
154
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
155
+ isStartWithZero = (_b = params.mobile) === null || _b === void 0 ? void 0 : _b.startsWith('0');
156
+ mobileNumber = isStartWithZero ? params.mobile.slice(1) : params.mobile;
157
+ requestBody = {
158
+ country: settings.data.businessCountry.iso2,
159
+ scope: settings.data.appConfig.scope,
160
+ lang: settings.data.language,
161
+ lead_id: auth.data.leadId,
162
+ user_credentail: {
163
+ phone: mobileNumber,
164
+ code: params.countryCode.idd_prefix.toString()
165
+ },
166
+ sign_in: false,
167
+ is_lead: true,
168
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_MOBILE,
169
+ encryption_contract: ['user_credentail.phone', 'user_credentail.code']
170
+ };
171
+ return [4, API.authService.createAuth(requestBody)];
172
+ case 1:
173
+ data = _c.sent();
174
+ return [2, { response: data, formData: params }];
175
+ }
176
+ });
177
+ }); });
178
+ export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
179
+ var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, sign_in, scope, payload, data;
180
+ var _d, _e, _f, _g;
181
+ return __generator(this, function (_h) {
182
+ switch (_h.label) {
183
+ case 0:
184
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
185
+ _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
186
+ _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type, sign_in = _c.sign_in;
187
+ if (!auth_token)
188
+ throw new Error('Auth token is missing');
189
+ scope = settings.data.appConfig.scope;
190
+ payload = {
191
+ auth_token: auth_token,
192
+ lead_id: leadId,
193
+ data: params.otp,
194
+ auth_type: auth_type,
195
+ device_token: device_token,
196
+ service_name: service_name,
197
+ sign_in: sign_in,
198
+ step_name: AUTH_STEP_NAMES.VERIFY_AUTH_MOBILE,
199
+ encryption_contract: ['data']
200
+ };
201
+ return [4, API.authService.verifyAuth(payload)];
202
+ case 1:
203
+ data = (_h.sent()).data;
204
+ if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
205
+ throw new Error(data.errors[0].description);
206
+ sendCustomEventToGTM({
207
+ event: 'Send Event',
208
+ event_category: 'User Registration Flow',
209
+ event_action: 'First OTP Success'
210
+ });
211
+ if (scope === 'merchant') {
212
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
213
+ return [2, data];
214
+ }
215
+ (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
216
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
217
+ return [2, data];
218
+ }
219
+ });
220
+ }); });
221
+ export var createEmailAuth = createAsyncThunk('auth/createEmailAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
222
+ var _a, settings, auth, requestBody, data, screen;
223
+ var _b, _c;
224
+ return __generator(this, function (_d) {
225
+ switch (_d.label) {
226
+ case 0:
227
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
228
+ requestBody = {
229
+ country: settings.data.businessCountry.iso2,
230
+ scope: settings.data.appConfig.scope,
231
+ lang: settings.data.language,
232
+ lead_id: auth.data.leadId,
233
+ user_credentail: {
234
+ email: params.email || ''
235
+ },
236
+ sign_in: true,
237
+ is_lead: false,
238
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_EMAIL,
239
+ encryption_contract: ['user_credentail.email']
240
+ };
241
+ return [4, API.authService.createAuth(requestBody)];
242
+ case 1:
243
+ data = _d.sent();
244
+ screen = 'AUTH_PASSWORD_STEP';
245
+ if ((data === null || data === void 0 ? void 0 : data.auth_type) === AuthTypeNumber.RESET_PASSWORD)
246
+ screen = 'AUTH_RESET_PASSWORD_MESSAGE_STEP';
247
+ if ((data === null || data === void 0 ? void 0 : data.auth_type) === AuthTypeNumber.EMAIL_OTP)
248
+ screen = 'AUTH_OTP_STEP';
249
+ thunkApi.dispatch(handleNextScreenStep(screen));
250
+ (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
251
+ return [2, { response: data, formData: params }];
252
+ }
253
+ });
254
+ }); });
255
+ export var verifyEmailPassword = createAsyncThunk('auth/verifyEmailPassword', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
256
+ var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, sign_in, scope, payload, data;
257
+ var _d, _e, _f, _g;
258
+ return __generator(this, function (_h) {
259
+ switch (_h.label) {
260
+ case 0:
261
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
262
+ _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
263
+ _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type, sign_in = _c.sign_in;
264
+ if (!auth_token)
265
+ throw new Error('Auth token is missing');
266
+ scope = settings.data.appConfig.scope;
267
+ payload = {
268
+ auth_token: auth_token,
269
+ lead_id: leadId,
270
+ data: params.password,
271
+ auth_type: auth_type,
272
+ device_token: device_token,
273
+ service_name: service_name,
274
+ sign_in: sign_in,
275
+ is_lead: false,
276
+ step_name: AUTH_STEP_NAMES.VERIFY_AUTH_EMAIL,
277
+ encryption_contract: ['data']
278
+ };
279
+ return [4, API.authService.verifyAuth(payload)];
280
+ case 1:
281
+ data = (_h.sent()).data;
282
+ if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
283
+ throw new Error(data.errors[0].description);
284
+ if ((data === null || data === void 0 ? void 0 : data.auth_type) === AuthTypeNumber.MOBILE_OTP) {
285
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_OTP_STEP')); });
286
+ return [2, data];
287
+ }
288
+ if (scope === 'merchant') {
289
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
290
+ return [2, data];
291
+ }
292
+ (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
293
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
294
+ return [2, data];
295
+ }
296
+ });
297
+ }); });
298
+ export var resendEmailAuthOTP = createAsyncThunk('auth/resendEmailAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
299
+ var _a, settings, auth, requestBody, data;
300
+ return __generator(this, function (_b) {
301
+ switch (_b.label) {
302
+ case 0:
303
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
304
+ requestBody = {
305
+ country: settings.data.businessCountry.iso2,
306
+ scope: settings.data.appConfig.scope,
307
+ lang: settings.data.language,
308
+ lead_id: auth.data.leadId,
309
+ user_credentail: {
310
+ email: params.email || ''
311
+ },
312
+ sign_in: true,
313
+ is_lead: false,
314
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_EMAIL,
315
+ encryption_contract: ['user_credentail.email']
316
+ };
317
+ return [4, API.authService.createAuth(requestBody)];
318
+ case 1:
319
+ data = _b.sent();
320
+ if ((data === null || data === void 0 ? void 0 : data.auth_type) === AuthTypeNumber.PASSWORD)
321
+ thunkApi.dispatch(handlePrevScreenStep('AUTH_PASSWORD_STEP'));
322
+ return [2, { response: data, formData: params }];
323
+ }
324
+ });
325
+ }); });
326
+ export var verifyEmailOtp = createAsyncThunk('auth/verifyEmailOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
327
+ var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, sign_in, scope, payload, data, stepName;
328
+ var _d, _e, _f, _g;
329
+ return __generator(this, function (_h) {
330
+ switch (_h.label) {
331
+ case 0:
332
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
333
+ _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
334
+ _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type, sign_in = _c.sign_in;
335
+ if (!auth_token)
336
+ throw new Error('Auth token is missing');
337
+ scope = settings.data.appConfig.scope;
338
+ payload = {
339
+ auth_token: auth_token,
340
+ lead_id: leadId,
341
+ data: params.otp,
342
+ auth_type: auth_type,
343
+ device_token: device_token,
344
+ service_name: service_name,
345
+ sign_in: sign_in,
346
+ is_lead: false,
347
+ step_name: AUTH_STEP_NAMES.VERIFY_AUTH_MOBILE,
348
+ encryption_contract: ['data']
349
+ };
350
+ return [4, API.authService.verifyAuth(payload)];
351
+ case 1:
352
+ data = (_h.sent()).data;
353
+ if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
354
+ throw new Error(data.errors[0].description);
355
+ sendCustomEventToGTM({
356
+ event: 'Send Event',
357
+ event_category: 'User Registration Flow',
358
+ event_action: 'First OTP Success'
359
+ });
360
+ if (scope === 'merchant') {
361
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
362
+ return [2, data];
363
+ }
364
+ stepName = 'AUTH_PREPARING_DATA_STEP';
365
+ if ((data === null || data === void 0 ? void 0 : data.auth_type) === AuthTypeNumber.MIGRATION)
366
+ stepName = 'AUTH_MIGRATING_DATA_STEP';
367
+ (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
368
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(stepName)); });
369
+ return [2, data];
370
+ }
371
+ });
372
+ }); });
373
+ export var createNafathAuth = createAsyncThunk('auth/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
374
+ var _a, settings, auth, requestBody, data;
375
+ var _b, _c;
376
+ return __generator(this, function (_d) {
377
+ switch (_d.label) {
378
+ case 0:
379
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
380
+ requestBody = {
381
+ country: settings.data.businessCountry.iso2,
382
+ scope: settings.data.appConfig.scope,
383
+ lang: settings.data.language,
384
+ lead_id: auth.data.leadId,
385
+ user_credentail: {
386
+ identification_id: params.nid,
387
+ identification_id_type: IDENTIFICATION_TYPE.NAFATH,
388
+ country_code: settings.data.businessCountry.iso2
389
+ },
390
+ sign_in: false,
391
+ is_lead: true,
392
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_NID,
393
+ encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
394
+ };
395
+ return [4, API.authService.createAuthKitNID(requestBody)];
396
+ case 1:
397
+ data = _d.sent();
398
+ thunkApi.dispatch(handleNextScreenStep());
399
+ (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody);
400
+ return [2, { response: data, formData: params }];
401
+ }
402
+ });
403
+ }); });
404
+ export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
405
+ var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls, _loop_1, count, state_1;
406
+ var _b, _c, _d, _e, _f;
407
+ return __generator(this, function (_g) {
408
+ switch (_g.label) {
409
+ case 0:
410
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
411
+ authResponse = (auth.data.responseData || {}).authResponse;
412
+ expiry = (authResponse === null || authResponse === void 0 ? void 0 : authResponse.expiry) || 120;
413
+ scope = settings.data.appConfig.scope;
414
+ interval = 3;
415
+ maxCalls = Math.floor(expiry / interval);
416
+ _loop_1 = function (count) {
417
+ var data, error_1, isSuccess, isFailed, screen_1;
418
+ return __generator(this, function (_h) {
419
+ switch (_h.label) {
420
+ case 0:
421
+ if (thunkApi.signal.aborted) {
422
+ return [2, "break"];
423
+ }
424
+ data = void 0;
425
+ _h.label = 1;
426
+ case 1:
427
+ _h.trys.push([1, 3, , 4]);
428
+ return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
429
+ case 2:
430
+ data = _h.sent();
431
+ return [3, 4];
432
+ case 3:
433
+ error_1 = _h.sent();
434
+ if (!isNetworkError(error_1.message) && !isTimeoutError(error_1.message)) {
435
+ throw new Error(error_1);
436
+ }
437
+ return [3, 4];
438
+ case 4:
439
+ isSuccess = ((_b = data === null || data === void 0 ? void 0 : data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
440
+ isFailed = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
441
+ if (isFailed) {
442
+ (_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
443
+ return [2, { value: data }];
444
+ }
445
+ if (isSuccess) {
446
+ if (scope === 'merchant') {
447
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
448
+ return [2, { value: data }];
449
+ }
450
+ (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
451
+ screen_1 = data.step_name === COLLECT_DOB_INFO_NAFATH ? 'AUTH_DOB_STEP' : 'AUTH_PREPARING_DATA_STEP';
452
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(screen_1)); });
453
+ return [2, { value: data }];
454
+ }
455
+ return [4, sleep(interval * 1000)];
456
+ case 5:
457
+ _h.sent();
458
+ return [2];
459
+ }
460
+ });
461
+ };
462
+ count = 1;
463
+ _g.label = 1;
464
+ case 1:
465
+ if (!(count <= maxCalls)) return [3, 4];
466
+ return [5, _loop_1(count)];
467
+ case 2:
468
+ state_1 = _g.sent();
469
+ if (typeof state_1 === "object")
470
+ return [2, state_1.value];
471
+ if (state_1 === "break")
472
+ return [3, 4];
473
+ _g.label = 3;
474
+ case 3:
475
+ count++;
476
+ return [3, 1];
477
+ case 4: throw new Error(NAFATH_VERIFICATION_FAILED);
478
+ }
479
+ });
480
+ }); });
481
+ export var updateLeadDOB = createAsyncThunk('auth/updateLeadDOB', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
482
+ var _a, settings, auth, leadId, requestBody, data;
483
+ var _b, _c, _d, _e;
484
+ return __generator(this, function (_f) {
485
+ switch (_f.label) {
486
+ case 0:
487
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
488
+ leadId = ((_c = (_b = auth.data.responseData) === null || _b === void 0 ? void 0 : _b.authResponse) === null || _c === void 0 ? void 0 : _c.lead_id) || '';
489
+ requestBody = {
490
+ id: leadId,
491
+ date_of_birth: params.dob,
492
+ step_name: AUTH_STEP_NAMES.UPDATE_DOB_INFO,
493
+ encryption_contract: ['date_of_birth']
494
+ };
495
+ return [4, API.leadService.updateLead(requestBody)];
496
+ case 1:
497
+ data = _f.sent();
498
+ thunkApi.dispatch(handleNextScreenStep());
499
+ (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, requestBody);
500
+ return [2, { data: data, formData: params }];
501
+ }
502
+ });
503
+ }); });
504
+ export var createCivilIdAuth = createAsyncThunk('auth/createCivilAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
505
+ var _a, settings, auth, countryCode, requestBody, data;
506
+ var _b, _c;
507
+ return __generator(this, function (_d) {
508
+ switch (_d.label) {
509
+ case 0:
510
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
511
+ countryCode = settings.data.businessCountry.iso2;
512
+ requestBody = {
513
+ country: settings.data.businessCountry.iso2,
514
+ scope: settings.data.appConfig.scope,
515
+ lang: settings.data.language,
516
+ lead_id: auth.data.leadId,
517
+ user_credentail: {
518
+ identification_id: params.civilId,
519
+ country_code: countryCode
520
+ },
521
+ sign_in: false,
522
+ is_lead: true,
523
+ step_name: AUTH_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
524
+ encryption_contract: ['user_credentail.identification_id']
525
+ };
526
+ return [4, API.authService.createAuth(requestBody)];
527
+ case 1:
528
+ data = _d.sent();
529
+ thunkApi.dispatch(handleNextScreenStep());
530
+ (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
531
+ return [2, { response: data, formData: params }];
532
+ }
533
+ });
534
+ }); });
535
+ export var verifyPACI = createAsyncThunk('auth/verifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
536
+ var _a, settings, auth, authResponse, scope, expiry, interval, maxCalls, count, data, error_2, isSuccess;
537
+ var _b, _c, _d;
538
+ return __generator(this, function (_e) {
539
+ switch (_e.label) {
540
+ case 0:
541
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
542
+ authResponse = (auth.data.responseData || {}).authResponse;
543
+ scope = settings.data.appConfig.scope;
544
+ expiry = (authResponse === null || authResponse === void 0 ? void 0 : authResponse.expiry) || 120;
545
+ interval = 3;
546
+ maxCalls = Math.floor(expiry / interval);
547
+ count = 1;
548
+ _e.label = 1;
549
+ case 1:
550
+ if (!(count <= maxCalls)) return [3, 8];
551
+ if (thunkApi.signal.aborted) {
552
+ return [3, 8];
553
+ }
554
+ data = void 0;
555
+ _e.label = 2;
556
+ case 2:
557
+ _e.trys.push([2, 4, , 5]);
558
+ return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
559
+ case 3:
560
+ data = _e.sent();
561
+ return [3, 5];
562
+ case 4:
563
+ error_2 = _e.sent();
564
+ if (!isNetworkError(error_2.message) && !isTimeoutError(error_2.message)) {
565
+ throw new Error(error_2);
566
+ }
567
+ return [3, 5];
568
+ case 5:
569
+ isSuccess = ((_b = data === null || data === void 0 ? void 0 : data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
570
+ if (isSuccess) {
571
+ if (scope === 'merchant') {
572
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
573
+ return [2, data];
574
+ }
575
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
576
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
577
+ return [2, data];
578
+ }
579
+ return [4, sleep(interval * 1000)];
580
+ case 6:
581
+ _e.sent();
582
+ _e.label = 7;
583
+ case 7:
584
+ count++;
585
+ return [3, 1];
586
+ case 8: throw new Error('paci_verification_failed');
587
+ }
588
+ });
589
+ }); });
590
+ export var checkMigrationStatus = createAsyncThunk('auth/checkMigrationStatus', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
591
+ var auth, jobId, authId, migrationData, checkStatusRecursive;
592
+ var _a, _b, _c, _d;
593
+ return __generator(this, function (_e) {
594
+ switch (_e.label) {
595
+ case 0:
596
+ auth = thunkApi.getState().auth;
597
+ jobId = (_b = (_a = auth.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse) === null || _b === void 0 ? void 0 : _b.job_id;
598
+ authId = (_d = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.authResponse) === null || _d === void 0 ? void 0 : _d.id;
599
+ migrationData = undefined;
600
+ checkStatusRecursive = function () { return __awaiter(void 0, void 0, void 0, function () {
601
+ var data;
602
+ return __generator(this, function (_a) {
603
+ switch (_a.label) {
604
+ case 0: return [4, API.accountService.checkMigrationStatus(jobId)];
605
+ case 1:
606
+ data = _a.sent();
607
+ migrationData = data;
608
+ if (!((data === null || data === void 0 ? void 0 : data.status) === MigrationStatus.IN_PROGRESS)) return [3, 4];
609
+ return [4, sleep(3000)];
610
+ case 2:
611
+ _a.sent();
612
+ return [4, checkStatusRecursive()];
613
+ case 3:
614
+ _a.sent();
615
+ return [2];
616
+ case 4:
617
+ if ((data === null || data === void 0 ? void 0 : data.status) === MigrationStatus.FAILED) {
618
+ throw new Error('please_try_again_after_few_minutes');
619
+ }
620
+ _a.label = 5;
621
+ case 5:
622
+ sendCustomEventToGTM({
623
+ event: 'Send Event',
624
+ event_category: 'User Registration Flow',
625
+ event_action: 'Migration Completed'
626
+ });
627
+ return [4, thunkApi.dispatch(confirmInfo({ authId: authId }))];
628
+ case 6:
629
+ _a.sent();
630
+ return [2];
631
+ }
632
+ });
633
+ }); };
634
+ return [4, checkStatusRecursive()];
635
+ case 1:
636
+ _e.sent();
637
+ return [2, migrationData];
638
+ }
639
+ });
640
+ }); });
641
+ export var checkAccountAvailability = createAsyncThunk('auth/checkAccountAvailability', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
642
+ var _a, settings, auth, authConfigData, authDataHasValue, isDataHasIndividualOnly, data, authId, accountData, _b, step_name, brands, entities, brandList, entityList, isExistingUser;
643
+ var _c;
644
+ return __generator(this, function (_d) {
645
+ switch (_d.label) {
646
+ case 0:
647
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
648
+ authConfigData = settings.data.appConfig.data;
649
+ authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
650
+ isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
651
+ data = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.authResponse;
652
+ authId = (data || {}).id;
653
+ accountData = undefined;
654
+ if (!isDataHasIndividualOnly) return [3, 2];
655
+ return [4, API.accountService.checkAccountAvailabilityStatus(data === null || data === void 0 ? void 0 : data.individual_id)];
656
+ case 1:
657
+ accountData = _d.sent();
658
+ return [3, 4];
659
+ case 2: return [4, API.accountService.checkAccountAvailability(data === null || data === void 0 ? void 0 : data.individual_id)];
660
+ case 3:
661
+ accountData = _d.sent();
662
+ _d.label = 4;
663
+ case 4:
664
+ _b = accountData || {}, step_name = _b.step_name, brands = _b.brands, entities = _b.entities;
665
+ brandList = brands || [];
666
+ entityList = entities || [];
667
+ isExistingUser = step_name === 'select_account';
668
+ if (!(isExistingUser && isDataHasIndividualOnly && authId)) return [3, 6];
669
+ return [4, thunkApi.dispatch(confirmInfo({ authId: authId }))];
670
+ case 5:
671
+ _d.sent();
672
+ return [2, { brandList: brandList, entityList: entityList }];
673
+ case 6:
674
+ if (isExistingUser && authDataHasValue && brandList.length && entityList.length) {
675
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_AUTHENTICATION_LIST_STEP')); });
676
+ return [2, { brandList: brandList, entityList: entityList }];
677
+ }
678
+ if (auth.data.leadId) {
679
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
680
+ return [2, { brandList: brandList, entityList: entityList }];
681
+ }
682
+ thunkApi.dispatch(handleNextScreenStep('AUTH_ACCOUNT_NOT_FOUND_STEP'));
683
+ return [2, { brandList: brandList, entityList: entityList }];
684
+ }
685
+ });
686
+ }); });
687
+ export var getMerchantList = createAsyncThunk('auth/getMerchantList', function (_a, thunkApi) {
688
+ var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
689
+ return __awaiter(void 0, void 0, void 0, function () {
690
+ var _b, settings, auth, platforms, payment_provider, isScopeAuthentication, leadId, payload, merchants, list;
691
+ var _c, _d, _e, _f, _g, _h, _j, _k;
692
+ return __generator(this, function (_l) {
693
+ switch (_l.label) {
694
+ case 0:
695
+ _b = thunkApi.getState(), settings = _b.settings, auth = _b.auth;
696
+ platforms = (_e = (_d = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.leadResponse) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
697
+ payment_provider = (_h = (_g = (_f = auth.data.responseData) === null || _f === void 0 ? void 0 : _f.leadResponse) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
698
+ isScopeAuthentication = settings.data.appConfig.scope === SCOPE_AUTH;
699
+ leadId = (_k = (_j = auth.data.responseData) === null || _j === void 0 ? void 0 : _j.authResponse) === null || _k === void 0 ? void 0 : _k.lead_id;
700
+ payload = __assign({ business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '', brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '', create_if_not_present: true, platforms: platforms, payment_provider: payment_provider }, (isScopeAuthentication && {
701
+ lead_id: leadId
702
+ }));
703
+ return [4, API.entityService.getMerchantListUsingEntityId(payload)];
704
+ case 1:
705
+ merchants = (_l.sent()).merchants;
706
+ list = merchants || [];
707
+ if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
708
+ thunkApi.dispatch(handleNextScreenStep('AUTH_MERCHANT_LIST_STEP'));
709
+ return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
710
+ }
711
+ sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_ACCOUNT_CREATED_STEP')); });
712
+ return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
713
+ }
714
+ });
715
+ });
716
+ });
717
+ export var createEntity = createAsyncThunk('auth/createEntity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
718
+ var settings, brandInfo, legalName, licenseNumber, licenseType, body, data;
719
+ var _a;
720
+ return __generator(this, function (_b) {
721
+ switch (_b.label) {
722
+ case 0:
723
+ settings = thunkApi.getState().settings;
724
+ brandInfo = params.brandInfo, legalName = params.legalName, licenseNumber = params.licenseNumber, licenseType = params.licenseType;
725
+ body = {
726
+ business_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.business_id) || '',
727
+ entity: {
728
+ legal_name: {
729
+ en: legalName || '',
730
+ ar: legalName || ''
731
+ },
732
+ license: {
733
+ number: licenseNumber || '',
734
+ type: licenseType || ''
735
+ },
736
+ country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
737
+ }
738
+ };
739
+ return [4, API.entityService.createEntity(body)];
740
+ case 1:
741
+ data = _b.sent();
742
+ return [2, { data: data, formData: params }];
743
+ }
744
+ });
745
+ }); });
746
+ export var confirmInfo = createAsyncThunk('auth/confirmInfo', function (_a, thunkApi) {
747
+ var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo, merchantInfo = _a.merchantInfo, authId = _a.authId;
748
+ return __awaiter(void 0, void 0, void 0, function () {
749
+ var _b, auth, settings, authResponse, _c, postURL, redirectUrl, showBoard, bi, authenticationId, body, data, urlQueryStart;
750
+ var _d, _e, _f, _g, _h, _j;
751
+ return __generator(this, function (_k) {
752
+ switch (_k.label) {
753
+ case 0:
754
+ _b = thunkApi.getState(), auth = _b.auth, settings = _b.settings;
755
+ authResponse = ((_d = auth.data.responseData) !== null && _d !== void 0 ? _d : {}).authResponse;
756
+ _c = settings.data.appConfig, postURL = _c.postURL, redirectUrl = _c.redirectUrl, showBoard = _c.showBoard;
757
+ bi = settings.data.deviceInfo.browser.browser_id;
758
+ authenticationId = (_e = authId !== null && authId !== void 0 ? authId : authResponse === null || authResponse === void 0 ? void 0 : authResponse.id) !== null && _e !== void 0 ? _e : '';
759
+ body = {
760
+ post_url: postURL || '',
761
+ authentication_id: authenticationId,
762
+ bi: bi,
763
+ brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
764
+ merchant_id: (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.id) || '',
765
+ entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
766
+ data: settings.data.appConfig.data || []
767
+ };
768
+ return [4, API.operatorService.confirm(body)];
769
+ case 1:
770
+ data = _k.sent();
771
+ (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, data);
772
+ if (showBoard && (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.board_id)) {
773
+ settings.data.appConfig.onFlowCompleted({ auth_id: authenticationId, bi: bi });
774
+ (_j = (_h = settings.data.appConfig).onSwitchToBoard) === null || _j === void 0 ? void 0 : _j.call(_h, (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.board_id) || '', authenticationId);
775
+ return [2];
776
+ }
777
+ if (authenticationId) {
778
+ if (settings.data.appConfig.mode === 'popup') {
779
+ settings.data.appConfig.onFlowCompleted({ auth_id: authenticationId, bi: bi });
780
+ thunkApi.dispatch(handleOpen(false));
781
+ return [2];
782
+ }
783
+ if (redirectUrl) {
784
+ urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
785
+ window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authenticationId, "&bi=").concat(bi), '_self');
786
+ }
787
+ }
788
+ return [2];
789
+ }
790
+ });
791
+ });
792
+ });
793
+ export var onSignUp = createAsyncThunk('auth/onSignUp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
794
+ var _a, auth, settings, responseData, authResponse, _b, appConfig, language, boardMaturity, scope, postURL, authData, dialogEdgeFormat, redirectUrl, body, data, connectUrl;
795
+ var _c, _d, _e;
796
+ return __generator(this, function (_f) {
797
+ switch (_f.label) {
798
+ case 0:
799
+ _a = thunkApi.getState(), auth = _a.auth, settings = _a.settings;
800
+ responseData = auth.data.responseData;
801
+ authResponse = (responseData !== null && responseData !== void 0 ? responseData : {}).authResponse;
802
+ _b = settings.data, appConfig = _b.appConfig, language = _b.language;
803
+ boardMaturity = appConfig.boardMaturity, scope = appConfig.scope, postURL = appConfig.postURL, authData = appConfig.data, dialogEdgeFormat = appConfig.dialogEdgeFormat, redirectUrl = appConfig.redirectUrl;
804
+ body = __assign(__assign({ scope: scope, data: authData, lead: {
805
+ id: authResponse === null || authResponse === void 0 ? void 0 : authResponse.lead_id
806
+ }, board: {
807
+ display: true,
808
+ editable: boardMaturity
809
+ }, interface: {
810
+ locale: language,
811
+ edges: dialogEdgeFormat
812
+ } }, (redirectUrl && {
813
+ post: {
814
+ url: redirectUrl
815
+ }
816
+ })), (postURL && {
817
+ post: {
818
+ url: postURL
819
+ }
820
+ }));
821
+ return [4, API.authService.generateConfigToken(body)];
822
+ case 1:
823
+ data = _f.sent();
824
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, data);
825
+ connectUrl = (_e = data === null || data === void 0 ? void 0 : data.connect) === null || _e === void 0 ? void 0 : _e.url;
826
+ if (!connectUrl)
827
+ throw new Error('Internal server error');
828
+ window.open(connectUrl, '_self');
829
+ return [2];
830
+ }
831
+ });
832
+ }); });
833
+ var initialState = {
834
+ error: null,
835
+ loading: false,
836
+ customLoading: false,
837
+ data: {
838
+ isStartFromBusinessCountry: false,
839
+ isBusinessCountryPassed: true,
840
+ flowName: FlowsTypes.AUTH,
841
+ mobileData: {
842
+ countryCode: defaultCountry,
843
+ mobile: '',
844
+ termAndConditionChecked: false
845
+ },
846
+ nidData: {
847
+ nid: '',
848
+ dob: '',
849
+ termAndConditionChecked: false
850
+ },
851
+ civilIdData: {
852
+ civilId: ''
853
+ },
854
+ emailData: {
855
+ email: ''
856
+ },
857
+ dobData: {
858
+ dob: ''
859
+ },
860
+ otpData: {
861
+ otp: '',
862
+ authFor: AuthForType.MOBILE
863
+ },
864
+ passwordData: {
865
+ password: ''
866
+ },
867
+ authenticationData: {
868
+ brandInfo: undefined,
869
+ entityInfo: undefined
870
+ },
871
+ authMerchantData: {
872
+ merchantInfo: undefined
873
+ }
874
+ }
875
+ };
876
+ export var authSlice = createSlice({
877
+ name: 'auth/store',
878
+ initialState: initialState,
879
+ reducers: {
880
+ setLeadId: function (state, action) {
881
+ state.data.leadId = action.payload;
882
+ },
883
+ setMobileCountryCode: function (state, action) {
884
+ state.data.mobileData.countryCode = action.payload;
885
+ },
886
+ clearError: function (state) {
887
+ state.error = null;
888
+ },
889
+ storeIsStartFromBusinessCountry: function (state, action) {
890
+ state.data.isStartFromBusinessCountry = action.payload;
891
+ },
892
+ storeIsBusinessCountryPassed: function (state, action) {
893
+ state.data.isBusinessCountryPassed = action.payload;
894
+ },
895
+ resetStore: function (state) {
896
+ state.data = __assign(__assign({}, state.data), { responseData: undefined });
897
+ },
898
+ resetOTPValue: function (state) {
899
+ state.data.otpData.otp = '';
900
+ },
901
+ resetPasswordValue: function (state) {
902
+ state.data.passwordData.password = '';
903
+ },
904
+ resetAuthenticationScreen: function (state) {
905
+ state.data.authenticationData = __assign(__assign({}, state.data.authenticationData), initialState.data.authenticationData);
906
+ }
907
+ },
908
+ extraReducers: function (builder) {
909
+ builder
910
+ .addCase(updateBusinessCountry.pending, function (state) {
911
+ state.loading = true;
912
+ state.error = null;
913
+ })
914
+ .addCase(updateBusinessCountry.rejected, function (state, action) {
915
+ state.loading = false;
916
+ state.error = action.error.message;
917
+ })
918
+ .addCase(updateBusinessCountry.fulfilled, function (state) {
919
+ state.loading = false;
920
+ state.error = null;
921
+ })
922
+ .addCase(retrieveLeadIdentityByIdAsync.pending, function (state) {
923
+ state.error = null;
924
+ state.customLoading = true;
925
+ })
926
+ .addCase(retrieveLeadIdentityByIdAsync.fulfilled, function (state, action) {
927
+ state.customLoading = false;
928
+ var _a = action.payload, data = _a.data, countryCode = _a.countryCode;
929
+ var _b = data || {}, identification = _b.identification, date_of_birth = _b.date_of_birth, contact = _b.contact;
930
+ if (identification === null || identification === void 0 ? void 0 : identification.id)
931
+ state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
932
+ if (date_of_birth)
933
+ state.data.nidData.dob = date_of_birth;
934
+ var _c = contact || {}, phone = _c.phone, email = _c.email;
935
+ if (phone) {
936
+ state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
937
+ }
938
+ if (countryCode) {
939
+ state.data.mobileData.countryCode = countryCode;
940
+ }
941
+ if (email) {
942
+ state.data.emailData.email = email;
943
+ }
944
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: data });
945
+ })
946
+ .addCase(retrieveLeadIdentityByIdAsync.rejected, function (state, action) {
947
+ state.customLoading = false;
948
+ state.error = action.error.message;
949
+ })
950
+ .addCase(createMobileAuth.pending, function (state) {
951
+ state.loading = true;
952
+ state.error = null;
953
+ })
954
+ .addCase(createMobileAuth.fulfilled, function (state, action) {
955
+ state.loading = false;
956
+ state.data.mobileData = action.payload.formData;
957
+ state.data.otpData.authFor = AuthForType.MOBILE;
958
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
959
+ })
960
+ .addCase(createMobileAuth.rejected, function (state, action) {
961
+ state.loading = false;
962
+ state.error = action.error.message;
963
+ })
964
+ .addCase(resendMobileAuthOTP.pending, function (state) {
965
+ state.error = null;
966
+ })
967
+ .addCase(resendMobileAuthOTP.fulfilled, function (state, action) {
968
+ state.data.mobileData = action.payload.formData;
969
+ state.data.otpData.authFor = AuthForType.MOBILE;
970
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
971
+ })
972
+ .addCase(resendMobileAuthOTP.rejected, function (state, action) {
973
+ state.error = action.error.message;
974
+ })
975
+ .addCase(verifyMobileOtp.pending, function (state) {
976
+ state.loading = true;
977
+ state.error = null;
978
+ })
979
+ .addCase(verifyMobileOtp.fulfilled, function (state, action) {
980
+ var _a;
981
+ state.loading = false;
982
+ var data = action.payload;
983
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
984
+ })
985
+ .addCase(verifyMobileOtp.rejected, function (state, action) {
986
+ state.loading = false;
987
+ state.error = action.error.message;
988
+ })
989
+ .addCase(createEmailAuth.pending, function (state) {
990
+ state.loading = true;
991
+ state.error = null;
992
+ })
993
+ .addCase(createEmailAuth.fulfilled, function (state, action) {
994
+ state.loading = false;
995
+ state.data.emailData = action.payload.formData;
996
+ state.data.otpData.authFor = AuthForType.EMAIL;
997
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
998
+ })
999
+ .addCase(createEmailAuth.rejected, function (state, action) {
1000
+ state.loading = false;
1001
+ state.error = action.error.message;
1002
+ })
1003
+ .addCase(verifyEmailPassword.pending, function (state) {
1004
+ state.loading = true;
1005
+ state.error = null;
1006
+ })
1007
+ .addCase(verifyEmailPassword.fulfilled, function (state, action) {
1008
+ var _a;
1009
+ state.loading = false;
1010
+ var data = action.payload;
1011
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
1012
+ })
1013
+ .addCase(verifyEmailPassword.rejected, function (state, action) {
1014
+ state.loading = false;
1015
+ state.error = action.error.message;
1016
+ })
1017
+ .addCase(resendEmailAuthOTP.pending, function (state) {
1018
+ state.error = null;
1019
+ })
1020
+ .addCase(resendEmailAuthOTP.fulfilled, function (state, action) {
1021
+ state.data.emailData = action.payload.formData;
1022
+ state.data.otpData.authFor = AuthForType.EMAIL;
1023
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
1024
+ })
1025
+ .addCase(resendEmailAuthOTP.rejected, function (state, action) {
1026
+ state.error = action.error.message;
1027
+ })
1028
+ .addCase(verifyEmailOtp.pending, function (state) {
1029
+ state.loading = true;
1030
+ state.error = null;
1031
+ })
1032
+ .addCase(verifyEmailOtp.fulfilled, function (state, action) {
1033
+ var _a;
1034
+ state.loading = false;
1035
+ var data = action.payload;
1036
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
1037
+ })
1038
+ .addCase(verifyEmailOtp.rejected, function (state, action) {
1039
+ state.loading = false;
1040
+ state.error = action.error.message;
1041
+ })
1042
+ .addCase(createNafathAuth.pending, function (state) {
1043
+ state.loading = true;
1044
+ state.error = null;
1045
+ })
1046
+ .addCase(createNafathAuth.fulfilled, function (state, action) {
1047
+ state.loading = false;
1048
+ state.data.nidData = action.payload.formData;
1049
+ state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1050
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
1051
+ })
1052
+ .addCase(createNafathAuth.rejected, function (state, action) {
1053
+ state.loading = false;
1054
+ state.error = action.error.message;
1055
+ })
1056
+ .addCase(verifyNafath.pending, function (state) {
1057
+ state.loading = true;
1058
+ state.error = null;
1059
+ })
1060
+ .addCase(verifyNafath.fulfilled, function (state, action) {
1061
+ var _a;
1062
+ state.loading = false;
1063
+ var data = action.payload;
1064
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
1065
+ })
1066
+ .addCase(verifyNafath.rejected, function (state, action) {
1067
+ state.loading = false;
1068
+ var error = action.error.message;
1069
+ if (error !== 'Aborted') {
1070
+ state.error = error;
1071
+ }
1072
+ })
1073
+ .addCase(updateLeadDOB.pending, function (state, action) {
1074
+ state.loading = true;
1075
+ state.error = null;
1076
+ })
1077
+ .addCase(updateLeadDOB.fulfilled, function (state, action) {
1078
+ var _a;
1079
+ state.loading = false;
1080
+ var _b = action.payload, data = _b.data, formData = _b.formData;
1081
+ state.data.dobData = formData;
1082
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadResponse), data) });
1083
+ })
1084
+ .addCase(updateLeadDOB.rejected, function (state, action) {
1085
+ state.loading = false;
1086
+ state.error = action.error.message;
1087
+ })
1088
+ .addCase(createCivilIdAuth.pending, function (state) {
1089
+ state.loading = true;
1090
+ state.error = null;
1091
+ })
1092
+ .addCase(createCivilIdAuth.fulfilled, function (state, action) {
1093
+ state.loading = false;
1094
+ state.data.civilIdData = action.payload.formData;
1095
+ state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1096
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
1097
+ })
1098
+ .addCase(createCivilIdAuth.rejected, function (state, action) {
1099
+ state.loading = false;
1100
+ state.error = action.error.message;
1101
+ })
1102
+ .addCase(verifyPACI.pending, function (state) {
1103
+ state.loading = true;
1104
+ state.error = null;
1105
+ })
1106
+ .addCase(verifyPACI.fulfilled, function (state, action) {
1107
+ var _a;
1108
+ state.loading = false;
1109
+ var data = action.payload;
1110
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
1111
+ })
1112
+ .addCase(verifyPACI.rejected, function (state, action) {
1113
+ state.loading = false;
1114
+ var error = action.error.message;
1115
+ if (error !== 'Aborted') {
1116
+ state.error = error;
1117
+ }
1118
+ })
1119
+ .addCase(checkAccountAvailability.pending, function (state) {
1120
+ state.loading = true;
1121
+ state.error = null;
1122
+ })
1123
+ .addCase(checkAccountAvailability.fulfilled, function (state, action) {
1124
+ state.error = null;
1125
+ state.loading = false;
1126
+ var _a = action.payload, brandList = _a.brandList, entityList = _a.entityList;
1127
+ var eList = __spreadArray(__spreadArray([], entityList, true), [ADD_NEW_ENTITY], false);
1128
+ if (brandList === null || brandList === void 0 ? void 0 : brandList.length)
1129
+ state.data.authenticationData.brandInfo = brandList[0];
1130
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { brandList: brandList, entityList: eList });
1131
+ })
1132
+ .addCase(checkAccountAvailability.rejected, function (state, action) {
1133
+ state.loading = false;
1134
+ state.error = action.error.message;
1135
+ })
1136
+ .addCase(checkMigrationStatus.pending, function (state) {
1137
+ state.loading = true;
1138
+ state.error = null;
1139
+ })
1140
+ .addCase(checkMigrationStatus.fulfilled, function (state, action) {
1141
+ state.error = null;
1142
+ state.loading = false;
1143
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { migrationData: action.payload });
1144
+ })
1145
+ .addCase(checkMigrationStatus.rejected, function (state, action) {
1146
+ state.loading = false;
1147
+ state.error = action.error.message;
1148
+ })
1149
+ .addCase(getMerchantList.pending, function (state) {
1150
+ state.loading = true;
1151
+ state.error = null;
1152
+ })
1153
+ .addCase(getMerchantList.fulfilled, function (state, action) {
1154
+ state.loading = false;
1155
+ state.error = null;
1156
+ var _a = action.payload, list = _a.list, brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
1157
+ state.data.authenticationData.brandInfo = brandInfo;
1158
+ state.data.authenticationData.entityInfo = entityInfo;
1159
+ if (list === null || list === void 0 ? void 0 : list.length) {
1160
+ state.data.authMerchantData.merchantInfo = list[0];
1161
+ }
1162
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { merchantList: list });
1163
+ })
1164
+ .addCase(getMerchantList.rejected, function (state, action) {
1165
+ state.loading = false;
1166
+ state.error = action.error.message;
1167
+ })
1168
+ .addCase(confirmInfo.pending, function (state) {
1169
+ state.loading = true;
1170
+ state.error = null;
1171
+ })
1172
+ .addCase(confirmInfo.fulfilled, function (state) {
1173
+ state.loading = false;
1174
+ state.error = null;
1175
+ })
1176
+ .addCase(confirmInfo.rejected, function (state, action) {
1177
+ state.loading = false;
1178
+ state.error = action.error.message;
1179
+ })
1180
+ .addCase(onSignUp.pending, function (state) {
1181
+ state.loading = true;
1182
+ state.error = null;
1183
+ })
1184
+ .addCase(onSignUp.fulfilled, function (state) {
1185
+ state.loading = false;
1186
+ state.error = null;
1187
+ })
1188
+ .addCase(onSignUp.rejected, function (state, action) {
1189
+ state.loading = false;
1190
+ state.error = action.error.message;
1191
+ })
1192
+ .addCase(createEntity.pending, function (state) {
1193
+ state.loading = true;
1194
+ state.error = null;
1195
+ })
1196
+ .addCase(createEntity.rejected, function (state, action) {
1197
+ state.loading = false;
1198
+ state.error = action.error.message;
1199
+ })
1200
+ .addCase(createEntity.fulfilled, function (state, action) {
1201
+ state.loading = false;
1202
+ state.error = null;
1203
+ var data = action.payload.data;
1204
+ var entityList = (state.data.responseData || {}).entityList;
1205
+ if (data === null || data === void 0 ? void 0 : data.entity) {
1206
+ var entity = __assign(__assign({}, data.entity), { business_id: data === null || data === void 0 ? void 0 : data.business_id });
1207
+ var list = __spreadArray([entity], entityList, true);
1208
+ state.data.authenticationData.entityInfo = list[0];
1209
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { entityData: data, entityList: list });
1210
+ }
1211
+ });
1212
+ }
1213
+ });
1214
+ export var clearError = (_a = authSlice.actions, _a.clearError), resetStore = _a.resetStore, setMobileCountryCode = _a.setMobileCountryCode, setLeadId = _a.setLeadId, resetOTPValue = _a.resetOTPValue, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen, storeIsBusinessCountryPassed = _a.storeIsBusinessCountryPassed, resetPasswordValue = _a.resetPasswordValue;
1215
+ export default authSlice.reducer;
1216
+ export var authSelector = function (state) { return state.auth; };