@tap-payments/auth-jsconnect 2.8.66-development → 2.8.68-development

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 (505) hide show
  1. package/build/@types/app.d.ts +17 -17
  2. package/build/@types/config.d.ts +1 -1
  3. package/build/@types/form.d.ts +24 -24
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/auth.d.ts +26 -13
  7. package/build/api/availabilityServices.d.ts +3 -3
  8. package/build/api/axios.js +1 -1
  9. package/build/api/board.d.ts +3 -3
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/country.d.ts +1 -1
  12. package/build/api/data.d.ts +8 -8
  13. package/build/api/document.d.ts +2 -2
  14. package/build/api/entity.d.ts +10 -10
  15. package/build/api/file.d.ts +1 -1
  16. package/build/api/firebase.js +1 -1
  17. package/build/api/index.d.ts +2 -2
  18. package/build/api/individual.d.ts +5 -5
  19. package/build/api/init.d.ts +1 -1
  20. package/build/api/lead.d.ts +18 -12
  21. package/build/api/lead.js +1 -1
  22. package/build/api/operator.d.ts +2 -2
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.d.ts +2 -2
  25. package/build/app/settings.d.ts +21 -3
  26. package/build/app/settings.js +1 -1
  27. package/build/app/store.d.ts +4 -4
  28. package/build/assets/locales/ar.json +10 -1
  29. package/build/assets/locales/en.json +10 -1
  30. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  31. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  32. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  33. package/build/components/AnimationFlow/Error.d.ts +1 -2
  34. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  35. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  36. package/build/components/Button/Button.d.ts +1 -1
  37. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  38. package/build/components/Collapse/Collapse.d.ts +1 -2
  39. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  40. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  41. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  42. package/build/components/FileInput/UploadInput.d.ts +1 -2
  43. package/build/components/Footer/Footer.d.ts +1 -1
  44. package/build/components/Form/Form.d.ts +1 -1
  45. package/build/components/Input/Input.d.ts +1 -1
  46. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  47. package/build/components/List/List.d.ts +1 -1
  48. package/build/components/ListItem/ListItem.d.ts +1 -1
  49. package/build/components/Loader/Loader.d.ts +1 -1
  50. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  51. package/build/components/OTPField/OTPField.d.ts +1 -1
  52. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  53. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  54. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  55. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  56. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  57. package/build/components/Radio/Radio.d.ts +1 -1
  58. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  59. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  60. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  61. package/build/components/Slide/Slide.d.ts +1 -1
  62. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  63. package/build/components/Text/Text.d.ts +1 -1
  64. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  65. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  66. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  67. package/build/components/Warning/Warning.d.ts +1 -1
  68. package/build/constants/app.d.ts +2 -1
  69. package/build/constants/app.js +35 -12
  70. package/build/constants/assets.d.ts +2 -0
  71. package/build/constants/assets.js +2 -0
  72. package/build/features/app/auth/authStore.d.ts +195 -25
  73. package/build/features/app/auth/authStore.js +59 -114
  74. package/build/features/app/bank/bankStore.d.ts +93 -12
  75. package/build/features/app/bank/bankStore.js +1 -1
  76. package/build/features/app/board/boardStore.d.ts +41 -5
  77. package/build/features/app/board/boardStore.js +1 -1
  78. package/build/features/app/brand/brandStore.d.ts +143 -17
  79. package/build/features/app/brand/brandStore.js +1 -1
  80. package/build/features/app/business/businessStore.d.ts +168 -19
  81. package/build/features/app/business/businessStore.js +59 -45
  82. package/build/features/app/connect/connectStore.d.ts +160 -18
  83. package/build/features/app/connect/connectStore.js +152 -83
  84. package/build/features/app/connectExpress/connectExpressStore.d.ts +269 -40
  85. package/build/features/app/connectExpress/connectExpressStore.js +157 -252
  86. package/build/features/app/entity/entityStore.d.ts +93 -12
  87. package/build/features/app/entity/entityStore.js +1 -1
  88. package/build/features/app/individual/individualStore.d.ts +186 -24
  89. package/build/features/app/individual/individualStore.js +5 -2
  90. package/build/features/app/password/passwordStore.d.ts +123 -15
  91. package/build/features/app/password/passwordStore.js +1 -1
  92. package/build/features/app/signIn/signInStore.d.ts +61 -7
  93. package/build/features/app/signIn/signInStore.js +1 -1
  94. package/build/features/app/tax/taxStore.d.ts +83 -11
  95. package/build/features/app/tax/taxStore.js +1 -1
  96. package/build/features/auth/Auth.d.ts +1 -2
  97. package/build/features/auth/Auth.js +1 -1
  98. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  99. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  100. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  101. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  102. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -2
  103. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  104. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  105. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  106. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  107. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  108. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  109. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  110. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  111. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  112. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  113. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  114. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  115. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  116. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  117. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  118. package/build/features/auth/screens/NID/NID.js +4 -10
  119. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  120. package/build/features/auth/screens/NID/validation.js +0 -1
  121. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  122. package/build/features/auth/screens/OTP/OTP.js +1 -5
  123. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  124. package/build/features/auth/screens/OTP/OTPInput.js +2 -13
  125. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  126. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  127. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  128. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  129. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  130. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  131. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +34 -0
  132. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  133. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  134. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  135. package/build/features/bank/Bank.d.ts +1 -2
  136. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  137. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  138. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  139. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  140. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  141. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  142. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  143. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  144. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  145. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  146. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  147. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  148. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  149. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  150. package/build/features/board/Board.d.ts +1 -2
  151. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  152. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  153. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  154. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  155. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  156. package/build/features/brand/Brand.d.ts +1 -2
  157. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
  158. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  159. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  160. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  161. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  162. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
  163. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
  164. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  165. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  166. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  167. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  168. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  169. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  170. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  171. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  172. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  173. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  174. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  175. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  176. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  177. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  178. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  179. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  180. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  181. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  182. package/build/features/business/Business.d.ts +1 -2
  183. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  184. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  185. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  186. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  187. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  188. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  189. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  190. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  191. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  192. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  193. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  194. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  195. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  196. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  197. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  198. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  199. package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
  200. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  201. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  202. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  203. package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
  204. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  205. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  206. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  207. package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
  208. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
  209. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  210. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  211. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  212. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  213. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  214. package/build/features/business/screens/Success/Success.d.ts +1 -1
  215. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  216. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  217. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  218. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  219. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +34 -0
  220. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  221. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  222. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  223. package/build/features/connect/Connect.d.ts +1 -2
  224. package/build/features/connect/Connect.js +1 -1
  225. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  226. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  227. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  228. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  229. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  230. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  231. package/build/features/connect/screens/Individual/Email.js +1 -1
  232. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  233. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  234. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  235. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  236. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  237. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  238. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  239. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  240. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  241. package/build/features/connect/screens/Mobile/Mobile.js +2 -2
  242. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  243. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  244. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  245. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  246. package/build/features/connect/screens/NID/NID.js +5 -11
  247. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  248. package/build/features/connect/screens/NID/validation.js +0 -1
  249. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  250. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  251. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  252. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  253. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  254. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  255. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +34 -0
  256. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  257. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  258. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  259. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  260. package/build/features/connectExpress/ConnectExpress.js +1 -1
  261. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  262. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  263. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  264. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  265. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  266. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  267. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  268. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  269. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  270. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  271. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  272. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  273. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  274. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  275. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  276. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  277. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  280. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
  281. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
  282. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  283. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  284. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  285. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  286. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  287. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  288. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +34 -0
  289. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  290. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  291. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  292. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  293. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -2
  294. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  295. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  296. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  297. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  298. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  299. package/build/features/connectExpress/screens/NID/NID.js +4 -9
  300. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
  301. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  302. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  303. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  304. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  305. package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
  306. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  307. package/build/features/connectExpress/screens/OTP/OTP.js +5 -13
  308. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  309. package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -11
  310. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  311. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  312. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  313. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  314. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +34 -0
  315. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  316. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  317. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  318. package/build/features/entity/Entity.d.ts +1 -2
  319. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  320. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  321. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  322. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  323. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  324. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  325. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  326. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
  327. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  328. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  329. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  330. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  331. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  332. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  333. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  334. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  335. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  336. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  337. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  338. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  339. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  340. package/build/features/featuresScreens.js +21 -6
  341. package/build/features/individual/Individual.d.ts +1 -2
  342. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  343. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  344. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  345. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
  346. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  347. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  348. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
  349. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  350. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  351. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  352. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  353. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  354. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  355. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  356. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  357. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  358. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  359. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  360. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  361. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
  362. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  363. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  364. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  365. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  366. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  367. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  368. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  369. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  370. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  371. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  372. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  373. package/build/features/password/Password.d.ts +1 -2
  374. package/build/features/password/Password.js +1 -1
  375. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  376. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  377. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  378. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  379. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  380. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  381. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  382. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  383. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  384. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  385. package/build/features/password/screens/Success/Success.d.ts +1 -1
  386. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  387. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  388. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  389. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  390. package/build/features/shared/Address/Address.d.ts +1 -2
  391. package/build/features/shared/Address/CountryList.d.ts +14 -46
  392. package/build/features/shared/Address/InputSelect.d.ts +14 -46
  393. package/build/features/shared/Address/InputSelect.js +1 -1
  394. package/build/features/shared/Address/InputText.d.ts +1 -1
  395. package/build/features/shared/Background/Background.d.ts +1 -1
  396. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  397. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  398. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  399. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  400. package/build/features/shared/Button/Button.d.ts +1 -2
  401. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  402. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  403. package/build/features/shared/Button/FlowsButtons.js +1 -1
  404. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  405. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  406. package/build/features/shared/Button/NafathButton.d.ts +7 -0
  407. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +13 -3
  408. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  409. package/build/features/shared/Button/index.d.ts +2 -2
  410. package/build/features/shared/Button/index.js +2 -2
  411. package/build/features/shared/Calender/Calender.d.ts +1 -2
  412. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  413. package/build/features/shared/Chip/Chip.d.ts +1 -2
  414. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  415. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  416. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  417. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  418. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  419. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  420. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  421. package/build/features/shared/Dot/Dot.d.ts +1 -2
  422. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  423. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  424. package/build/features/shared/Footer/Footer.d.ts +1 -2
  425. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  426. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  427. package/build/features/shared/Input/Input.d.ts +6 -14
  428. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  429. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  430. package/build/features/shared/NafathVerification/NafathVerification.d.ts +13 -0
  431. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  432. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  433. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  434. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  435. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  436. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  437. package/build/features/shared/NafathVerification/index.js +2 -0
  438. package/build/features/shared/OTP/OTP.d.ts +1 -1
  439. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  440. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  441. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  442. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  443. package/build/features/shared/Search/Search.d.ts +1 -2
  444. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  445. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  446. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  447. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
  448. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  449. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
  450. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
  451. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
  452. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  453. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
  454. package/build/features/signIn/SignIn.d.ts +1 -2
  455. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  456. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  457. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  458. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  459. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  460. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  461. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  462. package/build/features/tax/Tax.d.ts +1 -2
  463. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  464. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  465. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  466. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  467. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  468. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  469. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  470. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  471. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  472. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  473. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  474. package/build/hooks/useDataVerified.d.ts +1 -1
  475. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  476. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  477. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  478. package/build/hooks/useFormReadOnly.d.ts +2 -2
  479. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  480. package/build/theme/palette.js +2 -1
  481. package/build/utils/array.js +1 -1
  482. package/package.json +1 -1
  483. package/build/features/auth/screens/NID/DOB.d.ts +0 -7
  484. package/build/features/auth/screens/NID/DOB.js +0 -47
  485. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  486. package/build/features/business/screens/OTP/OTP.js +0 -90
  487. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  488. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  489. package/build/features/business/screens/OTP/index.d.ts +0 -3
  490. package/build/features/business/screens/OTP/index.js +0 -2
  491. package/build/features/business/screens/OTP/validation.d.ts +0 -8
  492. package/build/features/business/screens/OTP/validation.js +0 -4
  493. package/build/features/connect/screens/NID/DOB.d.ts +0 -6
  494. package/build/features/connect/screens/NID/DOB.js +0 -47
  495. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
  496. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -88
  497. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  498. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -56
  499. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  500. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  501. package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +0 -8
  502. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  503. package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -7
  504. package/build/features/connectExpress/screens/NID/DOB.js +0 -47
  505. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
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
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -307,80 +307,109 @@ export var resendMobileAuthOTP = createAsyncThunk('connectExpress/resendMobileAu
307
307
  }
