@tap-payments/auth-jsconnect 2.3.99-test → 2.4.0

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 (493) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +266 -15
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/form.d.ts +31 -23
  5. package/build/@types/theme.d.ts +1 -1
  6. package/build/@types/user.d.ts +39 -3
  7. package/build/api/account.d.ts +2 -2
  8. package/build/api/auth.d.ts +12 -11
  9. package/build/api/auth.js +5 -1
  10. package/build/api/availabilityServices.d.ts +3 -3
  11. package/build/api/axios.js +1 -1
  12. package/build/api/board.d.ts +3 -3
  13. package/build/api/brand.d.ts +1 -1
  14. package/build/api/country.d.ts +2 -1
  15. package/build/api/country.js +8 -1
  16. package/build/api/data.d.ts +17 -10
  17. package/build/api/data.js +26 -2
  18. package/build/api/document.d.ts +2 -2
  19. package/build/api/entity.d.ts +13 -8
  20. package/build/api/entity.js +32 -1
  21. package/build/api/file.d.ts +1 -1
  22. package/build/api/index.d.ts +26 -5
  23. package/build/api/individual.d.ts +29 -11
  24. package/build/api/individual.js +9 -1
  25. package/build/api/init.d.ts +2 -1
  26. package/build/api/lead.d.ts +15 -10
  27. package/build/api/lead.js +58 -1
  28. package/build/api/operator.d.ts +10 -1
  29. package/build/api/operator.js +10 -2
  30. package/build/api/user.d.ts +2 -2
  31. package/build/app/rootReducer.d.ts +1 -0
  32. package/build/app/rootReducer.js +3 -1
  33. package/build/app/settings.d.ts +37 -3
  34. package/build/app/settings.js +116 -39
  35. package/build/app/store.d.ts +6 -4
  36. package/build/assets/locales/ar.json +24 -1
  37. package/build/assets/locales/en.json +24 -1
  38. package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
  39. package/build/components/AnimationFlow/AnimationFlow.js +3 -3
  40. package/build/components/AnimationFlow/BottomSheet.js +26 -5
  41. package/build/components/AnimationFlow/Dialog.d.ts +2 -1
  42. package/build/components/AnimationFlow/Dialog.js +2 -2
  43. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +5 -2
  44. package/build/components/ArabicDatePicker/ArabicDatePicker.js +45 -23
  45. package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -0
  46. package/build/components/ArabicDatePicker/arabicAr.js +32 -0
  47. package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -0
  48. package/build/components/ArabicDatePicker/arabicEn.js +32 -0
  49. package/build/components/ArabicDatePicker/style.css +45 -5
  50. package/build/components/DatePicker/DatePicker.d.ts +3 -1
  51. package/build/components/DatePicker/DatePicker.js +23 -17
  52. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  53. package/build/components/SimpleList/SimpleList.d.ts +2 -1
  54. package/build/components/SimpleList/SimpleList.js +12 -9
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/constants/api.d.ts +9 -0
  57. package/build/constants/api.js +18 -1
  58. package/build/constants/app.d.ts +9 -1
  59. package/build/constants/app.js +84 -16
  60. package/build/constants/assets.d.ts +4 -0
  61. package/build/constants/assets.js +4 -0
  62. package/build/constants/dummy.d.ts +62 -0
  63. package/build/constants/dummy.js +603 -0
  64. package/build/constants/validation.d.ts +2 -2
  65. package/build/constants/validation.js +3 -3
  66. package/build/features/app/bank/bankStore.d.ts +94 -10
  67. package/build/features/app/bank/bankStore.js +110 -54
  68. package/build/features/app/board/boardStore.d.ts +66 -0
  69. package/build/features/app/board/boardStore.js +223 -0
  70. package/build/features/app/brand/brandStore.d.ts +161 -18
  71. package/build/features/app/brand/brandStore.js +295 -145
  72. package/build/features/app/business/businessStore.d.ts +171 -18
  73. package/build/features/app/business/businessStore.js +297 -198
  74. package/build/features/app/connect/connectStore.d.ts +180 -14
  75. package/build/features/app/connect/connectStore.js +342 -95
  76. package/build/features/app/connectExpress/connectExpressStore.d.ts +273 -25
  77. package/build/features/app/connectExpress/connectExpressStore.js +453 -71
  78. package/build/features/app/entity/entityStore.d.ts +98 -10
  79. package/build/features/app/entity/entityStore.js +150 -75
  80. package/build/features/app/individual/individualStore.d.ts +200 -28
  81. package/build/features/app/individual/individualStore.js +346 -222
  82. package/build/features/app/password/passwordStore.d.ts +114 -12
  83. package/build/features/app/password/passwordStore.js +113 -43
  84. package/build/features/app/signIn/signInStore.d.ts +61 -7
  85. package/build/features/app/signIn/signInStore.js +1 -1
  86. package/build/features/app/tax/taxStore.d.ts +83 -9
  87. package/build/features/app/tax/taxStore.js +97 -48
  88. package/build/features/bank/Bank.d.ts +1 -0
  89. package/build/features/bank/Bank.js +11 -6
  90. package/build/features/bank/screens/BankDetails/BankDetails.js +19 -14
  91. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  92. package/build/features/bank/screens/BankDetails/BankName.js +4 -5
  93. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  94. package/build/features/bank/screens/BankDetails/BankStatement.js +5 -4
  95. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  96. package/build/features/bank/screens/BankDetails/Beneficiary.js +8 -10
  97. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
  98. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  99. package/build/features/bank/screens/BankDetails/IBAN.js +4 -6
  100. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  101. package/build/features/bank/screens/Verify/OTPInput.js +3 -1
  102. package/build/features/bank/screens/Verify/Verify.js +2 -2
  103. package/build/features/board/Board.d.ts +10 -0
  104. package/build/features/board/Board.js +74 -0
  105. package/build/features/board/index.d.ts +1 -0
  106. package/build/features/board/index.js +1 -0
  107. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  108. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  109. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  110. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  111. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  112. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +35 -0
  113. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  114. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  115. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  116. package/build/features/board/screens/Verify/OTPInput.js +51 -0
  117. package/build/features/board/screens/Verify/Verify.d.ts +5 -0
  118. package/build/features/board/screens/Verify/Verify.js +74 -0
  119. package/build/features/board/screens/Verify/index.d.ts +2 -0
  120. package/build/features/board/screens/Verify/index.js +2 -0
  121. package/build/features/board/screens/Verify/validation.d.ts +8 -0
  122. package/build/features/board/screens/Verify/validation.js +4 -0
  123. package/build/features/brand/Brand.d.ts +1 -0
  124. package/build/features/brand/Brand.js +11 -6
  125. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -20
  126. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +26 -23
  127. package/build/features/brand/screens/BrandActivities/BrandActivities.js +31 -8
  128. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +7 -30
  129. package/build/features/brand/screens/BrandActivities/CustomerBase.js +13 -25
  130. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  131. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
  132. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  133. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +22 -23
  134. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
  135. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +3 -3
  136. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -4
  137. package/build/features/brand/screens/BrandActivities/TAC.js +3 -3
  138. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
  139. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +3 -3
  140. package/build/features/brand/screens/BrandActivities/validation.d.ts +36 -36
  141. package/build/features/brand/screens/BrandActivities/validation.js +5 -10
  142. package/build/features/brand/screens/BrandInfo/BrandInfo.js +18 -31
  143. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -3
  144. package/build/features/brand/screens/BrandInfo/BrandLogo.js +3 -14
  145. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +2 -2
  146. package/build/features/brand/screens/BrandInfo/BrandName.js +4 -7
  147. package/build/features/brand/screens/BrandInfo/SalesChannels.js +17 -6
  148. package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
  149. package/build/features/brand/screens/BrandInfo/validation.js +9 -8
  150. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
  151. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +103 -0
  152. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +10 -0
  153. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +69 -0
  154. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +10 -0
  155. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -0
  156. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +10 -0
  157. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
  158. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +2 -1
  159. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +18 -33
  160. package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
  161. package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
  162. package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
  163. package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
  164. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  165. package/build/features/brand/screens/Verify/OTPInput.js +3 -1
  166. package/build/features/brand/screens/Verify/Verify.js +2 -2
  167. package/build/features/business/Business.js +4 -1
  168. package/build/features/business/screens/Activities/Activities.js +2 -1
  169. package/build/features/business/screens/Activities/ActivitiesList.d.ts +13 -61
  170. package/build/features/business/screens/Activities/ActivitiesList.js +226 -103
  171. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  172. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  173. package/build/features/business/screens/Activities/validation.d.ts +165 -30
  174. package/build/features/business/screens/Activities/validation.js +5 -2
  175. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  176. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  177. package/build/features/business/screens/BusinessType/BusinessType.js +14 -6
  178. package/build/features/business/screens/BusinessType/EntityLicenseList.js +3 -6
  179. package/build/features/business/screens/BusinessType/EntityName.js +4 -5
  180. package/build/features/business/screens/BusinessType/LicenseList.js +6 -9
  181. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  182. package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
  183. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  184. package/build/features/business/screens/BusinessType/validation.js +18 -2
  185. package/build/features/business/screens/CivilID/CivilID.js +2 -1
  186. package/build/features/business/screens/CivilID/IDNumber.js +2 -3
  187. package/build/features/business/screens/Customers/CustomerLocations.d.ts +41 -29
  188. package/build/features/business/screens/Customers/CustomerLocations.js +35 -19
  189. package/build/features/business/screens/Customers/Customers.js +29 -17
  190. package/build/features/business/screens/Customers/ExpectedCustomers.js +8 -10
  191. package/build/features/business/screens/Customers/ExpectedSalesRange.js +13 -15
  192. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
  193. package/build/features/business/screens/Customers/RefundPolicy.js +15 -4
  194. package/build/features/business/screens/Customers/TransactionPolicy.js +19 -9
  195. package/build/features/business/screens/IDBOD/DOB.js +2 -2
  196. package/build/features/business/screens/IDBOD/ID.js +7 -4
  197. package/build/features/business/screens/IDBOD/IDBOD.js +9 -17
  198. package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
  199. package/build/features/business/screens/IDBOD/validation.js +4 -0
  200. package/build/features/business/screens/OTP/OTP.js +2 -2
  201. package/build/features/business/screens/OTP/OTPInput.js +5 -2
  202. package/build/features/business/screens/Verify/OTPInput.js +3 -1
  203. package/build/features/business/screens/Verify/Verify.js +2 -2
  204. package/build/features/connect/Connect.d.ts +2 -0
  205. package/build/features/connect/Connect.js +95 -13
  206. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
  207. package/build/features/connect/screens/BrandSegment/BrandSegment.js +84 -0
  208. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +8 -0
  209. package/build/features/{brand/screens/BrandInfo/Segments.js → connect/screens/BrandSegment/SegmentLocations.js} +19 -37
  210. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +8 -0
  211. package/build/features/connect/screens/{Merchant/Segments.js → BrandSegment/SegmentProfits.js} +17 -30
  212. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +8 -0
  213. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +66 -0
  214. package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +12 -25
  215. package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
  216. package/build/features/connect/screens/BrandSegment/index.js +2 -0
  217. package/build/features/connect/screens/BrandSegment/validation.d.ts +17 -0
  218. package/build/features/connect/screens/BrandSegment/validation.js +9 -0
  219. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  220. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +103 -0
  221. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  222. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  223. package/build/features/connect/screens/CivilID/CivilID.js +12 -16
  224. package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
  225. package/build/features/connect/screens/Individual/Email.js +9 -11
  226. package/build/features/connect/screens/Individual/Individual.js +9 -2
  227. package/build/features/connect/screens/Individual/MobileNumber.js +6 -9
  228. package/build/features/connect/screens/Individual/Name.js +11 -15
  229. package/build/features/connect/screens/Merchant/BrandList.js +4 -22
  230. package/build/features/connect/screens/Merchant/BrandName.js +3 -5
  231. package/build/features/connect/screens/Merchant/Merchant.js +13 -16
  232. package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
  233. package/build/features/connect/screens/Merchant/validation.d.ts +0 -6
  234. package/build/features/connect/screens/Merchant/validation.js +8 -12
  235. package/build/features/connect/screens/Mobile/Mobile.js +23 -22
  236. package/build/features/connect/screens/Mobile/MobileNumber.js +22 -15
  237. package/build/features/connect/screens/NID/DOB.js +3 -3
  238. package/build/features/connect/screens/NID/IDNumber.js +6 -7
  239. package/build/features/connect/screens/NID/NID.js +17 -4
  240. package/build/features/connect/screens/OTP/OTP.js +14 -16
  241. package/build/features/connect/screens/OTP/OTPInput.js +14 -2
  242. package/build/features/connect/screens/ThankYou/ThankYou.js +17 -2
  243. package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
  244. package/build/features/connectExpress/ConnectExpress.js +87 -17
  245. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  246. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +93 -0
  247. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
  248. package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
  249. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
  250. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +96 -0
  251. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.d.ts +10 -0
  252. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +107 -0
  253. package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
  254. package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
  255. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +14 -0
  256. package/build/features/connectExpress/screens/AuthenticationList/validation.js +8 -0
  257. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  258. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +105 -0
  259. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  260. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  261. package/build/features/connectExpress/screens/CivilID/CivilID.js +11 -4
  262. package/build/features/connectExpress/screens/CivilID/IDNumber.js +12 -8
  263. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -1
  264. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
  265. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +4 -6
  266. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +13 -5
  267. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -12
  268. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  269. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
  270. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
  271. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  272. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +71 -4
  273. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -2
  274. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -5
  275. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -3
  276. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +4 -4
  277. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -3
  278. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -5
  279. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -6
  280. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  281. package/build/features/connectExpress/screens/NID/DOB.js +2 -2
  282. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -3
  283. package/build/features/connectExpress/screens/NID/NID.js +7 -3
  284. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
  285. package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
  286. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -4
  287. package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -4
  288. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
  289. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
  290. package/build/features/connectExpress/screens/OTP/OTP.js +3 -3
  291. package/build/features/connectExpress/screens/OTP/OTPInput.js +4 -2
  292. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -6
  293. package/build/features/entity/Entity.d.ts +1 -0
  294. package/build/features/entity/Entity.js +11 -6
  295. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +3 -16
  296. package/build/features/entity/screens/EntityCapital/ActivityList.js +53 -35
  297. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
  298. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -15
  299. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
  300. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -12
  301. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
  302. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +9 -16
  303. package/build/features/entity/screens/EntityCapital/EntityCapital.js +14 -6
  304. package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
  305. package/build/features/entity/screens/EntityCapital/validation.js +2 -2
  306. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  307. package/build/features/entity/screens/EntityName/Article.js +3 -2
  308. package/build/features/entity/screens/EntityName/EntityName.js +45 -16
  309. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -20
  310. package/build/features/entity/screens/EntityName/EntityTypeList.js +16 -24
  311. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +3 -2
  312. package/build/features/entity/screens/EntityName/ExpiryDate.js +4 -5
  313. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +3 -2
  314. package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
  315. package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
  316. package/build/features/entity/screens/EntityName/LegalName.js +3 -4
  317. package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -2
  318. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
  319. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
  320. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
  321. package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
  322. package/build/features/entity/screens/EntityName/validation.d.ts +28 -0
  323. package/build/features/entity/screens/EntityName/validation.js +40 -2
  324. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  325. package/build/features/entity/screens/Verify/OTPInput.js +3 -1
  326. package/build/features/entity/screens/Verify/Verify.js +2 -2
  327. package/build/features/featuresScreens.d.ts +1 -0
  328. package/build/features/featuresScreens.js +42 -0
  329. package/build/features/individual/Individual.d.ts +1 -0
  330. package/build/features/individual/Individual.js +11 -6
  331. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  332. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +36 -25
  333. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  334. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +10 -4
  335. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
  336. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +13 -10
  337. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -30
  338. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  339. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +87 -48
  340. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -3
  341. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +12 -9
  342. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +2 -1
  343. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +6 -7
  344. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +9 -3
  345. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +17 -27
  346. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +7 -7
  347. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +8 -7
  348. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  349. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  350. package/build/features/individual/screens/IndividualList/UserList.js +10 -6
  351. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  352. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +6 -22
  353. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  354. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +6 -22
  355. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
  356. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
  357. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
  358. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +3 -8
  359. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
  360. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
  361. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -4
  362. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +3 -2
  363. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
  364. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +8 -6
  365. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  366. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +56 -37
  367. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  368. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +7 -24
  369. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  370. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -8
  371. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
  372. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +3 -10
  373. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  374. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +7 -24
  375. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  376. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +67 -63
  377. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -1
  378. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  379. package/build/features/individual/screens/Verify/OTPInput.js +3 -1
  380. package/build/features/individual/screens/Verify/Verify.js +2 -2
  381. package/build/features/password/Password.d.ts +1 -0
  382. package/build/features/password/Password.js +20 -5
  383. package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -2
  384. package/build/features/password/screens/OTP/OTP.js +2 -2
  385. package/build/features/password/screens/OTP/OTPInput.js +5 -2
  386. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  387. package/build/features/password/screens/Verify/OTPInput.js +3 -1
  388. package/build/features/password/screens/Verify/Verify.js +2 -2
  389. package/build/features/shared/Address/CountryList.d.ts +6 -6
  390. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  391. package/build/features/shared/Address/InputSelect.js +1 -1
  392. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  393. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  394. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  395. package/build/features/shared/BusinessCountry/index.js +2 -0
  396. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  397. package/build/features/shared/Button/EmailProvidersButtons.js +9 -2
  398. package/build/features/shared/Button/FlowsButtons.d.ts +4 -2
  399. package/build/features/shared/Button/FlowsButtons.js +17 -13
  400. package/build/features/shared/Button/IndividualActionButtons.d.ts +4 -2
  401. package/build/features/shared/Button/IndividualActionButtons.js +26 -2
  402. package/build/features/shared/Calender/Calender.d.ts +13 -0
  403. package/build/features/shared/Calender/Calender.js +56 -0
  404. package/build/features/shared/Calender/index.d.ts +2 -0
  405. package/build/features/shared/Calender/index.js +2 -0
  406. package/build/features/shared/CheckIcon/CheckIcon.d.ts +7 -1
  407. package/build/features/shared/CheckIcon/CheckIcon.js +7 -6
  408. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  409. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  410. package/build/features/shared/Dot/Dot.d.ts +8 -0
  411. package/build/features/shared/Dot/Dot.js +29 -0
  412. package/build/features/shared/Dot/index.d.ts +2 -0
  413. package/build/features/shared/Dot/index.js +2 -0
  414. package/build/features/shared/EndAdornment/EndAdornment.d.ts +10 -0
  415. package/build/features/shared/EndAdornment/EndAdornment.js +17 -0
  416. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +7 -0
  417. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +13 -0
  418. package/build/features/shared/EndAdornment/index.d.ts +3 -0
  419. package/build/features/shared/EndAdornment/index.js +3 -0
  420. package/build/features/shared/Footer/Footer.js +10 -1
  421. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
  422. package/build/features/shared/Input/Input.d.ts +4 -5
  423. package/build/features/shared/Input/index.d.ts +2 -1
  424. package/build/features/shared/InputSelect/InputSelect.d.ts +4 -0
  425. package/build/features/shared/InputSelect/InputSelect.js +33 -0
  426. package/build/features/shared/InputSelect/index.d.ts +2 -0
  427. package/build/features/shared/InputSelect/index.js +2 -0
  428. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  429. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +4 -3
  430. package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
  431. package/build/features/shared/SalesChannels/SalesChannel.js +6 -2
  432. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +3 -1
  433. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +20 -9
  434. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  435. package/build/features/shared/UploadFile/FileUpload.d.ts +5 -4
  436. package/build/features/shared/UploadFile/FileUpload.js +4 -4
  437. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  438. package/build/features/shared/UploadFile/UploadWrapper.d.ts +4 -3
  439. package/build/features/shared/UploadFile/UploadWrapper.js +3 -3
  440. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +5 -4
  441. package/build/features/shared/UploadMultipleFile/UploadFile.js +4 -4
  442. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +4 -3
  443. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +2 -2
  444. package/build/features/signIn/screens/Email/Email.js +2 -1
  445. package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
  446. package/build/features/signIn/screens/OTP/OTP.js +2 -2
  447. package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
  448. package/build/features/signIn/screens/Password/Password.js +2 -1
  449. package/build/features/tax/Tax.d.ts +1 -0
  450. package/build/features/tax/Tax.js +11 -6
  451. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  452. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
  453. package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -7
  454. package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
  455. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  456. package/build/features/tax/screens/TaxDetails/VATId.js +3 -5
  457. package/build/features/tax/screens/Verify/OTPInput.js +3 -1
  458. package/build/features/tax/screens/Verify/Verify.js +2 -2
  459. package/build/hooks/index.d.ts +1 -0
  460. package/build/hooks/index.js +1 -0
  461. package/build/hooks/useAppConfig.d.ts +4 -2
  462. package/build/hooks/useAppConfig.js +18 -18
  463. package/build/hooks/useAppDispatch.d.ts +1 -0
  464. package/build/hooks/useCountry.d.ts +1 -0
  465. package/build/hooks/useCountry.js +4 -3
  466. package/build/hooks/useDataVerified.d.ts +6 -0
  467. package/build/hooks/useDataVerified.js +19 -0
  468. package/build/hooks/useErrorListener.d.ts +2 -1
  469. package/build/hooks/useErrorListener.js +16 -1
  470. package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
  471. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
  472. package/build/hooks/useFormReadOnly.d.ts +1 -1
  473. package/build/hooks/useVerifyToken.js +1 -1
  474. package/build/index.d.ts +3 -2
  475. package/build/index.js +4 -2
  476. package/build/utils/array.d.ts +13 -2
  477. package/build/utils/array.js +115 -2
  478. package/build/utils/common.d.ts +1 -0
  479. package/build/utils/common.js +10 -0
  480. package/build/utils/date.d.ts +1 -0
  481. package/build/utils/date.js +6 -0
  482. package/build/utils/gtm.d.ts +6 -0
  483. package/build/utils/gtm.js +29 -0
  484. package/build/utils/index.d.ts +1 -0
  485. package/build/utils/index.js +1 -0
  486. package/build/utils/object.d.ts +1 -0
  487. package/build/utils/object.js +14 -0
  488. package/build/utils/string.d.ts +1 -0
  489. package/build/utils/string.js +3 -0
  490. package/package.json +4 -2
  491. package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -9
  492. package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
  493. /package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.d.ts +0 -0
