@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test

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 (361) hide show
  1. package/build/@types/app.d.ts +39 -14
  2. package/build/@types/app.js +9 -0
  3. package/build/@types/form.d.ts +11 -0
  4. package/build/api/account.js +1 -1
  5. package/build/api/auth.d.ts +15 -2
  6. package/build/api/auth.js +25 -2
  7. package/build/api/availabilityServices.js +1 -1
  8. package/build/api/axios.js +4 -4
  9. package/build/api/board.js +1 -1
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/brand.js +1 -1
  12. package/build/api/country.js +1 -1
  13. package/build/api/data.d.ts +33 -7
  14. package/build/api/data.js +42 -17
  15. package/build/api/entity.d.ts +2 -0
  16. package/build/api/entity.js +1 -1
  17. package/build/api/firebase.js +1 -1
  18. package/build/api/individual.d.ts +1 -1
  19. package/build/api/individual.js +1 -1
  20. package/build/api/ip.js +1 -1
  21. package/build/api/lead.d.ts +1 -1
  22. package/build/api/lead.js +1 -1
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.js +1 -1
  25. package/build/app/rootReducer.d.ts +10 -7
  26. package/build/app/rootReducer.js +14 -8
  27. package/build/app/settings.d.ts +2 -2
  28. package/build/app/settings.js +11 -5
  29. package/build/app/store.d.ts +6 -0
  30. package/build/assets/locales/ar.json +14 -4
  31. package/build/assets/locales/en.json +14 -4
  32. package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
  33. package/build/components/AnimationFlow/AnimationFlow.js +5 -7
  34. package/build/components/AnimationFlow/BottomSheet.js +2 -1
  35. package/build/components/AnimationFlow/Dialog.d.ts +4 -1
  36. package/build/components/AnimationFlow/Dialog.js +10 -5
  37. package/build/components/DatePicker/DatePicker.js +3 -3
  38. package/build/components/FileInput/DragAndDrop.d.ts +9 -1
  39. package/build/components/FileInput/DragAndDrop.js +115 -10
  40. package/build/components/FileInput/UploadInput.js +2 -2
  41. package/build/components/Footer/Footer.js +3 -3
  42. package/build/components/Input/Input.js +2 -2
  43. package/build/components/Lottie/Lottie.d.ts +878 -0
  44. package/build/components/Lottie/Lottie.js +58 -0
  45. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
  46. package/build/components/Lottie/files/success.json +425 -0
  47. package/build/components/Lottie/index.d.ts +3 -0
  48. package/build/components/Lottie/index.js +3 -0
  49. package/build/components/OTPTimer/OTPTimer.js +1 -1
  50. package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
  51. package/build/components/ProgressBar/CircularProgressBar.js +48 -0
  52. package/build/components/ProgressBar/index.d.ts +2 -0
  53. package/build/components/ProgressBar/index.js +2 -0
  54. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  55. package/build/components/SimpleList/SimpleList.js +1 -1
  56. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
  57. package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
  58. package/build/constants/api.d.ts +1 -0
  59. package/build/constants/api.js +10 -7
  60. package/build/constants/app.d.ts +16 -1
  61. package/build/constants/app.js +76 -4
  62. package/build/constants/assets.d.ts +17 -1
  63. package/build/constants/assets.js +22 -6
  64. package/build/constants/validation.d.ts +1 -0
  65. package/build/constants/validation.js +1 -0
  66. package/build/features/app/auth/authStore.d.ts +35 -0
  67. package/build/features/app/auth/authStore.js +148 -0
  68. package/build/features/app/bank/bankStore.d.ts +6 -2
  69. package/build/features/app/bank/bankStore.js +46 -26
  70. package/build/features/app/business/businessStore.d.ts +2 -2
  71. package/build/features/app/business/businessStore.js +58 -48
  72. package/build/features/app/connect/connectStore.d.ts +14 -2
  73. package/build/features/app/connect/connectStore.js +170 -10
  74. package/build/features/app/entity/entityStore.d.ts +53 -0
  75. package/build/features/app/entity/entityStore.js +461 -0
  76. package/build/features/app/individual/individualStore.d.ts +2 -2
  77. package/build/features/app/individual/individualStore.js +23 -15
  78. package/build/features/app/otp/otpStore.d.ts +28 -0
  79. package/build/features/app/otp/otpStore.js +153 -0
  80. package/build/features/app/password/passwordStore.d.ts +2 -2
  81. package/build/features/app/password/passwordStore.js +4 -4
  82. package/build/features/app/signIn/signInStore.d.ts +2 -2
  83. package/build/features/app/signIn/signInStore.js +6 -6
  84. package/build/features/app/tax/taxStore.d.ts +2 -2
  85. package/build/features/app/tax/taxStore.js +5 -5
  86. package/build/features/auth/Auth.d.ts +10 -0
  87. package/build/features/auth/Auth.js +87 -0
  88. package/build/features/auth/index.d.ts +1 -0
  89. package/build/features/auth/index.js +1 -0
  90. package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
  91. package/build/features/auth/screens/OTP/OTP.js +72 -0
  92. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
  93. package/build/features/auth/screens/OTP/OTPInput.js +44 -0
  94. package/build/features/auth/screens/OTP/index.d.ts +3 -0
  95. package/build/features/auth/screens/OTP/index.js +2 -0
  96. package/build/features/auth/screens/OTP/validation.d.ts +8 -0
  97. package/build/features/auth/screens/OTP/validation.js +4 -0
  98. package/build/features/bank/Bank.d.ts +1 -1
  99. package/build/features/bank/Bank.js +18 -12
  100. package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
  101. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  102. package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
  103. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  104. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  105. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  106. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  107. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  108. package/build/features/bank/screens/Success/Success.js +3 -3
  109. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  110. package/build/features/bank/screens/Verify/OTPInput.js +4 -4
  111. package/build/features/bank/screens/Verify/Verify.js +9 -9
  112. package/build/features/business/Business.d.ts +2 -2
  113. package/build/features/business/Business.js +20 -13
  114. package/build/features/business/screens/Activities/Activities.js +7 -7
  115. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  116. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  117. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  118. package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
  119. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  120. package/build/features/business/screens/Activities/SalesChannels.js +8 -8
  121. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  122. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  123. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  124. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  125. package/build/features/business/screens/BusinessType/validation.js +2 -2
  126. package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
  127. package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
  128. package/build/features/business/screens/Customers/Customers.js +8 -8
  129. package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
  130. package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
  131. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  132. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  133. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  134. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  135. package/build/features/business/screens/IDBOD/ID.js +6 -6
  136. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  137. package/build/features/business/screens/OTP/OTP.js +9 -9
  138. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  139. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  140. package/build/features/business/screens/Success/Success.js +3 -3
  141. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  142. package/build/features/business/screens/Verify/OTPInput.js +4 -4
  143. package/build/features/business/screens/Verify/Verify.js +9 -9
  144. package/build/features/connect/Connect.d.ts +3 -2
  145. package/build/features/connect/Connect.js +46 -16
  146. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
  147. package/build/features/connect/screens/CivilID/CivilID.js +85 -0
  148. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
  149. package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
  150. package/build/features/connect/screens/CivilID/index.d.ts +3 -0
  151. package/build/features/connect/screens/CivilID/index.js +2 -0
  152. package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
  153. package/build/features/connect/screens/CivilID/validation.js +4 -0
  154. package/build/features/connect/screens/Individual/Email.js +7 -7
  155. package/build/features/connect/screens/Individual/Individual.js +14 -10
  156. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  157. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  158. package/build/features/connect/screens/Individual/Name.js +6 -6
  159. package/build/features/connect/screens/Individual/validation.js +1 -1
  160. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  161. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  162. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  163. package/build/features/connect/screens/Merchant/Merchant.js +42 -18
  164. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
  165. package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
  166. package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
  167. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  168. package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
  169. package/build/features/connect/screens/Merchant/validation.js +69 -3
  170. package/build/features/connect/screens/Mobile/Mobile.js +16 -13
  171. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  172. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  173. package/build/features/connect/screens/Mobile/Title.js +2 -2
  174. package/build/features/connect/screens/NID/DOB.js +5 -5
  175. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  176. package/build/features/connect/screens/NID/NID.js +8 -8
  177. package/build/features/connect/screens/OTP/OTP.js +9 -9
  178. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  179. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  180. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  181. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
  182. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
  183. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
  184. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
  185. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
  186. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
  187. package/build/features/connect/screens/VerifyPACI/index.js +2 -0
  188. package/build/features/entity/Entity.d.ts +7 -0
  189. package/build/features/entity/Entity.js +70 -0
  190. package/build/features/entity/index.d.ts +1 -0
  191. package/build/features/entity/index.js +1 -0
  192. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
  193. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
  194. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
  195. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
  196. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
  197. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
  198. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
  199. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
  200. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
  201. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
  202. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
  203. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
  204. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
  205. package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
  206. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
  207. package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
  208. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  209. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
  210. package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
  211. package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
  212. package/build/features/entity/screens/Success/Success.d.ts +5 -0
  213. package/build/features/entity/screens/Success/Success.js +16 -0
  214. package/build/features/entity/screens/Success/index.d.ts +3 -0
  215. package/build/features/entity/screens/Success/index.js +2 -0
  216. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  217. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
  218. package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  219. package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
  220. package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
  221. package/build/features/entity/screens/Verify/OTPInput.js +47 -0
  222. package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
  223. package/build/features/entity/screens/Verify/Verify.js +78 -0
  224. package/build/features/entity/screens/Verify/index.d.ts +2 -0
  225. package/build/features/entity/screens/Verify/index.js +2 -0
  226. package/build/features/entity/screens/Verify/validation.d.ts +8 -0
  227. package/build/features/entity/screens/Verify/validation.js +4 -0
  228. package/build/features/featuresScreens.d.ts +4 -1
  229. package/build/features/featuresScreens.js +88 -40
  230. package/build/features/individual/Individual.d.ts +2 -2
  231. package/build/features/individual/Individual.js +20 -13
  232. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
  233. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  234. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  235. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  236. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  237. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  238. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
  239. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  240. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
  241. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  242. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  243. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
  244. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  245. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  246. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  247. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  248. package/build/features/individual/screens/Success/Success.js +3 -3
  249. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  250. package/build/features/individual/screens/Verify/OTPInput.js +4 -4
  251. package/build/features/individual/screens/Verify/Verify.js +9 -9
  252. package/build/features/otp/OTP.d.ts +7 -0
  253. package/build/features/otp/OTP.js +58 -0
  254. package/build/features/otp/index.d.ts +0 -0
  255. package/build/features/otp/index.js +1 -0
  256. package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
  257. package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
  258. package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
  259. package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
  260. package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
  261. package/build/features/otp/screens/OTPVerify/index.js +2 -0
  262. package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
  263. package/build/features/otp/screens/OTPVerify/validation.js +4 -0
  264. package/build/features/password/Password.d.ts +2 -2
  265. package/build/features/password/Password.js +20 -13
  266. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  267. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  268. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  269. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  270. package/build/features/password/screens/OTP/OTP.js +9 -9
  271. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  272. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  273. package/build/features/password/screens/Success/Success.js +4 -4
  274. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  275. package/build/features/password/screens/Verify/OTPInput.js +4 -4
  276. package/build/features/password/screens/Verify/Verify.js +9 -9
  277. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  278. package/build/features/shared/Background/Background.d.ts +7 -5
  279. package/build/features/shared/Background/Background.js +16 -5
  280. package/build/features/shared/Background/LogoBackground.js +3 -3
  281. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  282. package/build/features/shared/Button/AbsherButton.js +3 -3
  283. package/build/features/shared/Button/Button.d.ts +1 -1
  284. package/build/features/shared/Button/Button.js +7 -7
  285. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  286. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  287. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  288. package/build/features/shared/Button/FlowsButtons.js +6 -6
  289. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  290. package/build/features/shared/Button/MobileButton.js +3 -3
  291. package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
  292. package/build/features/shared/Dialog/CloseDialog.js +62 -0
  293. package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
  294. package/build/features/shared/Dialog/DialogContainer.js +56 -0
  295. package/build/features/shared/Dialog/index.d.ts +4 -0
  296. package/build/features/shared/Dialog/index.js +4 -0
  297. package/build/features/shared/Footer/Footer.js +4 -4
  298. package/build/features/shared/Input/Input.d.ts +2 -2
  299. package/build/features/shared/Input/Input.js +4 -4
  300. package/build/features/shared/OTP/OTP.d.ts +1 -1
  301. package/build/features/shared/OTP/OTP.js +3 -3
  302. package/build/features/shared/Search/Search.js +1 -1
  303. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  304. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  305. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  306. package/build/features/shared/UploadFile/UploadFile.js +27 -12
  307. package/build/features/signIn/SignIn.d.ts +2 -2
  308. package/build/features/signIn/SignIn.js +21 -13
  309. package/build/features/signIn/screens/Email/Email.js +8 -8
  310. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  311. package/build/features/signIn/screens/Email/validation.js +1 -1
  312. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  313. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  314. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  315. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  316. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  317. package/build/features/signIn/screens/Password/Password.js +7 -7
  318. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  319. package/build/features/tax/Tax.d.ts +2 -2
  320. package/build/features/tax/Tax.js +21 -13
  321. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  322. package/build/features/tax/screens/Success/Success.js +3 -3
  323. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  324. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  325. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  326. package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
  327. package/build/features/tax/screens/Verify/OTPInput.js +4 -4
  328. package/build/features/tax/screens/Verify/Verify.js +9 -9
  329. package/build/hooks/index.d.ts +1 -0
  330. package/build/hooks/index.js +1 -0
  331. package/build/hooks/useAppConfig.d.ts +1 -1
  332. package/build/hooks/useAppConfig.js +6 -4
  333. package/build/hooks/useAppDispatch.d.ts +3 -0
  334. package/build/hooks/useAppSelector.d.ts +1 -1
  335. package/build/hooks/useAppTheme.d.ts +1 -1
  336. package/build/hooks/useAppTheme.js +3 -3
  337. package/build/hooks/useErrorListener.js +4 -3
  338. package/build/hooks/useLanguage.js +1 -1
  339. package/build/hooks/useRedirectionListener.js +1 -1
  340. package/build/hooks/useScreen.d.ts +3 -0
  341. package/build/hooks/useScreen.js +14 -0
  342. package/build/hooks/useStepStartedListener.js +1 -1
  343. package/build/i18n.js +1 -1
  344. package/build/index.d.ts +12 -9
  345. package/build/index.js +18 -9
  346. package/build/theme/theme.d.ts +1 -1
  347. package/build/utils/array.d.ts +1 -1
  348. package/build/utils/device.d.ts +1 -0
  349. package/build/utils/device.js +13 -0
  350. package/build/utils/html.d.ts +1 -0
  351. package/build/utils/html.js +6 -0
  352. package/build/utils/locale.d.ts +1 -1
  353. package/build/utils/locale.js +2 -2
  354. package/build/utils/rsa.d.ts +2 -2
  355. package/build/utils/rsa.js +2 -2
  356. package/build/utils/string.d.ts +23 -21
  357. package/build/utils/string.js +13 -4
  358. package/package.json +1 -1
  359. package/build/api/index.d.ts +0 -83
  360. package/build/components/DatePicker/customStyle.css +0 -86
  361. package/build/index.css +0 -140
