@tap-payments/auth-jsconnect 2.6.2-test → 2.6.3

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 (638) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +150 -12
  3. package/build/@types/app.js +18 -1
  4. package/build/@types/config.d.ts +45 -0
  5. package/build/@types/config.js +1 -0
  6. package/build/@types/form.d.ts +19 -2
  7. package/build/@types/index.d.ts +1 -0
  8. package/build/@types/index.js +1 -0
  9. package/build/@types/redux.d.ts +1 -0
  10. package/build/@types/theme.d.ts +4 -0
  11. package/build/@types/theme.js +5 -0
  12. package/build/api/account.d.ts +5 -0
  13. package/build/api/account.js +16 -2
  14. package/build/api/auth.d.ts +25 -1
  15. package/build/api/auth.js +18 -1
  16. package/build/api/availabilityServices.d.ts +1 -0
  17. package/build/api/country.d.ts +1 -0
  18. package/build/api/country.js +8 -1
  19. package/build/api/data.d.ts +4 -17
  20. package/build/api/data.js +5 -45
  21. package/build/api/entity.d.ts +30 -2
  22. package/build/api/entity.js +49 -5
  23. package/build/api/firebase.js +68 -8
  24. package/build/api/index.d.ts +21 -25
  25. package/build/api/lead.d.ts +25 -3
  26. package/build/api/lead.js +47 -1
  27. package/build/api/operator.d.ts +10 -0
  28. package/build/api/operator.js +9 -1
  29. package/build/app/rootReducer.d.ts +2 -0
  30. package/build/app/rootReducer.js +5 -1
  31. package/build/app/settings.d.ts +14 -3
  32. package/build/app/settings.js +127 -41
  33. package/build/app/store.d.ts +4 -0
  34. package/build/assets/locales/ar.json +333 -131
  35. package/build/assets/locales/en.json +330 -131
  36. package/build/components/AnimationFlow/AnimationFlow.d.ts +14 -3
  37. package/build/components/AnimationFlow/AnimationFlow.js +16 -5
  38. package/build/components/AnimationFlow/BottomSheet.d.ts +7 -2
  39. package/build/components/AnimationFlow/BottomSheet.js +37 -12
  40. package/build/components/AnimationFlow/Dialog.d.ts +11 -2
  41. package/build/components/AnimationFlow/Dialog.js +7 -11
  42. package/build/components/AnimationFlow/Loader.d.ts +6 -1
  43. package/build/components/AnimationFlow/Loader.js +17 -5
  44. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  45. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  46. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  47. package/build/components/DatePicker/DatePicker.js +2 -2
  48. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  49. package/build/components/Footer/Footer.js +2 -1
  50. package/build/components/Providers/ThemeProvider.js +3 -3
  51. package/build/components/SimpleList/SimpleList.js +1 -1
  52. package/build/components/Slide/Slide.d.ts +1 -1
  53. package/build/components/Tooltip/Tooltip.js +1 -1
  54. package/build/constants/api.d.ts +11 -7
  55. package/build/constants/api.js +22 -14
  56. package/build/constants/app.d.ts +47 -0
  57. package/build/constants/app.js +393 -22
  58. package/build/constants/assets.d.ts +4 -0
  59. package/build/constants/assets.js +5 -1
  60. package/build/constants/dummy.d.ts +43 -196
  61. package/build/constants/dummy.js +614 -6141
  62. package/build/constants/validation.d.ts +5 -0
  63. package/build/constants/validation.js +6 -1
  64. package/build/features/app/auth/authStore.d.ts +103 -0
  65. package/build/features/app/auth/authStore.js +1179 -0
  66. package/build/features/app/bank/bankStore.d.ts +14 -18
  67. package/build/features/app/bank/bankStore.js +218 -158
  68. package/build/features/app/board/boardStore.d.ts +33 -0
  69. package/build/features/app/board/boardStore.js +269 -0
  70. package/build/features/app/brand/brandStore.d.ts +18 -31
  71. package/build/features/app/brand/brandStore.js +296 -263
  72. package/build/features/app/business/businessStore.d.ts +28 -10
  73. package/build/features/app/business/businessStore.js +361 -215
  74. package/build/features/app/connect/connectStore.d.ts +39 -15
  75. package/build/features/app/connect/connectStore.js +308 -207
  76. package/build/features/app/connectExpress/connectExpressStore.d.ts +71 -26
  77. package/build/features/app/connectExpress/connectExpressStore.js +897 -302
  78. package/build/features/app/entity/entityStore.d.ts +21 -34
  79. package/build/features/app/entity/entityStore.js +248 -246
  80. package/build/features/app/individual/individualStore.d.ts +24 -33
  81. package/build/features/app/individual/individualStore.js +336 -274
  82. package/build/features/app/password/passwordStore.d.ts +34 -18
  83. package/build/features/app/password/passwordStore.js +286 -219
  84. package/build/features/app/tax/taxStore.d.ts +14 -7
  85. package/build/features/app/tax/taxStore.js +202 -141
  86. package/build/features/auth/Auth.d.ts +14 -0
  87. package/build/features/auth/Auth.js +168 -0
  88. package/build/features/auth/index.d.ts +1 -0
  89. package/build/features/auth/index.js +1 -0
  90. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  91. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  92. package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -0
  93. package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -0
  94. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
  95. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -0
  96. package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
  97. package/build/features/auth/screens/AccountNotFound/index.js +2 -0
  98. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  99. package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -0
  100. package/build/features/auth/screens/AuthMerchant/MerchantList.d.ts +11 -0
  101. package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -0
  102. package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -0
  103. package/build/features/auth/screens/AuthMerchant/index.js +2 -0
  104. package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -0
  105. package/build/features/auth/screens/AuthMerchant/validation.js +4 -0
  106. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  107. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  108. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  109. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  110. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  111. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -0
  112. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
  113. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
  114. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  115. package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -0
  116. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  117. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -0
  118. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
  119. package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -0
  120. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  121. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -0
  122. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
  123. package/build/features/auth/screens/AuthenticationList/index.js +2 -0
  124. package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -0
  125. package/build/features/auth/screens/AuthenticationList/validation.js +68 -0
  126. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  127. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -0
  128. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
  129. package/build/features/auth/screens/BusinessCountry/index.js +2 -0
  130. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
  131. package/build/features/auth/screens/CivilID/CivilID.js +57 -0
  132. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
  133. package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
  134. package/build/features/auth/screens/CivilID/index.d.ts +3 -0
  135. package/build/features/auth/screens/CivilID/index.js +2 -0
  136. package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
  137. package/build/features/auth/screens/CivilID/validation.js +4 -0
  138. package/build/features/auth/screens/DOB/DOB.js +47 -0
  139. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  140. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  141. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  142. package/build/features/auth/screens/DOB/index.js +2 -0
  143. package/build/features/auth/screens/DOB/validation.d.ts +8 -0
  144. package/build/features/auth/screens/DOB/validation.js +4 -0
  145. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  146. package/build/features/auth/screens/Email/Email.js +57 -0
  147. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  148. package/build/features/auth/screens/Email/EmailField.js +52 -0
  149. package/build/features/auth/screens/Email/index.d.ts +3 -0
  150. package/build/features/auth/screens/Email/index.js +2 -0
  151. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  152. package/build/features/auth/screens/Email/validation.js +4 -0
  153. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  154. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  155. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  156. package/build/features/auth/screens/EmailSent/index.js +2 -0
  157. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  158. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  159. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  160. package/build/features/auth/screens/MigratingData/index.js +2 -0
  161. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
  162. package/build/features/auth/screens/Mobile/Mobile.js +82 -0
  163. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
  164. package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
  165. package/build/features/auth/screens/Mobile/index.d.ts +3 -0
  166. package/build/features/auth/screens/Mobile/index.js +2 -0
  167. package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
  168. package/build/features/auth/screens/Mobile/validation.js +35 -0
  169. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
  170. package/build/features/auth/screens/NID/IDNumber.js +55 -0
  171. package/build/features/auth/screens/NID/NID.d.ts +5 -0
  172. package/build/features/auth/screens/NID/NID.js +56 -0
  173. package/build/features/auth/screens/NID/index.d.ts +3 -0
  174. package/build/features/auth/screens/NID/index.js +2 -0
  175. package/build/features/auth/screens/NID/validation.d.ts +8 -0
  176. package/build/features/auth/screens/NID/validation.js +10 -0
  177. package/build/features/auth/screens/OTP/OTP.js +118 -0
  178. package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTPInput.js +27 -7
  179. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  180. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  181. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  182. package/build/features/auth/screens/OperatorError/index.js +2 -0
  183. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  184. package/build/features/auth/screens/Password/Password.js +61 -0
  185. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  186. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  187. package/build/features/auth/screens/Password/index.d.ts +3 -0
  188. package/build/features/auth/screens/Password/index.js +2 -0
  189. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  190. package/build/features/auth/screens/Password/validation.js +4 -0
  191. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
  192. package/build/features/auth/screens/PreparingData/PreparingData.js +44 -0
  193. package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
  194. package/build/features/auth/screens/PreparingData/index.js +2 -0
  195. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  196. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  197. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  198. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  199. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  200. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  201. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  202. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  203. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  204. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
  205. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
  206. package/build/features/auth/screens/VerifyPACI/index.js +2 -0
  207. package/build/features/bank/Bank.d.ts +2 -0
  208. package/build/features/bank/Bank.js +15 -9
  209. package/build/features/bank/screens/BankDetails/BankDetails.js +21 -7
  210. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  211. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  212. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  213. package/build/features/bank/screens/OperatorError/index.js +2 -0
  214. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  215. package/build/features/bank/screens/Verify/Verify.js +8 -7
  216. package/build/features/board/Board.d.ts +13 -0
  217. package/build/features/board/Board.js +87 -0
  218. package/build/features/board/index.d.ts +1 -0
  219. package/build/features/board/index.js +1 -0
  220. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  221. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  222. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  223. package/build/features/board/screens/OperatorError/index.js +2 -0
  224. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  225. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  226. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  227. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  228. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  229. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  230. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  231. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  232. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  233. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +44 -0
  234. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  235. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  236. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  237. package/build/features/{business/screens/OTP → board/screens/Verify}/OTPInput.js +9 -7
  238. package/build/features/{connectExpress/screens/IdentityOTP/OTP.js → board/screens/Verify/Verify.js} +25 -37
  239. package/build/features/board/screens/Verify/index.d.ts +2 -0
  240. package/build/features/board/screens/Verify/index.js +2 -0
  241. package/build/features/brand/Brand.d.ts +2 -0
  242. package/build/features/brand/Brand.js +15 -9
  243. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +9 -9
  244. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  245. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  246. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  247. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +5 -2
  248. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  249. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  250. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  251. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  252. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  253. package/build/features/brand/screens/BrandInfo/BrandInfo.js +27 -7
  254. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  255. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  256. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  257. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  258. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  259. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  260. package/build/features/brand/screens/OperatorError/index.js +2 -0
  261. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  262. package/build/features/brand/screens/Verify/Verify.js +4 -3
  263. package/build/features/business/Business.js +20 -12
  264. package/build/features/business/screens/Activities/Activities.js +27 -10
  265. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  266. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  267. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  268. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  269. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  270. package/build/features/business/screens/BusinessType/BusinessType.js +24 -8
  271. package/build/features/business/screens/BusinessType/EntityName.js +3 -3
  272. package/build/features/business/screens/BusinessType/LicenseList.js +3 -3
  273. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  274. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  275. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  276. package/build/features/business/screens/BusinessType/validation.js +16 -0
  277. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  278. package/build/features/business/screens/Customers/CustomerLocations.d.ts +14 -12
  279. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  280. package/build/features/business/screens/Customers/Customers.js +51 -11
  281. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  282. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  283. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  284. package/build/features/business/screens/Customers/ExpectedSalesRange.js +10 -4
  285. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  286. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  287. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  288. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  289. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  290. package/build/features/business/screens/Customers/validation.js +3 -8
  291. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  292. package/build/features/business/screens/DOB/DOB.js +45 -0
  293. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  294. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  295. package/build/features/business/screens/DOB/index.d.ts +3 -0
  296. package/build/features/business/screens/DOB/index.js +2 -0
  297. package/build/features/business/screens/DOB/validation.d.ts +8 -0
  298. package/build/features/business/screens/DOB/validation.js +4 -0
  299. package/build/features/business/screens/IDBOD/ID.js +6 -2
  300. package/build/features/business/screens/IDBOD/IDBOD.js +18 -19
  301. package/build/features/business/screens/IDBOD/validation.d.ts +7 -0
  302. package/build/features/business/screens/IDBOD/validation.js +4 -1
  303. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  304. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  305. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  306. package/build/features/business/screens/OperatorError/index.js +2 -0
  307. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  308. package/build/features/business/screens/Verify/Verify.js +16 -5
  309. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  310. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  311. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  312. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  313. package/build/features/connect/Connect.d.ts +5 -1
  314. package/build/features/connect/Connect.js +48 -31
  315. package/build/features/connect/screens/BrandSegment/BrandSegment.js +4 -26
  316. package/build/features/connect/screens/BrandSegment/TeamSize.js +1 -1
  317. package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -9
  318. package/build/features/connect/screens/BrandSegment/validation.js +0 -3
  319. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  320. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +113 -0
  321. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  322. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  323. package/build/features/connect/screens/CivilID/CivilID.js +12 -4
  324. package/build/features/{connectExpress/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  325. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  326. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  327. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  328. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  329. package/build/features/connect/screens/DOB/index.js +2 -0
  330. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  331. package/build/features/connect/screens/DOB/validation.js +4 -0
  332. package/build/features/connect/screens/Individual/Individual.js +12 -6
  333. package/build/features/connect/screens/Individual/MobileNumber.js +6 -3
  334. package/build/features/connect/screens/Individual/validation.js +8 -3
  335. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  336. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  337. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  338. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  339. package/build/features/connect/screens/Merchant/validation.js +2 -2
  340. package/build/features/connect/screens/Mobile/Mobile.js +14 -7
  341. package/build/features/connect/screens/Mobile/MobileNumber.js +14 -8
  342. package/build/features/connect/screens/Mobile/validation.js +8 -3
  343. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  344. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  345. package/build/features/connect/screens/NID/NID.js +10 -13
  346. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  347. package/build/features/connect/screens/NID/validation.js +0 -1
  348. package/build/features/connect/screens/OTP/OTP.js +7 -7
  349. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  350. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +5 -0
  351. package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
  352. package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
  353. package/build/features/connect/screens/OperatorError/index.js +2 -0
  354. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  355. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  356. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  357. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  358. package/build/features/connectExpress/ConnectExpress.d.ts +5 -3
  359. package/build/features/connectExpress/ConnectExpress.js +70 -40
  360. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  361. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  362. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  363. package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
  364. package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
  365. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  366. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
  367. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +11 -0
  368. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
  369. package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
  370. package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
  371. package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
  372. package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
  373. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  374. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +104 -0
  375. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
  376. package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
  377. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  378. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
  379. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  380. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  381. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
  382. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +138 -0
  383. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  384. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
  385. package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
  386. package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
  387. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +20 -0
  388. package/build/features/connectExpress/screens/AuthenticationList/validation.js +68 -0
  389. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  390. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -0
  391. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  392. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  393. package/build/features/connectExpress/screens/CivilID/CivilID.js +16 -5
  394. package/build/features/connectExpress/screens/CivilID/IDNumber.js +7 -2
  395. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
  396. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  397. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +20 -5
  398. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +6 -5
  399. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  400. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  401. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
  402. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  403. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  404. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +68 -1
  405. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +34 -7
  406. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +7 -4
  407. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +8 -3
  408. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  409. package/build/features/connectExpress/screens/DOB/DOB.d.ts +6 -0
  410. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  411. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  412. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  413. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  414. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  415. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  416. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  417. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  418. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  419. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  420. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  421. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +2 -2
  422. package/build/features/connectExpress/screens/Mobile/Mobile.js +17 -7
  423. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +17 -11
  424. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  425. package/build/features/connectExpress/screens/Mobile/validation.js +16 -6
  426. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  427. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  428. package/build/features/connectExpress/screens/NID/NID.js +15 -12
  429. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  430. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  431. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  432. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  433. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +6 -2
  434. package/build/features/connectExpress/screens/NIDMissed/NID.js +10 -8
  435. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +7 -0
  436. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -1
  437. package/build/features/connectExpress/screens/OTP/OTP.js +14 -16
  438. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  439. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  440. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  441. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  442. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  443. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  444. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  445. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  446. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  447. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -7
  448. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  449. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  450. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  451. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  452. package/build/features/entity/Entity.d.ts +2 -0
  453. package/build/features/entity/Entity.js +15 -9
  454. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  455. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +5 -3
  456. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +6 -4
  457. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  458. package/build/features/entity/screens/EntityName/EntityName.js +44 -19
  459. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +9 -9
  460. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  461. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  462. package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -7
  463. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  464. package/build/features/entity/screens/EntityName/IssuingDate.js +5 -7
  465. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  466. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -11
  467. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  468. package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
  469. package/build/features/entity/screens/EntityName/validation.js +38 -9
  470. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  471. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  472. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  473. package/build/features/entity/screens/OperatorError/index.js +2 -0
  474. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  475. package/build/features/entity/screens/Verify/Verify.js +4 -3
  476. package/build/features/featuresScreens.d.ts +2 -0
  477. package/build/features/featuresScreens.js +254 -15
  478. package/build/features/individual/Individual.d.ts +2 -0
  479. package/build/features/individual/Individual.js +15 -9
  480. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  481. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +55 -15
  482. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +36 -0
  483. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  484. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  485. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -4
  486. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -4
  487. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  488. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +4 -3
  489. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  490. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  491. package/build/features/individual/screens/IndividualList/MobileNumber.js +6 -3
  492. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  493. package/build/features/individual/screens/IndividualList/validation.js +8 -3
  494. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  495. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -2
  496. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  497. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +79 -21
  498. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -3
  499. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  500. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +72 -63
  501. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +7 -4
  502. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  503. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +8 -3
  504. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  505. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  506. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  507. package/build/features/individual/screens/OperatorError/index.js +2 -0
  508. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  509. package/build/features/individual/screens/Verify/Verify.js +4 -3
  510. package/build/features/password/Password.d.ts +2 -0
  511. package/build/features/password/Password.js +94 -32
  512. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  513. package/build/features/password/screens/OTP/OTP.js +4 -4
  514. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  515. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  516. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  517. package/build/features/password/screens/OperatorError/index.js +2 -0
  518. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  519. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  520. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  521. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  522. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  523. package/build/features/password/screens/Verify/Verify.js +8 -7
  524. package/build/features/shared/Address/CountryList.d.ts +7 -7
  525. package/build/features/shared/Address/InputSelect.d.ts +7 -7
  526. package/build/features/shared/Background/Background.d.ts +3 -1
  527. package/build/features/shared/Background/Background.js +9 -11
  528. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  529. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  530. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  531. package/build/features/shared/BusinessCountry/index.js +2 -0
  532. package/build/features/shared/Button/Button.js +11 -5
  533. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  534. package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
  535. package/build/features/shared/Button/FlowsButtons.js +29 -14
  536. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  537. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  538. package/build/features/shared/Button/index.d.ts +2 -2
  539. package/build/features/shared/Button/index.js +2 -2
  540. package/build/features/shared/Calender/Calender.d.ts +2 -1
  541. package/build/features/shared/Calender/Calender.js +3 -3
  542. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  543. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  544. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  545. package/build/features/shared/DataLoading/DataLoading.d.ts +4 -1
  546. package/build/features/shared/DataLoading/DataLoading.js +2 -2
  547. package/build/features/shared/Footer/Footer.js +2 -1
  548. package/build/features/shared/Input/Input.d.ts +2 -2
  549. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  550. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  551. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  552. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  553. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  554. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  555. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  556. package/build/features/shared/NafathVerification/index.js +2 -0
  557. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +8 -1
  558. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +11 -14
  559. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  560. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  561. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  562. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  563. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  564. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  565. package/build/features/signIn/SignIn.js +18 -7
  566. package/build/features/signIn/screens/Mobile/MobileNumber.js +6 -3
  567. package/build/features/signIn/screens/Mobile/validation.js +8 -3
  568. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  569. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  570. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  571. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  572. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  573. package/build/features/tax/Tax.d.ts +2 -0
  574. package/build/features/tax/Tax.js +15 -9
  575. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  576. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  577. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  578. package/build/features/tax/screens/OperatorError/index.js +2 -0
  579. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  580. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  581. package/build/features/tax/screens/Verify/Verify.js +8 -7
  582. package/build/hooks/index.d.ts +3 -0
  583. package/build/hooks/index.js +3 -0
  584. package/build/hooks/useAppConfig.d.ts +3 -3
  585. package/build/hooks/useAppConfig.js +9 -6
  586. package/build/hooks/useAppDispatch.d.ts +2 -0
  587. package/build/hooks/useAppTheme.js +4 -3
  588. package/build/hooks/useCountDown.d.ts +10 -0
  589. package/build/hooks/useCountDown.js +17 -0
  590. package/build/hooks/useCountry.d.ts +1 -0
  591. package/build/hooks/useCountry.js +4 -3
  592. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  593. package/build/hooks/useFormDirtyCheck.js +66 -0
  594. package/build/hooks/useSanitizedTranslation.d.ts +1 -0
  595. package/build/hooks/useSanitizedTranslation.js +15 -0
  596. package/build/hooks/useVerifyToken.d.ts +5 -2
  597. package/build/hooks/useVerifyToken.js +10 -5
  598. package/build/index.css +360 -120
  599. package/build/index.d.ts +4 -2
  600. package/build/index.js +6 -2
  601. package/build/theme/components.js +7 -0
  602. package/build/theme/palette.js +4 -2
  603. package/build/theme/theme.d.ts +1 -1
  604. package/build/theme/theme.js +2 -2
  605. package/build/utils/array.js +2 -2
  606. package/build/utils/common.d.ts +3 -0
  607. package/build/utils/common.js +38 -2
  608. package/build/utils/device.d.ts +2 -0
  609. package/build/utils/device.js +6 -0
  610. package/build/utils/locale.js +2 -1
  611. package/build/utils/object.d.ts +1 -0
  612. package/build/utils/object.js +4 -1
  613. package/build/utils/string.d.ts +5 -2
  614. package/build/utils/string.js +24 -5
  615. package/build/utils/validation.d.ts +5 -0
  616. package/build/utils/validation.js +16 -0
  617. package/package.json +2 -2
  618. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  619. package/build/features/business/screens/OTP/OTP.js +0 -90
  620. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +0 -8
  621. package/build/features/connect/screens/BrandSegment/SegmentLocations.js +0 -66
  622. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +0 -8
  623. package/build/features/connect/screens/BrandSegment/SegmentProfits.js +0 -66
  624. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +0 -8
  625. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +0 -66
  626. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  627. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  628. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  629. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
  630. /package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTP.d.ts +0 -0
  631. /package/build/features/{business → auth}/screens/OTP/OTPInput.d.ts +0 -0
  632. /package/build/features/{business → auth}/screens/OTP/index.d.ts +0 -0
  633. /package/build/features/{business → auth}/screens/OTP/index.js +0 -0
  634. /package/build/features/{business → auth}/screens/OTP/validation.d.ts +0 -0
  635. /package/build/features/{business → auth}/screens/OTP/validation.js +0 -0
  636. /package/build/features/{connectExpress/screens/IdentityOTP/OTPInput.d.ts → board/screens/Verify/Verify.d.ts} +0 -0
  637. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.d.ts +0 -0
  638. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.js +0 -0
@@ -60,92 +60,66 @@ var _a;
60
60
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
61
61
  import API from '../../../api';
62
62
  import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '../../../@types';
63
- import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
63
+ import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
64
64
  import { ENTITY_STEP_NAMES } from '../../../constants';
65
65
  import moment from 'moment';
66
- import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber, retrieveIndividualData } from '../../../utils';
66
+ import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber, retrieveIndividualData, sendCustomEventToGTM } from '../../../utils';
67
67
  export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (_a, thunkApi) {
68
68
  var token = _a.token, isInternally = _a.isInternally;
69
69
  return __awaiter(void 0, void 0, void 0, function () {
70
- var payload, data, boardData, boardInfoData, entityData, entityTypes, individualData, countryIso2, publicKey, _b, board_id, board_info_id, _c, id_1, type_1, serviceCallBack, _d, boardRes, individualRes, entityId;
71
- var _e, _f, _g, _h, _j;
72
- return __generator(this, function (_k) {
73
- switch (_k.label) {
70
+ var payload, data, entityData, entityTypes, _b, country_code, config, publicKey, _c, entity_id, boardId, data_1;
71
+ var _d, _e, _f;
72
+ return __generator(this, function (_g) {
73
+ switch (_g.label) {
74
74
  case 0:
75
- payload = {
76
- service_name: 'tap_email',
77
- verify_token: token
78
- };
75
+ payload = __assign({ service_name: 'tap_email', verify_token: token }, (isInternally && {
76
+ notification: {
77
+ sms: false
78
+ }
79
+ }));
79
80
  return [4, API.leadService.verifyLeadToken(payload)];
80
81
  case 1:
81
- data = (_k.sent()).data;
82
- countryIso2 = undefined;
83
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 10];
82
+ data = (_g.sent()).data;
83
+ entityTypes = undefined;
84
+ if (((_d = data === null || data === void 0 ? void 0 : data.errors) === null || _d === void 0 ? void 0 : _d.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
85
+ throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
84
86
  if (isInternally)
85
87
  data.step_name = ENTITY_STEP_NAMES.ENTITY_INFO;
86
- if (data === null || data === void 0 ? void 0 : data.country_code) {
87
- countryIso2 = data === null || data === void 0 ? void 0 : data.country_code;
88
- if (countryIso2)
89
- thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
90
- }
91
- publicKey = (_e = data === null || data === void 0 ? void 0 : data.config) === null || _e === void 0 ? void 0 : _e.public_key;
92
- if (publicKey) {
88
+ _b = data || {}, country_code = _b.country_code, config = _b.config;
89
+ publicKey = config === null || config === void 0 ? void 0 : config.public_key;
90
+ if (country_code)
91
+ thunkApi.dispatch(handleSetCountryByIso2(country_code));
92
+ if (publicKey)
93
93
  thunkApi.dispatch(handlePublicKey(publicKey));
94
- }
95
- if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 10];
96
- _b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
97
- if (!board_id) return [3, 6];
98
- return [4, API.boardService.retrieveBoardDetails(board_id)];
94
+ if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 7];
95
+ _c = data || {}, entity_id = _c.entity_id, boardId = _c.id;
96
+ if (!!entity_id) return [3, 3];
97
+ return [4, API.boardService.retrieveBoardDetails(boardId)];
99
98
  case 2:
100
- boardData = _k.sent();
101
- if (!board_info_id) return [3, 4];
102
- return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
103
- case 3:
104
- boardInfoData = _k.sent();
105
- _k.label = 4;
99
+ data_1 = _g.sent();
100
+ if (!((_e = data_1 === null || data_1 === void 0 ? void 0 : data_1.entity) === null || _e === void 0 ? void 0 : _e.id))
101
+ throw new Error('entity_id_missing');
102
+ entityData = data_1;
103
+ return [3, 5];
104
+ case 3: return [4, API.entityService.retrieveEntity(entity_id)];
106
105
  case 4:
107
- _c = ((_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient) || {}, id_1 = _c.id, type_1 = _c.type;
108
- serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
109
- return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
106
+ entityData = _g.sent();
107
+ _g.label = 5;
110
108
  case 5:
111
- _d = _k.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
112
- boardData = boardRes;
113
- individualData = individualRes;
114
- _k.label = 6;
115
- case 6:
116
- entityId = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.id;
117
- if (!entityId) return [3, 8];
118
- return [4, API.entityService.retrieveEntity(entityId)];
119
- case 7:
120
- entityData = _k.sent();
121
- _k.label = 8;
122
- case 8:
123
- if (!countryIso2) {
124
- countryIso2 = entityData.country;
125
- if (countryIso2)
126
- thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
127
- }
109
+ if (!country_code && ((_f = entityData === null || entityData === void 0 ? void 0 : entityData.entity) === null || _f === void 0 ? void 0 : _f.country))
110
+ thunkApi.dispatch(handleSetCountryByIso2(entityData.entity.country));
128
111
  return [4, API.entityService.retrieveEntityType()];
129
- case 9:
130
- entityTypes = _k.sent();
131
- thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
132
- _k.label = 10;
133
- case 10: return [2, {
112
+ case 6:
113
+ entityTypes = _g.sent();
114
+ if (isInternally)
115
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
116
+ else
117
+ thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
118
+ _g.label = 7;
119
+ case 7: return [2, {
134
120
  data: data,
135
- individualData: individualData,
136
- boardResponse: {
137
- user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
138
- brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
139
- bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
140
- entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
141
- merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
142
- name: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.names,
143
- contact: (_j = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _j === void 0 ? void 0 : _j.contact,
144
- individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
145
- business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
146
- entityTypes: entityTypes,
147
- notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
148
- },
121
+ entityData: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
122
+ entityTypes: entityTypes,
149
123
  token: token
150
124
  }];
151
125
  }
@@ -170,122 +144,119 @@ export var resendOTP = createAsyncThunk('entityResendOTP', function (params, thu
170
144
  });
171
145
  }); });
172
146
  export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
173
- var _a, entity, settings, responseBody, payload, data, boardData, entityData, entityTypes, boardInfoData, individualData, _b, board_id, board_info_id, config, publicKey, _c, id_2, type_2, serviceCallBack, _d, boardRes, individualRes, entityId;
174
- var _e, _f, _g, _h, _j, _k, _l;
175
- return __generator(this, function (_m) {
176
- switch (_m.label) {
147
+ var _a, entity, settings, responseBody, payload, data, _b, entity_id, config, boardId, country_code, entityData, publicKey, countryIso2, data_2, entityTypes;
148
+ var _c, _d, _e, _f, _g, _h;
149
+ return __generator(this, function (_j) {
150
+ switch (_j.label) {
177
151
  case 0:
178
152
  _a = thunkApi.getState(), entity = _a.entity, settings = _a.settings;
179
153
  responseBody = entity.data.verify.responseBody;
180
154
  payload = {
181
155
  data: params.otp,
182
- service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
156
+ service_name: (_c = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _c === void 0 ? void 0 : _c.service_name,
183
157
  verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
184
158
  step_name: ENTITY_STEP_NAMES.PHONE_AUTH,
185
159
  encryption_contract: ['data']
186
160
  };
187
161
  return [4, API.leadService.verifyLeadOTP(payload)];
188
162
  case 1:
189
- data = (_m.sent()).data;
190
- individualData = undefined;
191
- if (!!data.errors) return [3, 10];
192
- _b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id, config = _b.config;
163
+ data = (_j.sent()).data;
164
+ if ((_d = data === null || data === void 0 ? void 0 : data.errors) === null || _d === void 0 ? void 0 : _d.length)
165
+ throw new Error(data.errors[0].description);
166
+ _b = data || {}, entity_id = _b.entity_id, config = _b.config, boardId = _b.id, country_code = _b.country_code;
167
+ entityData = undefined;
193
168
  publicKey = config === null || config === void 0 ? void 0 : config.public_key;
194
- if (publicKey) {
169
+ countryIso2 = country_code || (responseBody === null || responseBody === void 0 ? void 0 : responseBody.country_code);
170
+ if (publicKey)
195
171
  thunkApi.dispatch(handlePublicKey(publicKey));
196
- }
197
- if (!board_id) return [3, 6];
198
- return [4, API.boardService.retrieveBoardDetails(board_id)];
172
+ if (countryIso2)
173
+ thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
174
+ if (!!entity_id) return [3, 3];
175
+ return [4, API.boardService.retrieveBoardDetails(boardId)];
199
176
  case 2:
200
- boardData = _m.sent();
201
- if (!board_info_id) return [3, 4];
202
- return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
203
- case 3:
204
- boardInfoData = _m.sent();
205
- _m.label = 4;
177
+ data_2 = _j.sent();
178
+ if (!((_e = data_2 === null || data_2 === void 0 ? void 0 : data_2.entity) === null || _e === void 0 ? void 0 : _e.id))
179
+ throw new Error('entity_id_missing');
180
+ entityData = data_2;
181
+ return [3, 5];
182
+ case 3: return [4, API.entityService.retrieveEntity(entity_id)];
206
183
  case 4:
207
- _c = ((_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient) || {}, id_2 = _c.id, type_2 = _c.type;
208
- serviceCallBack = function () { return API.individualService.retrieveIndividual(id_2, type_2); };
209
- return [4, retrieveIndividualData(type_2, boardData, serviceCallBack)];
184
+ entityData = _j.sent();
185
+ _j.label = 5;
210
186
  case 5:
211
- _d = _m.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
212
- boardData = boardRes;
213
- individualData = individualRes;
214
- _m.label = 6;
215
- case 6:
216
- entityId = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.id;
217
- if (!entityId) return [3, 8];
218
- return [4, API.entityService.retrieveEntity(entityId)];
219
- case 7:
220
- entityData = _m.sent();
221
- _m.label = 8;
222
- case 8:
223
- (_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, { otp: params.otp });
187
+ if (!countryIso2 && ((_f = entityData === null || entityData === void 0 ? void 0 : entityData.entity) === null || _f === void 0 ? void 0 : _f.country))
188
+ thunkApi.dispatch(handleSetCountryByIso2(entityData.entity.country));
189
+ (_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, { otp: params.otp });
224
190
  return [4, API.entityService.retrieveEntityType()];
225
- case 9:
226
- entityTypes = _m.sent();
191
+ case 6:
192
+ entityTypes = _j.sent();
227
193
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
228
- _m.label = 10;
229
- case 10: return [2, {
230
- data: data,
231
- individualData: individualData,
232
- boardResponse: {
233
- user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
234
- brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
235
- bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
236
- entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
237
- merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
238
- name: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.names,
239
- contact: (_l = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _l === void 0 ? void 0 : _l.contact,
240
- individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
241
- business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
194
+ return [2, {
195
+ data: data,
196
+ entityData: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
242
197
  entityTypes: entityTypes,
243
- notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
244
- },
245
- formData: params
246
- }];
198
+ formData: params
199
+ }];
247
200
  }
248
201
  });
249
202
  }); });
250
203
  export var retrieveBoardStatus = createAsyncThunk('entity/retrieveBoardStatus', function (parmas, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
251
- var entity, board_id, data;
252
- return __generator(this, function (_a) {
253
- switch (_a.label) {
204
+ var entity, _a, board_id, board_info_id, recipient, _b, id, type, data;
205
+ return __generator(this, function (_c) {
206
+ switch (_c.label) {
254
207
  case 0:
255
208
  entity = thunkApi.getState().entity;
256
- board_id = (entity.data.verify.responseBody || {}).board_id;
257
- return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
209
+ _a = entity.data.verify.responseBody || {}, board_id = _a.board_id, board_info_id = _a.board_info_id, recipient = _a.recipient;
210
+ if (!board_id || !board_info_id)
211
+ throw new Error('Internal server error');
212
+ _b = recipient || {}, id = _b.id, type = _b.type;
213
+ return [4, Promise.all([
214
+ API.boardService.retrieveBoardInfoStatus(board_id),
215
+ thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
216
+ ])];
258
217
  case 1:
259
- data = _a.sent();
218
+ data = (_c.sent())[0];
260
219
  thunkApi.dispatch(handlePrevScreenStep());
261
220
  return [2, { flows: (data === null || data === void 0 ? void 0 : data.info) || [] }];
262
221
  }
263
222
  });
264
223
  }); });
265
- export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', function (boardId) { return __awaiter(void 0, void 0, void 0, function () {
266
- var data;
267
- var _a, _b;
268
- return __generator(this, function (_c) {
269
- switch (_c.label) {
270
- case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
271
- case 1:
272
- data = _c.sent();
273
- return [2, {
274
- data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact, individuals: data === null || data === void 0 ? void 0 : data.individuals })
275
- }];
276
- }
224
+ export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', function (_a) {
225
+ var boardId = _a.boardId, id = _a.individualId, type = _a.individualType;
226
+ return __awaiter(void 0, void 0, void 0, function () {
227
+ var data, individualData, boardData, serviceCallBack, _b, boardRes, individualRes;
228
+ var _c, _d, _e;
229
+ return __generator(this, function (_f) {
230
+ switch (_f.label) {
231
+ case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
232
+ case 1:
233
+ data = _f.sent();
234
+ individualData = data === null || data === void 0 ? void 0 : data.user;
235
+ boardData = data;
236
+ if (!(((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.id) !== id)) return [3, 3];
237
+ serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
238
+ return [4, retrieveIndividualData(type, data, serviceCallBack)];
239
+ case 2:
240
+ _b = _f.sent(), boardRes = _b.boardRes, individualRes = _b.individualRes;
241
+ individualData = individualRes;
242
+ boardData = boardRes;
243
+ _f.label = 3;
244
+ case 3: return [2, __assign(__assign({}, boardData), { brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact, user: individualData, board_status: boardData === null || boardData === void 0 ? void 0 : boardData.status })];
245
+ }
246
+ });
277
247
  });
278
- }); });
248
+ });
279
249
  export var updateEntityName = createAsyncThunk('entityUpdateEntityName', function (_a, thunkApi) {
280
- var formData = _a.formData, originalFormData = _a.originalFormData;
250
+ var formData = _a.formData, originalFormData = _a.originalFormData, isDirty = _a.isDirty;
281
251
  return __awaiter(void 0, void 0, void 0, function () {
282
- var _b, settings, entity, _c, id, data_status, data_verification, documents, issuingDate, expiryDate, licenseType, licenseNumber, articleId, unifiedNumber, legalName, certificateId, entityType, issueDate, expDate, isFL, isLegalNameENNonEditable, isLegalNameARNonEditable, isLicenseTypeNonEditable, isEntityTypeNonEditable, isLicenseNumberNonEditable, isUnifiedNumberNonEditable, isIssuingDateNonEditable, isExpiryDateNonEditable, isDocumentsNonEditable, isAOAFileNonEditable, isEntityTypeVerified, isLicenseNonEditable, isLicenseAvailable, payload, data, documentResponse, document, documentBody, documentBody, list;
283
- var _d, _e, _f;
284
- return __generator(this, function (_g) {
285
- switch (_g.label) {
252
+ var _b, settings, entity, entityRes, _c, id, data_status, data_verification, documents, issuingDate, expiryDate, licenseType, licenseNumber, articleId, unifiedNumber, legalName, certificateId, entityType, issueDate, expDate, isFL, isLegalNameENNonEditable, isLegalNameARNonEditable, isLicenseTypeNonEditable, isEntityTypeNonEditable, isLicenseNumberNonEditable, isUnifiedNumberNonEditable, isIssuingDateNonEditable, isExpiryDateNonEditable, isDocumentsNonEditable, isAOAFileNonEditable, isEntityTypeVerified, isLicenseNonEditable, isLicenseAvailable, payload, entityData, documentData, activityList, entity_1, documentResponse, document, documentBody, documentBody, entity_2, list;
253
+ var _d, _e;
254
+ return __generator(this, function (_f) {
255
+ switch (_f.label) {
286
256
  case 0:
287
257
  _b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
288
- _c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, data_verification = _c.data_verification, documents = _c.documents;
258
+ entityRes = (entity.data.verify.responseBody || {}).entity;
259
+ _c = entityRes || {}, id = _c.id, data_status = _c.data_status, data_verification = _c.data_verification, documents = _c.documents;
289
260
  issuingDate = formData.issuingDate, expiryDate = formData.expiryDate, licenseType = formData.licenseType, licenseNumber = formData.licenseNumber, articleId = formData.articleId, unifiedNumber = formData.unifiedNumber, legalName = formData.legalName, certificateId = formData.certificateId, entityType = formData.entityType;
290
261
  issueDate = issuingDate && new Date(issuingDate).getTime();
291
262
  expDate = expiryDate && new Date(expiryDate).getTime();
@@ -325,22 +296,27 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
325
296
  'license.additional_info.unified_number',
326
297
  'type'
327
298
  ] });
299
+ entityData = entityRes, activityList = undefined;
300
+ if (!isDirty) return [3, 2];
328
301
  return [4, API.entityService.updateEntity(payload)];
329
302
  case 1:
330
- data = _g.sent();
303
+ entity_1 = (_f.sent()).entity;
304
+ entityData = entity_1;
305
+ _f.label = 2;
306
+ case 2:
331
307
  documentResponse = undefined;
332
308
  document = getRecentDocumentBasedOnPurpose(documents, DocumentPurpose.CR);
333
- if (!(!isDocumentsNonEditable && (certificateId || []).length > 0)) return [3, 7];
334
- if (!(document === null || document === void 0 ? void 0 : document.id)) return [3, 3];
309
+ if (!(!isDocumentsNonEditable && (certificateId || []).length > 0)) return [3, 8];
310
+ if (!(document === null || document === void 0 ? void 0 : document.id)) return [3, 4];
335
311
  documentBody = {
336
312
  id: document.id,
337
313
  images: certificateId
338
314
  };
339
315
  return [4, API.documentService.addFilesToExistingDocument(documentBody)];
340
- case 2:
341
- documentResponse = _g.sent();
342
- return [3, 5];
343
316
  case 3:
317
+ documentResponse = _f.sent();
318
+ return [3, 6];
319
+ case 4:
344
320
  documentBody = {
345
321
  entity_id: id || '',
346
322
  documents: [
@@ -351,53 +327,58 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
351
327
  ]
352
328
  };
353
329
  return [4, API.documentService.updateDocumentInfo(documentBody)];
354
- case 4:
355
- documentResponse = _g.sent();
356
- _g.label = 5;
357
- case 5: return [4, API.entityService.retrieveEntity(id)];
358
- case 6:
359
- data = _g.sent();
360
- data.documentData = documentResponse;
361
- _g.label = 7;
362
- case 7: return [4, API.dataService.getActivitiesIsIc()];
363
- case 8:
364
- list = (_g.sent()).list;
365
- data.activityList = list;
330
+ case 5:
331
+ documentResponse = _f.sent();
332
+ _f.label = 6;
333
+ case 6: return [4, API.entityService.retrieveEntity(id)];
334
+ case 7:
335
+ entity_2 = (_f.sent()).entity;
336
+ entityData = entity_2;
337
+ documentData = documentResponse;
338
+ _f.label = 8;
339
+ case 8: return [4, API.dataService.getActivitiesIsIc()];
340
+ case 9:
341
+ list = (_f.sent()).list;
342
+ activityList = list;
366
343
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
367
- (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
368
- return [2, { data: data, formData: originalFormData }];
344
+ (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, id);
345
+ return [2, { data: { entity: entityData, documentData: documentData, activityList: activityList }, formData: originalFormData }];
369
346
  }
370
347
  });
371
348
  });
372
349
  });
373
350
  export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', function (_a, thunkApi) {
374
- var formData = _a.formData, originalFormData = _a.originalFormData;
351
+ var formData = _a.formData, originalFormData = _a.originalFormData, isDirty = _a.isDirty;
375
352
  return __awaiter(void 0, void 0, void 0, function () {
376
- var _b, settings, entity, _c, id, data_status, entityActivities, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, removedActivities, payload_1, activityIds, payload, data;
377
- var _d, _e, _f;
378
- return __generator(this, function (_g) {
379
- switch (_g.label) {
353
+ var _b, settings, entity, entityRes, _c, id, data_status, entityActivities, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, entityData, hasCapitalShares, isCapitalNonEditable, removedActivities, payload_1, activityIds, payload, entity_3;
354
+ var _d, _e;
355
+ return __generator(this, function (_f) {
356
+ switch (_f.label) {
380
357
  case 0:
381
358
  _b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
382
- _c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, entityActivities = _c.activities;
359
+ entityRes = (entity.data.verify.responseBody || {}).entity;
360
+ _c = entityRes || {}, id = _c.id, data_status = _c.data_status, entityActivities = _c.activities;
383
361
  isCapitalPaidNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'paid');
384
362
  isCapitalShareCountNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.count');
385
363
  isCapitalShareValueNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.value');
386
364
  isActivitiesNonEditable = hasNoneEditableValue(data_status, 'activities');
387
365
  capitalShareCount = formData.capitalShareCount, capitalShareValue = formData.capitalShareValue, activities = formData.activities, capitalPaid = formData.capitalPaid;
366
+ entityData = entityRes;
388
367
  hasCapitalShares = capitalShareCount || capitalShareValue;
389
368
  isCapitalNonEditable = (isCapitalPaidNonEditable && isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || (!capitalPaid && !hasCapitalShares);
390
369
  removedActivities = (activities === null || activities === void 0 ? void 0 : activities.length) > 0 &&
391
370
  (entityActivities || []).filter(function (entityActivity) { return !(activities || []).some(function (activity) { return activity.id === entityActivity.id; }); });
392
- if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0)) return [3, 2];
371
+ if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0 && isDirty)) return [3, 2];
393
372
  payload_1 = {
394
373
  id: id,
395
- activities: removedActivities
374
+ activities: removedActivities.map(function (a) { return ({
375
+ id: a.id
376
+ }); })
396
377
  };
397
378
  return [4, API.entityService.removeEntityActivities(payload_1)];
398
379
  case 1:
399
- _g.sent();
400
- _g.label = 2;
380
+ _f.sent();
381
+ _f.label = 2;
401
382
  case 2:
402
383
  activityIds = (activities || []).map(function (_a) {
403
384
  var id = _a.id;
@@ -411,44 +392,75 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
411
392
  }
412
393
  }))
413
394
  }));
395
+ if (!isDirty) return [3, 4];
414
396
  return [4, API.entityService.updateEntity(payload)];
415
397
  case 3:
416
- data = _g.sent();
398
+ entity_3 = (_f.sent()).entity;
399
+ entityData = entity_3;
400
+ _f.label = 4;
401
+ case 4:
417
402
  thunkApi.dispatch(handleNextScreenStep());
418
- (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
419
- return [2, { data: data, formData: originalFormData }];
403
+ (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, id);
404
+ return [2, { data: entityData, formData: originalFormData }];
420
405
  }
421
406
  });
422
407
  });
423
408
  });
