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

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 (566) hide show
  1. package/build/@types/app.d.ts +47 -4
  2. package/build/@types/app.js +22 -0
  3. package/build/@types/config.d.ts +4 -0
  4. package/build/@types/form.d.ts +11 -1
  5. package/build/@types/redux.d.ts +1 -0
  6. package/build/api/account.d.ts +4 -1
  7. package/build/api/account.js +15 -1
  8. package/build/api/auth.d.ts +35 -20
  9. package/build/api/auth.js +1 -1
  10. package/build/api/axios.js +1 -2
  11. package/build/api/data.d.ts +4 -17
  12. package/build/api/data.js +5 -45
  13. package/build/api/entity.d.ts +3 -2
  14. package/build/api/entity.js +12 -4
  15. package/build/api/firebase.js +68 -8
  16. package/build/api/index.d.ts +14 -25
  17. package/build/api/lead.d.ts +16 -3
  18. package/build/api/lead.js +16 -0
  19. package/build/api/user.d.ts +7 -0
  20. package/build/api/user.js +9 -1
  21. package/build/app/rootReducer.d.ts +1 -0
  22. package/build/app/rootReducer.js +3 -1
  23. package/build/app/settings.d.ts +1 -0
  24. package/build/app/settings.js +16 -11
  25. package/build/app/store.d.ts +2 -0
  26. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  27. package/build/assets/currencies/SARSymbol.js +28 -0
  28. package/build/assets/currencies/index.d.ts +2 -0
  29. package/build/assets/currencies/index.js +2 -0
  30. package/build/assets/currencies/utils.d.ts +4 -0
  31. package/build/assets/currencies/utils.js +4 -0
  32. package/build/assets/locales/ar.json +358 -151
  33. package/build/assets/locales/en.json +354 -150
  34. package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -5
  35. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  36. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -1
  37. package/build/components/AnimationFlow/BottomSheet.js +42 -14
  38. package/build/components/AnimationFlow/Dialog.d.ts +4 -3
  39. package/build/components/AnimationFlow/Dialog.js +5 -3
  40. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  41. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  42. package/build/components/ArabicDatePicker/style.css +32 -3
  43. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  44. package/build/components/DatePicker/DatePicker.js +2 -2
  45. package/build/components/Footer/Footer.js +2 -1
  46. package/build/components/Input/Input.js +1 -1
  47. package/build/components/Providers/ThemeProvider.js +3 -3
  48. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  49. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  50. package/build/components/TextWithCurrency/index.d.ts +2 -0
  51. package/build/components/TextWithCurrency/index.js +2 -0
  52. package/build/components/Tooltip/Tooltip.js +1 -1
  53. package/build/constants/api.d.ts +5 -7
  54. package/build/constants/api.js +11 -15
  55. package/build/constants/app.d.ts +41 -0
  56. package/build/constants/app.js +369 -36
  57. package/build/constants/assets.d.ts +7 -0
  58. package/build/constants/assets.js +11 -1
  59. package/build/constants/dummy.d.ts +4 -219
  60. package/build/constants/dummy.js +64 -6194
  61. package/build/constants/flows.d.ts +26 -0
  62. package/build/constants/flows.js +27 -0
  63. package/build/constants/index.d.ts +1 -0
  64. package/build/constants/index.js +1 -0
  65. package/build/constants/validation.d.ts +2 -0
  66. package/build/constants/validation.js +2 -0
  67. package/build/features/app/auth/authStore.d.ts +29 -8
  68. package/build/features/app/auth/authStore.js +495 -149
  69. package/build/features/app/bank/bankStore.d.ts +13 -18
  70. package/build/features/app/bank/bankStore.js +186 -153
  71. package/build/features/app/board/boardStore.d.ts +5 -1
  72. package/build/features/app/board/boardStore.js +82 -51
  73. package/build/features/app/brand/brandStore.d.ts +17 -33
  74. package/build/features/app/brand/brandStore.js +254 -257
  75. package/build/features/app/business/businessStore.d.ts +37 -15
  76. package/build/features/app/business/businessStore.js +443 -235
  77. package/build/features/app/connect/connectStore.d.ts +33 -5
  78. package/build/features/app/connect/connectStore.js +355 -120
  79. package/build/features/app/connectExpress/connectExpressStore.d.ts +64 -27
  80. package/build/features/app/connectExpress/connectExpressStore.js +826 -394
  81. package/build/features/app/entity/entityStore.d.ts +20 -36
  82. package/build/features/app/entity/entityStore.js +204 -238
  83. package/build/features/app/individual/individualStore.d.ts +18 -34
  84. package/build/features/app/individual/individualStore.js +269 -292
  85. package/build/features/app/kyc/kycStore.d.ts +67 -0
  86. package/build/features/app/kyc/kycStore.js +432 -0
  87. package/build/features/app/password/passwordStore.d.ts +33 -18
  88. package/build/features/app/password/passwordStore.js +260 -219
  89. package/build/features/app/signIn/signInStore.js +19 -15
  90. package/build/features/app/tax/taxStore.d.ts +13 -7
  91. package/build/features/app/tax/taxStore.js +170 -136
  92. package/build/features/auth/Auth.d.ts +5 -6
  93. package/build/features/auth/Auth.js +40 -15
  94. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  95. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  96. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  97. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  98. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  99. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  100. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  101. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  102. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  103. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  104. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  105. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  106. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  107. package/build/features/auth/screens/DOB/index.js +2 -0
  108. package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/DOB}/validation.d.ts +4 -4
  109. package/build/features/auth/screens/DOB/validation.js +4 -0
  110. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  111. package/build/features/auth/screens/Email/Email.js +57 -0
  112. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  113. package/build/features/auth/screens/Email/EmailField.js +52 -0
  114. package/build/features/auth/screens/Email/index.d.ts +3 -0
  115. package/build/features/auth/screens/Email/index.js +2 -0
  116. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  117. package/build/features/auth/screens/Email/validation.js +4 -0
  118. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  119. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  120. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  121. package/build/features/auth/screens/EmailSent/index.js +2 -0
  122. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  123. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  124. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  125. package/build/features/auth/screens/MigratingData/index.js +2 -0
  126. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  127. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  128. package/build/features/auth/screens/Mobile/validation.js +11 -3
  129. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  130. package/build/features/auth/screens/NID/NID.js +7 -43
  131. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  132. package/build/features/auth/screens/NID/validation.js +0 -1
  133. package/build/features/auth/screens/OTP/OTP.js +41 -10
  134. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  135. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  136. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  137. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  138. package/build/features/auth/screens/OperatorError/index.js +2 -0
  139. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  140. package/build/features/auth/screens/Password/Password.js +61 -0
  141. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  142. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  143. package/build/features/auth/screens/Password/index.d.ts +3 -0
  144. package/build/features/auth/screens/Password/index.js +2 -0
  145. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  146. package/build/features/auth/screens/Password/validation.js +4 -0
  147. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  148. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  149. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  150. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  151. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  152. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  153. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  154. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  155. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  156. package/build/features/bank/Bank.d.ts +5 -1
  157. package/build/features/bank/Bank.js +22 -9
  158. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  159. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  160. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  161. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  162. package/build/features/bank/screens/OperatorError/index.js +2 -0
  163. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  164. package/build/features/bank/screens/Verify/Verify.js +7 -6
  165. package/build/features/board/Board.d.ts +2 -0
  166. package/build/features/board/Board.js +24 -13
  167. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  168. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  169. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  170. package/build/features/board/screens/OperatorError/index.js +2 -0
  171. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  172. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  173. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  174. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  175. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  176. package/build/features/board/screens/Verify/Verify.js +3 -2
  177. package/build/features/brand/Brand.d.ts +5 -1
  178. package/build/features/brand/Brand.js +22 -9
  179. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +5 -5
  180. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  181. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  182. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  183. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -5
  184. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  185. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  186. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  187. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  188. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  189. package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
  190. package/build/features/brand/screens/BrandInfo/BrandName.js +2 -2
  191. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  192. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  193. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  194. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  195. package/build/features/brand/screens/OperatorError/index.js +2 -0
  196. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  197. package/build/features/brand/screens/Verify/Verify.js +3 -2
  198. package/build/features/business/Business.js +20 -12
  199. package/build/features/business/screens/Activities/Activities.js +26 -9
  200. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  201. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  202. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  203. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  204. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  205. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  206. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  207. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -8
  208. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  209. package/build/features/business/screens/Customers/Customers.js +50 -10
  210. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  211. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  212. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  213. package/build/features/business/screens/Customers/ExpectedSalesRange.js +7 -6
  214. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  215. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  216. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  217. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  218. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  219. package/build/features/business/screens/Customers/validation.js +3 -8
  220. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  221. package/build/features/business/screens/DOB/DOB.js +45 -0
  222. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  223. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  224. package/build/features/business/screens/DOB/index.d.ts +3 -0
  225. package/build/features/business/screens/DOB/index.js +2 -0
  226. package/build/features/business/screens/DOB/validation.d.ts +8 -0
  227. package/build/features/business/screens/DOB/validation.js +4 -0
  228. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  229. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  230. package/build/features/business/screens/IDBOD/validation.js +0 -1
  231. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  232. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  233. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  234. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  235. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  236. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  237. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  238. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  239. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  240. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  241. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  242. package/build/features/business/screens/OperatorError/index.js +2 -0
  243. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  244. package/build/features/business/screens/Verify/Verify.js +15 -4
  245. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  246. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  247. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  248. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  249. package/build/features/connect/Connect.d.ts +5 -1
  250. package/build/features/connect/Connect.js +16 -9
  251. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  252. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  253. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  254. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  255. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  256. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  257. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  258. package/build/features/connect/screens/DOB/index.js +2 -0
  259. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  260. package/build/features/connect/screens/DOB/validation.js +4 -0
  261. package/build/features/connect/screens/Individual/Email.js +1 -3
  262. package/build/features/connect/screens/Individual/Individual.js +11 -5
  263. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  264. package/build/features/connect/screens/Individual/validation.js +11 -3
  265. package/build/features/connect/screens/Merchant/BrandName.js +2 -2
  266. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  267. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  268. package/build/features/connect/screens/Mobile/validation.js +11 -3
  269. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  270. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  271. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  272. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  273. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  274. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  275. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  276. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  277. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  278. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  279. package/build/features/connect/screens/NID/NID.js +5 -11
  280. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  281. package/build/features/connect/screens/NID/validation.js +0 -1
  282. package/build/features/connect/screens/OTP/OTP.js +6 -6
  283. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  284. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  285. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  286. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  287. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  288. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  289. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  290. package/build/features/connectExpress/ConnectExpress.js +62 -39
  291. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  292. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  293. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  294. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +2 -2
  295. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  296. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  297. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  298. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  299. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  300. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  301. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  302. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  303. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  304. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  305. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  306. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  307. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  308. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  309. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  310. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  311. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
  312. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
  313. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
  314. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
  315. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  316. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  317. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  318. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  319. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  320. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  321. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  322. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  323. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  324. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  325. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  326. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  327. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  328. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  329. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  330. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  331. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  332. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  333. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  334. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  335. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  336. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  337. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  338. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  339. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  340. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  341. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  342. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  343. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  344. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  345. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  346. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  347. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  348. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  349. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  350. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  351. package/build/features/{business/screens/OTP → connectExpress/screens/VerifyMobileAuthOTP}/OTPInput.js +3 -3
  352. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  353. package/build/features/connectExpress/screens/{IdentityOTP/OTP.js → VerifyMobileAuthOTP/VerifyMobileAuthOTP.js} +22 -21
  354. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  355. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  356. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  357. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +41 -0
  358. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  359. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  360. package/build/features/entity/Entity.d.ts +4 -1
  361. package/build/features/entity/Entity.js +22 -9
  362. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  363. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +5 -5
  364. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +5 -5
  365. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  366. package/build/features/entity/screens/EntityName/EntityName.js +31 -14
  367. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +5 -5
  368. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  369. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  370. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  371. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  372. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  373. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  374. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  375. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  376. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  377. package/build/features/entity/screens/EntityName/validation.js +1 -10
  378. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  379. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  380. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  381. package/build/features/entity/screens/OperatorError/index.js +2 -0
  382. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  383. package/build/features/entity/screens/Verify/Verify.js +3 -2
  384. package/build/features/featuresScreens.d.ts +1 -0
  385. package/build/features/featuresScreens.js +216 -13
  386. package/build/features/individual/Individual.d.ts +4 -1
  387. package/build/features/individual/Individual.js +22 -9
  388. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  389. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  390. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +2 -4
  391. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +4 -4
  392. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  393. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  394. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  395. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  396. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  397. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  398. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  399. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  400. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
  401. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  402. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  403. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  404. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  405. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  406. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  407. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  408. package/build/features/individual/screens/OperatorError/index.js +2 -0
  409. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  410. package/build/features/individual/screens/Verify/Verify.js +3 -2
  411. package/build/features/kyc/KYC.d.ts +11 -0
  412. package/build/features/kyc/KYC.js +99 -0
  413. package/build/features/kyc/index.d.ts +1 -0
  414. package/build/features/kyc/index.js +1 -0
  415. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  416. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  417. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  418. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  419. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  420. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  421. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  422. package/build/features/kyc/screens/Loading/index.js +2 -0
  423. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  424. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  425. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  426. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  427. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  428. package/build/features/kyc/screens/Success/Success.js +32 -0
  429. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  430. package/build/features/kyc/screens/Success/index.js +2 -0
  431. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  432. package/build/features/kyc/screens/Terms/Header.js +36 -0
  433. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  434. package/build/features/kyc/screens/Terms/Terms.js +87 -0
  435. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  436. package/build/features/kyc/screens/Terms/index.js +2 -0
  437. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  438. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  439. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  440. package/build/features/kyc/screens/TokenError/index.js +2 -0
  441. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  442. package/build/features/kyc/screens/Users/Users.js +76 -0
  443. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  444. package/build/features/kyc/screens/Users/index.js +2 -0
  445. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  446. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  447. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  448. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  449. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  450. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  451. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  452. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  453. package/build/features/password/Password.d.ts +4 -1
  454. package/build/features/password/Password.js +88 -31
  455. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  456. package/build/features/password/screens/OTP/OTP.js +3 -3
  457. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  458. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  459. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  460. package/build/features/password/screens/OperatorError/index.js +2 -0
  461. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  462. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  463. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  464. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  465. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  466. package/build/features/password/screens/Verify/Verify.js +7 -6
  467. package/build/features/shared/Address/CountryList.d.ts +5 -5
  468. package/build/features/shared/Address/InputSelect.d.ts +5 -5
  469. package/build/features/shared/Background/Background.js +1 -1
  470. package/build/features/shared/Background/LogoBackground.js +5 -17
  471. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  472. package/build/features/shared/Button/Button.js +3 -1
  473. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  474. package/build/features/shared/Button/FlowsButtons.js +18 -4
  475. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  476. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  477. package/build/features/shared/Button/index.d.ts +2 -2
  478. package/build/features/shared/Button/index.js +2 -2
  479. package/build/features/shared/Calender/Calender.d.ts +2 -1
  480. package/build/features/shared/Calender/Calender.js +3 -3
  481. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  482. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  483. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  484. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  485. package/build/features/shared/Input/Input.d.ts +3 -3
  486. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  487. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  488. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  489. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  490. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  491. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  492. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  493. package/build/features/shared/NafathVerification/index.js +2 -0
  494. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  495. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  496. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  497. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  498. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  499. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  500. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  501. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  502. package/build/features/signIn/SignIn.js +18 -7
  503. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  504. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  505. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  506. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  507. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  508. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  509. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  510. package/build/features/tax/Tax.d.ts +4 -1
  511. package/build/features/tax/Tax.js +22 -9
  512. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  513. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  514. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  515. package/build/features/tax/screens/OperatorError/index.js +2 -0
  516. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  517. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  518. package/build/features/tax/screens/Verify/Verify.js +7 -6
  519. package/build/hooks/index.d.ts +3 -0
  520. package/build/hooks/index.js +3 -0
  521. package/build/hooks/useAppConfig.d.ts +1 -1
  522. package/build/hooks/useAppConfig.js +2 -2
  523. package/build/hooks/useAppDispatch.d.ts +1 -0
  524. package/build/hooks/useAppTheme.js +4 -3
  525. package/build/hooks/useCountDown.d.ts +10 -0
  526. package/build/hooks/useCountDown.js +17 -0
  527. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  528. package/build/hooks/useFormDirtyCheck.js +66 -0
  529. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  530. package/build/hooks/useSanitizedTranslation.js +15 -0
  531. package/build/hooks/useVerifyToken.d.ts +4 -2
  532. package/build/hooks/useVerifyToken.js +9 -4
  533. package/build/index.css +360 -120
  534. package/build/index.d.ts +3 -2
  535. package/build/index.js +4 -2
  536. package/build/theme/components.js +7 -0
  537. package/build/theme/palette.js +2 -1
  538. package/build/theme/shadows.js +1 -1
  539. package/build/theme/theme.d.ts +1 -1
  540. package/build/theme/theme.js +2 -2
  541. package/build/utils/array.js +2 -2
  542. package/build/utils/common.d.ts +1 -0
  543. package/build/utils/common.js +16 -3
  544. package/build/utils/error.d.ts +1 -0
  545. package/build/utils/error.js +3 -0
  546. package/build/utils/object.d.ts +1 -0
  547. package/build/utils/object.js +3 -0
  548. package/build/utils/string.d.ts +6 -2
  549. package/build/utils/string.js +28 -3
  550. package/build/utils/validation.d.ts +2 -0
  551. package/build/utils/validation.js +6 -0
  552. package/package.json +3 -4
  553. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  554. package/build/features/business/screens/OTP/OTP.js +0 -90
  555. package/build/features/business/screens/OTP/index.d.ts +0 -3
  556. package/build/features/business/screens/OTP/index.js +0 -2
  557. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  558. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  559. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  560. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  561. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  562. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  563. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
  564. /package/build/features/{business/screens/OTP → connectExpress/screens/VerifyMobileAuthOTP}/OTPInput.d.ts +0 -0
  565. /package/build/features/{business/screens/OTP → connectExpress/screens/VerifyMobileAuthOTP}/validation.d.ts +0 -0
  566. /package/build/features/{business/screens/OTP → connectExpress/screens/VerifyMobileAuthOTP}/validation.js +0 -0