@@ -141,7 +141,7 @@
141
141
  "signup_email_placeholder": "مثل g@example.com",
142
142
  "signup_enter_mobile": "رقم الجوال",
143
143
  "signup_generic_error": "حدث خطأ ما يرجى إعادة المحاولة لاحقاً",
144
- "signup_instagram_placeholder": "حساب انستجرام",
144
+ "signup_instagram_placeholder": "Enter your Instagram handle",
145
145
  "signup_invalid_iqama_id_format": "يجب أن تبدأ الإقامة بالرقم {{number}}",
146
146
  "signup_invalid_national_id": "الرجاء ادخال رقم هوية صحيح",
147
147
  "signup_invalid_national_id_format": "يجب أن تبدأ الهوية الوطنية بالرقم {{number}}",
@@ -149,9 +149,9 @@
149
149
  "signup_merchant_name_label": "الاسم بالكامل",
150
150
  "signup_merchant_name_placeholder": "الاسم بالكامل",
151
151
  "signup_select_country": "دولتك",
152
- "signup_twitter_placeholder": "حساب تويتر",
152
+ "signup_twitter_placeholder": "Enter your Twitter handle",
153
153
  "signup_user_not_exists_error": "المستخدم غير مسجل مع تاب",
154
- "signup_website_placeholder": "رابط الموقع",
154
+ "signup_website_placeholder": "Enter your website URL",
155
155
  "signup_welcoming": "مرحبا {{username}},",