424
409
  export var updateBoardSuccess = createAsyncThunk('updateBoardEntitySuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
425
- var _a, settings, entity, _b, id, infoId, payload, data, boardInfoData;
426
- var _c, _d, _e, _f;
427
- return __generator(this, function (_g) {
428
- switch (_g.label) {
410
+ var _a, settings, entity, _b, board_id, infoId, _c, showBoard, mode, payload, data, _d, id, type, boardInfoStatusData;
411
+ var _e, _f, _g, _h, _j, _k, _l, _m, _o;
412
+ return __generator(this, function (_p) {
413
+ switch (_p.label) {
429
414
  case 0:
430
415
  _a = thunkApi.getState(), settings = _a.settings, entity = _a.entity;
431
- _b = entity.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id;
432
- if (!id)
416
+ _b = entity.data.verify.responseBody || {}, board_id = _b.board_id, infoId = _b.board_info_id;
417
+ _c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
418
+ if (!board_id)
433
419
  return [2];
434
420
  payload = {
435
421
  lang: settings.data.language,
436
422
  step_name: ENTITY_STEP_NAMES.ENTITY_SUCCESS,
437
- id: id
423
+ id: board_id
438
424
  };
439
- return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
425
+ return [4, API.boardService.updateBoardInfo(__assign({ id: board_id, infoId: infoId }, payload))];
440
426
  case 1:
441
- data = _g.sent();
442
- return [4, API.boardService.retrieveBoardInfoStatus(id)];
427
+ data = _p.sent();
428
+ sendCustomEventToGTM({
429
+ event: 'Send Event',
430
+ event_category: 'Board Flows - Entity',
431
+ event_action: 'Entity Update Success Page',
432
+ event_label: settings.data.businessCountry.iso2
433
+ });
434
+ if (!showBoard && mode === 'content') {
435
+ (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
436
+ (_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: data });
437
+ return [2, { data: data }];
438
+ }
439
+ _d = ((_j = data === null || data === void 0 ? void 0 : data.notification) === null || _j === void 0 ? void 0 : _j.recipient) || {}, id = _d.id, type = _d.type;
440
+ return [4, Promise.all([
441
+ API.boardService.retrieveBoardInfoStatus(board_id),
442
+ thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
443
+ ])];
443
444
  case 2:
444
- boardInfoData = _g.sent();
445
- return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
446
- case 3:
447
- _g.sent();
448
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, {});
449
- (_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
445
+ boardInfoStatusData = (_p.sent())[0];
446
+ (_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, {});
447
+ (_o = (_m = settings.data.appConfig).onFlowCompleted) === null || _o === void 0 ? void 0 : _o.call(_m, { data: data });
450
448
  thunkApi.dispatch(handleNextScreenStep());
451
- return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
449
+ return [2, { data: data, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [] }];
450
+ }
451
+ });
452
+ }); });
453
+ export var onCloseCompleteEntity = createAsyncThunk('entity/onCloseCompleteEntity', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
454
+ var entity, _a, merchant, brand, entityRes;
455
+ return __generator(this, function (_b) {
456
+ switch (_b.label) {
457
+ case 0:
458
+ entity = thunkApi.getState().entity;
459
+ _a = entity.data.verify.responseBody || {}, merchant = _a.merchant, brand = _a.brand, entityRes = _a.entity;
460
+ return [4, thunkApi.dispatch(onCloseComplete({ merchantId: merchant === null || merchant === void 0 ? void 0 : merchant.id, brandId: brand === null || brand === void 0 ? void 0 : brand.id, entityId: entityRes === null || entityRes === void 0 ? void 0 : entityRes.id }))];
461
+ case 1:
462
+ _b.sent();
463
+ return [2];
452
464
  }
453
465
  });
454
466
  }); });