308
308
  });
309
309
  }); });
310
- export var createNIDAuthAsync = createAsyncThunk('connectExpress/createNIDAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
311
- var _a, settings, connectExpress, dob, nid, nidType, countryCode, requestBody, data;
312
- var _b, _c;
313
- return __generator(this, function (_d) {
314
- switch (_d.label) {
310
+ export var createNafathAuth = createAsyncThunk('connectExpress/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
311
+ var settings, requestBody, data;
312
+ var _a, _b;
313
+ return __generator(this, function (_c) {
314
+ switch (_c.label) {
315
315
  case 0:
316
- _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
317
- dob = params.dob, nid = params.nid;
318
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
319
- countryCode = settings.data.businessCountry.iso2;
316
+ settings = thunkApi.getState().settings;
320
317
  requestBody = {
321
- country: countryCode,
318
+ country: settings.data.businessCountry.iso2,
322
319
  scope: settings.data.appConfig.scope,
323
320
  lang: settings.data.language,
324
- lead_id: connectExpress.data.leadId,
325
321
  user_credentail: {
326
- identification_id: nid,
327
- identification_id_type: nidType,
328
- date_of_birth: dob,
329
- country_code: countryCode
322
+ identification_id: params.nid,
323
+ identification_id_type: IDENTIFICATION_TYPE.NAFATH,
324
+ country_code: settings.data.businessCountry.iso2
330
325
  },
331
326
  sign_in: false,
332
327
  is_lead: true,
333
328
  step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_NID,
334
- encryption_contract: [
335
- 'user_credentail.country_code',
336
- 'user_credentail.identification_id',
337
- 'user_credentail.identification_id_type',
338
- 'user_credentail.date_of_birth'
339
- ]
329
+ encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
340
330
  };
341
- return [4, API.authService.createExpressAuth(requestBody)];
331
+ return [4, API.authService.createAuthKitNID(requestBody)];
342
332
  case 1:
343
- data = _d.sent();
333
+ data = _c.sent();
344
334
  thunkApi.dispatch(handleNextScreenStep());
345
- (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
346
- return [2, { response: data, formData: params }];
335
+ (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody);
336
+ return [2, { response: data, formData: __assign(__assign({}, params), { type: IDENTIFICATION_TYPE.NAFATH }) }];
347
337
  }
348
338
  });
349
339
  }); });
350
- export var resendNIDAuthOTP = createAsyncThunk('connectExpress/resendNIDAuthOTPExpress', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
351
- var _a, settings, connectExpress, dob, nid, nidType, countryCode, requestBody, data;
352
- return __generator(this, function (_b) {
353
- switch (_b.label) {
340
+ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
341
+ var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
342
+ var _d, _e, _f;
343
+ return __generator(this, function (_g) {
344
+ switch (_g.label) {
354
345
  case 0:
355
346
  _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
356
- dob = params.dob, nid = params.nid;
357
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
358
- countryCode = settings.data.businessCountry.iso2;
359
- requestBody = {
360
- country: countryCode,
361
- scope: settings.data.appConfig.scope,
362
- lang: settings.data.language,
363
- lead_id: connectExpress.data.leadId,
364
- user_credentail: {
365
- identification_id: nid,
366
- identification_id_type: nidType,
367
- date_of_birth: dob,
368
- country_code: countryCode
369
- },
370
- sign_in: false,
371
- is_lead: true,
372
- step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_NID,
373
- encryption_contract: [
374
- 'user_credentail.country_code',
375
- 'user_credentail.identification_id',
376
- 'user_credentail.identification_id_type',
377
- 'user_credentail.date_of_birth'
378
- ]
379
- };
380
- return [4, API.authService.createExpressAuth(requestBody)];
347
+ authData = (connectExpress.data.responseData || {}).authData;
348
+ _b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
349
+ isScopeAuthentication = scope === SCOPE_AUTH;
350
+ bi = settings.data.deviceInfo.browser.browser_id;
351
+ isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
352
+ authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
353
+ expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
354
+ interval = 3;
355
+ maxCalls = Math.floor(expiry / interval);
356
+ count = 1;
357
+ _g.label = 1;
381
358
  case 1:
382
- data = _b.sent();
383
- return [2, { response: data, formData: params }];
359
+ if (!(count <= maxCalls)) return [3, 9];
360
+ if (thunkApi.signal.aborted) {
361
+ return [3, 9];
362
+ }
363
+ return [4, API.authService.getVerifyAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token)];
364
+ case 2:
365
+ data = _g.sent();
366
+ isSuccess = ((_e = (_d = data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'completed';
367
+ if (!isSuccess) return [3, 6];
368
+ authId = data.auth.id;
369
+ thunkApi.dispatch(storeAuthId(authId));
370
+ if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
371
+ if (settings.data.appConfig.mode === 'popup') {
372
+ settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
373
+ thunkApi.dispatch(handleOpen(false));
374
+ return [2, data];
375
+ }
376
+ if (redirectUrl) {
377
+ urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
378
+ window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
379
+ return [2, data];
380
+ }
381
+ }
382
+ if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 4];
383
+ return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
384
+ case 3:
385
+ _c = _g.sent(), brandList = _c.brandList, entityList = _c.entityList;
386
+ if (brandList.length && entityList.length) {
387
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
388
+ return [2, data];
389
+ }
390
+ _g.label = 4;
391
+ case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
392
+ case 5:
393
+ _g.sent();
394
+ stepName = data.step_name;
395
+ needToCollectMoreInfo = stepName === 'collect_info';
396
+ creatingAccount = stepName === 'create_account';
397
+ (_f = params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
398
+ if (creatingAccount) {
399
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
400
+ }
401
+ if (needToCollectMoreInfo) {
402
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
403
+ }
404
+ return [2, data];
405
+ case 6: return [4, sleep(interval * 1000)];
406
+ case 7:
407
+ _g.sent();
408
+ _g.label = 8;
409
+ case 8:
410
+ count++;
411
+ return [3, 1];
412
+ case 9: throw new Error('nafath_verification_failed');
384
413
  }
385
414
  });
386
415
  }); });
@@ -488,82 +517,6 @@ export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileO
488
517
  }
489
518
  });
