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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/build/@types/app.d.ts +19 -17
  2. package/build/@types/config.d.ts +1 -1
  3. package/build/@types/form.d.ts +24 -24
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/auth.d.ts +26 -13
  7. package/build/api/availabilityServices.d.ts +3 -3
  8. package/build/api/axios.js +1 -1
  9. package/build/api/board.d.ts +3 -3
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/country.d.ts +1 -1
  12. package/build/api/data.d.ts +8 -8
  13. package/build/api/document.d.ts +2 -2
  14. package/build/api/entity.d.ts +11 -10
  15. package/build/api/file.d.ts +1 -1
  16. package/build/api/firebase.js +1 -1
  17. package/build/api/index.d.ts +2 -2
  18. package/build/api/individual.d.ts +5 -5
  19. package/build/api/init.d.ts +1 -1
  20. package/build/api/lead.d.ts +18 -12
  21. package/build/api/lead.js +1 -1
  22. package/build/api/operator.d.ts +2 -2
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.d.ts +2 -2
  25. package/build/app/settings.d.ts +21 -3
  26. package/build/app/settings.js +1 -1
  27. package/build/app/store.d.ts +4 -4
  28. package/build/assets/locales/ar.json +10 -1
  29. package/build/assets/locales/en.json +10 -1
  30. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  31. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  32. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  33. package/build/components/AnimationFlow/Error.d.ts +1 -2
  34. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  35. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  36. package/build/components/Button/Button.d.ts +1 -1
  37. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  38. package/build/components/Collapse/Collapse.d.ts +1 -2
  39. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  40. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  41. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  42. package/build/components/FileInput/UploadInput.d.ts +1 -2
  43. package/build/components/Footer/Footer.d.ts +1 -1
  44. package/build/components/Form/Form.d.ts +1 -1
  45. package/build/components/Input/Input.d.ts +1 -1
  46. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  47. package/build/components/List/List.d.ts +1 -1
  48. package/build/components/ListItem/ListItem.d.ts +1 -1
  49. package/build/components/Loader/Loader.d.ts +1 -1
  50. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  51. package/build/components/OTPField/OTPField.d.ts +1 -1
  52. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  53. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  54. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  55. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  56. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  57. package/build/components/Radio/Radio.d.ts +1 -1
  58. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  59. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  60. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  61. package/build/components/Slide/Slide.d.ts +1 -1
  62. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  63. package/build/components/Text/Text.d.ts +1 -1
  64. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  65. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  66. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  67. package/build/components/Warning/Warning.d.ts +1 -1
  68. package/build/constants/app.d.ts +2 -1
  69. package/build/constants/app.js +35 -12
  70. package/build/constants/assets.d.ts +2 -0
  71. package/build/constants/assets.js +2 -0
  72. package/build/features/app/auth/authStore.d.ts +195 -25
  73. package/build/features/app/auth/authStore.js +70 -127
  74. package/build/features/app/bank/bankStore.d.ts +93 -12
  75. package/build/features/app/bank/bankStore.js +1 -1
  76. package/build/features/app/board/boardStore.d.ts +41 -5
  77. package/build/features/app/board/boardStore.js +1 -1
  78. package/build/features/app/brand/brandStore.d.ts +143 -17
  79. package/build/features/app/brand/brandStore.js +1 -1
  80. package/build/features/app/business/businessStore.d.ts +168 -19
  81. package/build/features/app/business/businessStore.js +59 -45
  82. package/build/features/app/connect/connectStore.d.ts +160 -18
  83. package/build/features/app/connect/connectStore.js +152 -83
  84. package/build/features/app/connectExpress/connectExpressStore.d.ts +269 -40
  85. package/build/features/app/connectExpress/connectExpressStore.js +166 -259
  86. package/build/features/app/entity/entityStore.d.ts +93 -12
  87. package/build/features/app/entity/entityStore.js +1 -1
  88. package/build/features/app/individual/individualStore.d.ts +186 -24
  89. package/build/features/app/individual/individualStore.js +5 -2
  90. package/build/features/app/password/passwordStore.d.ts +123 -15
  91. package/build/features/app/password/passwordStore.js +1 -1
  92. package/build/features/app/signIn/signInStore.d.ts +61 -7
  93. package/build/features/app/signIn/signInStore.js +1 -1
  94. package/build/features/app/tax/taxStore.d.ts +83 -11
  95. package/build/features/app/tax/taxStore.js +1 -1
  96. package/build/features/auth/Auth.d.ts +1 -4
  97. package/build/features/auth/Auth.js +8 -8
  98. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  99. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  100. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  101. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  102. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -2
  103. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  104. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  105. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  106. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  107. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  108. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  109. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  110. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  111. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  112. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  113. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  114. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  115. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  116. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  117. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  118. package/build/features/auth/screens/NID/NID.js +4 -10
  119. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  120. package/build/features/auth/screens/NID/validation.js +0 -1
  121. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  122. package/build/features/auth/screens/OTP/OTP.js +1 -5
  123. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  124. package/build/features/auth/screens/OTP/OTPInput.js +2 -13
  125. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  126. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  127. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  128. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  129. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  130. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  131. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +34 -0
  132. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  133. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  134. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  135. package/build/features/bank/Bank.d.ts +1 -2
  136. package/build/features/bank/Bank.js +5 -3
  137. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  138. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  139. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  140. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  141. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  142. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  143. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  144. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  145. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  146. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  147. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  148. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  149. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  150. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  151. package/build/features/board/Board.d.ts +1 -2
  152. package/build/features/board/Board.js +5 -3
  153. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  154. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  155. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  156. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  157. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  158. package/build/features/brand/Brand.d.ts +1 -2
  159. package/build/features/brand/Brand.js +5 -3
  160. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
  161. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  162. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  163. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  164. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  165. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
  166. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
  167. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  168. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  169. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  170. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  171. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  172. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  173. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  174. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  175. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  176. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  177. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  178. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  179. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  180. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  181. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  182. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  183. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  184. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  185. package/build/features/business/Business.d.ts +1 -2
  186. package/build/features/business/Business.js +5 -3
  187. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  188. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  189. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  190. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  191. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  192. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  193. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  194. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  195. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  196. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  197. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  198. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  199. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  200. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  201. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  202. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  203. package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
  204. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  205. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  206. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  207. package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
  208. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  209. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  210. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  211. package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
  212. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
  213. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  214. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  215. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  216. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  217. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  218. package/build/features/business/screens/Success/Success.d.ts +1 -1
  219. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  220. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  221. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  222. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  223. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +34 -0
  224. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  225. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  226. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  227. package/build/features/connect/Connect.d.ts +1 -2
  228. package/build/features/connect/Connect.js +6 -5
  229. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  230. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  231. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  232. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  233. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  234. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  235. package/build/features/connect/screens/Individual/Email.js +1 -1
  236. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  237. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  238. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  239. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  240. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  241. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  242. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  243. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  244. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  245. package/build/features/connect/screens/Mobile/Mobile.js +2 -2
  246. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  247. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  248. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  249. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  250. package/build/features/connect/screens/NID/NID.js +5 -11
  251. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  252. package/build/features/connect/screens/NID/validation.js +0 -1
  253. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  254. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  255. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  256. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  257. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  258. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  259. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +34 -0
  260. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  261. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  262. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  263. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  264. package/build/features/connectExpress/ConnectExpress.js +6 -5
  265. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  266. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  267. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  268. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  269. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  270. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  271. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  272. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  273. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  274. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  275. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  276. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  277. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  280. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  281. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  282. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  283. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  284. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
  285. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
  286. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  287. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  288. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  289. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  290. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  291. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  292. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +34 -0
  293. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  294. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  295. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  296. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  297. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -2
  298. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  299. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  300. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  301. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  302. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  303. package/build/features/connectExpress/screens/NID/NID.js +4 -9
  304. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
  305. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  306. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  307. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  308. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  309. package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
  310. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  311. package/build/features/connectExpress/screens/OTP/OTP.js +5 -13
  312. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  313. package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -11
  314. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  315. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  316. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  317. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  318. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +34 -0
  319. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  320. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  321. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  322. package/build/features/entity/Entity.d.ts +1 -2
  323. package/build/features/entity/Entity.js +5 -3
  324. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  325. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  326. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  327. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  328. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  329. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  330. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  331. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
  332. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  333. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  334. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  335. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  336. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  337. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  338. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  339. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  340. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  341. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  342. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  343. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  344. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  345. package/build/features/featuresScreens.js +21 -6
  346. package/build/features/individual/Individual.d.ts +1 -2
  347. package/build/features/individual/Individual.js +5 -3
  348. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  349. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  350. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  351. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
  352. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  353. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  354. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
  355. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  356. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  357. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  358. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  359. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  360. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  361. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  362. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  363. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  364. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  365. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  366. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  367. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
  368. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  369. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  370. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  371. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  372. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  373. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  374. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  375. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  376. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  377. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  378. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  379. package/build/features/password/Password.d.ts +1 -2
  380. package/build/features/password/Password.js +6 -4
  381. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  382. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  383. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  384. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  385. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  386. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  387. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  388. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  389. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  390. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  391. package/build/features/password/screens/Success/Success.d.ts +1 -1
  392. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  393. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  394. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  395. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  396. package/build/features/shared/Address/Address.d.ts +1 -2
  397. package/build/features/shared/Address/CountryList.d.ts +14 -46
  398. package/build/features/shared/Address/InputSelect.d.ts +14 -46
  399. package/build/features/shared/Address/InputSelect.js +1 -1
  400. package/build/features/shared/Address/InputText.d.ts +1 -1
  401. package/build/features/shared/Background/Background.d.ts +1 -1
  402. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  403. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  404. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  405. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  406. package/build/features/shared/Button/Button.d.ts +1 -2
  407. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  408. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  409. package/build/features/shared/Button/FlowsButtons.js +1 -1
  410. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  411. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  412. package/build/features/shared/Button/NafathButton.d.ts +7 -0
  413. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +13 -3
  414. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  415. package/build/features/shared/Button/index.d.ts +2 -2
  416. package/build/features/shared/Button/index.js +2 -2
  417. package/build/features/shared/Calender/Calender.d.ts +1 -2
  418. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  419. package/build/features/shared/Chip/Chip.d.ts +1 -2
  420. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  421. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  422. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  423. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  424. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  425. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  426. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  427. package/build/features/shared/Dot/Dot.d.ts +1 -2
  428. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  429. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  430. package/build/features/shared/Footer/Footer.d.ts +1 -2
  431. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  432. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  433. package/build/features/shared/Input/Input.d.ts +6 -14
  434. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  435. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  436. package/build/features/shared/NafathVerification/NafathVerification.d.ts +13 -0
  437. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  438. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  439. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  440. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  441. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  442. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  443. package/build/features/shared/NafathVerification/index.js +2 -0
  444. package/build/features/shared/OTP/OTP.d.ts +1 -1
  445. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  446. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  447. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  448. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  449. package/build/features/shared/Search/Search.d.ts +1 -2
  450. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  451. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  452. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  453. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
  454. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  455. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
  456. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
  457. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
  458. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  459. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
  460. package/build/features/signIn/SignIn.d.ts +1 -2
  461. package/build/features/signIn/SignIn.js +5 -3
  462. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  463. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  464. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  465. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  466. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  467. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  468. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  469. package/build/features/tax/Tax.d.ts +1 -2
  470. package/build/features/tax/Tax.js +5 -3
  471. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  472. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  473. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  474. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  475. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  476. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  477. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  478. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  479. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  480. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  481. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  482. package/build/hooks/useAppConfig.js +1 -1
  483. package/build/hooks/useDataVerified.d.ts +1 -1
  484. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  485. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  486. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  487. package/build/hooks/useFormReadOnly.d.ts +2 -2
  488. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  489. package/build/theme/palette.js +2 -1
  490. package/build/utils/array.js +1 -1
  491. package/package.json +1 -1
  492. package/build/features/auth/screens/NID/DOB.d.ts +0 -7
  493. package/build/features/auth/screens/NID/DOB.js +0 -47
  494. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  495. package/build/features/business/screens/OTP/OTP.js +0 -90
  496. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  497. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  498. package/build/features/business/screens/OTP/index.d.ts +0 -3
  499. package/build/features/business/screens/OTP/index.js +0 -2
  500. package/build/features/business/screens/OTP/validation.d.ts +0 -8
  501. package/build/features/business/screens/OTP/validation.js +0 -4
  502. package/build/features/connect/screens/NID/DOB.d.ts +0 -6
  503. package/build/features/connect/screens/NID/DOB.js +0 -47
  504. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
  505. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -88
  506. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  507. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -56
  508. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  509. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  510. package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +0 -8
  511. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  512. package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -7
  513. package/build/features/connectExpress/screens/NID/DOB.js +0 -47
  514. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