@@ -514,28 +526,22 @@ export var entitySlice = createSlice({
514
526
  state.customLoading = true;
515
527
  })
516
528
  .addCase(verifyLeadToken.fulfilled, function (state, action) {
517
- var _a, _b, _c, _d;
529
+ var _a, _b, _c;
518
530
  state.error = null;
519
531
  state.customLoading = false;
520
- var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse, individualData = _e.individualData;
521
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
522
- if (description) {
523
- state.error = description;
524
- return;
525
- }
526
- state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, individualData: individualData });
532
+ var _d = action.payload, data = _d.data, token = _d.token, entity = _d.entityData, entityTypes = _d.entityTypes;
533
+ state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { entity: entity, entityTypes: entityTypes, board_id: data.id });
527
534
  state.data.verify.token = token;
528
- var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
529
535
  if (entity) {
530
- var _g = entity || {}, license = _g.license, type = _g.type, capital = _g.capital, activities = _g.activities, legal_name = _g.legal_name;
536
+ var _e = entity || {}, license = _e.license, type = _e.type, capital = _e.capital, activities = _e.activities, legal_name = _e.legal_name;
531
537
  var legalName = legal_name;
532
538
  var licenseNumber = license === null || license === void 0 ? void 0 : license.number;
533
- var unifiedNumber = (_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number;
539
+ var unifiedNumber = (_a = license === null || license === void 0 ? void 0 : license.additional_info) === null || _a === void 0 ? void 0 : _a.unified_number;
534
540
  var licenseType = (license === null || license === void 0 ? void 0 : license.type) === 'freelance' ? BusinessType.FL : BusinessType.CR;
535
541
  var entityType = type || (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes[0]);
536
- var _h = capital || {}, paid = _h.paid, shares = _h.shares;
537
- var entityIssueDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.issuing_date;
538
- var entityExpiredDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.expiry_date;
542
+ var _f = capital || {}, paid = _f.paid, shares = _f.shares;
543
+ var entityIssueDate = (_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date;
544
+ var entityExpiredDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.expiry_date;
539
545
  var issuingDate = void 0, expiryDate = undefined;
540
546
  if (entityIssueDate) {
541
547
  var date = new Date(entityIssueDate);
@@ -595,28 +601,22 @@ export var entitySlice = createSlice({
595
601
  state.error = null;
596
602
  })
597
603
  .addCase(verifyEntityLeadOTP.fulfilled, function (state, action) {
598
- var _a, _b, _c, _d;
604
+ var _a, _b, _c;
599
605
  state.loading = false;
600
606
  state.error = null;
601
- var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData, individualData = _e.individualData;
602
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
603
- if (description) {
604
- state.error = description;
605
- return;
606
- }
607
+ var _d = action.payload, data = _d.data, entity = _d.entityData, entityTypes = _d.entityTypes, formData = _d.formData;
607
608
  state.data.otpData = formData;
608
609
  state.data.otpData.responseBody = data;
609
- state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { individualData: individualData });
610
- var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
611
- var _g = entity || {}, license = _g.license, type = _g.type, capital = _g.capital, activities = _g.activities, legal_name = _g.legal_name;
610
+ state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { entity: entity, entityTypes: entityTypes });
611
+ var _e = entity || {}, license = _e.license, type = _e.type, capital = _e.capital, activities = _e.activities, legal_name = _e.legal_name;
612
612
  var legalName = legal_name;
613
613
  var licenseNumber = license === null || license === void 0 ? void 0 : license.number;
614
- var unifiedNumber = (_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number;
614
+ var unifiedNumber = (_a = license === null || license === void 0 ? void 0 : license.additional_info) === null || _a === void 0 ? void 0 : _a.unified_number;
615
615
  var licenseType = (license === null || license === void 0 ? void 0 : license.type) === 'freelance' ? BusinessType.FL : BusinessType.CR;
616
616
  var entityType = type || (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes[0]);
617
- var _h = capital || {}, paid = _h.paid, shares = _h.shares;
618
- var entityIssueDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.issuing_date;
619
- var entityExpiredDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.expiry_date;
617
+ var _f = capital || {}, paid = _f.paid, shares = _f.shares;
618
+ var entityIssueDate = (_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date;
619
+ var entityExpiredDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.expiry_date;
620
620
  var issuingDate, expiryDate = undefined;
621
621
  if (entityIssueDate) {
622
622
  var date = new Date(entityIssueDate);
@@ -661,12 +661,12 @@ export var entitySlice = createSlice({
661
661
  state.loading = false;
662
662
  state.error = null;
663
663
  var _a = action.payload, data = _a.data, formData = _a.formData;
664
- var _b = data || {}, activityList = _b.activityList, rest = __rest(_b, ["activityList"]);
664
+ var _b = data || {}, entity = _b.entity, activityList = _b.activityList, rest = __rest(_b, ["entity", "activityList"]);
665
665
  state.data.entityNameData = __assign(__assign({}, formData), { certificateId: undefined });
666
666
  state.data.entityNameData.responseBody = __assign(__assign({}, state.data.entityNameData.responseBody), { rest: rest });
667
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { entity: data === null || data === void 0 ? void 0 : data.entity, activityList: activityList });
668
- if (rest === null || rest === void 0 ? void 0 : rest.activities)
669
- state.data.entityCapitalData = __assign(__assign({}, state.data.entityCapitalData), { activities: rest === null || rest === void 0 ? void 0 : rest.activities });
667
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { entity: entity, activityList: activityList });
668
+ if (entity === null || entity === void 0 ? void 0 : entity.activities)
669
+ state.data.entityCapitalData = __assign(__assign({}, state.data.entityCapitalData), { activities: entity === null || entity === void 0 ? void 0 : entity.activities });
670
670
  })
671
671
  .addCase(updateEntityName.rejected, function (state, action) {
672
672
  state.loading = false;
@@ -694,7 +694,7 @@ export var entitySlice = createSlice({
694
694
  .addCase(retrieveBoardDetails.fulfilled, function (state, action) {
695
695
  state.error = null;
696
696
  state.loading = false;
697
- var data = (action.payload || {}).data;
697
+ var data = action.payload || {};
698
698
  state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
699
699
  })
700
700
  .addCase(retrieveBoardDetails.rejected, function (state, action) {
@@ -708,7 +708,7 @@ export var entitySlice = createSlice({
708
708
  .addCase(retrieveBoardStatus.fulfilled, function (state, action) {
709
709
  state.error = null;
710
710
  state.loading = false;
711
- var flows = action.payload.flows;
711
+ var flows = (action.payload || {}).flows;
712
712
  state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
713
713
  })
714
714
  .addCase(retrieveBoardStatus.rejected, function (state, action) {
@@ -719,18 +719,8 @@ export var entitySlice = createSlice({
719
719
  var _a;
720
720
  state.loading = false;
721
721
  state.error = null;
722
- var response = (action.payload || {}).response;
723
- var description = (((_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
724
- if (description) {
725
- state.error = description;
726
- return;
727
- }
728
- var flows = response.flows;
729
- var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
730
- var data_state = (((individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) ? individuals : individualData) || {}).data_state;
731
- state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
732
- individuals: __assign(__assign({}, individuals), { data_state: data_state })
733
- }));
722
+ var _b = action.payload || {}, flows = _b.flows, data = _b.data;
723
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
734
724
  })
735
725
  .addCase(updateBoardSuccess.pending, function (state) {
736
726
  state.loading = true;
@@ -739,6 +729,18 @@ export var entitySlice = createSlice({
739
729
  .addCase(updateBoardSuccess.rejected, function (state, action) {
740
730
  state.loading = false;
741
731
  state.error = action.error.message;
732
+ })
733
+ .addCase(onCloseCompleteEntity.pending, function (state) {
734
+ state.loading = true;
735
+ state.error = null;
736
+ })
737
+ .addCase(onCloseCompleteEntity.fulfilled, function (state) {
738
+ state.loading = false;
739
+ state.error = null;
740
+ })
741
+ .addCase(onCloseCompleteEntity.rejected, function (state, action) {
742
+ state.loading = false;
743
+ state.error = action.error.message;
742
744
  });
743
745
  }
744
746
  });