490
519
  }); });
491
- export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
492
- var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
493
- var _f, _g;
494
- return __generator(this, function (_h) {
495
- switch (_h.label) {
496
- case 0:
497
- _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
498
- _b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, nidData = _b.nidData;
499
- if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
500
- throw new Error('Auth data is missing');
501
- _c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
502
- _d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
503
- isScopeAuthentication = scope === SCOPE_AUTH;
504
- bi = settings.data.deviceInfo.browser.browser_id;
505
- isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
506
- authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
507
- payload = {
508
- auth_token: auth_token,
509
- lead_id: leadId,
510
- data: params.otp,
511
- auth_type: 2,
512
- device_token: device_token,
513
- service_name: service_name || 'ABSHER',
514
- sign_in: false,
515
- terms: isLeadIdPassed && nidData.termAndConditionChecked ? ['general'] : undefined,
516
- step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_NID,
517
- encryption_contract: ['data']
518
- };
519
- return [4, API.authService.verifyExpressAuth(payload)];
520
- case 1:
521
- data = _h.sent();
522
- sendCustomEventToGTM({
523
- event: 'Send Event',
524
- event_category: 'User Registration Flow',
525
- event_action: 'First OTP Success'
526
- });
527
- (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
528
- authId = data.auth.id;
529
- thunkApi.dispatch(storeAuthId(authId));
530
- if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
531
- if (settings.data.appConfig.mode === 'popup') {
532
- settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
533
- thunkApi.dispatch(handleOpen(false));
534
- return [2, data];
535
- }
536
- if (redirectUrl) {
537
- urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
538
- window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
539
- return [2, data];
540
- }
541
- }
542
- if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
543
- return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
544
- case 2:
545
- _e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
546
- if (brandList.length && entityList.length) {
547
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
548
- return [2, data];
549
- }
550
- _h.label = 3;
551
- case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
552
- case 4:
553
- _h.sent();
554
- stepName = data.step_name;
555
- needToCollectMoreInfo = stepName === 'collect_info';
556
- creatingAccount = stepName === 'create_account';
557
- if (creatingAccount) {
558
- sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
559
- }
560
- if (needToCollectMoreInfo) {
561
- sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
562
- }
563
- return [2, data];
564
- }
565
- });
566
- }); });
567
520
  export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