156
156
  "signup_welcoming_hi": "مرحبا,",
157
157
  "start_with_number": "رقم الجوال يجب ان يبدا ب {{number}}",
@@ -244,5 +244,15 @@
244
244
  "reset_password_success_title": "لقد ارسلنا رسالة بريدية إليك",
245
245
  "reset_password_success_description": "تحقق من بريدك الإلكتروني لإعادة تعيين كلمة المرور الخاصة بك.",
246
246
  "license_name_label": "اسم الرخصة",
247
- "email_button_label": "تواصل مع البريد الإلكتروني"
247
+ "email_button_label": "تواصل مع البريد الإلكتروني",
248
+ "apple_store_placeholder": "Enter your app name (iOS)",
249
+ "play_store_placeholder": "Enter your app name (Google Play Store)",
250
+ "physical_store_placeholder": "Enter your store address or Google Map URL",
251
+ "call_center_placeholder": "Enter your Call Center number",
252
+ "back": "Back",
253
+ "civil_id_placeholder": "28xxxxxxxx53",
254
+ "enter_civil_id": "Please enter your civil ID",
255
+ "invalid_civil_id": "Please enter valid civil ID",
256
+ "authenticate_kuwait_mobile_title": "Authenticate with Kuwait Mobile ID app",
257
+ "authenticate_kuwait_mobile_description": "Please go to your Kuwait Mobile ID app and accept the authentication request from Tap."
248
258
  }