@@ -17,9 +17,9 @@ import { useTranslation } from 'react-i18next';
17
17
  import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
18
18
  import Box from '@mui/material/Box';
19
19
  import { alpha, styled } from '@mui/material/styles';
20
- import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useLanguage, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
20
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useLanguage, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
21
21
  import { DocumentPurpose, IndividualType } from '../../../../@types';
22
- import { deepCopy, getIndividualType, isKW, isKWOrSA } from '../../../../utils';
22
+ import { deepCopy, getIndividualType, isKW, isKWOrSA, sendCustomEventToGTM } from '../../../../utils';
23
23
  import Form from '../../../../components/Form';
24
24
  import Collapse from '../../../../components/Collapse';
25
25
  import Text from '../../../../components/Text';
@@ -53,16 +53,16 @@ var ListType;
53
53
  ListType["OccupationList"] = "OccupationList";
54
54
  })(ListType || (ListType = {}));
55
55
  var AdditionalIndividualInfo = function (_a) {
56
- var _b;
56
+ var _b, _c, _d, _e;
57
57
  var t = useTranslation().t;
58
58
  var isAr = useLanguage().isAr;
59
59
  var dispatch = useAppDispatch();
60
- var _c = useAppSelector(individualSelector), data = _c.data, loading = _c.loading, error = _c.error;
60
+ var _f = useAppSelector(individualSelector), data = _f.data, loading = _f.loading, error = _f.error;
61
61
  var settingsData = useAppSelector(settingsSelector).data;
62
62
  var verify = data.verify;
63
63
  var user = (verify.responseBody || {}).user;
64
- var _d = data.individualData, occupation = _d.occupation, sourceIncome = _d.sourceIncome, monthlyIncome = _d.monthlyIncome, employerName = _d.employerName, isPEP = _d.isPEP, isInfluencer = _d.isInfluencer, civilID = _d.civilID, signatureFileId = _d.signatureFileId, civilIDUploading = _d.civilIDUploading, signatureFileUploading = _d.signatureFileUploading, shareCount = _d.shareCount, shareValue = _d.shareValue, isAuthorized = _d.isAuthorized;
65
- var _e = user || {}, documents = _e.documents, is_authorized = _e.is_authorized, data_status = _e.data_status, data_verification = _e.data_verification, names = _e.names, role = _e.role, occupationRes = _e.occupation, is_relative_PEP = _e.is_relative_PEP, is_influencer = _e.is_influencer, objects = _e.objects;
64
+ var _g = data.individualData, occupation = _g.occupation, sourceIncome = _g.sourceIncome, monthlyIncome = _g.monthlyIncome, employerName = _g.employerName, isPEP = _g.isPEP, isInfluencer = _g.isInfluencer, civilID = _g.civilID, signatureFileId = _g.signatureFileId, civilIDUploading = _g.civilIDUploading, signatureFileUploading = _g.signatureFileUploading, shareCount = _g.shareCount, shareValue = _g.shareValue, isAuthorized = _g.isAuthorized;
65
+ var _h = user || {}, documents = _h.documents, is_authorized = _h.is_authorized, data_status = _h.data_status, data_verification = _h.data_verification, names = _h.names, role = _h.role, occupationRes = _h.occupation, source_income = _h.source_income, monthly_income = _h.monthly_income, shares = _h.shares, is_relative_PEP = _h.is_relative_PEP, is_influencer = _h.is_influencer, objects = _h.objects;
66
66
  var isKWCountry = React.useMemo(function () { return isKW(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
67
67
  var isOtherThanKWAndSa = React.useMemo(function () { return !isKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
68
68
  var showIsAuthorized = isOtherThanKWAndSa;
@@ -95,6 +95,30 @@ var AdditionalIndividualInfo = function (_a) {
95
95
  civilID: defaultCivilIdFiles,
96
96
  signatureFileId: defaultSignatureFiles
97
97
  });
98
+ var isDirty = useFormDirtyCheck(methods, {
99
+ occupation: ((_b = occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.chapter) === null || _b === void 0 ? void 0 : _b.id) && { id: occupationRes.chapter.id },
100
+ sourceIncome: source_income === null || source_income === void 0 ? void 0 : source_income[0],
101
+ monthlyIncome: monthly_income,
102
+ employerName: '',
103
+ isPEP: is_relative_PEP,
104
+ isInfluencer: is_influencer,
105
+ shareCount: (_c = shares === null || shares === void 0 ? void 0 : shares.count) === null || _c === void 0 ? void 0 : _c.toString(),
106
+ shareValue: (_d = shares === null || shares === void 0 ? void 0 : shares.value) === null || _d === void 0 ? void 0 : _d.toString(),
107
+ isAuthorized: is_authorized
108
+ }, [
109
+ {
110
+ name: 'occupation',
111
+ keys: ['id']
112
+ },
113
+ {
114
+ name: 'sourceIncome',
115
+ keys: ['id']
116
+ },
117
+ {
118
+ name: 'monthlyIncome',
119
+ keys: ['id']
120
+ }
121
+ ]).isDirty;
98
122
  var noneEditable = useDataNoneEditable(data_status, [
99
123
  'occupation',
100
124
  'source_of_income',
@@ -106,13 +130,22 @@ var AdditionalIndividualInfo = function (_a) {
106
130
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
107
131
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
108
132
  var dataVerified = useDataVerified(data_verification, ['occupation', 'is_relative_PEP', 'is_influencer']);
109
- var isOccupationVerified = dataVerified['occupation'] && (occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.id) === ((_b = watch('occupation')) === null || _b === void 0 ? void 0 : _b.id);
133
+ var isOccupationVerified = dataVerified['occupation'] && (occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.id) === ((_e = watch('occupation')) === null || _e === void 0 ? void 0 : _e.id);
110
134
  var isPEPSwitchVerified = dataVerified['is_relative_PEP'] && is_relative_PEP === watch('isPEP');
111
135
  var isInfluencerSwitchVerified = dataVerified['is_influencer'] && is_influencer === watch('isInfluencer');
112
136
  var isAuthorizedSwitchVerified = dataVerified['is_authorized'] && is_authorized === watch('isAuthorized');
113
- var _f = React.useState(), listActive = _f[0], setListActive = _f[1];
137
+ var _j = React.useState(), listActive = _j[0], setListActive = _j[1];
138
+ React.useEffect(function () {
139
+ sendCustomEventToGTM({
140
+ event: 'Send Event',
141
+ event_category: 'Board Flows - Individual',
142
+ event_action: 'Income Details Page',
143
+ event_label: settingsData.businessCountry.iso2
144
+ });
145
+ }, []);
114
146
  var onSubmit = function (data) {
115
- dispatch(updateIndividualInfo(deepCopy(getFelids(__assign(__assign({}, data), { signatureFileUploading: signatureFileUploading, civilIDUploading: civilIDUploading })))));
147
+ var formData = __assign(__assign({}, deepCopy(getFelids(__assign(__assign({}, data), { signatureFileUploading: signatureFileUploading, civilIDUploading: civilIDUploading })))), { isDirty: isDirty });
148
+ dispatch(updateIndividualInfo(formData));
116
149
  };
117
150
  var onBack = function () {
118
151
  dispatch(handleCurrentActiveScreen('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP'));
@@ -137,7 +170,7 @@ var AdditionalIndividualInfo = function (_a) {
137
170
  return t('type_board_member');
138
171
  return t('type_user');
139
172
  };
140
- var _g = React.useMemo(function () { return getIndividualType(objects); }, [objects]), isUser = _g.isUser, isShareholder = _g.isShareholder, isBoardMember = _g.isBoardMember, isBuyer = _g.isBuyer;
173
+ var _k = React.useMemo(function () { return getIndividualType(objects); }, [objects]), isUser = _k.isUser, isShareholder = _k.isShareholder, isBoardMember = _k.isBoardMember, isBuyer = _k.isBuyer;
141
174
  var isUserORBuyerType = isUser || isBuyer;
142
175
  var isUserORBoardMemberType = isUser || isBoardMember;
143
176
  var isAuthorizedValue = watch('isAuthorized');
@@ -151,7 +184,7 @@ var AdditionalIndividualInfo = function (_a) {
151
184
  var isMonthlyIncomeListActive = listActive === ListType.MonthlyIncomeList;
152
185
  var isOccupationListActive = listActive === ListType.OccupationList;
153
186
  var disabled = !methods.formState.isValid || civilIDUploading || signatureFileUploading;
154
- return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !listActive && !!is_authorized, timeout: 500 }, { children: _jsx(TextBoxStyled, { children: getUserName() || '' }) })), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Occupation, { isVerified: isOccupationVerified, readOnly: readOnly['occupation'] || noneEditable['occupation'], onListOpen: function () { return handleMenuClick(ListType.OccupationList); }, onListClose: function () { return handleMenuClick(); }, show: showOccupationFile && !isMonthlyIncomeListActive && !isSourceOfIncomeListActive }), _jsx(SourceOfIncome, { readOnly: readOnly['sourceIncome'] || noneEditable['source_of_income'], onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: showSourceOfIncome && !isMonthlyIncomeListActive && !isOccupationListActive }), _jsx(MonthlyIncome, { readOnly: readOnly['monthlyIncome'] || noneEditable['monthly_income'], show: showSourceOfIncome && !isSourceOfIncomeListActive && !isOccupationListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ShareCount, { show: !listActive && showShares, readOnly: readOnly['shareCount'] }), _jsx(ShareValue, { show: !listActive && showShares, readOnly: readOnly['shareValue'] }), _jsx(IsAuthorizedSwitch, { show: !listActive && showIsAuthorized, readOnly: readOnly['isAuthorized'] || noneEditable['is_authorized'], isVerified: isAuthorizedSwitchVerified }), _jsxs(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: [_jsx(CivilIDFile, { show: isKWCountry, readOnly: readOnly['civilID'], defaultFiles: defaultCivilIdFiles }), _jsx(SignatureFile, { show: isAuthorizedValue && showSignatureFile, readOnly: readOnly['signatureFileId'], defaultFiles: defaultSignatureFiles })] })), _jsx(PEPSwitch, { show: showIsPEP && !listActive, readOnly: readOnly['isPEP'] || noneEditable['is_relative_PEP'], isVerified: isPEPSwitchVerified }), _jsx(InfluencerSwitch, { show: showIsInfluencer && isKWCountry && !listActive, readOnly: readOnly['isInfluencer'] || noneEditable['is_influencer'], isVerified: isInfluencerSwitchVerified })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) }))] }));
187
+ return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !listActive && !!is_authorized, timeout: 500 }, { children: _jsxs(TextBoxStyled, { children: [getUserName() || '', _jsx(RoleTextStyled, { children: getUserRole() || '' })] }) })), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Occupation, { isVerified: isOccupationVerified, readOnly: readOnly['occupation'] || noneEditable['occupation'], onListOpen: function () { return handleMenuClick(ListType.OccupationList); }, onListClose: function () { return handleMenuClick(); }, show: showOccupationFile && !isMonthlyIncomeListActive && !isSourceOfIncomeListActive }), _jsx(SourceOfIncome, { readOnly: readOnly['sourceIncome'] || noneEditable['source_of_income'], onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: showSourceOfIncome && !isMonthlyIncomeListActive && !isOccupationListActive }), _jsx(MonthlyIncome, { readOnly: readOnly['monthlyIncome'] || noneEditable['monthly_income'], show: showSourceOfIncome && !isSourceOfIncomeListActive && !isOccupationListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ShareCount, { show: !listActive && showShares, readOnly: readOnly['shareCount'] }), _jsx(ShareValue, { show: !listActive && showShares, readOnly: readOnly['shareValue'] }), _jsx(IsAuthorizedSwitch, { show: !listActive && showIsAuthorized, readOnly: readOnly['isAuthorized'] || noneEditable['is_authorized'], isVerified: isAuthorizedSwitchVerified }), _jsxs(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: [_jsx(CivilIDFile, { show: isKWCountry, readOnly: readOnly['civilID'], defaultFiles: defaultCivilIdFiles }), _jsx(SignatureFile, { show: isAuthorizedValue && showSignatureFile, readOnly: readOnly['signatureFileId'], defaultFiles: defaultSignatureFiles })] })), _jsx(PEPSwitch, { show: showIsPEP && !listActive, readOnly: readOnly['isPEP'] || noneEditable['is_relative_PEP'], isVerified: isPEPSwitchVerified }), _jsx(InfluencerSwitch, { show: showIsInfluencer && isKWCountry && !listActive, readOnly: readOnly['isInfluencer'] || noneEditable['is_influencer'], isVerified: isInfluencerSwitchVerified })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) }))] }));
155
188
  };