@@ -6,6 +6,7 @@ interface BirthCountryProps {
6
6
  onListOpen?: () => void;
7
7
  onListClose?: () => void;
8
8
  readOnly?: boolean;
9
+ isVerified?: boolean;
9
10
  }
10
11
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<BirthCountryProps & React.RefAttributes<unknown>>>;
11
12
  export default _default;
@@ -26,40 +26,24 @@ import Box from '@mui/material/Box';
26
26
  import { useTranslation } from 'react-i18next';
27
27
  import { useController, useFormContext } from 'react-hook-form';
28
28
  import { styled } from '@mui/material/styles';
29
- import CheckIcon from '@mui/icons-material/Check';
30
29
  import { useLanguage } from '../../../../hooks';
31
30
  import Collapse from '../../../../components/Collapse';
32
- import ExpandIcon from '../../../../components/ExpandIcon';
33
31
  import Text from '../../../../components/Text';
34
32
  import SimpleList from '../../../../components/SimpleList';
35
33
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
36
- import Input from '../../../shared/Input';
34
+ import InputSelect from '../../../shared/InputSelect';
35
+ import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
36
+ import CheckIcon from '../../../shared/CheckIcon';
37
37
  var CountryItemContainer = styled(Box)(function () { return ({
38
38
  display: 'flex'
39
39
  }); });