568
521
  var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
569
522
  var _d, _e, _f;
@@ -668,28 +621,29 @@ export var createCivilIDAuthIdentityAsync = createAsyncThunk('connectExpress/cre
668
621
  }
669
622
  });
670
623
  }); });
671
- export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createNIDAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
672
- var _a, settings, connectExpress, dob, nid, nidType, countryCode, requestBody, data;
624
+ export var createNIDNafathAuthIdentityAsync = createAsyncThunk('connectExpress/createNIDNafathAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
625
+ var _a, settings, connectExpress, nid, dob, nidType, countryCode, authData, requestBody, data;
673
626
  var _b, _c, _d;
674
627
  return __generator(this, function (_e) {
675
628
  switch (_e.label) {
676
629
  case 0:
677
630
  _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
678
- dob = params.dob, nid = params.nid;
679
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
631
+ nid = params.nid, dob = params.dob;
632
+ nidType = IDENTIFICATION_TYPE.NAFATH;
680
633
  countryCode = settings.data.businessCountry.iso2;
681
634
  if (isOtherThanKWOrSA(countryCode)) {
682
635
  nidType = IDENTIFICATION_TYPE.NID;
683
636
  }
637
+ authData = (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData;
684
638
  requestBody = {
685
- id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
639
+ id: authData === null || authData === void 0 ? void 0 : authData.lead_id,
686
640
  identification: {
687
641
  id: nid,
688
642
  issued_country_code: countryCode,
689
643
  type: nidType
690
644
  },
691
- country_code: countryCode,
692
645
  date_of_birth: dob,
646
+ country_code: countryCode,
693
647
  step_name: CONNECT_EXPRESS_STEP_NAMES.IDENTITY_AUTH,
694
648
  encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
695
649
  };
@@ -697,7 +651,7 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
697
651
  case 1:
698
652
  data = _e.sent();
699
653
  if (!((data === null || data === void 0 ? void 0 : data.verify_token) !== 'null')) return [3, 2];
700
- thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_OTP_IDENTITY_STEP'));
654
+ thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP'));
701
655
  return [3, 4];
702
656
  case 2:
703
657
  if (!isOtherThanKWOrSA(countryCode)) return [3, 4];
@@ -707,77 +661,40 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
707
661
  thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'));
708
662
  _e.label = 4;
709
663
  case 4:
710
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.identification);
664
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody);
711
665
  return [2, { response: { verify_token: data.verify_token }, formData: params }];
712
666
  }
713
667
  });
