@tap-payments/auth-jsconnect 2.9.1-development → 2.9.1

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 (568) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +28 -20
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/config.d.ts +5 -1
  5. package/build/@types/form.d.ts +31 -24
  6. package/build/@types/theme.d.ts +1 -1
  7. package/build/api/account.d.ts +5 -3
  8. package/build/api/account.js +7 -0
  9. package/build/api/auth.d.ts +30 -15
  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 +1 -1
  15. package/build/api/data.d.ts +8 -8
  16. package/build/api/document.d.ts +2 -2
  17. package/build/api/entity.d.ts +10 -10
  18. package/build/api/file.d.ts +1 -1
  19. package/build/api/firebase.js +1 -1
  20. package/build/api/index.d.ts +4 -3
  21. package/build/api/individual.d.ts +5 -5
  22. package/build/api/init.d.ts +1 -1
  23. package/build/api/lead.d.ts +13 -13
  24. package/build/api/lead.js +1 -1
  25. package/build/api/operator.d.ts +2 -2
  26. package/build/api/operator.js +1 -1
  27. package/build/api/user.d.ts +3 -3
  28. package/build/app/settings.d.ts +4 -21
  29. package/build/app/settings.js +15 -9
  30. package/build/app/store.d.ts +4 -4
  31. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  32. package/build/assets/currencies/AEDSymbol.js +28 -0
  33. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  34. package/build/assets/currencies/SARSymbol.js +28 -0
  35. package/build/assets/currencies/index.d.ts +2 -0
  36. package/build/assets/currencies/index.js +2 -0
  37. package/build/assets/currencies/utils.d.ts +4 -0
  38. package/build/assets/currencies/utils.js +6 -0
  39. package/build/assets/locales/ar.json +18 -1
  40. package/build/assets/locales/en.json +44 -1
  41. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  42. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  43. package/build/components/AnimationFlow/BottomSheet.js +16 -12
  44. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  45. package/build/components/AnimationFlow/Dialog.js +3 -1
  46. package/build/components/AnimationFlow/Error.d.ts +2 -1
  47. package/build/components/AnimationFlow/Loader.d.ts +2 -1
  48. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  49. package/build/components/Button/Button.d.ts +1 -1
  50. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  51. package/build/components/Collapse/Collapse.d.ts +2 -1
  52. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  53. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -1
  54. package/build/components/FileInput/DragAndDrop.d.ts +2 -1
  55. package/build/components/FileInput/UploadInput.d.ts +2 -1
  56. package/build/components/Footer/Footer.d.ts +1 -1
  57. package/build/components/Form/Form.d.ts +1 -1
  58. package/build/components/Input/Input.d.ts +1 -1
  59. package/build/components/Input/Input.js +1 -1
  60. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  61. package/build/components/List/List.d.ts +1 -1
  62. package/build/components/ListItem/ListItem.d.ts +1 -1
  63. package/build/components/Loader/Loader.d.ts +1 -1
  64. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  65. package/build/components/OTPField/OTPField.d.ts +1 -1
  66. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  67. package/build/components/ProgressBar/CircularProgressBar.d.ts +2 -1
  68. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  69. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  70. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  71. package/build/components/Radio/Radio.d.ts +1 -1
  72. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  73. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  74. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  75. package/build/components/Slide/Slide.d.ts +1 -1
  76. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  77. package/build/components/Text/Text.d.ts +1 -1
  78. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  79. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  80. package/build/components/TextWithCurrency/index.d.ts +2 -0
  81. package/build/components/TextWithCurrency/index.js +2 -0
  82. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  83. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  84. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  85. package/build/components/Tooltip/Tooltip.js +1 -1
  86. package/build/components/Warning/Warning.d.ts +1 -1
  87. package/build/constants/api.d.ts +2 -0
  88. package/build/constants/api.js +4 -0
  89. package/build/constants/app.d.ts +18 -1
  90. package/build/constants/app.js +97 -17
  91. package/build/constants/assets.d.ts +12 -3
  92. package/build/constants/assets.js +123 -105
  93. package/build/constants/dummy.js +27 -20
  94. package/build/constants/flows.d.ts +4 -0
  95. package/build/constants/flows.js +4 -0
  96. package/build/constants/validation.d.ts +1 -0
  97. package/build/constants/validation.js +1 -0
  98. package/build/features/app/auth/authStore.d.ts +43 -204
  99. package/build/features/app/auth/authStore.js +198 -96
  100. package/build/features/app/bank/bankStore.d.ts +12 -93
  101. package/build/features/app/bank/bankStore.js +1 -1
  102. package/build/features/app/board/boardStore.d.ts +9 -41
  103. package/build/features/app/board/boardStore.js +41 -36
  104. package/build/features/app/brand/brandStore.d.ts +17 -143
  105. package/build/features/app/brand/brandStore.js +1 -1
  106. package/build/features/app/business/businessStore.d.ts +29 -173
  107. package/build/features/app/business/businessStore.js +165 -36
  108. package/build/features/app/connect/connectStore.d.ts +25 -162
  109. package/build/features/app/connect/connectStore.js +182 -69
  110. package/build/features/app/connectExpress/connectExpressStore.d.ts +47 -272
  111. package/build/features/app/connectExpress/connectExpressStore.js +449 -118
  112. package/build/features/app/entity/entityStore.d.ts +12 -93
  113. package/build/features/app/entity/entityStore.js +1 -1
  114. package/build/features/app/individual/individualStore.d.ts +24 -186
  115. package/build/features/app/individual/individualStore.js +3 -5
  116. package/build/features/app/kyc/kycStore.d.ts +8 -62
  117. package/build/features/app/kyc/kycStore.js +89 -67
  118. package/build/features/app/password/passwordStore.d.ts +15 -123
  119. package/build/features/app/password/passwordStore.js +1 -1
  120. package/build/features/app/signIn/signInStore.d.ts +7 -61
  121. package/build/features/app/signIn/signInStore.js +20 -16
  122. package/build/features/app/tax/taxStore.d.ts +11 -83
  123. package/build/features/app/tax/taxStore.js +1 -1
  124. package/build/features/auth/Auth.d.ts +3 -2
  125. package/build/features/auth/Auth.js +1 -1
  126. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  127. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  128. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  129. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  130. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  131. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  132. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  133. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  134. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  135. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  136. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  137. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  138. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  139. package/build/features/auth/screens/DOB/DOB.d.ts +2 -1
  140. package/build/features/auth/screens/DOB/DOBForm.d.ts +1 -1
  141. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  142. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  143. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  144. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  145. package/build/features/auth/screens/Mobile/MobileNumber.js +2 -2
  146. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  147. package/build/features/auth/screens/OTP/OTP.d.ts +14 -3
  148. package/build/features/auth/screens/OTP/OTP.js +15 -3
  149. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  150. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  151. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  152. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  153. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  154. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  155. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  156. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  157. package/build/features/auth/screens/Passcode/index.js +2 -0
  158. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  159. package/build/features/auth/screens/Passcode/validation.js +4 -0
  160. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  161. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  162. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  163. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  164. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  165. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  166. package/build/features/bank/Bank.d.ts +6 -1
  167. package/build/features/bank/Bank.js +15 -7
  168. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +2 -1
  169. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  170. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  171. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  172. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -2
  173. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  174. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  175. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  176. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  177. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  178. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  179. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  180. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  181. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  182. package/build/features/board/Board.d.ts +2 -1
  183. package/build/features/board/Board.js +1 -1
  184. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  185. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  186. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  187. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  188. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  189. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  190. package/build/features/brand/Brand.d.ts +6 -1
  191. package/build/features/brand/Brand.js +15 -7
  192. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +58 -15
  193. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +2 -1
  194. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +37 -13
  195. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  196. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  197. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  198. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +31 -10
  199. package/build/features/brand/screens/BrandActivities/TAC.d.ts +8 -3
  200. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -2
  201. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +2 -1
  202. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -2
  203. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  204. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  205. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
  206. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +2 -1
  207. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
  208. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
  209. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
  210. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
  211. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  212. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  213. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  214. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  215. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  216. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  217. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  218. package/build/features/business/Business.d.ts +2 -1
  219. package/build/features/business/screens/Activities/Activities.d.ts +2 -1
  220. package/build/features/business/screens/Activities/ActivitiesList.d.ts +25 -9
  221. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  222. package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -5
  223. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  224. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  225. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  226. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  227. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +13 -5
  228. package/build/features/business/screens/BusinessType/Article.d.ts +3 -2
  229. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  230. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  231. package/build/features/business/screens/BusinessType/EntityName.d.ts +2 -1
  232. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +2 -1
  233. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  234. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  235. package/build/features/business/screens/BusinessType/LicenseType.d.ts +28 -6
  236. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  237. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  238. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  239. package/build/features/business/screens/Customers/CustomerLocations.d.ts +70 -19
  240. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  241. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
  242. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +2 -1
  243. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  244. package/build/features/business/screens/Customers/RefundPolicy.d.ts +31 -10
  245. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -2
  246. package/build/features/business/screens/DOB/DOB.d.ts +1 -1
  247. package/build/features/business/screens/DOB/DOBForm.d.ts +1 -1
  248. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  249. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  250. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  251. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  252. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  253. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  254. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  255. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  256. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  257. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  258. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  259. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  260. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  261. package/build/features/business/screens/Success/Success.d.ts +1 -1
  262. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  263. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  264. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  265. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  266. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  267. package/build/features/connect/Connect.d.ts +2 -1
  268. package/build/features/connect/Connect.js +2 -2
  269. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  270. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
  271. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  272. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  273. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  274. package/build/features/connect/screens/DOB/DOB.d.ts +2 -1
  275. package/build/features/connect/screens/DOB/DOBForm.d.ts +1 -1
  276. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  277. package/build/features/connect/screens/Individual/Email.js +1 -1
  278. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  279. package/build/features/connect/screens/Individual/MobileNumber.js +2 -2
  280. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  281. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  282. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  283. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  284. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  285. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -1
  286. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  287. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  288. package/build/features/connect/screens/Mobile/MobileNumber.js +2 -2
  289. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  290. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  291. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  292. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  293. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  294. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  295. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  296. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  297. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  298. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  299. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  300. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  301. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  302. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  303. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  304. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  305. package/build/features/connectExpress/ConnectExpress.d.ts +2 -1
  306. package/build/features/connectExpress/ConnectExpress.js +2 -2
  307. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  308. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  309. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  310. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  311. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  312. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  313. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  314. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  315. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  316. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  317. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  318. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  319. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  320. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  321. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  322. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  323. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  324. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  325. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  326. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +28 -6
  327. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +8 -3
  328. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  329. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  330. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  331. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +2 -2
  332. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  333. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  334. package/build/features/connectExpress/screens/DOB/DOB.d.ts +2 -1
  335. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +1 -1
  336. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
  337. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
  338. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
  339. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
  340. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +1 -1
  341. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  342. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  343. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +2 -2
  344. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  345. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  346. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  347. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  348. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  349. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  350. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  351. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  352. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  353. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  354. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  355. package/build/features/connectExpress/screens/NID/TAC.d.ts +8 -3
  356. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +2 -1
  357. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  358. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  359. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  360. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  361. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  362. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  363. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
  364. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
  365. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  366. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
  367. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  368. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  369. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
  370. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
  371. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  372. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
  373. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  374. package/build/features/entity/Entity.d.ts +5 -1
  375. package/build/features/entity/Entity.js +15 -7
  376. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +25 -9
  377. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  378. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  379. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  380. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  381. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  382. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +2 -1
  383. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  384. package/build/features/entity/screens/EntityName/EntityName.d.ts +2 -1
  385. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +58 -15
  386. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +13 -5
  387. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +13 -5
  388. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  389. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +2 -1
  390. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  391. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  392. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  393. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  394. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  395. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  396. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  397. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  398. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  399. package/build/features/featuresScreens.js +35 -0
  400. package/build/features/individual/Individual.d.ts +5 -1
  401. package/build/features/individual/Individual.js +15 -7
  402. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -5
  403. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -2
  404. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  405. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +27 -5
  406. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  407. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  408. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
  409. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +27 -5
  410. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  411. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  412. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  413. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +2 -1
  414. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  415. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  416. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  417. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  418. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +25 -9
  419. package/build/features/individual/screens/IndividualList/UserList.d.ts +2 -1
  420. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  421. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  422. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  423. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +28 -6
  424. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  425. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +13 -5
  426. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  427. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  428. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  429. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  430. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  431. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  432. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  433. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  434. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  435. package/build/features/kyc/KYC.d.ts +2 -1
  436. package/build/features/kyc/KYC.js +5 -1
  437. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  438. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  439. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  440. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  441. package/build/features/kyc/screens/Loading/Loading.d.ts +2 -2
  442. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +1 -1
  443. package/build/features/kyc/screens/Success/Success.d.ts +1 -1
  444. package/build/features/kyc/screens/Success/Success.js +18 -5
  445. package/build/features/kyc/screens/Terms/Header.d.ts +1 -1
  446. package/build/features/kyc/screens/Terms/Terms.d.ts +2 -2
  447. package/build/features/kyc/screens/Terms/Terms.js +19 -4
  448. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  449. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  450. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  451. package/build/features/kyc/screens/TokenError/index.js +2 -0
  452. package/build/features/kyc/screens/Users/Users.d.ts +1 -1
  453. package/build/features/kyc/screens/Users/Users.js +6 -3
  454. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  455. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +1 -1
  456. package/build/features/password/Password.d.ts +5 -1
  457. package/build/features/password/Password.js +14 -7
  458. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +2 -1
  459. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  460. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  461. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  462. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +2 -1
  463. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  464. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  465. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  466. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  467. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  468. package/build/features/password/screens/Success/Success.d.ts +1 -1
  469. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  470. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  471. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  472. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +2 -1
  473. package/build/features/shared/Address/Address.d.ts +2 -1
  474. package/build/features/shared/Address/CountryList.d.ts +46 -14
  475. package/build/features/shared/Address/InputSelect.d.ts +46 -14
  476. package/build/features/shared/Address/InputSelect.js +1 -1
  477. package/build/features/shared/Address/InputText.d.ts +1 -1
  478. package/build/features/shared/Background/Background.d.ts +1 -1
  479. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  480. package/build/features/shared/Background/LogoBackground.js +5 -17
  481. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +2 -1
  482. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +2 -1
  483. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  484. package/build/features/shared/Button/Button.d.ts +2 -1
  485. package/build/features/shared/Button/Button.js +1 -2
  486. package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
  487. package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
  488. package/build/features/shared/Button/FlowsButtons.js +6 -3
  489. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  490. package/build/features/shared/Button/MobileButton.d.ts +2 -1
  491. package/build/features/shared/Button/NafathButton.d.ts +2 -1
  492. package/build/features/shared/Button/SuccessButton.d.ts +2 -1
  493. package/build/features/shared/Calender/Calender.d.ts +2 -1
  494. package/build/features/shared/CheckIcon/CheckIcon.d.ts +3 -2
  495. package/build/features/shared/Chip/Chip.d.ts +2 -1
  496. package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -1
  497. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  498. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  499. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  500. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  501. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  502. package/build/features/shared/Dialog/CloseDialog.d.ts +2 -1
  503. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  504. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  505. package/build/features/shared/Dot/Dot.d.ts +2 -1
  506. package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -1
  507. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
  508. package/build/features/shared/Footer/Footer.d.ts +2 -1
  509. package/build/features/shared/Footer/PoweredByFooter.d.ts +3 -2
  510. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  511. package/build/features/shared/Input/Input.d.ts +15 -7
  512. package/build/features/shared/InputSelect/InputSelect.d.ts +2 -1
  513. package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
  514. package/build/features/shared/NafathVerification/NafathVerification.d.ts +1 -1
  515. package/build/features/shared/OTP/OTP.d.ts +1 -1
  516. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  517. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +2 -1
  518. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  519. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  520. package/build/features/shared/Search/Search.d.ts +2 -1
  521. package/build/features/shared/SearchIcon/SearchIcon.d.ts +2 -1
  522. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  523. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  524. package/build/features/shared/UploadFile/FileUpload.d.ts +9 -4
  525. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  526. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  527. package/build/features/shared/UploadFile/UploadWrapper.d.ts +8 -3
  528. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -4
  529. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  530. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -3
  531. package/build/features/signIn/SignIn.d.ts +2 -1
  532. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  533. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  534. package/build/features/signIn/screens/Mobile/MobileNumber.js +2 -2
  535. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  536. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  537. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  538. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  539. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  540. package/build/features/tax/Tax.d.ts +5 -1
  541. package/build/features/tax/Tax.js +15 -7
  542. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  543. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  544. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  545. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  546. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  547. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -2
  548. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +2 -1
  549. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +2 -1
  550. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  551. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  552. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  553. package/build/hooks/useAppConfig.js +1 -1
  554. package/build/hooks/useDataVerified.d.ts +1 -1
  555. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  556. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  557. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  558. package/build/hooks/useFormReadOnly.d.ts +2 -2
  559. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  560. package/build/utils/array.js +1 -1
  561. package/build/utils/common.d.ts +1 -1
  562. package/build/utils/common.js +6 -5
  563. package/build/utils/error.d.ts +1 -0
  564. package/build/utils/error.js +3 -0
  565. package/build/utils/string.d.ts +3 -2
  566. package/build/utils/string.js +8 -2
  567. package/build/utils/validation.js +1 -1
  568. package/package.json +3 -4
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAppSelector } from '../../../../hooks';
3
+ import DataLoading from '../../../shared/DataLoading';
4
+ import { connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
5
+ var GenericPrepareDataLoading = function () {
6
+ var error = useAppSelector(connectExpressSelector).error;
7
+ return _jsx(DataLoading, { error: error });
8
+ };
9
+ export default GenericPrepareDataLoading;
@@ -0,0 +1,2 @@
1
+ import GenericPrepareDataLoading from './GenericPrepareDataLoading';
2
+ export default GenericPrepareDataLoading;
@@ -0,0 +1,2 @@
1
+ import GenericPrepareDataLoading from './GenericPrepareDataLoading';
2
+ export default GenericPrepareDataLoading;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface IdentityVerifyNafathProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element | null>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface VerifyPACIProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element | null>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface MobileProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: MobileProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: MobileProps) => JSX.Element>;
5
5
  export default _default;