40
- var InputStyled = styled(Input)(function (_a) {
41
- var readOnly = _a.readOnly;
42
- return ({
43
- '& .MuiInputBase-input': {
44
- cursor: readOnly ? 'default' : 'pointer'
45
- }
46
- });
47
- });
48
40
  var CountryNameText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
49
41
  var theme = _a.theme, isSelected = _a.isSelected;
50
42
  return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
51
43
  });
52
- var CheckIconStyled = styled(CheckIcon)(function (_a) {
53
- var theme = _a.theme;
54
- return ({
55
- color: theme.palette.success.main,
56
- display: 'flex',
57
- alignItems: 'flex-end'
58
- });
59
- });
60
44
  var BirthCountry = React.forwardRef(function (_a, ref) {
61
45
  var _b, _c, _d;
62
- var countries = _a.countries, readOnly = _a.readOnly, rest = __rest(_a, ["countries", "readOnly"]);
46
+ var countries = _a.countries, readOnly = _a.readOnly, isVerified = _a.isVerified, rest = __rest(_a, ["countries", "readOnly", "isVerified"]);
63
47
  var _e = React.useState(countries), locationCountries = _e[0], setCountries = _e[1];
64
48
  var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
65
49
  var t = useTranslation().t;
@@ -85,8 +69,8 @@ var BirthCountry = React.forwardRef(function (_a, ref) {
85
69
  };
86
70
  var location = placeOfBirthCountryControl.field.value;
87
71
  var error = (_b = placeOfBirthCountryControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
88
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: { pt: 2.5 } }, { children: [_jsx(InputStyled, { label: t('place_of_birth_country_label'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseCountrySelect(); } : onOpenCountrySelect, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_place_of_birth_country'), value: (isAr ? (_c = location === null || location === void 0 ? void 0 : location.name) === null || _c === void 0 ? void 0 : _c.arabic : (_d = location === null || location === void 0 ? void 0 : location.name) === null || _d === void 0 ? void 0 : _d.english) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', searchValuePath: ['name.arabic', 'name.english'], list: locationCountries, onSelectItem: onSelectItem, renderItem: function (item) {
89
- return (_jsxs(_Fragment, { children: [_jsx(CountryItemContainer, { children: _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (location === null || location === void 0 ? void 0 : location.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english })) }), item.idd_prefix === (location === null || location === void 0 ? void 0 : location.idd_prefix) && _jsx(CheckIconStyled, {})] }));
72
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: { pt: 2.5 } }, { children: [_jsx(InputSelect, { label: t('place_of_birth_country_label'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseCountrySelect(); } : onOpenCountrySelect, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }), placeholder: t('choose_place_of_birth_country'), value: (isAr ? (_c = location === null || location === void 0 ? void 0 : location.name) === null || _c === void 0 ? void 0 : _c.arabic : (_d = location === null || location === void 0 ? void 0 : location.name) === null || _d === void 0 ? void 0 : _d.english) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', searchValuePath: ['name.arabic', 'name.english'], list: locationCountries, onSelectItem: onSelectItem, renderItem: function (item) {
73
+ return (_jsxs(_Fragment, { children: [_jsx(CountryItemContainer, { children: _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (location === null || location === void 0 ? void 0 : location.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english })) }), item.idd_prefix === (location === null || location === void 0 ? void 0 : location.idd_prefix) && _jsx(CheckIcon, { isVerified: isVerified })] }));
90
74
  } }) }))] })) })));