156
189
  export default React.memo(AdditionalIndividualInfo);
157
190
  AdditionalIndividualInfo.defaultProps = {};
@@ -26,6 +26,7 @@ import InputSelect from '../../../shared/InputSelect';
26
26
  import CheckIcon from '../../../shared/CheckIcon';
27
27
  import { ScreenContainer } from '../../../shared/Containers';
28
28
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
29
+ import TextWithCurrency from '../../../../components/TextWithCurrency';
29
30
  var Container = styled(Box)(function () { return ({
30
31
  display: 'flex'
31
32
  }); });
@@ -45,7 +46,6 @@ var MonthlyIncome = function (props) {
45
46
  var settingsData = useAppSelector(settingsSelector).data;
46
47
  var monthlyIncomeList = (data.individualData.responseBody || {}).monthlyIncomeList;
47
48
  var monthlyIncomeControl = useController({ control: control, name: 'monthlyIncome' });
48
- var countryCode = settingsData.businessCountry;
49
49
  var user = (data.verify.responseBody || {}).user;
50
50
  var isMonthlyIncomeVerified = function (item) {
51
51
  if (!(item === null || item === void 0 ? void 0 : item.id))
@@ -80,9 +80,7 @@ var MonthlyIncome = function (props) {
80
80
  };
81
81
  var income = monthlyIncomeControl.field.value;
82
82
  var error = (_a = monthlyIncomeControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
83
- return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(InputSelect, { label: t('please_enter_actual_income', {
84
- currency: t(data.currency)
85
- }), required: true, readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
83
+ return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(InputSelect, { label: _jsx(TextWithCurrency, { text: t('monthly_income'), countryCode: settingsData.businessCountry.iso2 }), required: true, readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
86
84
  return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (income === null || income === void 0 ? void 0 : income.id) }, { children: isAr ? item.range.ar : item === null || item === void 0 ? void 0 : item.range.en })) }), item.id === (income === null || income === void 0 ? void 0 : income.id) && _jsx(CheckIcon, { isVerified: isMonthlyIncomeVerified(item) })] }));