@@ -143,8 +143,8 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
143
143
  var filteredCountries = countries.filter(function (country) {
144
144
  return country.idd_prefix.toString().toLowerCase().startsWith(value.replace('+', '').toLowerCase()) ||
145
145
  country.capital.toLowerCase().startsWith(value.toLowerCase()) ||
146
- country.name.arabic.toLowerCase().startsWith(value.toLowerCase()) ||
147
- country.name.english.toLowerCase().startsWith(value.toLowerCase());
146
+ country.name.arabic.toLowerCase().includes(value.toLowerCase()) ||
147
+ country.name.english.toLowerCase().includes(value.toLowerCase());
148
148
  });
149
149
  setCountries(filteredCountries);
150
150
  };
@@ -3,5 +3,5 @@ interface TACProps {
3
3
  show: boolean;
4
4
  readOnly?: boolean;
5
5
  }
6
- declare const _default: React.MemoExoticComponent<({ show, readOnly }: TACProps) => import("react/jsx-runtime").JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ show, readOnly }: TACProps) => JSX.Element>;
7
7
  export default _default;
@@ -4,5 +4,5 @@ interface MIDTitleProps {
4
4
  title: string;
5
5
  description: string;
6
6
  }
7
- declare const _default: React.MemoExoticComponent<({ description, show, title }: MIDTitleProps) => import("react/jsx-runtime").JSX.Element>;
7
+ declare const _default: React.MemoExoticComponent<({ description, show, title }: MIDTitleProps) => JSX.Element>;
8
8
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CollectMobileOwnership: () => JSX.Element;
3
+ export default CollectMobileOwnership;
@@ -0,0 +1,106 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { FormProvider, useForm } from 'react-hook-form';
14
+ import { ScreenContainer } from '../../../../features/shared/Containers';
15
+ import { styled } from '@mui/material/styles';
16
+ import Form from '../../../../components/Form';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { PhoneValidationSchema } from './validation';
19
+ import { Box, alpha } from '@mui/material';
20
+ import { useTranslation } from 'react-i18next';
21
+ import Text from '../../../../components/Text';
22
+ import { Button as SharedButton } from '../../../shared/Button';
23
+ import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
24
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
25
+ import { connectExpressSelector, skipUpdateLeadMobile, updateLeadMobile } from '../../../../features/app/connectExpress/connectExpressStore';
26
+ import { AuthForType } from '../../../../@types';
27
+ import MobileNumber from './MobileNumber';
28
+ import { deepCopy } from '../../../../utils';
29
+ var FormStyled = styled(Form)(function () { return ({
30
+ display: 'flex',
31
+ flexDirection: 'column',
32
+ justifyContent: 'flex-start'
33
+ }); });
34
+ var TitleContainerStyled = styled(Box)(function (_a) {
35
+ var theme = _a.theme;
36
+ return ({
37
+ background: theme.palette.common.white,
38
+ borderTop: '1px solid rgba(227, 232, 238, 0.8)',
39
+ borderBottom: '1px solid rgba(227, 232, 238, 0.8)',
40
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
41
+ });
42
+ });
43
+ var TitleStyled = styled(Text)(function (_a) {
44
+ var theme = _a.theme;
45
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightLight, margin: theme.spacing(1.75, 2.5), lineHeight: 1.2 }));
46
+ });
47
+ var InputLabelStyled = styled(Text)(function (_a) {
48
+ var theme = _a.theme;
49
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular }, theme.typography.caption), { lineHeight: 1.2 }));
50
+ });
51
+ var CurrentMobileContainerStyled = styled(Box)(function (_a) {
52
+ var theme = _a.theme;
53
+ return ({
54
+ display: 'flex',
55
+ flexDirection: 'column',
56
+ rowGap: theme.spacing(1.6),
57
+ height: theme.spacing(9.375),
58
+ marginTop: theme.spacing(2.85),
59
+ marginInlineStart: theme.spacing(2.375)
60
+ });
61
+ });
62
+ var MobileNumberContainer = styled(Box)(function (_a) {
63
+ var theme = _a.theme;
64
+ return (__assign({ display: 'flex', columnGap: theme.spacing(0.9), direction: 'ltr' }, (theme.direction === 'rtl' && {
65
+ marginLeft: 'auto'
66
+ })));
67
+ });
68
+ var CountryCodeStyled = styled(Text)(function (_a) {
69
+ var theme = _a.theme;
70
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium, lineHeight: 1.2 }));
71
+ });
72
+ var MobileNumberStyled = styled(Text)(function (_a) {
73
+ var theme = _a.theme;
74
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, lineHeight: 1.2 }));
75
+ });
76
+ var UpdateLaterContainerStyled = styled(Box)(function (_a) {
77
+ var theme = _a.theme;
78
+ return ({
79
+ marginLeft: theme.spacing(2.5),
80
+ marginRight: theme.spacing(2.5)
81
+ });
82
+ });
83
+ var CollectMobileOwnership = function () {
84
+ var dispatch = useAppDispatch();
85
+ var t = useTranslation().t;
86
+ var isAr = useLanguage().isAr;
87
+ var settingsData = useAppSelector(settingsSelector).data;
88
+ var _a = useAppSelector(connectExpressSelector), data = _a.data, loading = _a.loading, error = _a.error;
89
+ var startWithNID = data.otpData.authFor === AuthForType.NATIONAL_ID;
90
+ var methods = useForm({
91
+ resolver: yupResolver(PhoneValidationSchema()),
92
+ defaultValues: { mobile: '', countryCode: settingsData.businessCountry },
93
+ mode: 'onChange'
94
+ });
95
+ var onSubmit = function (data) {
96
+ dispatch(updateLeadMobile(deepCopy(data)));
97
+ };
98
+ var onBack = function () {
99
+ dispatch(handlePrevScreenStep(startWithNID ? 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP' : 'CONNECT_EXPRESS_NID_MISSED_STEP'));
100
+ };
101
+ var onUpdateLater = function () {
102
+ dispatch(skipUpdateLeadMobile());
103
+ };
104
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(TitleContainerStyled, { children: _jsx(TitleStyled, { children: t('mobile_ownership_title') }) }), _jsxs(CurrentMobileContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('current_mobile_number') }), _jsxs(MobileNumberContainer, { children: [_jsxs(CountryCodeStyled, { children: ["+", data.individualData.countryCode.idd_prefix] }), _jsx(MobileNumberStyled, { children: data.individualData.mobile })] })] }), _jsx(MobileNumber, {}), _jsx(SharedButton, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('update_mobile_number') }))] })) })) }));
105
+ };
106
+ export default CollectMobileOwnership;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,72 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useController, useFormContext } from 'react-hook-form';
16
+ import Box from '@mui/material/Box';
17
+ import { styled, alpha } from '@mui/material/styles';
18
+ import { getMobileNumberLen, removeAllCharsFromNumber } from '../../../../utils';
19
+ import { useAppSelector } from '../../../../hooks';
20
+ import Text from '../../../../components/Text';
21
+ import ClearIcon from '../../../shared/ClearIcon';
22
+ import CheckIcon from '../../../shared/CheckIcon';
23
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
24
+ import Input from '../../../shared/Input';
25
+ import { settingsSelector } from '../../../../app/settings';
26
+ var LabelContainerStyled = styled(Box)(function (_a) {
27
+ var theme = _a.theme;
28
+ return ({
29
+ display: 'flex',
30
+ justifyContent: 'space-between',
31
+ padding: theme.spacing(0, 2.5, 1.25, 2.5)
32
+ });
33
+ });
34
+ var InputLabelStyled = styled(Text)(function (_a) {
35
+ var theme = _a.theme;
36
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
37
+ });
38
+ var InputStyled = styled(Input)(function () { return ({
39
+ direction: 'ltr',
40
+ '& .MuiInputBase-input': {
41
+ cursor: 'auto'
42
+ }
43
+ }); });
44
+ var MobileNumber = function () {
45
+ var _a;
46
+ var t = useTranslation().t;
47
+ var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
48
+ var data = useAppSelector(settingsSelector).data;
49
+ var phoneControl = useController({ name: 'mobile', control: control });
50
+ var countryCodeValue = data.businessCountry;
51
+ var mobileValue = phoneControl.field.value || '';
52
+ var error = !!mobileValue ? (_a = phoneControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message : '';
53
+ var isSA = countryCodeValue.iso2 === 'SA';
54
+ var mobileMaxLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.max_digits;
55
+ var mobileMinLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.min_digits;
56
+ var requiredMaxLen = getMobileNumberLen(mobileMaxLen, mobileValue);
57
+ var requiredMinLen = getMobileNumberLen(mobileMinLen, mobileValue);
58
+ React.useEffect(function () {
59
+ if (mobileValue)
60
+ setValue('mobile', mobileValue, { shouldValidate: true });
61
+ }, []);
62
+ var onPhoneNumberChange = function (_a) {
63
+ var target = _a.target;
64
+ var value = removeAllCharsFromNumber(target.value);
65
+ phoneControl.field.onChange(value);
66
+ };
67
+ var clearMobileNumber = function () {
68
+ phoneControl.field.onChange('');
69
+ };
70
+ return (_jsx(_Fragment, { children: _jsxs(ScreenContainer, __assign({ sx: { mb: 3 } }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('new_mobile_number') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredMaxLen }, type: 'tel', onChange: onPhoneNumberChange, value: mobileValue, startAdornment: "+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), endAdornment: !error && mobileValue ? _jsx(CheckIcon, {}) : mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber }), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: error && t(error, { minLength: requiredMinLen, length: requiredMaxLen, number: '05|5' }) })] })) }));
71
+ };
72
+ export default React.memo(MobileNumber);
@@ -0,0 +1,2 @@
1
+ import CollectMobileOwnership from './CollectMobileOwnership';
2
+ export default CollectMobileOwnership;
@@ -0,0 +1,2 @@
1
+ import CollectMobileOwnership from './CollectMobileOwnership';
2
+ export default CollectMobileOwnership;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const PhoneValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,38 @@
1
+ import { getMobileNumberLen } from '../../../../utils';
2
+ import * as yup from 'yup';
3
+ export var PhoneValidationSchema = function () {
4
+ return yup.object().shape({
5
+ mobile: yup
6
+ .string()
7
+ .test({
8
+ test: function (value) {
9
+ var countryCode = this.parent.countryCode;
10
+ var isSA = countryCode.iso2 === 'SA';
11
+ var maxDigits = countryCode.max_digits;
12
+ var minDigits = countryCode.min_digits;
13
+ var mobileValue = value || '';
14
+ var valueLen = mobileValue.length;
15
+ var isNumber = mobileValue.match(/^[0-9]/g);
16
+ if (!isNumber)
17
+ return this.createError({ message: 'enter_valid_mobile_number' });
18
+ var isStartWithZero = mobileValue.startsWith('05');
19
+ var isStartWith5 = mobileValue.startsWith('5');
20
+ var isSaudiNumber = isStartWith5 || isStartWithZero;
21
+ if (isSA) {
22
+ if (!isSaudiNumber)
23
+ return this.createError({ message: 'start_with_number' });
24
+ var requiredLen = isStartWithZero ? maxDigits + 1 : maxDigits;
25
+ return valueLen === requiredLen ? true : this.createError({ message: 'enter_valid_mobile_number' });
26
+ }
27
+ var requiredMaxLen = getMobileNumberLen(maxDigits, mobileValue);
28
+ var requiredMinLen = getMobileNumberLen(minDigits, mobileValue);
29
+ if (valueLen >= requiredMinLen && valueLen <= requiredMaxLen)
30
+ return true;
31
+ if (minDigits === maxDigits)
32
+ return this.createError({ message: 'enter_valid_mobile_number' });
33
+ return this.createError({ message: 'enter_valid_mobile_number_min_max_length' });
34
+ }
35
+ })
36
+ .required('mobile_number_error')
37
+ });
38
+ };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface NIDProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: NIDProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: NIDProps) => JSX.Element>;
5
5
  export default _default;
@@ -3,12 +3,17 @@ import { BoxProps } from '@mui/material/Box';
3
3
  interface TACContainerStyledProps extends BoxProps {
4
4
  readOnly?: boolean;
5
5
  }
6
- export declare const TACContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ export declare const TACContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
7
+ children?: React.ReactNode;
8
+ component?: React.ElementType<any> | undefined;
9
+ ref?: React.Ref<unknown> | undefined;
10
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
7
12
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
8
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & TACContainerStyledProps, {}, {}>;
13
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & TACContainerStyledProps, {}, {}>;
9
14
  interface TACProps {
10
15
  show: boolean;
11
16
  readOnly?: boolean;
12
17
  }
13
- declare const _default: React.MemoExoticComponent<({ show, readOnly }: TACProps) => import("react/jsx-runtime").JSX.Element>;
18
+ declare const _default: React.MemoExoticComponent<({ show, readOnly }: TACProps) => JSX.Element>;
14
19
  export default _default;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  interface DOBProps {
2
3
  onDateClicked?: (flag: boolean) => void;
3
4
  }
4
- declare const DOB: ({ onDateClicked }: DOBProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const DOB: ({ onDateClicked }: DOBProps) => JSX.Element;
5
6
  export default DOB;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface NIDProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: NIDProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: NIDProps) => JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface OTPProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface OTPProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface OperatorErrorProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface PrepareDataLoadingProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: PrepareDataLoadingProps) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: PrepareDataLoadingProps) => JSX.Element>;
5
5
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
3
  export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,49 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useController, useFormContext } from 'react-hook-form';
15
+ import { useTranslation } from 'react-i18next';
16
+ import Box from '@mui/material/Box/Box';
17
+ import { styled } from '@mui/material/styles';
18
+ import OTPField from '../../../shared/OTP';
19
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
20
+ import { connectExpressSelector, clearError, resendLeadMobileAuthOTP } from '../../../app/connectExpress/connectExpressStore';
21
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
22
+ var BoxStyled = styled(Box)(function (_a) {
23
+ var theme = _a.theme;
24
+ return ({
25
+ display: 'flex',
26
+ flexDirection: 'column',
27
+ fontFamily: theme.typography.fontFamily
28
+ });
29
+ });
30
+ var OTPInput = function (_a) {
31
+ var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
32
+ var t = useTranslation().t;
33
+ var dispatch = useAppDispatch();
34
+ var otpControl = useController({ name: 'otp', control: control });
35
+ var error = useAppSelector(connectExpressSelector).error;
36
+ var handleOnOTPChange = function (otp) {
37
+ if (error)
38
+ dispatch(clearError());
39
+ otpControl.field.onChange(otp);
40
+ };
41
+ var handleOnResendOTP = function () {
42
+ if (otpControl.field.value)
43
+ setValue('otp', '', { shouldValidate: true });
44
+ dispatch(resendLeadMobileAuthOTP());
45
+ };
46
+ var otpValue = otpControl.field.value;
47
+ return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPField, { timeEndLabel: t('ide_otp_resend_label'), timerInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendOTP, value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
48
+ };
49
+ export default React.memo(OTPInput);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface VerifyMobileAuthOTPProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,88 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import * as React from 'react';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../../components/Text';
18
+ import { clearError, connectExpressSelector, verifyAuthMobileOtpAsync, resetVerifyAuthOTPValue } from '../../../app/connectExpress/connectExpressStore';
19
+ import Button from '../../../shared/Button';
20
+ import { ScreenContainer } from '../../../shared/Containers';
21
+ import { useAppDispatch, useAppSelector, useSanitizedTranslation } from '../../../../hooks';
22
+ import { handlePrevScreenStep } from '../../../../app/settings';
23
+ import { useLanguage } from '../../../../hooks';
24
+ import { useForm, FormProvider } from 'react-hook-form';
25
+ import { yupResolver } from '@hookform/resolvers/yup';
26
+ import Form from '../../../../components/Form';
27
+ import { maskPhone, deepCopy } from '../../../../utils';
28
+ import { AuthForScreen } from '../../../../@types';
29
+ import { OTPValidation } from './validation';
30
+ import OTPInput from './OTPInput';
31
+ var OTPTitleContainerStyled = styled(Box)(function (_a) {
32
+ var theme = _a.theme;
33
+ return ({
34
+ background: theme.palette.common.white,
35
+ border: '1px solid',
36
+ borderColor: theme.palette.divider,
37
+ direction: theme.direction,
38
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25),
39
+ marginBottom: theme.spacing(5.75)
40
+ });
41
+ });
42
+ var OTPTitleStyled = styled(Text)(function (_a) {
43
+ var theme = _a.theme;
44
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightLight, marginBlock: theme.spacing(1.75), marginInline: theme.spacing(2.5), lineHeight: 1.75, whiteSpace: 'pre-line' }));
45
+ });
46
+ var FormStyled = styled(Form)(function () { return ({
47
+ display: 'flex',
48
+ flexDirection: 'column'
49
+ }); });
50
+ var VerifyMobileAuthOTP = function () {
51
+ var _a, _b, _c, _d, _e, _f;
52
+ var dispatch = useAppDispatch();
53
+ var _g = useAppSelector(connectExpressSelector), data = _g.data, loading = _g.loading, error = _g.error;
54
+ var t = useTranslation().t;
55
+ var st = useSanitizedTranslation();
56
+ var isAr = useLanguage().isAr;
57
+ var methods = useForm({
58
+ resolver: yupResolver(OTPValidation),
59
+ defaultValues: data.verifyAuthOtpData,
60
+ mode: 'onChange'
61
+ });
62
+ React.useEffect(function () {
63
+ if (error)
64
+ dispatch(clearError());
65
+ }, [methods.formState.isValid]);
66
+ React.useEffect(function () {
67
+ return function () {
68
+ dispatch(resetVerifyAuthOTPValue());
69
+ };
70
+ }, []);
71
+ var onSubmit = function (formData) {
72
+ dispatch(verifyAuthMobileOtpAsync(deepCopy(formData)));
73
+ };
74
+ var onBack = function () {
75
+ var authFor = data.verifyAuthOtpData.authFor;
76
+ var step_name = 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP';
77
+ if (authFor === AuthForScreen.DOB)
78
+ step_name = 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP';
79
+ else if (authFor === AuthForScreen.MOBILE_OWNERSHIP)
80
+ step_name = 'COLLECT_MOBILE_OWNERSHIP';
81
+ dispatch(handlePrevScreenStep(step_name));
82
+ };
83
+ var disabled = !methods.formState.isValid;
84
+ var phone = ((_c = (_b = (_a = data.responseData) === null || _a === void 0 ? void 0 : _a.verifyAuthMobile) === null || _b === void 0 ? void 0 : _b.verification_by) === null || _c === void 0 ? void 0 : _c.sent_to) ? (_f = (_e = (_d = data.responseData) === null || _d === void 0 ? void 0 : _d.verifyAuthMobile) === null || _e === void 0 ? void 0 : _e.verification_by) === null || _f === void 0 ? void 0 : _f.sent_to : '';
85
+ var title = t('ide_opt_sent_title');
86
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? st('ide_otp_waiting_title') : title, !loading && _jsx("span", __assign({ dir: 'ltr' }, { children: maskPhone(phone) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: st(error || '') }, { children: t('next') }))] })) })) }));
87
+ };
88
+ export default React.memo(VerifyMobileAuthOTP);
@@ -0,0 +1,3 @@
1
+ import VerifyMobileAuthOTP, { VerifyMobileAuthOTPProps } from './VerifyMobileAuthOTP';
2
+ export type { VerifyMobileAuthOTPProps };
3
+ export default VerifyMobileAuthOTP;
@@ -0,0 +1,2 @@
1
+ import VerifyMobileAuthOTP from './VerifyMobileAuthOTP';
2
+ export default VerifyMobileAuthOTP;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const OTPValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var OTPValidation = yup.object().shape({
3
+ otp: yup.string().min(6, 'otp_min_length').required('otp_required')
4
+ });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface VerifyNafathProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
4
+ declare const _default: React.MemoExoticComponent<() => JSX.Element | null>;
5
5
  export default _default;