91
75
  });
92
76
  export default React.memo(BirthCountry);
@@ -2,7 +2,8 @@ import * as React from 'react';
2
2
  interface BODProps {
3
3
  show: boolean;
4
4
  onDateClicked?: (flag: boolean) => void;
5
+ isVerified?: boolean;
5
6
  readOnly?: boolean;
6
7
  }
7
- declare const _default: React.MemoExoticComponent<({ onDateClicked, show, readOnly }: BODProps) => JSX.Element>;
8
+ declare const _default: React.MemoExoticComponent<({ onDateClicked, show, readOnly, isVerified }: BODProps) => JSX.Element>;
8
9
  export default _default;
@@ -17,7 +17,7 @@ import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
17
  import { styled, alpha } from '@mui/material/styles';
18
18
  import Text from '../../../../components/Text';
19
19
  import Collapse from '../../../../components/Collapse';
20
- import DatePicker from '../../../../components/DatePicker';
20
+ import Calender from '../../../shared/Calender';
21
21
  import { ScreenContainer } from '../../../shared/Containers';
22
22
  import { individualSelector, clearError } from '../../../app/individual/individualStore';
23
23
  var InputLabelStyled = styled(Text)(function (_a) {
@@ -26,7 +26,7 @@ var InputLabelStyled = styled(Text)(function (_a) {
26
26
  });
27
27
  var BOD = function (_a) {
28
28
  var _b;
29
- var onDateClicked = _a.onDateClicked, show = _a.show, readOnly = _a.readOnly;
29
+ var onDateClicked = _a.onDateClicked, show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
30
30
  var t = useTranslation().t;
31
31
  var control = useFormContext().control;
32
32
  var dispatch = useAppDispatch();
@@ -41,6 +41,6 @@ var BOD = function (_a) {
41
41
  return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
42
42
  var spacing = _a.spacing;
43
43
  return spacing(2.5, 2.5, 2.5, 2.5);
44
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, dir: 'ltr', isDob: true, locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }) })));
44
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, disabled: readOnly, isVerified: isVerified, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }) })));
45
45
  };