@@ -1,90 +0,0 @@
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
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import * as React from 'react';
25
- import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
26
- import { useTranslation } from 'react-i18next';
27
- import { useForm, FormProvider } from 'react-hook-form';
28
- import { yupResolver } from '@hookform/resolvers/yup';
29
- import Box from '@mui/material/Box/Box';
30
- import { styled } from '@mui/material/styles';
31
- import { handlePrevScreenStep } from '../../../../app/settings';
32
- import { useLanguage } from '../../../../hooks';
33
- import Form from '../../../../components/Form';
34
- import Text from '../../../../components/Text';
35
- import { ScreenContainer } from '../../../shared/Containers';
36
- import { businessSelector, clearError, resetOTPScreen, verifyLeadOTP } from '../../../app/business/businessStore';
37
- import Button from '../../../shared/Button';
38
- import { deepCopy, maskID } from '../../../../utils';
39
- import { OTPValidation } from './validation';
40
- import OTPInput from './OTPInput';
41
- var OTPTitleContainerStyled = styled(Box)(function (_a) {
42
- var theme = _a.theme;
43
- return ({
44
- background: theme.palette.common.white,
45
- border: '1px solid',
46
- borderColor: theme.palette.divider,
47
- direction: theme.direction,
48
- borderRadius: theme.spacing(0, 0, 1.25, 1.25),
49
- marginBottom: theme.spacing(5.75)
50
- });
51
- });
52
- var OTPTitleStyled = styled(Text)(function (_a) {
53
- var theme = _a.theme;
54
- return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightLight, color: theme.palette.text.primary, marginBlock: theme.spacing(1.75), marginInline: theme.spacing(2.5), lineHeight: 1.75, whiteSpace: 'pre-line' }));
55
- });
56
- var FormStyled = styled(Form)(function () { return ({
57
- display: 'flex',
58
- flexDirection: 'column'
59
- }); });
60
- var OTP = function (_a) {
61
- var _b = useAppSelector(businessSelector), data = _b.data, loading = _b.loading, error = _b.error;
62
- var dispatch = useAppDispatch();
63
- var _c = data.otpData, responseBody = _c.responseBody, defaultValues = __rest(_c, ["responseBody"]);
64
- var methods = useForm({
65
- resolver: yupResolver(OTPValidation),
66
- defaultValues: defaultValues,
67
- mode: 'onChange'
68
- });
69
- useSetFromDefaultValues(methods, defaultValues);
70
- var t = useTranslation().t;
71
- var isAr = useLanguage().isAr;
72
- React.useEffect(function () {
73
- if (error)
74
- dispatch(clearError());
75
- return function () {
76
- dispatch(resetOTPScreen());
77
- };
78
- }, [methods.formState.isValid]);
79
- var onSubmit = function (formData) {
80
- dispatch(verifyLeadOTP(deepCopy(formData)));
81
- };
82
- var onBack = function () {
83
- dispatch(handlePrevScreenStep());
84
- };
85
- var disabled = !methods.formState.isValid;
86
- var idNumber = data.nidData.nid;
87
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('opt_nid_sent_title', { provider: 'ABSHER' }), ' ', !loading && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskID(idNumber || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
88
- };
89
- OTP.defaultProps = {};
90
- export default React.memo(OTP);
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export interface OTPProps {
3
- }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
- export default _default;
@@ -1,49 +0,0 @@
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 { businessSelector, clearError, resendOTPLeadIdentity } from '../../../app/business/businessStore';
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 error = useAppSelector(businessSelector).error;
35
- var otpControl = useController({ name: 'otp', control: control });
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(resendOTPLeadIdentity());
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);
@@ -1,3 +0,0 @@
1
- import OTP, { OTPProps } from './OTP';
2
- export type { OTPProps };
3
- export default OTP;
@@ -1,2 +0,0 @@
1
- import OTP from './OTP';
2
- export default OTP;
@@ -1,8 +0,0 @@
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
- }>>>;
@@ -1,4 +0,0 @@
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,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface DOBProps {
3
- onDateClicked?: (flag: boolean) => void;
4
- }
5
- declare const DOB: ({ onDateClicked }: DOBProps) => JSX.Element;
6
- export default DOB;
@@ -1,47 +0,0 @@
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 { useTranslation } from 'react-i18next';
14
- import { useController, useFormContext } from 'react-hook-form';
15
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
- import { ScreenContainer } from '../../../shared/Containers';
17
- import { alpha, styled } from '@mui/material/styles';
18
- import Text from '../../../../components/Text';
19
- import Calender from '../../../shared/Calender';
20
- import { clearError, connectSelector } from '../../../app/connect/connectStore';
21
- var InputLabelStyled = styled(Text)(function (_a) {
22
- var theme = _a.theme;
23
- return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
24
- });
25
- var DOB = function (_a) {
26
- var _b;
27
- var onDateClicked = _a.onDateClicked;
28
- var t = useTranslation().t;
29
- var control = useFormContext().control;
30
- var dispatch = useAppDispatch();
31
- var dobControl = useController({ control: control, name: 'dob' });
32
- var error = useAppSelector(connectSelector).error;
33
- var handleBirthDateChange = function (data) {
34
- dobControl.field.onChange(data);
35
- handleClearError();
36
- };
37
- var handleClearError = function () {
38
- if (error)
39
- dispatch(clearError());
40
- };
41
- var dateValue = (_b = dobControl === null || dobControl === void 0 ? void 0 : dobControl.field) === null || _b === void 0 ? void 0 : _b.value;
42
- return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
- var spacing = _a.spacing;
44
- return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
- };
47
- export default DOB;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export interface OTPProps {
3
- }
4
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
5
- export default _default;
@@ -1,88 +0,0 @@
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, resetOTPValue, verifyNIDOtpLeadIdentityAsync } from '../../../app/connectExpress/connectExpressStore';
19
- import Button from '../../../shared/Button';
20
- import { ScreenContainer } from '../../../shared/Containers';
21
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
22
- import { handlePrevScreenStep } from '../../../../app/settings';
23
- import { useLanguage } from '../../../../hooks';
24
- import { AuthForType } from '../../../../@types';
25
- import { useForm, FormProvider } from 'react-hook-form';
26
- import { yupResolver } from '@hookform/resolvers/yup';
27
- import Form from '../../../../components/Form';
28
- import { maskPhone, maskID, deepCopy, sendCustomEventToGTM } from '../../../../utils';
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 OTP = function () {
51
- var _a;
52
- var dispatch = useAppDispatch();
53
- var _b = useAppSelector(connectExpressSelector), data = _b.data, loading = _b.loading, error = _b.error;
54
- var t = useTranslation().t;
55
- var isAr = useLanguage().isAr;
56
- var methods = useForm({
57
- resolver: yupResolver(OTPValidation),
58
- defaultValues: data.otpData,
59
- mode: 'onChange'
60
- });
61
- var isNidAuth = data.otpData.authFor === AuthForType.NATIONAL_ID_MISSED;
62
- React.useEffect(function () {
63
- if (error)
64
- dispatch(clearError());
65
- }, [methods.formState.isValid]);
66
- React.useEffect(function () {
67
- sendCustomEventToGTM({
68
- event: 'Send Event',
69
- event_category: 'User Registration Flow',
70
- event_action: 'Absher OTP Page Viewed'
71
- });
72
- return function () {
73
- dispatch(resetOTPValue());
74
- };
75
- }, []);
76
- var onSubmit = function (formData) {
77
- dispatch(verifyNIDOtpLeadIdentityAsync(deepCopy(formData)));
78
- };
79
- var onBack = function () {
80
- dispatch(handlePrevScreenStep());
81
- };
82
- var disabled = !methods.formState.isValid;
83
- var phone = data.mobileData.mobile ? ((_a = data.mobileData.countryCode) === null || _a === void 0 ? void 0 : _a.idd_prefix) + data.mobileData.mobile : '';
84
- var idNumber = data.nidData.nid;
85
- var title = isNidAuth ? t('opt_nid_sent_title', { provider: 'ABSHER' }) : 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 ? t('ide_otp_waiting_title') : title, !loading && _jsx("span", __assign({ dir: 'ltr' }, { children: isNidAuth ? maskID(idNumber) : maskPhone(phone) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
87
- };
88
- export default React.memo(OTP);
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export interface OTPProps {
3
- }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
- export default _default;
@@ -1,56 +0,0 @@
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 { resendNIDAuthIdentityOTP, connectExpressSelector, clearError } from '../../../app/connectExpress/connectExpressStore';
21
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
22
- import { sendCustomEventToGTM } from '../../../../utils';
23
- var BoxStyled = styled(Box)(function (_a) {
24
- var theme = _a.theme;
25
- return ({
26
- display: 'flex',
27
- flexDirection: 'column',
28
- fontFamily: theme.typography.fontFamily
29
- });
30
- });
31
- var OTPInput = function (_a) {
32
- var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
33
- var t = useTranslation().t;
34
- var dispatch = useAppDispatch();
35
- var otpControl = useController({ name: 'otp', control: control });
36
- var _c = useAppSelector(connectExpressSelector), data = _c.data, error = _c.error;
37
- var nidData = data.nidData;
38
- var handleOnOTPChange = function (otp) {
39
- if (error)
40
- dispatch(clearError());
41
- otpControl.field.onChange(otp);
42
- };
43
- var handleOnResendAbsherOTP = function () {
44
- if (otpControl.field.value)
45
- setValue('otp', '', { shouldValidate: true });
46
- sendCustomEventToGTM({
47
- event: 'Send Event',
48
- event_category: 'User Registration Flow',
49
- event_action: 'Another Absher OTP asked'
50
- });
51
- dispatch(resendNIDAuthIdentityOTP(nidData));
52
- };
53
- var otpValue = otpControl.field.value;
54
- return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPField, { timeEndLabel: t('ide_otp_resend_label'), timerInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendAbsherOTP, value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
55
- };
56
- export default React.memo(OTPInput);
@@ -1,3 +0,0 @@
1
- import OTP, { OTPProps } from './OTP';
2
- export type { OTPProps };
3
- export default OTP;
@@ -1,2 +0,0 @@
1
- import OTP from './OTP';
2
- export default OTP;
@@ -1,8 +0,0 @@
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
- }>>>;
@@ -1,4 +0,0 @@
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,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface DOBProps {
3
- onDateClicked?: (flag: boolean) => void;
4
- readOnly?: boolean;
5
- }
6
- declare const DOB: ({ onDateClicked, readOnly }: DOBProps) => JSX.Element;
7
- export default DOB;
@@ -1,47 +0,0 @@
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 { useTranslation } from 'react-i18next';
14
- import { useController, useFormContext } from 'react-hook-form';
15
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
- import { ScreenContainer } from '../../../shared/Containers';
17
- import { alpha, styled } from '@mui/material/styles';
18
- import { clearError, connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
19
- import Text from '../../../../components/Text';
20
- import Calender from '../../../shared/Calender';
21
- var InputLabelStyled = styled(Text)(function (_a) {
22
- var theme = _a.theme;
23
- return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
24
- });
25
- var DOB = function (_a) {
26
- var _b;
27
- var onDateClicked = _a.onDateClicked, readOnly = _a.readOnly;
28
- var t = useTranslation().t;
29
- var control = useFormContext().control;
30
- var dispatch = useAppDispatch();
31
- var dobControl = useController({ control: control, name: 'dob' });
32
- var error = useAppSelector(connectExpressSelector).error;
33
- var handleBirthDateChange = function (data) {
34
- dobControl.field.onChange(data);
35
- handleClearError();
36
- };
37
- var handleClearError = function () {
38
- if (error)
39
- dispatch(clearError());
40
- };
41
- var dateValue = (_b = dobControl === null || dobControl === void 0 ? void 0 : dobControl.field) === null || _b === void 0 ? void 0 : _b.value;
42
- return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
- var spacing = _a.spacing;
44
- return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
- };
47
- export default DOB;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from '../../../components/Button';
3
- interface AbsherButtonProps extends ButtonProps {
4
- loading?: boolean;
5
- hideIcon?: boolean;
6
- }
7
- export default function AbsherButton({ children, hideIcon, disabled, ...props }: AbsherButtonProps): JSX.Element;
8
- export {};