@@ -150,7 +150,7 @@
150
150
  "signup_email_placeholder": "Your Email address",
151
151
  "signup_enter_mobile": "Your mobile number",
152
152
  "signup_generic_error": "Something went wrong! Please try again later.",
153
- "signup_instagram_placeholder": "mybusiness",
153
+ "signup_instagram_placeholder": "Enter your Instagram handle",
154
154
  "signup_invalid_iqama_id_format": "May you please verify the entered identification number. (Note - Saudi Iqama's start with {{number}})",
155
155
  "signup_invalid_national_id": "May you please verify the entered identification number",
156
156
  "signup_invalid_national_id_format": "May you please verify the entered identification number. (Note - Saudi national IDs start with {{number}})",
@@ -158,9 +158,9 @@
158
158
  "signup_merchant_name_label": "Full name",
159
159
  "signup_merchant_name_placeholder": "Full name",
160
160
  "signup_select_country": "Your country of business",
161
- "signup_twitter_placeholder": "mybusiness",
161
+ "signup_twitter_placeholder": "Enter your Twitter handle",
162
162
  "signup_user_not_exists_error": "May you please verify the entered user.",
163
- "signup_website_placeholder": "www.mybusiness.com",
163
+ "signup_website_placeholder": "Enter your website URL",
164
164
  "signup_welcoming": "Hello {{username}},",