46
46
  export default React.memo(BOD);
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  export interface EmailProps {
3
3
  show: boolean;
4
4
  readOnly?: boolean;
5
+ isVerified?: boolean;
5
6
  }
6
- declare const _default: React.MemoExoticComponent<({ show, readOnly }: EmailProps) => JSX.Element>;
7
+ declare const _default: React.MemoExoticComponent<({ show, readOnly, isVerified }: EmailProps) => JSX.Element>;
7
8
  export default _default;
@@ -14,13 +14,10 @@ import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
- import { useAppSelector } from '../../../../hooks';
18
17
  import Collapse from '../../../../components/Collapse';
19
18
  import { ScreenContainer } from '../../../shared/Containers';
20
19
  import Input from '../../../shared/Input';
21
- import ClearIcon from '../../../shared/ClearIcon';
22
- import CheckIcon from '../../../shared/CheckIcon';
23
- import { individualSelector } from '../../../app/individual/individualStore';
20
+ import { EndAdornment } from '../../../../features/shared/EndAdornment';
24
21
  var InputStyled = styled(Input)(function () { return ({
25
22
  input: {
26
23
  textTransform: 'lowercase'
@@ -28,11 +25,10 @@ var InputStyled = styled(Input)(function () { return ({
28
25
  }); });
29
26
  var Email = function (_a) {
30
27
  var _b;
31
- var show = _a.show, readOnly = _a.readOnly;
28
+ var show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
32
29
  var t = useTranslation().t;
33
30
  var control = useFormContext().control;
34
31
  var emailControl = useController({ name: 'email', control: control });
35
- var data = useAppSelector(individualSelector).data;
36
32
  var emailValue = emailControl.field.value;
37
33
  var error = (_b = emailControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
38
34
  var handleEmailChange = function (event) {
@@ -41,7 +37,6 @@ var Email = function (_a) {
41
37
  var clearNumber = function () {
42
38
  emailControl.field.onChange('');
43
39
  };
44
- var disabled = false;
45
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(InputStyled, { readOnly: readOnly, label: t('signup_email_lable'), value: emailValue, onChange: handleEmailChange, type: 'email', disabled: disabled, placeholder: t('signup_email_placeholder'), warningType: 'alert', warningMessage: error && t(error), endAdornment: !error && emailValue ? _jsx(CheckIcon, {}) : emailValue && _jsx(ClearIcon, { onClick: clearNumber }) }) }) })));
40
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(InputStyled, { readOnly: readOnly, label: t('signup_email_lable'), value: emailValue, onChange: handleEmailChange, type: 'email', placeholder: t('signup_email_placeholder'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: emailValue, isVerified: isVerified, onClear: clearNumber, error: error }) }) }) })));
46
41
  };
47
42
  export default React.memo(Email);
@@ -3,6 +3,7 @@ interface ExpiryDateProps {
3
3
  show: boolean;
4
4
  onDateClicked?: (flag: boolean) => void;
5
5
  readOnly?: boolean;
6
+ isVerified?: boolean;
6
7
  }
7
- declare const _default: React.MemoExoticComponent<({ onDateClicked, show, readOnly }: ExpiryDateProps) => JSX.Element>;
8
+ declare const _default: React.MemoExoticComponent<({ onDateClicked, show, readOnly, isVerified }: ExpiryDateProps) => JSX.Element>;
8
9
  export default _default;
@@ -18,7 +18,7 @@ import { getFutureDate } from '../../../../utils';
18
18
  import { styled, alpha } from '@mui/material/styles';
19
19
  import Text from '../../../../components/Text';
20
20
  import Collapse from '../../../../components/Collapse';
21
- import DatePicker from '../../../../components/DatePicker';
21
+ import Calender from '../../../shared/Calender';
22
22
  import { ScreenContainer } from '../../../shared/Containers';
23
23
  import { individualSelector, clearError } from '../../../app/individual/individualStore';
24
24
  var InputLabelStyled = styled(Text)(function (_a) {
@@ -27,7 +27,7 @@ var InputLabelStyled = styled(Text)(function (_a) {
27
27
  });
28
28
  var ExpiryDate = function (_a) {
29
29
  var _b;
30
- var onDateClicked = _a.onDateClicked, show = _a.show, readOnly = _a.readOnly;
30
+ var onDateClicked = _a.onDateClicked, show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
31
31
  var t = useTranslation().t;
32
32
  var control = useFormContext().control;
33
33
  var dispatch = useAppDispatch();
@@ -39,10 +39,9 @@ var ExpiryDate = function (_a) {
39
39
  dobControl.field.onChange(data);
40
40
  };
41
41
  var dateValue = (_b = dobControl === null || dobControl === void 0 ? void 0 : dobControl.field) === null || _b === void 0 ? void 0 : _b.value;
42
- var disabled = false;
43
42
  return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
44
43
  var spacing = _a.spacing;
45
44
  return spacing(2.5, 2.5, 2.5, 2.5);
46
- } } }, { children: t('enter_expiry_date') })), _jsx(DatePicker, { readOnly: true, disabled: disabled || readOnly, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', maxDate: getFutureDate(), onClick: disabled ? undefined : function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }) })));
45
+ } } }, { children: t('enter_expiry_date') })), _jsx(Calender, { disabled: readOnly, isVerified: isVerified, maxDate: getFutureDate(), defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }) })));
47
46
  };
48
47
  export default React.memo(ExpiryDate);
@@ -10,7 +10,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
10
10
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
11
  titleAccess?: string | undefined;
12
12
  viewBox?: string | undefined;
13
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "mode" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
14
14
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
15
15
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
@@ -24,12 +24,13 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
24
24
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
25
  titleAccess?: string | undefined;
26
26
  viewBox?: string | undefined;
27
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "mode" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
28
28
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
29
29
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
30
- declare type GenderProps = {
30
+ type GenderProps = {
31
31
  show: boolean;
32
32
  readOnly?: boolean;
33
+ isVerified?: boolean;
33
34
  };
34
- declare const Gender: ({ show, readOnly }: GenderProps) => JSX.Element;
35
+ declare const Gender: ({ show, readOnly, isVerified }: GenderProps) => JSX.Element;
35
36
  export default Gender;
@@ -22,6 +22,7 @@ import RadioLabel from '../../../../components/RadioLabel';
22
22
  import RadioGroup from '../../../../components/RadioGroup';
23
23
  import Radio from '../../../../components/Radio';
24
24
  import { ScreenContainer } from '../../../shared/Containers';
25
+ import CheckIcon from '../../../shared/CheckIcon';
25
26
  var LabelTextStyled = styled(Text)(function (_a) {
26
27
  var theme = _a.theme;
27
28
  return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), marginBlockEnd: theme.spacing(0.625) }));
@@ -67,7 +68,7 @@ export var InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
67
68
  });
68
69
  });