87
85
  } }) }))] })) })));
88
86
  };
@@ -16,15 +16,17 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import Collapse from '@mui/material/Collapse';
17
17
  import { formatNumberAsCurrency, removeAllCharsFromNumber } from '../../../../utils';
18
18
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
19
+ import { settingsSelector } from '../../../../app/settings';
19
20
  import { ScreenContainer } from '../../../shared/Containers';
20
21
  import Input from '../../../shared/Input';
21
22
  import { individualSelector, clearError } from '../../../app/individual/individualStore';
22
23
  import { EndAdornment } from '../../../shared/EndAdornment';
24
+ import TextWithCurrency from '../../../../components/TextWithCurrency';
23
25
  var ShareValue = function (_a) {
24
26
  var _b;
25
27
  var show = _a.show, readOnly = _a.readOnly;
26
28
  var t = useTranslation().t;
27
- var data = useAppSelector(individualSelector).data;
29
+ var settingsData = useAppSelector(settingsSelector).data;
28
30
  var control = useFormContext().control;
29
31
  var bckError = useAppSelector(individualSelector).error;
30
32
  var dispatch = useAppDispatch();
@@ -38,8 +40,6 @@ var ShareValue = function (_a) {
38
40
  var shareValueControl = useController({ control: control, name: 'shareValue' });
39
41
  var shareValue = shareValueControl.field.value;
40
42
  var error = (_b = shareValueControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
41
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('share_value_label', {
42
- currency: t(data.currency)
43
- }), onChange: handleChange, value: shareValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('share_value_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: shareValue, error: error }) }) })) })));
43
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: _jsx(TextWithCurrency, { text: t('share_value_input_label'), countryCode: settingsData.businessCountry.iso2 }), onChange: handleChange, value: shareValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('share_value_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: shareValue, error: error }) }) })) })));
44
44
  };
45
45
  export default React.memo(ShareValue);
@@ -54,7 +54,7 @@ import { useController, useFormContext } from 'react-hook-form';
54
54
  import { styled } from '@mui/material/styles';
55
55
  import CircularProgress from '@mui/material/CircularProgress';
56
56
  import { useAppDispatch } from '../../../../hooks';
57
- import { isValidEmail, removeAllOtherThanCharsNumbersAtAndDot } from '../../../../utils';
57
+ import { isValidEmail } from '../../../../utils';
58
58
  import Collapse from '../../../../components/Collapse';
59
59
  import { ScreenContainer } from '../../../shared/Containers';
60
60
  import Input from '../../../shared/Input';
@@ -103,8 +103,7 @@ var Email = function (_a) {
103
103
  }
104
104
  }, [emailValue, error]);
105
105
  var handleEmailChange = function (event) {
106
- var value = removeAllOtherThanCharsNumbersAtAndDot(event.target.value);
107
- emailControl.field.onChange(value);
106
+ emailControl.field.onChange(event.target.value);
108
107
  };
109
108
  var clearEmail = function () {
110
109
  emailControl.field.onChange('');
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const TitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -11,9 +11,9 @@ export declare const TitleStyled: import("@emotion/styled").StyledComponent<impo
11
11
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
15
  export declare const SubTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
16
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
16
+ align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
19
19
  gutterBottom?: boolean | undefined;
@@ -24,7 +24,7 @@ export declare const SubTitleStyled: import("@emotion/styled").StyledComponent<i
24
24
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
25
25
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
26
26
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
27
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
27
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
28
28
  export interface IndividualListProps {
29
29
  }
30
30
  declare const IndividualList: () => JSX.Element;
@@ -16,11 +16,13 @@ import Box from '@mui/material/Box';
16
16
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
17
17
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
18
18
  import Text from '../../../../components/Text';
19
- import Button from '../../../../components/Button';
20
19
  import Collapse from '../../../../components/Collapse';
21
20
  import Warning from '../../../../components/Warning';
21
+ import Button from '../../../../components/Button';
22
+ import Loader from '../../../../components/Loader';
23
+ import { sendCustomEventToGTM } from '../../../../utils';
22
24
  import { ScreenContainer } from '../../../shared/Containers';
23
- import { individualSelector } from '../../../app/individual/individualStore';
25
+ import { individualSelector, retrieveBoardStatus } from '../../../app/individual/individualStore';
24
26
  import UserList from './UserList';
25
27
  var BoxStyled = styled(Box)(function (_a) {
26
28
  var theme = _a.theme;
@@ -49,12 +51,23 @@ export var SubTitleStyled = styled(Text)(function (_a) {
49
51
  var IndividualList = function () {
50
52
  var dispatch = useAppDispatch();
51
53
  var t = useTranslation().t;
52
- var error = useAppSelector(individualSelector).error;
54
+ var _a = useAppSelector(individualSelector), error = _a.error, data = _a.data, loading = _a.loading;
53
55
  var settingsData = useAppSelector(settingsSelector).data;
56
+ var flows = (data.verify.responseBody || {}).flows;
54
57
  var onBack = function () {
55
- dispatch(handlePrevScreenStep());
58
+ sendCustomEventToGTM({
59
+ event: 'Send Event',
60
+ event_category: 'Board Flows - Individual',
61
+ event_action: 'Individual Details Back Button',
62
+ event_label: settingsData.businessCountry.iso2
63
+ });
64
+ if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
65
+ dispatch(handlePrevScreenStep());
66
+ return;
67
+ }
68
+ dispatch(retrieveBoardStatus());
56
69
  };
57
70
  var hideBack = settingsData.appConfig.mode === 'content';
58
- return (_jsxs(ScreenContainer, { children: [_jsxs(BoxStyled, { children: [_jsxs(ContentStyled, { children: [_jsx(TitleStyled, { children: t('company_individuals') }), _jsx(SubTitleStyled, { children: t('company_individuals_add_or_request_details') })] }), _jsx(UserList, {})] }), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: 'error' }, { children: t(error || '') })) })), !hideBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return onBack(); }, variant: 'text' }, { children: t('back') })))] }));
71
+ return (_jsxs(ScreenContainer, { children: [_jsxs(BoxStyled, { children: [_jsxs(ContentStyled, { children: [_jsx(TitleStyled, { children: t('company_individuals') }), _jsx(SubTitleStyled, { children: t('company_individuals_add_or_request_details') })] }), _jsx(UserList, {})] }), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: 'error' }, { children: t(error || '') })) })), !hideBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return onBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') })))] }));
59
72
  };
