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