69
70
  var Gender = function (_a) {
70
- var show = _a.show, readOnly = _a.readOnly;
71
+ var show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
71
72
  var t = useTranslation().t;
72
73
  var control = useFormContext().control;
73
74
  var genderControl = useController({ control: control, name: 'gender' });
@@ -78,6 +79,6 @@ var Gender = function (_a) {
78
79
  genderControl.field.onChange(target.value);
79
80
  };
80
81
  var genderValue = genderControl.field.value;
81
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 2.5, pl: 2.5, pr: 2.5, pt: 2.5 } }, { children: [_jsx(LabelTextStyled, { children: t('individual_gender_title') }), _jsxs(RadioGroupStyled, __assign({ readOnly: readOnly, value: genderValue != null ? genderValue : false, onChange: handleOnChange }, { children: [_jsx(RadioLabel, { value: IndividualGender.MALE, label: _jsx(LabelStyled, { children: t('gender_male') }), control: _jsx(RadioStyled, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }) }), _jsx(RadioLabel, { value: IndividualGender.FEMALE, sx: { marginInlineEnd: '0px' }, label: _jsx(LabelStyled, { children: t('gender_female') }), control: _jsx(RadioStyled, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }) })] }))] })) })));
82
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 2.5, pl: 2.5, pr: 2.5, pt: 2.5 } }, { children: [_jsx(LabelTextStyled, { children: t('individual_gender_title') }), _jsxs(RadioGroupStyled, __assign({ readOnly: readOnly, value: genderValue != null ? genderValue : false, onChange: handleOnChange }, { children: [_jsx(RadioLabel, { value: IndividualGender.MALE, label: _jsxs(LabelStyled, { children: [t('gender_male'), genderValue === IndividualGender.MALE && isVerified && _jsx(CheckIcon, { sx: { marginInlineStart: '5px' }, isVerified: isVerified })] }), control: _jsx(RadioStyled, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }) }), _jsx(RadioLabel, { value: IndividualGender.FEMALE, sx: { marginInlineEnd: '0px' }, label: _jsxs(LabelStyled, { children: [t('gender_female'), genderValue === IndividualGender.FEMALE && isVerified && _jsx(CheckIcon, { sx: { marginInlineStart: '5px' }, isVerified: isVerified })] }), control: _jsx(RadioStyled, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }) })] }))] })) })));
82
83
  };
83
84
  export default Gender;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  interface IDNumberProps {
3
3
  show: boolean;
4
4
  readOnly?: boolean;
5
+ isVerified?: boolean;
5
6
  }
6
- declare const _default: React.MemoExoticComponent<({ show, readOnly }: IDNumberProps) => JSX.Element>;
7
+ declare const _default: React.MemoExoticComponent<({ show, readOnly, isVerified }: IDNumberProps) => JSX.Element>;
7
8
  export default _default;
@@ -13,19 +13,22 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { removeAllCharsFromNumber } from '../../../../utils';
16
+ import { isOtherThanKWOrSA, removeAllCharsFromNumber } from '../../../../utils';
17
17
  import { ID_NUMBER_LENGTH } from '../../../../constants';
18
+ import { useAppSelector } from '../../../../hooks';
19
+ import { settingsSelector } from '../../../../app/settings';
18
20
  import Collapse from '../../../../components/Collapse';
19
21
  import { ScreenContainer } from '../../../shared/Containers';
20
22
  import Input from '../../../shared/Input';
21
- import ClearIcon from '../../../shared/ClearIcon';
22
- import CheckIcon from '../../../shared/CheckIcon';
23
+ import { EndAdornment } from '../../../shared/EndAdornment';
23
24
  var IDNumber = function (_a) {
24
25
  var _b;
25
- var show = _a.show, readOnly = _a.readOnly;
26
+ var show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
26
27
  var t = useTranslation().t;
27
28
  var control = useFormContext().control;
29
+ var settingsData = useAppSelector(settingsSelector).data;
28
30
  var nidControl = useController({ control: control, name: 'nid' });
31
+ var isOtherCountry = React.useMemo(function () { return isOtherThanKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
29
32
  var handleIdChange = function (_a) {
30
33
  var target = _a.target;
31
34
  var value = removeAllCharsFromNumber(target.value);
@@ -36,7 +39,6 @@ var IDNumber = function (_a) {
36
39
  };
37
40
  var nidValue = nidControl.field.value;
38
41
  var error = (_b = nidControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
39
- var disabled = false;
40
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { readOnly: readOnly, label: t('enter_national_id'), disabled: disabled, inputProps: { maxLength: ID_NUMBER_LENGTH }, onChange: handleIdChange, value: nidValue, endAdornment: !error && nidValue ? _jsx(CheckIcon, {}) : nidValue && _jsx(ClearIcon, { onClick: clearIdNumber }), placeholder: '0000000000', warningType: 'alert', warningMessage: error && t(error, { number: '1' }) }) }) })));
42
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { readOnly: readOnly, label: t('enter_national_id'), inputProps: isOtherCountry ? {} : { maxLength: ID_NUMBER_LENGTH }, onChange: handleIdChange, value: nidValue, endAdornment: _jsx(EndAdornment, { value: nidValue, isVerified: isVerified, onClear: clearIdNumber, error: error }), placeholder: '0000000000', warningType: 'alert', warningMessage: error && t(error, { number: '1' }) }) }) })));
41
43
  };
42
44
  export default React.memo(IDNumber);
@@ -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?: "right" | "left" | "center" | "inherit" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -17,8 +17,8 @@ import { useTranslation } from 'react-i18next';
17
17
  import { handleCurrentActiveScreen, handlePrevScreenStep, 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 } from '../../../../hooks';
21
- import { IndividualType } from '../../../../@types';
20
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useLanguage, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
21
+ import { convertToEnglishDateFormat, deepCopy, getUserName, isOtherThanKWOrSA } from '../../../../utils';
22
22
  import Form from '../../../../components/Form';
23
23
  import Collapse from '../../../../components/Collapse';
24
24
  import Text from '../../../../components/Text';
@@ -37,10 +37,6 @@ import ExpiryDate from './ExpiryDate';
37
37
  import BirthCountry from './BirthCountry';
38
38
  import Nationality from './Nationality';
39
39
  import BirthCity from './BirthCity';
40
- var TextBoxStyled = styled(Box)(function (_a) {
41
- var theme = _a.theme;
42
- return (__assign(__assign({ display: 'flex', justifyContent: 'center', flexDirection: 'row', padding: theme.spacing(1.8, 2.5, 1.8, 2.5) }, theme.typography.body1), { lineHeight: theme.spacing(2.5), color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium }));
43
- });
44
40
  export var RoleTextStyled = styled(Text)(function (_a) {
45
41
  var theme = _a.theme;
46
42
  return (__assign(__assign({}, theme.typography.body1), { display: 'inline', paddingInlineStart: theme.spacing(1.5), color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }));
@@ -54,17 +50,20 @@ var ListType;
54
50
  ListType["NationalityList"] = "NationalityList";
55
51
  })(ListType || (ListType = {}));