165
165
  "signup_welcoming_hi": "Hello,",
166
166
  "start_with_number": "May you please verify the entered mobile. (Note - mobile numbers start with {{number}})",
@@ -264,5 +264,15 @@
264
264
  "reset_password_success_title": "We sent you an email",
265
265
  "reset_password_success_description": "Check your email to reset your password.",
266
266
  "license_name_label": "License Name",
267
- "email_button_label": "Continue with Email"
267
+ "email_button_label": "Continue with Email",
268
+ "apple_store_placeholder": "Enter your app name (iOS)",
269
+ "play_store_placeholder": "Enter your app name (Google Play Store)",
270
+ "physical_store_placeholder": "Enter your store address or Google Map URL",
271
+ "call_center_placeholder": "Enter your Call Center number",
272
+ "back": "Back",
273
+ "civil_id_placeholder": "28xxxxxxxx53",
274
+ "enter_civil_id": "Please enter your civil ID",
275
+ "invalid_civil_id": "Please enter valid civil ID",
276
+ "authenticate_kuwait_mobile_title": "Authenticate with Kuwait Mobile ID app",
277
+ "authenticate_kuwait_mobile_description": "Please go to your Kuwait Mobile ID app and accept the authentication request from Tap."
268
278
  }
@@ -9,5 +9,8 @@ export interface AnimationFlowProps {
9
9
  loading?: boolean;
10
10
  error?: string | null;
11
11
  screenId?: string;
12
+ animationType?: 'slide' | 'fade' | 'collapse';
13
+ onClose?: () => void;
14
+ onConfirm?: () => void;
12
15
  }
13
- export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin, screenId }: AnimationFlowProps): JSX.Element;
16
+ export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm }: AnimationFlowProps): JSX.Element;
@@ -10,16 +10,14 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { useTheme } from '@mui/material/styles';
14
- import useMediaQuery from '@mui/material/useMediaQuery';
13
+ import { useScreen } from '@hooks';
15
14
  import Dialog from './Dialog';
16
15
  import BottomSheet from './BottomSheet';
17
16
  import Loader from './Loader';
18
17
  import Error from './Error';
19
18
  export default function AnimationFlow(_a) {
20
- var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId;
21
- var theme = useTheme();
22
- var matches = useMediaQuery(theme.breakpoints.down(breakpoint || 'sm'));
19
+ var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm;
20
+ var small = useScreen(breakpoint).small;
23
21
  if (loading) {
24
22
  return _jsx(Loader, {});
25
23
  }
@@ -27,10 +25,10 @@ export default function AnimationFlow(_a) {
27
25
  return _jsx(Error, { error: error });
28
26
  }
29
27
  if (type === 'PUPOP') {
30
- return (_jsx(Dialog, __assign({ footer: footer, open: open, isTapOrigin: isTapOrigin }, { children: children })));
28
+ return (_jsx(Dialog, __assign({ onClose: onClose, onConfirm: onConfirm, footer: footer, open: open, isTapOrigin: isTapOrigin, animationType: animationType }, { children: children })));
31
29
  }
32
30
  if (type === 'BOTTOMSHEET') {
33
31
  return _jsx(BottomSheet, __assign({ open: open }, { children: children }));
34
32
  }
35
- return matches ? (_jsx(BottomSheet, __assign({ open: open, screenId: screenId }, { children: children }))) : (_jsx(Dialog, __assign({ open: open, footer: footer, isTapOrigin: isTapOrigin }, { children: children })));
33
+ return small ? (_jsx(BottomSheet, __assign({ open: open, screenId: screenId }, { children: children }))) : (_jsx(Dialog, __assign({ onClose: onClose, onConfirm: onConfirm, open: open, footer: footer, isTapOrigin: isTapOrigin, animationType: animationType }, { children: children })));
36
34
  }
@@ -41,7 +41,8 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
41
41
  width: '100vw'
42
42
  },
43
43
  '[data-rsbs-overlay]': {
44
- backgroundColor: theme.palette.background.paper
44
+ backgroundColor: theme.palette.background.paper,
45
+ zIndex: 9999
45
46
  },