60
73
  export default IndividualList;
@@ -26,8 +26,8 @@ import { useTranslation } from 'react-i18next';
26
26
  import { useController, useFormContext } from 'react-hook-form';
27
27
  import Box from '@mui/material/Box';
28
28
  import { styled, alpha } from '@mui/material/styles';
29
- import { removeAllCharsFromNumber } from '../../../../utils';
30
- import { useLanguage, useAppSelector } from '../../../../hooks';
29
+ import { getMobileNumberLen, removeAllCharsFromNumber } from '../../../../utils';
30
+ import { useLanguage } from '../../../../hooks';
31
31
  import Text from '../../../../components/Text';
32
32
  import Collapse from '../../../../components/Collapse';
33
33
  import ExpandIcon from '../../../../components/ExpandIcon';
@@ -36,7 +36,6 @@ import ClearIcon from '../../../shared/ClearIcon';
36
36
  import CheckIcon from '../../../shared/CheckIcon';
37
37
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
38
38
  import Input from '../../../shared/Input';
39
- import { individualSelector } from '../../../app/individual/individualStore';
40
39
  var LabelContainerStyled = styled(Box)(function (_a) {
41
40
  var theme = _a.theme;
42
41
  return ({
@@ -86,18 +85,17 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
86
85
  var t = useTranslation().t;
87
86
  var isAr = useLanguage().isAr;
88
87
  var _g = useFormContext(), control = _g.control, setValue = _g.setValue;
89
- var data = useAppSelector(individualSelector).data;
90
88
  var phoneControl = useController({ name: 'mobile', control: control });
91
89
  var countryCodeControl = useController({ name: 'countryCode', control: control });
92
90
  var countryCodeValue = countryCodeControl.field.value;
93
- var mobileValue = phoneControl.field.value;
91
+ var mobileValue = phoneControl.field.value || '';
94
92
  var countryName = (isAr ? (_b = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _b === void 0 ? void 0 : _b.arabic : (_c = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _c === void 0 ? void 0 : _c.english) || '';
95
93
  var error = !!mobileValue ? (_d = phoneControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message : '';
96
94
  var isSA = (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.iso2) === 'SA';
97
- var mobileLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.digits;
98
- var isStartsWith5 = mobileValue.startsWith('5');
99
- var requiredLen = isSA && isStartsWith5 ? mobileLen - 1 : mobileLen;
100
- var verify = data.verify;
95
+ var mobileMaxLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.max_digits;
96
+ var mobileMinLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.min_digits;
97
+ var requiredMaxLen = getMobileNumberLen(mobileMaxLen, mobileValue);
98
+ var requiredMinLen = getMobileNumberLen(mobileMinLen, mobileValue);
101
99
  React.useEffect(function () {
102
100
  if (mobileValue)
103
101
  setValue('mobile', mobileValue, { shouldValidate: true });
@@ -135,7 +133,7 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
135
133
  setValue('mobile', '');
136
134
  countryCodeControl.field.onChange(country);
137
135
  };
138
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: sx }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_enter_mobile') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredLen }, type: 'tel', disabled: !!anchorEl, onClick: onCloseCountryList, onChange: onPhoneNumberChange, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: function () { return toggleCountryList(); } }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { onClick: function () { return toggleCountryList(); }, anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: error && t(error, { length: requiredLen, number: '05|5' }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', searchValuePath: ['name.arabic', 'name.english'], list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
136
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: sx }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_enter_mobile') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredMaxLen }, type: 'tel', disabled: !!anchorEl, onClick: onCloseCountryList, onChange: onPhoneNumberChange, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: function () { return toggleCountryList(); } }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { onClick: function () { return toggleCountryList(); }, anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: error && t(error, { minLength: requiredMinLen, length: requiredMaxLen, number: '05|5' }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', searchValuePath: ['name.arabic', 'name.english'], list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
139
137
  return (_jsxs(_Fragment, { children: [_jsxs(CountryItemContainer, { children: [_jsxs(CountryCodeText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: ["+", item.idd_prefix] })), _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english }))] }), item.idd_prefix === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) && _jsx(CheckIcon, {})] }));