714
668
  }); });
715
- export var resendNIDAuthIdentityOTP = createAsyncThunk('connectExpress/resendNIDAuthIdentityOTPExpress', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
716
- var _a, settings, connectExpress, dob, nid, nidType, countryCode, requestBody, data;
717
- var _b;
718
- return __generator(this, function (_c) {
719
- switch (_c.label) {
720
- case 0:
721
- _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
722
- dob = params.dob, nid = params.nid;
723
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
724
- countryCode = settings.data.businessCountry.iso2;
725
- if (isOtherThanKWOrSA(countryCode)) {
726
- nidType = IDENTIFICATION_TYPE.NID;
727
- }
728
- requestBody = {
729
- id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
730
- identification: {
731
- id: nid,
732
- issued_country_code: countryCode,
733
- type: nidType
734
- },
735
- country_code: countryCode,
736
- date_of_birth: dob,
737
- step_name: CONNECT_EXPRESS_STEP_NAMES.IDENTITY_AUTH,
738
- encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
739
- };
740
- return [4, API.leadService.updateLead(requestBody)];
741
- case 1:
742
- data = _c.sent();
743
- return [2, { response: { verify_token: data.verify_token }, formData: params }];
744
- }
745
- });
746
- }); });
747
- export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/verifyNIDOtpLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
748
- var _a, settings, connectExpress, _b, responseData, leadId, verify_token, payload, data, needToCollectMoreInfo, creatingAccount;
749
- var _c, _d;
750
- return __generator(this, function (_e) {
751
- switch (_e.label) {
669
+ export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNafathIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
670
+ var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, needToCollectMoreInfo, creatingAccount;
671
+ var _a, _b, _c;
672
+ return __generator(this, function (_d) {
673
+ switch (_d.label) {
752
674
  case 0:
753
- _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
754
- _b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId;
755
- if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
756
- throw new Error('Auth data is missing');
757
- verify_token = responseData.authData.verify_token;
758
- payload = {
759
- verify_token: verify_token,
760
- lead_id: leadId,
761
- data: params.otp,
762
- service_name: 'absher',
763
- sign_in: false,
764
- step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_IDENTITY_AUTH,
765
- encryption_contract: ['data']
766
- };
767
- return [4, API.authService.verifyExpressLeadIdentity(payload)];
675
+ connectExpress = thunkApi.getState().connectExpress;
676
+ authData = (connectExpress.data.responseData || {}).authData;
677
+ expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
678
+ interval = 3;
679
+ maxCalls = Math.floor(expiry / interval);
680
+ count = 1;
681
+ _d.label = 1;
768
682
  case 1:
769
- data = _e.sent();
770
- sendCustomEventToGTM({
771
- event: 'Send Event',
772
- event_category: 'User Registration Flow',
773
- event_action: 'Absher OTP Success'
774
- });
775
- return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
683
+ if (!(count <= maxCalls)) return [3, 7];
684
+ if (thunkApi.signal.aborted) {
685
+ return [3, 7];
686
+ }
687
+ return [4, API.authService.getExpressTokenVerify({ token: authData === null || authData === void 0 ? void 0 : authData.verify_token, leadId: authData === null || authData === void 0 ? void 0 : authData.lead_id })];
776
688
  case 2:
777
- _e.sent();
778
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
689
+ data = _d.sent();
690
+ isSuccess = ((_b = (_a = data.auth) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'completed';
691
+ if (!isSuccess) return [3, 4];
692
+ return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
693
+ case 3:
694
+ _d.sent();
779
695
  needToCollectMoreInfo = data.step_name === 'collect_info';
780
696
  creatingAccount = data.step_name === 'create_account';
697
+ (_c = params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params);
781
698
  if (creatingAccount) {
782
699
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
783
700
  }
@@ -785,10 +702,18 @@ export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/veri
785
702
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
786
703
  }
787
704
  return [2, data];
705
+ case 4: return [4, sleep(interval * 1000)];
706
+ case 5:
707
+ _d.sent();
708
+ _d.label = 6;
709
+ case 6:
710
+ count++;
711
+ return [3, 1];
712
+ case 7: throw new Error('nafath_verification_failed');
788
713
  }
789
714
  });
790
715
  }); });