46
47
  '[data-rsbs-scroll]': {
47
48
  '&::-webkit-scrollbar': {
@@ -6,6 +6,9 @@ export interface DialogProps extends MUIDialogProps {
6
6
  children: React.ReactNode;
7
7
  footer?: React.ReactNode;
8
8
  transitionDuration?: number;
9
+ animationType?: 'slide' | 'fade' | 'collapse';
10
+ onClose?: () => void;
11
+ onConfirm?: () => void;
9
12
  }
10
- declare const _default: React.MemoExoticComponent<({ open, children, footer, transitionDuration, isTapOrigin, ...rest }: DialogProps) => JSX.Element>;
13
+ declare const _default: React.MemoExoticComponent<({ open, children, footer, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, ...rest }: DialogProps) => JSX.Element>;
11
14
  export default _default;
@@ -27,12 +27,13 @@ import DialogContent from '@mui/material/DialogContent';
27
27
  import Paper from '@mui/material/Paper';
28
28
  import Box from '@mui/material/Box';
29
29
  import { styled } from '@mui/material/styles';
30
- import { ICONS_NAMES } from '../../constants';
31
- import { useLanguage } from '../../hooks';
30
+ import { DIALOG_ID, ICONS_NAMES } from '@constants';
31
+ import { useLanguage } from '@hooks';
32
32
  import Slide from '../Slide';
33
33
  import LogoBadge from '../LogoBadge';
34
34
  import Icon from '../Icon';
35
35
  import Collapse from '../Collapse';
36
+ import DialogContainer from '@features/shared/Dialog';
36
37
  var Transition = React.forwardRef(function Transition(props, ref) {
37
38
  return _jsx(Slide, __assign({ direction: 'up', ref: ref }, props));
38
39
  });
@@ -92,14 +93,18 @@ var LogoIconStyled = styled(Icon)(function (_a) {
92
93
  });
93
94
  });
94
95
  var Dialog = function (_a) {
95
- var open = _a.open, children = _a.children, footer = _a.footer, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, rest = __rest(_a, ["open", "children", "footer", "transitionDuration", "isTapOrigin"]);
96
+ var open = _a.open, children = _a.children, footer = _a.footer, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, rest = __rest(_a, ["open", "children", "footer", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm"]);
96
97
  var isAr = useLanguage().isAr;
97
- return (_jsxs(MuiDialog, __assign({ PaperProps: {
98
+ var animation = {};
99
+ if (animationType === 'slide') {
100
+ Object.assign(animation, { TransitionComponent: Transition });
101
+ }
102
+ return (_jsxs(MuiDialog, __assign({ id: DIALOG_ID, PaperProps: {
98
103
  elevation: 0
99
104
  }, sx: {
100
105
  '& .MuiDialog-paper': {
101
106
  overflowY: 'visible'
102
107
  }
103
- }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, TransitionComponent: Transition, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, { children: [_jsxs(DialogContentStyled, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: ICONS_NAMES.LOGO_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) })] })), children] }), footer] })));
108
+ }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: ICONS_NAMES.LOGO_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) })] })), children] }) })), footer] })));
104
109
  };
105
110
  export default React.memo(Dialog);
@@ -27,10 +27,10 @@ import 'react-calendar/dist/Calendar.css';
27
27
  import Box from '@mui/material/Box';
28
28
  import { styled } from '@mui/material/styles';
29
29
  import Divider from '@mui/material/Divider';
30
- import Collapse from '../Collapse';
31
- import ExpandIcon from '../ExpandIcon';
30
+ import Collapse from '@components/Collapse';
31
+ import ExpandIcon from '@components/ExpandIcon';
32
32
  import CalendarTodayOutlined from '@mui/icons-material/CalendarTodayOutlined';
33
- import { scrollDown, scrollUp } from '../../utils';
33
+ import { scrollDown, scrollUp } from '@utils';
34
34
  import Input from '../Input';
35
35
  import Text from '../Text';
36
36
  import './customStyle.css';
@@ -1,7 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  interface DragAndDropProps {
3
3
  title: string;
4
+ subTitle: string;
5
+ description: string;
6
+ uploadingTitle: string;
7
+ successTitle: string;
8
+ error?: string;
9
+ uploading?: boolean;
10
+ uploadSuccess?: boolean;
11
+ fileExists: boolean;
4
12
  onSuccess?: (files: File) => void;
5
13
  }
6
- declare const DragAndDrop: ({ title, onSuccess }: DragAndDropProps) => JSX.Element;
14
+ declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, uploading, fileExists, uploadSuccess, onSuccess }: DragAndDropProps) => JSX.Element;
7
15
  export default DragAndDrop;
@@ -9,30 +9,135 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import React from 'react';
13
14
  import Box from '@mui/material/Box';
14
15
  import { alpha, styled } from '@mui/material/styles';
15
- import Input from '../Input';
16
- import Text from '../Text';
16
+ import Input from '@components/Input';
17
+ import Text from '@components/Text';
17
18
  import { useDropzone } from 'react-dropzone';