140
138
  } }) }))] })) })));
141
139
  });
@@ -85,12 +85,12 @@ var UserList = function (_a) {
85
85
  var dispatch = useAppDispatch();
86
86
  var _j = React.useState(false), emailChecking = _j[0], setEmailChecking = _j[1];
87
87
  var theme = useTheme();
88
- var _k = useAppSelector(individualSelector), data = _k.data, loading = _k.loading, error = _k.error;
88
+ var _k = useAppSelector(individualSelector), data = _k.data, addOrRequestDetailLoading = _k.addOrRequestDetailLoading, error = _k.error;
89
89
  var settingsData = useAppSelector(settingsSelector).data;
90
90
  var _l = data.individualCollectData, email = _l.email, mobile = _l.mobile, responseBody = _l.responseBody;
91
91
  var is_available = (responseBody || {}).is_available;
92
92
  var verify = data.verify;
93
- var _m = verify.responseBody || {}, userList = _m.userList, notification = _m.notification, userRes = _m.user;
93
+ var _m = verify.responseBody || {}, userList = _m.userList, recipient = _m.recipient, userRes = _m.user;
94
94
  var methods = useForm({
95
95
  resolver: yupResolver(IndividualCollectInfoValidationSchema(activeUser)),
96
96
  defaultValues: {
@@ -159,10 +159,10 @@ var UserList = function (_a) {
159
159
  return (activeUser === null || activeUser === void 0 ? void 0 : activeUser.id) === user.id;
160
160
  };
161
161
  var isSameUserRequestedBefore = function (user) {
162
- var _a, _b;
162
+ var _a;
163
163
  if (!(userRes === null || userRes === void 0 ? void 0 : userRes.is_authorized) && !isKWOrSA(settingsData.businessCountry.iso2))
164
164
  return false;
165
- return (_a = user === null || user === void 0 ? void 0 : user.ids) === null || _a === void 0 ? void 0 : _a.includes((_b = notification === null || notification === void 0 ? void 0 : notification.recipient) === null || _b === void 0 ? void 0 : _b.id);
165
+ return (_a = user === null || user === void 0 ? void 0 : user.ids) === null || _a === void 0 ? void 0 : _a.includes(recipient === null || recipient === void 0 ? void 0 : recipient.id);
166
166
  };
167
167
  var getUserStatus = function (user) {
168
168
  return user === null || user === void 0 ? void 0 : user.individual_data_state;
@@ -192,11 +192,11 @@ var UserList = function (_a) {
192
192
  return (_jsx(ScreenContainerStyled, { children: usersMenuList.map(function (user, index) {
193
193
  return (_jsxs(Box, __assign({ sx: index !== usersMenuList.length - 1 ? { borderBottom: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) } : {} }, { children: [_jsxs(TextBoxStyled, __assign({ sx: {
194
194
  cursor: emailChecking ? 'default' : 'pointer'
195
- }, onClick: !!anchorEl && isActiveUser(user) ? function () { return onCloseUserAction(); } : function (e) { return onClickUser(user, e); } }, { children: [_jsx(TextStyled, { children: _jsx("span", { children: getName(user) || '' }) }), (user === null || user === void 0 ? void 0 : user.isRequestedEmail) ? _jsx(CheckIcon, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl && isActiveUser(user) })] })), _jsx(Collapse, __assign({ in: !!anchorEl && isActiveUser(user), timeout: 300 }, { children: _jsx(IndividualActionButtons, { isAr: isAr, addDetails: {
195
+ }, onClick: !!anchorEl && isActiveUser(user) ? function () { return onCloseUserAction(); } : function (e) { return onClickUser(user, e); } }, { children: [_jsxs(TextStyled, { children: [_jsx("span", { children: getName(user) || '' }), _jsx(RoleTextStyled, { children: getUserRole(user) || '' })] }), (user === null || user === void 0 ? void 0 : user.isRequestedEmail) ? _jsx(CheckIcon, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl && isActiveUser(user) })] })), _jsx(Collapse, __assign({ in: !!anchorEl && isActiveUser(user), timeout: 300 }, { children: _jsx(IndividualActionButtons, { isAr: isAr, addDetails: {
196
196
  status: getUserStatus(user),
197
197
  title: t('add_details'),
198
198
  onClick: onAddDetails,
199
- loading: isActiveUser(user) && loading && type === IndividualRequestType.ADD
199
+ loading: isActiveUser(user) && !!addOrRequestDetailLoading && type === IndividualRequestType.ADD
200
200
  }, requestEmail: {
201
201
  children: getCollectForm(user),
202
202
  title: t('request_details_by_email'),
@@ -204,7 +204,7 @@ var UserList = function (_a) {
204
204
  disabled: showCollectForm ? disabled : false,
205
205
  onClick: onRequestEmail,
206
206
  show: !isSameUserRequestedBefore(user),
207
- loading: isActiveUser(user) && loading && type === IndividualRequestType.REQUEST_EMAIL
207
+ loading: isActiveUser(user) && !!addOrRequestDetailLoading && type === IndividualRequestType.REQUEST_EMAIL
208
208
  } }) }))] }), index));
209
209
  }) }));
210
210
  };
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { isValidEmail } from '../../../../utils';
2
+ import { getMobileNumberLen, isValidEmail } from '../../../../utils';
3
3
  export var IndividualCollectInfoValidationSchema = function (activeUser) {
4
4
  var _a = (activeUser === null || activeUser === void 0 ? void 0 : activeUser.contact) || {}, phone = _a.phone, email = _a.email;
5
5
  var isPhoneAvailable = (phone === null || phone === void 0 ? void 0 : phone.number) && (phone === null || phone === void 0 ? void 0 : phone.country_code);
@@ -14,7 +14,8 @@ export var IndividualCollectInfoValidationSchema = function (activeUser) {
14
14
  if (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0) {
15
15
  var countryCode = this.parent.countryCode;
16
16
  var isSA = countryCode.iso2 === 'SA';
17
- var digits = countryCode.digits;
17
+ var maxDigits = countryCode.max_digits;
18
+ var minDigits = countryCode.min_digits;
18
19
  var mobileValue = value || '';
19
20
  var valueLen = mobileValue.length;
20
21
  var isNumber = mobileValue.match(/^[0-9]/g);
@@ -26,10 +27,16 @@ export var IndividualCollectInfoValidationSchema = function (activeUser) {
26
27
  if (isSA) {
27
28
  if (!isSaudiNumber)
28
29
  return this.createError({ message: 'start_with_number' });
29
- var requiredLen = isStartWith5 ? digits - 1 : digits;
30
+ var requiredLen = isStartWithZero ? maxDigits + 1 : maxDigits;
30
31
  return valueLen === requiredLen ? true : this.createError({ message: 'enter_valid_mobile_number' });
31
32
  }
32
- return valueLen === digits ? true : this.createError({ message: 'enter_valid_mobile_number' });
33
+ var requiredMaxLen = getMobileNumberLen(maxDigits, mobileValue);
34
+ var requiredMinLen = getMobileNumberLen(minDigits, mobileValue);
35
+ if (valueLen >= requiredMinLen && valueLen <= requiredMaxLen)
36
+ return true;
37
+ if (minDigits === maxDigits)
38
+ return this.createError({ message: 'enter_valid_mobile_number' });
39
+ return this.createError({ message: 'enter_valid_mobile_number_min_max_length' });
33
40
  }
34
41
  return true;
35
42
  }
@@ -15,10 +15,9 @@ import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import Collapse from '../../../../components/Collapse';
18
- import { removeAllOtherThanCharsNumbersAtAndDot } from '../../../../utils';
19
18
  import { ScreenContainer } from '../../../shared/Containers';
20
19
  import Input from '../../../shared/Input';
21
- import { EndAdornment } from '../../../shared/EndAdornment';
20
+ import { EndAdornment } from '../../../../features/shared/EndAdornment';
22
21
  var InputStyled = styled(Input)(function () { return ({
23
22
  input: {
24
23
  textTransform: 'lowercase'
@@ -33,8 +32,7 @@ var Email = function (_a) {
33
32
  var emailValue = emailControl.field.value;
34
33
  var error = (_b = emailControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
35
34
  var handleEmailChange = function (event) {
36
- var value = removeAllOtherThanCharsNumbersAtAndDot(event.target.value);
37
- emailControl.field.onChange(value);
35
+ emailControl.field.onChange(event.target.value);
38
36
  };
39
37
  var clearNumber = function () {
40
38
  emailControl.field.onChange('');
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const RoleTextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -11,7 +11,7 @@ export declare const RoleTextStyled: import("@emotion/styled").StyledComponent<i
11
11
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
15
  export interface IndividualPersonalInfoProps {
16
16
  }
17
17
  declare const _default: React.MemoExoticComponent<{