791
- export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verifyPaciOtpLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
716
+ export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verifyPaciLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
792
717
  var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, needToCollectMoreInfo, creatingAccount;
793
718
  var _a, _b, _c;
794
719
  return __generator(this, function (_d) {
@@ -831,7 +756,7 @@ export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verify
831
756
  case 6:
832
757
  count++;
833
758
  return [3, 1];
834
- case 7: throw new Error('paci_verification_failed');
759
+ case 7: throw new Error('nafath_verification_failed');
835
760
  }
836
761
  });
837
762
  }); });
@@ -1176,7 +1101,6 @@ var initialState = {
1176
1101
  },
1177
1102
  nidData: {
1178
1103
  nid: '',
1179
- dob: '',
1180
1104
  termAndConditionChecked: false
1181
1105
  },
1182
1106
  civilIdData: {
@@ -1265,11 +1189,9 @@ export var connectSlice = createSlice({
1265
1189
  state.customLoading = false;
1266
1190
  var _a = action.payload, data = _a.data, countryCode = _a.countryCode, boardInfo = _a.boardInfo, boardData = _a.boardData;
1267
1191
  state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data, boardInfo: boardInfo, boardData: boardData });
1268
- var _b = data || {}, identification = _b.identification, date_of_birth = _b.date_of_birth, contact = _b.contact, terms_conditions_accepted = _b.terms_conditions_accepted;
1192
+ var _b = data || {}, identification = _b.identification, contact = _b.contact, terms_conditions_accepted = _b.terms_conditions_accepted;
1269
1193
  if (identification === null || identification === void 0 ? void 0 : identification.id)
1270
1194
  state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
1271
- if (date_of_birth)
1272
- state.data.nidData.dob = date_of_birth;
1273
1195
  var phone = (contact || {}).phone;
1274
1196
  if (phone) {
1275
1197
  state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
@@ -1293,11 +1215,9 @@ export var connectSlice = createSlice({
1293
1215
  state.loading = false;
1294
1216
  var _c = action.payload, data = _c.data, countryCode = _c.countryCode;
1295
1217
  state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data });
1296
- var _d = data || {}, name = _d.name, contact = _d.contact, brand = _d.brand, identification = _d.identification, date_of_birth = _d.date_of_birth, terms_conditions_accepted = _d.terms_conditions_accepted;
1218
+ var _d = data || {}, name = _d.name, contact = _d.contact, brand = _d.brand, identification = _d.identification, terms_conditions_accepted = _d.terms_conditions_accepted;
1297
1219
  if (identification === null || identification === void 0 ? void 0 : identification.id)
1298
1220
  state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
1299
- if (date_of_birth)
1300
- state.data.nidData.dob = date_of_birth;
1301
1221
  var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
1302
1222
  if (!!fullName) {
1303
1223
  var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
@@ -1344,29 +1264,20 @@ export var connectSlice = createSlice({
1344
1264
  .addCase(resendMobileAuthOTP.rejected, function (state, action) {
1345
1265
  state.error = action.error.message;
1346
1266
  })
1347
- .addCase(createNIDAuthAsync.pending, function (state) {
1348
- state.loading = true;
1349
- state.error = null;
1350
- })
1351
- .addCase(createNIDAuthAsync.fulfilled, function (state, action) {
1267
+ .addCase(createNafathAuth.fulfilled, function (state, action) {
1352
1268
  state.loading = false;
1353
- state.data.nidData = action.payload.formData;
1269
+ state.error = null;
1270
+ var _a = action.payload, formData = _a.formData, response = _a.response;
1271
+ state.data.nidData = formData;
1272
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: response });
1354
1273
  state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1355
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
1356
- })
1357
- .addCase(createNIDAuthAsync.rejected, function (state, action) {
1358
- state.loading = false;
1359
- state.error = action.error.message;
1360
1274
  })
1361
- .addCase(resendNIDAuthOTP.pending, function (state) {
1275
+ .addCase(createNafathAuth.pending, function (state) {
1276
+ state.loading = true;
1362
1277
  state.error = null;
1363
1278
  })
1364
- .addCase(resendNIDAuthOTP.fulfilled, function (state, action) {
1365
- state.data.nidData = action.payload.formData;
1366
- state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1367
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
1368
- })
1369
- .addCase(resendNIDAuthOTP.rejected, function (state, action) {
1279
+ .addCase(createNafathAuth.rejected, function (state, action) {
1280
+ state.loading = false;
1370
1281
  state.error = action.error.message;
1371
1282
  })
1372
1283
  .addCase(createCivilIdAuthAsync.pending, function (state) {
@@ -1398,32 +1309,20 @@ export var connectSlice = createSlice({
1398
1309
  state.loading = false;
1399
1310
  state.error = action.error.message;
1400
1311
  })
1401
- .addCase(createNIDAuthIdentityAsync.pending, function (state) {
1312
+ .addCase(createNIDNafathAuthIdentityAsync.pending, function (state) {
1402
1313
  state.loading = true;
1403
1314
  state.error = null;
1404
1315
  })
1405
- .addCase(createNIDAuthIdentityAsync.fulfilled, function (state, action) {
1316
+ .addCase(createNIDNafathAuthIdentityAsync.fulfilled, function (state, action) {
1406
1317
  var _a;
1407
1318
  state.loading = false;
1408
1319
  state.data.nidData = action.payload.formData;
1409
1320
  state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
1410
1321
  state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
1411
1322
  })
1412
- .addCase(createNIDAuthIdentityAsync.rejected, function (state, action) {
1323
+ .addCase(createNIDNafathAuthIdentityAsync.rejected, function (state, action) {
1413
1324
  state.loading = false;
1414
1325
  state.error = action.error.message;
1415
- })
1416
- .addCase(resendNIDAuthIdentityOTP.pending, function (state) {
1417
- state.error = null;
1418
- })
1419
- .addCase(resendNIDAuthIdentityOTP.fulfilled, function (state, action) {
1420
- var _a;
1421
- state.data.nidData = action.payload.formData;
1422
- state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
1423
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
1424
- })
1425
- .addCase(resendNIDAuthIdentityOTP.rejected, function (state, action) {
1426
- state.error = action.error.message;
1427
1326
  })
1428
1327
  .addCase(verifyMobileOtpAsync.pending, function (state) {
1429
1328
  state.loading = true;
@@ -1438,18 +1337,21 @@ export var connectSlice = createSlice({
1438
1337
  state.loading = false;
1439
1338
  state.error = action.error.message;
1440
1339
  })
1441
- .addCase(verifyNIDOtpAsync.pending, function (state) {
1340
+ .addCase(verifyNafathAsync.pending, function (state) {
1442
1341
  state.loading = true;
1443
1342
  state.error = null;
1444
1343
  })
1445
- .addCase(verifyNIDOtpAsync.fulfilled, function (state, action) {
1344
+ .addCase(verifyNafathAsync.fulfilled, function (state, action) {
1446
1345
  var _a;
1447
1346
  state.loading = false;
1448
1347
  state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
1449
1348
  })
1450
- .addCase(verifyNIDOtpAsync.rejected, function (state, action) {
1349
+ .addCase(verifyNafathAsync.rejected, function (state, action) {
1451
1350
  state.loading = false;
1452
- state.error = action.error.message;
1351
+ var error = action.error.message;
1352
+ if (error !== 'Aborted') {
1353
+ state.error = error;
1354
+ }
1453
1355
  })
1454
1356
  .addCase(verifyPACIAsync.pending, function (state) {
1455
1357
  state.loading = true;
@@ -1467,19 +1369,22 @@ export var connectSlice = createSlice({
1467
1369
  state.error = error;
1468
1370
  }
1469
1371
  })
1470
- .addCase(verifyNIDOtpLeadIdentityAsync.pending, function (state) {
1372
+ .addCase(verifyNafathIdentityAsync.pending, function (state) {
1471
1373
  state.loading = true;
1472
1374
  state.error = null;
1473
1375
  })
1474
- .addCase(verifyNIDOtpLeadIdentityAsync.fulfilled, function (state, action) {
1376
+ .addCase(verifyNafathIdentityAsync.fulfilled, function (state, action) {
1475
1377
  var _a, _b, _c;
1476
1378
  state.loading = false;
1477
1379
  var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
1478
1380
  state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
1479
1381
  })
1480
- .addCase(verifyNIDOtpLeadIdentityAsync.rejected, function (state, action) {
1382
+ .addCase(verifyNafathIdentityAsync.rejected, function (state, action) {
1481
1383
  state.loading = false;
1482
- state.error = action.error.message;
1384
+ var error = action.error.message;
1385
+ if (error !== 'Aborted') {
1386
+ state.error = error;
1387
+ }
1483
1388
  })
1484
1389
  .addCase(verifyPaciLeadIdentityAsync.pending, function (state) {
1485
1390
  state.loading = true;