18
- var BoxStyled = styled(Box)(function (_a) {
19
- var theme = _a.theme;
20
- return (__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular, background: theme.palette.background.default, padding: theme.spacing(1.5, 2.5, 1.5), border: "1px dashed ".concat(alpha(theme.palette.divider, 0.8)), width: '50%', cursor: 'pointer' }));
19
+ import Icon from '@src/components/Icon';
20
+ import { ICONS_NAMES } from '@src/constants';
21
+ import { CircularProgress } from '@src/components/ProgressBar';
22
+ import Collapse from '@src/components/Collapse';
23
+ import Fade from '@mui/material/Fade';
24
+ var BoxStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'active'; } })(function (_a) {
25
+ var theme = _a.theme, active = _a.active;
26
+ return (__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular, background: theme.palette.background.default, paddingInline: theme.spacing(2.5), border: "2px dashed ".concat(active ? theme.palette.primary.main : alpha(theme.palette.divider, 0.8)), width: '350px', height: '158px', cursor: 'default', display: 'flex', justifyContent: 'center', alignItems: 'center', borderRadius: theme.spacing(2.5) }));
21
27
  });
22
28
  var UploadInputStyled = styled(Input)(function () { return ({
23
29
  display: 'none'
24
30
  }); });
31
+ var CenterBoxStyled = styled(Box)(function () { return ({
32
+ display: 'flex',
33
+ justifyContent: 'center',
34
+ alignItems: 'center'
35
+ }); });
36
+ var IconStyled = styled(Icon)(function (_a) {
37
+ var theme = _a.theme;
38
+ return ({
39
+ width: theme.spacing(11.25),
40
+ height: theme.spacing(10),
41
+ cursor: 'pointer'
42
+ });
43
+ });
44
+ var DoneIconStyled = styled(Icon)(function (_a) {
45
+ var theme = _a.theme;
46
+ return ({
47
+ width: theme.spacing(6.75),
48
+ height: theme.spacing(6.75),
49
+ cursor: 'pointer'
50
+ });
51
+ });
52
+ var VerticalCenterBox = styled(Box)(function (_a) {
53
+ var theme = _a.theme;
54
+ return ({
55
+ display: 'flex',
56
+ justifyContent: 'center',
57
+ flexDirection: 'column',
58
+ alignItems: 'center'
59
+ });
60
+ });
61
+ var DescTextStyled = styled(Text)(function (_a) {
62
+ var theme = _a.theme;
63
+ return ({
64
+ fontSize: theme.spacing(1.5),
65
+ width: theme.spacing(27.5),
66
+ wordBreak: 'break-all',
67
+ marginBlockStart: theme.spacing(1),
68
+ marginBlockEnd: theme.spacing(0)
69
+ });
70
+ });
71
+ var SubTitleStyled = styled(Text)(function (_a) {
72
+ var theme = _a.theme;
73
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.primary.main, marginInlineStart: theme.spacing(0.5) }));
74
+ });
75
+ var WarningIconStyled = styled(Icon)(function (_a) {
76
+ var theme = _a.theme;
77
+ return ({
78
+ width: theme.spacing(1.625),
79
+ height: theme.spacing(1.625),
80
+ marginInline: theme.spacing(0.5)
81
+ });
82
+ });
83
+ var DropFileIcon = styled(Icon)(function (_a) {
84
+ var theme = _a.theme;
85
+ return ({
86
+ width: theme.spacing(9.375),
87
+ height: theme.spacing(9.375),
88
+ zIndex: 2,
89
+ position: 'absolute',
90
+ right: 0,
91
+ marginInline: theme.spacing(-1.25)
92
+ });
93
+ });
94
+ var WarningContainer = styled(Box)(function (_a) {
95
+ var theme = _a.theme;
96
+ return (__assign({ background: theme.palette.warning.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', display: 'flex', justifyContent: 'space-around', borderColor: theme.palette.warning.main, color: theme.palette.warning.light, padding: theme.spacing(0.5, 1), borderRadius: theme.spacing(12.5) }, theme.typography.caption));
97
+ });
25
98
  var DragAndDrop = function (_a) {
26
- var title = _a.title, onSuccess = _a.onSuccess;
27
- var _b = useDropzone({
99
+ var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess;
100
+ var _b = React.useState(1), progress = _b[0], setProgress = _b[1];
101
+ var _c = React.useState(false), dragActive = _c[0], setDragActive = _c[1];
102
+ var _d = React.useState(false), showDone = _d[0], setShowDone = _d[1];
103
+ var _e = useDropzone({
28
104
  maxFiles: 1,
29
105
  noKeyboard: true,
30
106
  noClick: false,
31
107
  multiple: false,
108
+ onDragOver: function () {
109
+ if (!dragActive)
110
+ setDragActive(true);
111
+ },
112
+ onDragLeave: function () {
113
+ setDragActive(false);
114
+ },
32
115
  onDrop: function (files) {
33
116
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files === null || files === void 0 ? void 0 : files[0]);
34
117
  }
35
- }), getRootProps = _b.getRootProps, getInputProps = _b.getInputProps;
36
- return (_jsxs(BoxStyled, __assign({}, getRootProps({ className: 'dropzone' }), { children: [_jsx(Text, __assign({ sx: { fontSize: '12px' } }, { children: title })), _jsx(UploadInputStyled, { inputProps: __assign({}, getInputProps()) })] })));
118
+ }), getRootProps = _e.getRootProps, getInputProps = _e.getInputProps;
119
+ React.useEffect(function () {
120
+ setDragActive(false);
121
+ if (uploadSuccess) {
122
+ setShowDone(true);
123
+ setTimeout(function () {
124
+ setProgress(100);
125
+ setShowDone(false);
126
+ }, 500);
127
+ }
128
+ else if (uploading) {
129
+ var timer_1 = setInterval(function () {
130
+ setProgress(function (prevProgress) { return (prevProgress >= 75 ? 1 : prevProgress + 25); });
131
+ }, 800);
132
+ return function () {
133
+ clearInterval(timer_1);
134
+ };
135
+ }
136
+ }, [uploading]);
137
+ React.useEffect(function () {
138
+ if (!fileExists)
139
+ setProgress(25);
140
+ }, [fileExists]);
141
+ return (_jsx(Box, __assign({ id: 'upload-container' }, { children: _jsxs(BoxStyled, __assign({ active: dragActive }, getRootProps({ className: 'dropzone' }), { children: [_jsx(Fade, __assign({ in: (!uploading && !uploadSuccess) || !fileExists, unmountOnExit: true, timeout: 100 }, { children: _jsxs(Box, { children: [_jsx(CenterBoxStyled, { children: _jsx(IconStyled, { src: dragActive ? ICONS_NAMES.ACTIVE_UPLOAD_ICON : ICONS_NAMES.UPLOAD_ICON }) }), _jsxs(VerticalCenterBox, __assign({ sx: { marginBlockEnd: '20px' } }, { children: [_jsxs(CenterBoxStyled, { children: [_jsx(Text, __assign({ sx: { fontSize: '16px' } }, { children: title })), _jsx(SubTitleStyled, { children: subTitle })] }), _jsx(DescTextStyled, { children: description }), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsxs(WarningContainer, { children: [_jsx(WarningIconStyled, { src: ICONS_NAMES.WARNING_ICON }), _jsx(Text, { children: error })] }) }))] })), _jsx(UploadInputStyled, { inputProps: __assign({}, getInputProps()) })] }) })), _jsx(CenterBoxStyled, { children: showDone ? (_jsxs(VerticalCenterBox, { children: [_jsx(DoneIconStyled, { src: ICONS_NAMES.DONE_ICON }), _jsx(Text, { children: successTitle })] })) : uploading ? (_jsxs(VerticalCenterBox, { children: [_jsx(CircularProgress, { value: progress, size: 54 }), _jsx(Text, { children: uploadingTitle })] })) : (_jsx(_Fragment, {})) }), _jsx(Fade, __assign({ unmountOnExit: true, timeout: 100, in: dragActive }, { children: _jsx(DropFileIcon, { src: ICONS_NAMES.DROP_FILE_ICON }) }))] })) })));
37
142
  };