56
52
  var IndividualPersonalInfo = function (_a) {
53
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k;
57
54
  var t = useTranslation().t;
58
55
  var isAr = useLanguage().isAr;
59
56
  var dispatch = useAppDispatch();
60
- var _b = useAppSelector(individualSelector), data = _b.data, loading = _b.loading, error = _b.error, cityLoading = _b.cityLoading;
57
+ var _l = useAppSelector(individualSelector), data = _l.data, loading = _l.loading, error = _l.error, cityLoading = _l.cityLoading;
61
58
  var settingsData = useAppSelector(settingsSelector).data;
62
59
  var countries = settingsData.countries;
63
60
  var verify = data.verify, individualPersonalData = data.individualPersonalData;
64
- var _c = verify.responseBody || {}, user = _c.user, flows = _c.flows;
61
+ var _m = verify.responseBody || {}, user = _m.user, flows = _m.flows;
65
62
  var name = individualPersonalData.name, email = individualPersonalData.email, mobile = individualPersonalData.mobile, countryCode = individualPersonalData.countryCode, gender = individualPersonalData.gender, nid = individualPersonalData.nid, issuedCountry = individualPersonalData.issuedCountry, expiryDate = individualPersonalData.expiryDate, dob = individualPersonalData.dob, placeOfBirthCountry = individualPersonalData.placeOfBirthCountry, placeOfBirthCity = individualPersonalData.placeOfBirthCity, nationality = individualPersonalData.nationality;
63
+ var _o = user || {}, data_status = _o.data_status, is_authorized = _o.is_authorized, data_verification = _o.data_verification, contact = _o.contact, genderRes = _o.gender, identification = _o.identification, birth = _o.birth, nationalityRes = _o.nationality;
64
+ var isOtherCountry = React.useMemo(function () { return isOtherThanKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
66
65
  var methods = useForm({
67
- resolver: yupResolver(IndividualInfoValidationSchema),
66
+ resolver: yupResolver(IndividualInfoValidationSchema(isOtherCountry)),
68
67
  defaultValues: {
69
68
  name: name,
70
69
  email: email,
@@ -81,13 +80,15 @@ var IndividualPersonalInfo = function (_a) {
81
80
  },
82
81
  mode: 'onChange'
83
82
  });
83
+ var watch = methods.watch;
84
84
  useSetFromDefaultValues(methods, data.individualPersonalData);
85
- var _d = React.useState(), listActive = _d[0], setListActive = _d[1];
86
- var _e = React.useState(false), dobActive = _e[0], setDobActive = _e[1];
87
- var _f = React.useState(false), expiryDateActive = _f[0], setExpiryDateActive = _f[1];
85
+ var _p = React.useState(), listActive = _p[0], setListActive = _p[1];
86
+ var _q = React.useState(false), dobActive = _q[0], setDobActive = _q[1];
87
+ var _r = React.useState(false), expiryDateActive = _r[0], setExpiryDateActive = _r[1];
88
88
  var originalReadOnly = useFormReadOnly(methods);
89
- var noneEditable = useDataNoneEditable(user === null || user === void 0 ? void 0 : user.data_status, [
90
- 'name',
89
+ var noneEditable = useDataNoneEditable(data_status, [
90
+ 'name.en',
91
+ 'name.ar',
91
92
  'contact.phone.number',
92
93
  'contact.phone.country_code',
93
94
  'contact.email',
@@ -98,12 +99,45 @@ var IndividualPersonalInfo = function (_a) {
98
99
  'birth.date',
99
100
  'birth.country',
100
101
  'birth.city',
101
- 'nationality'
102
+ 'nationality',
103
+ 'gender'
102
104
  ]);
103
105
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
104
106
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
107
+ var dataVerified = useDataVerified(data_verification, [
108
+ 'name.en',
109
+ 'name.ar',
110
+ 'contact.phone.number',
111
+ 'contact.phone.country_code',
112
+ 'contact.email',
113
+ 'identification.id',
114
+ 'identification.type',
115
+ 'identification.issuer_country',
116
+ 'identification.expiry',
117
+ 'birth.date',
118
+ 'birth.country',
119
+ 'birth.city',
120
+ 'nationality',
121
+ 'gender'
122
+ ]);
123
+ var expDateRes = (identification === null || identification === void 0 ? void 0 : identification.expiry) && convertToEnglishDateFormat(new Date(identification === null || identification === void 0 ? void 0 : identification.expiry));
124
+ var dobDateRes = (birth === null || birth === void 0 ? void 0 : birth.date) && convertToEnglishDateFormat(new Date(birth === null || birth === void 0 ? void 0 : birth.date));
125
+ var isNameVerified = dataVerified['name.en'] && dataVerified['name.ar'] && getUserName(user, isAr) === watch('name');
126
+ var isPhoneNumberVerified = dataVerified['contact.phone.number'] &&
127
+ dataVerified['contact.phone.country_code'] &&
128
+ ((_b = contact === null || contact === void 0 ? void 0 : contact.phone) === null || _b === void 0 ? void 0 : _b.number) === watch('mobile') &&
129
+ ((_c = contact === null || contact === void 0 ? void 0 : contact.phone) === null || _c === void 0 ? void 0 : _c.country_code) === ((_e = (_d = watch('countryCode')) === null || _d === void 0 ? void 0 : _d.idd_prefix) === null || _e === void 0 ? void 0 : _e.toString());
130
+ var isEmailVerified = dataVerified['contact.email'] && (contact === null || contact === void 0 ? void 0 : contact.email) === watch('email');
131
+ var isGenderVerified = dataVerified['gender'] && genderRes === watch('gender');
132
+ var isIDVerified = dataVerified['identification.id'] && (identification === null || identification === void 0 ? void 0 : identification.id) === watch('nid');
133
+ var isIssuedCountryVerified = dataVerified['identification.issuer_country'] && (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) === ((_f = watch('issuedCountry')) === null || _f === void 0 ? void 0 : _f.iso2);
134
+ var isExpiryDateVerified = dataVerified['identification.expiry'] && expDateRes === watch('expiryDate');
135
+ var isDOBVerified = dataVerified['birth.date'] && dobDateRes === watch('dob');
136
+ var isBirthCountryVerified = dataVerified['birth.country'] && (birth === null || birth === void 0 ? void 0 : birth.country) === ((_g = watch('placeOfBirthCountry')) === null || _g === void 0 ? void 0 : _g.iso2);
137
+ var isBirthCityVerified = dataVerified['birth.city'] && ((_h = birth === null || birth === void 0 ? void 0 : birth.city) === null || _h === void 0 ? void 0 : _h.cityId) === ((_j = watch('placeOfBirthCity')) === null || _j === void 0 ? void 0 : _j.id);
138
+ var isNationalityVerified = dataVerified['nationality'] && nationalityRes === ((_k = watch('nationality')) === null || _k === void 0 ? void 0 : _k.iso2);
105
139
  var onSubmit = function (data) {
106
- dispatch(updateIndividualPersonalInfo(getFelids(data)));
140
+ dispatch(updateIndividualPersonalInfo(deepCopy(getFelids(data))));
107
141
  };
108
142
  React.useEffect(function () {
109
143
  if (error)
@@ -112,7 +146,7 @@ var IndividualPersonalInfo = function (_a) {
112
146
  var onBack = function () {
113
147
  if (error)
114
148
  dispatch(clearError());
115
- if (user === null || user === void 0 ? void 0 : user.is_authorized) {
149
+ if (is_authorized) {
116
150
  dispatch(handleCurrentActiveScreen('INDIVIDUAL_LIST_STEP'));
117
151
  return;
118
152
  }
@@ -131,21 +165,6 @@ var IndividualPersonalInfo = function (_a) {
131
165
  var handleExpiryDateActive = function (flag) {
132
166
  setExpiryDateActive(flag);
133
167
  };
134
- var getUserName = function () {
135
- var _a, _b, _c, _d;
136
- var name = isAr ? (_b = (_a = user === null || user === void 0 ? void 0 : user.names) === null || _a === void 0 ? void 0 : _a.ar) === null || _b === void 0 ? void 0 : _b.first : (_d = (_c = user === null || user === void 0 ? void 0 : user.names) === null || _c === void 0 ? void 0 : _c.en) === null || _d === void 0 ? void 0 : _d.first;
137
- return name;
138
- };
139
- var getUserOccupation = function () {
140
- var _a, _b, _c, _d, _e;
141
- if ((((_a = user === null || user === void 0 ? void 0 : user.role) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0)
142
- return isAr ? (_c = (_b = user.role[0]) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.ar : (_e = (_d = user.role[0]) === null || _d === void 0 ? void 0 : _d.name) === null || _e === void 0 ? void 0 : _e.en;
143
- if ((user === null || user === void 0 ? void 0 : user.type) === IndividualType.SHARE_HOLDER)
144
- return t('type_share_holder');
145
- if ((user === null || user === void 0 ? void 0 : user.type) === IndividualType.BOARD_MEMBER)
146
- return t('type_board_member');
147
- return t('type_user');
148
- };
149
168
  var disabled = !methods.formState.isValid || cityLoading;
150
169
  var isDateFieldActive = dobActive || expiryDateActive;
151
170
  var showField = !listActive && !isDateFieldActive;
@@ -154,11 +173,11 @@ var IndividualPersonalInfo = function (_a) {
154
173
  var isBirthCountryListActive = listActive === ListType.BirthCountryList;
155
174
  var isBirthCityListActive = listActive === ListType.BirthCityList;
156
175
  var isNationalityListActive = listActive === ListType.NationalityList;
157
- return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: showField && !!(user === null || user === void 0 ? void 0 : user.is_authorized), timeout: 500 }, { children: _jsxs(TextBoxStyled, { children: [getUserName() || '', _jsx(RoleTextStyled, { children: getUserOccupation() || '' })] }) })), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Name, { show: showField, readOnly: readOnly['name'] || noneEditable['name'] }), _jsx(MobileNumber, { readOnly: readOnly['mobile'] || noneEditable['contact.phone.number'] || noneEditable['contact.phone.country_code'], show: !isDateFieldActive && !isBirthCountryListActive && !isBirthCityListActive && !isNationalityListActive && !isIssuedCountryListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.MobileCountryList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(Email, { show: showField, readOnly: readOnly['email'] || noneEditable['contact.email'] }), _jsx(Gender, { show: showField, readOnly: readOnly['gender'] }), _jsx(ID, { show: showField, readOnly: readOnly['nid'] || noneEditable['identification.id'] }), _jsx(IssuedCountry, { readOnly: readOnly['issuedCountry'] || noneEditable['identification.issuer_country'], show: !isMobileCountryListActive && !isDateFieldActive && !isBirthCountryListActive && !isBirthCityListActive && !isNationalityListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.IssuedCountryList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ExpiryDate, { show: !listActive && !dobActive, onDateClicked: handleExpiryDateActive, readOnly: readOnly['expiryDate'] || noneEditable['identification.expiry'] }), _jsx(DOB, { show: !listActive && !expiryDateActive, onDateClicked: handleDobActive, readOnly: readOnly['dob'] || noneEditable['birth.date'] }), _jsx(BirthCountry, { readOnly: readOnly['placeOfBirthCountry'] || noneEditable['birth.country'], show: !isMobileCountryListActive && !isDateFieldActive && !isIssuedCountryListActive && !isBirthCityListActive && !isNationalityListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.BirthCountryList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(BirthCity, { readOnly: readOnly['placeOfBirthCity'] || noneEditable['birth.city'], show: !isMobileCountryListActive &&
158
- !isDateFieldActive &&
159
- !isIssuedCountryListActive &&
160
- !isBirthCountryListActive &&
161
- !isNationalityListActive, onListOpen: function () { return handleMenuClick(ListType.BirthCityList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(Nationality, { readOnly: readOnly['nationality'] || noneEditable['nationality'], show: !isMobileCountryListActive && !isDateFieldActive && !isIssuedCountryListActive && !isBirthCityListActive && !isBirthCountryListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.NationalityList); }, onListClose: function () { return handleMenuClick(); } })] }), _jsx(Collapse, __assign({ in: showField, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) }))] }));
176
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Name, { show: showField, readOnly: readOnly['name'] || (noneEditable['name.en'] && noneEditable['name.ar']), isVerified: isNameVerified }), _jsx(MobileNumber, { readOnly: readOnly['mobile'] || noneEditable['contact.phone.number'] || noneEditable['contact.phone.country_code'], show: !isDateFieldActive && !isBirthCountryListActive && !isBirthCityListActive && !isNationalityListActive && !isIssuedCountryListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.MobileCountryList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isPhoneNumberVerified }), _jsx(Email, { show: showField, readOnly: readOnly['email'] || noneEditable['contact.email'], isVerified: isEmailVerified }), _jsx(Gender, { show: showField, readOnly: readOnly['gender'] || noneEditable['gender'], isVerified: isGenderVerified }), _jsx(ID, { show: showField, readOnly: readOnly['nid'] || noneEditable['identification.id'], isVerified: isIDVerified }), _jsx(IssuedCountry, { readOnly: readOnly['issuedCountry'] || noneEditable['identification.issuer_country'], show: !isMobileCountryListActive && !isDateFieldActive && !isBirthCountryListActive && !isBirthCityListActive && !isNationalityListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.IssuedCountryList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isIssuedCountryVerified }), _jsx(ExpiryDate, { show: !listActive && !dobActive, onDateClicked: handleExpiryDateActive, readOnly: readOnly['expiryDate'] || noneEditable['identification.expiry'], isVerified: isExpiryDateVerified }), _jsx(DOB, { show: !listActive && !expiryDateActive, onDateClicked: handleDobActive, readOnly: readOnly['dob'] || noneEditable['birth.date'], isVerified: isDOBVerified }), _jsx(BirthCountry, { readOnly: readOnly['placeOfBirthCountry'] || noneEditable['birth.country'], show: !isMobileCountryListActive && !isDateFieldActive && !isIssuedCountryListActive && !isBirthCityListActive && !isNationalityListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.BirthCountryList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isBirthCountryVerified }), _jsx(BirthCity, { readOnly: readOnly['placeOfBirthCity'] || noneEditable['birth.city'], show: !isMobileCountryListActive &&
177
+ !isDateFieldActive &&
178
+ !isIssuedCountryListActive &&
179
+ !isBirthCountryListActive &&
180
+ !isNationalityListActive, onListOpen: function () { return handleMenuClick(ListType.BirthCityList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isBirthCityVerified }), _jsx(Nationality, { readOnly: readOnly['nationality'] || noneEditable['nationality'], show: !isMobileCountryListActive && !isDateFieldActive && !isIssuedCountryListActive && !isBirthCityListActive && !isBirthCountryListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.NationalityList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isNationalityVerified })] }), _jsx(Collapse, __assign({ in: showField, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
162
181
  };
163
182
  IndividualPersonalInfo.defaultProps = {};
164
183
  export default React.memo(IndividualPersonalInfo);