38
143
  export default DragAndDrop;
@@ -13,8 +13,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { styled } from '@mui/material/styles';
14
14
  import React from 'react';
15
15
  import Box from '@mui/material/Box';
16
- import Input from '../../components/Input';
17
- import Text from '../Text';
16
+ import Input from '@src/components/Input';
17
+ import Text from '@components/Text';
18
18
  var UploadInputStyled = styled(Input)(function () { return ({
19
19
  display: 'none'
20
20
  }); });
@@ -23,10 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
- import Text from '../Text';
26
+ import Text from '@components/Text';
27
27
  import Box from '@mui/material/Box';
28
- import Icon from '../Icon';
29
- import { useLanguage } from '../../hooks';
28
+ import Icon from '@components/Icon';
29
+ import { useLanguage } from '@hooks';
30
30
  var FooterStyled = styled(Box)(function (_a) {
31
31
  var theme = _a.theme;
32
32
  return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import React, { memo } from 'react';
25
25
  import Input from '@mui/material/Input';
26
- import Collapse from '../Collapse';
27
- import Warning from '../Warning';
26
+ import Collapse from '@components/Collapse';
27
+ import Warning from '@components/Warning';
28
28
  import { alpha, styled } from '@mui/material/styles';
29
29
  var InputStyled = styled(Input)(function (_a) {
30
30
  var theme = _a.theme;