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

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 (553) hide show
  1. package/build/@types/app.d.ts +42 -4
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +4 -0
  4. package/build/@types/form.d.ts +11 -1
  5. package/build/@types/redux.d.ts +1 -0
  6. package/build/api/account.d.ts +4 -1
  7. package/build/api/account.js +15 -1
  8. package/build/api/auth.d.ts +35 -20
  9. package/build/api/auth.js +1 -1
  10. package/build/api/axios.js +1 -2
  11. package/build/api/data.d.ts +4 -17
  12. package/build/api/data.js +5 -45
  13. package/build/api/entity.d.ts +3 -2
  14. package/build/api/entity.js +12 -4
  15. package/build/api/firebase.js +68 -8
  16. package/build/api/index.d.ts +14 -25
  17. package/build/api/lead.d.ts +16 -3
  18. package/build/api/lead.js +16 -0
  19. package/build/api/user.d.ts +7 -0
  20. package/build/api/user.js +9 -1
  21. package/build/app/rootReducer.d.ts +1 -0
  22. package/build/app/rootReducer.js +3 -1
  23. package/build/app/settings.js +15 -15
  24. package/build/app/store.d.ts +2 -0
  25. package/build/assets/locales/ar.json +353 -151
  26. package/build/assets/locales/en.json +349 -150
  27. package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -5
  28. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  29. package/build/components/AnimationFlow/BottomSheet.d.ts +5 -2
  30. package/build/components/AnimationFlow/BottomSheet.js +43 -14
  31. package/build/components/AnimationFlow/Dialog.d.ts +4 -3
  32. package/build/components/AnimationFlow/Dialog.js +5 -3
  33. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  34. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  35. package/build/components/ArabicDatePicker/style.css +32 -3
  36. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  37. package/build/components/DatePicker/DatePicker.js +2 -2
  38. package/build/components/Footer/Footer.js +2 -1
  39. package/build/components/Input/Input.js +1 -1
  40. package/build/components/Providers/ThemeProvider.js +3 -3
  41. package/build/components/Tooltip/Tooltip.js +1 -1
  42. package/build/constants/api.d.ts +5 -7
  43. package/build/constants/api.js +11 -15
  44. package/build/constants/app.d.ts +39 -0
  45. package/build/constants/app.js +345 -35
  46. package/build/constants/assets.d.ts +3 -0
  47. package/build/constants/assets.js +4 -1
  48. package/build/constants/dummy.d.ts +4 -219
  49. package/build/constants/dummy.js +64 -6194
  50. package/build/constants/flows.d.ts +26 -0
  51. package/build/constants/flows.js +27 -0
  52. package/build/constants/index.d.ts +1 -0
  53. package/build/constants/index.js +1 -0
  54. package/build/constants/validation.d.ts +3 -0
  55. package/build/constants/validation.js +3 -0
  56. package/build/features/app/auth/authStore.d.ts +29 -8
  57. package/build/features/app/auth/authStore.js +495 -149
  58. package/build/features/app/bank/bankStore.d.ts +13 -18
  59. package/build/features/app/bank/bankStore.js +186 -153
  60. package/build/features/app/board/boardStore.d.ts +5 -1
  61. package/build/features/app/board/boardStore.js +82 -51
  62. package/build/features/app/brand/brandStore.d.ts +17 -33
  63. package/build/features/app/brand/brandStore.js +254 -257
  64. package/build/features/app/business/businessStore.d.ts +37 -15
  65. package/build/features/app/business/businessStore.js +443 -235
  66. package/build/features/app/connect/connectStore.d.ts +33 -5
  67. package/build/features/app/connect/connectStore.js +355 -120
  68. package/build/features/app/connectExpress/connectExpressStore.d.ts +56 -27
  69. package/build/features/app/connectExpress/connectExpressStore.js +676 -392
  70. package/build/features/app/entity/entityStore.d.ts +20 -36
  71. package/build/features/app/entity/entityStore.js +204 -238
  72. package/build/features/app/individual/individualStore.d.ts +18 -34
  73. package/build/features/app/individual/individualStore.js +269 -292
  74. package/build/features/app/kyc/kycStore.d.ts +67 -0
  75. package/build/features/app/kyc/kycStore.js +432 -0
  76. package/build/features/app/password/passwordStore.d.ts +33 -18
  77. package/build/features/app/password/passwordStore.js +260 -219
  78. package/build/features/app/signIn/signInStore.js +19 -15
  79. package/build/features/app/tax/taxStore.d.ts +13 -7
  80. package/build/features/app/tax/taxStore.js +170 -136
  81. package/build/features/auth/Auth.d.ts +5 -6
  82. package/build/features/auth/Auth.js +40 -15
  83. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  84. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  85. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  86. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  87. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  88. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  89. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  90. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  91. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  92. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  93. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  94. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  95. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  96. package/build/features/auth/screens/DOB/index.js +2 -0
  97. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  98. package/build/features/auth/screens/DOB/validation.js +4 -0
  99. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  100. package/build/features/auth/screens/Email/Email.js +57 -0
  101. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  102. package/build/features/auth/screens/Email/EmailField.js +52 -0
  103. package/build/features/auth/screens/Email/index.d.ts +3 -0
  104. package/build/features/auth/screens/Email/index.js +2 -0
  105. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  106. package/build/features/auth/screens/Email/validation.js +4 -0
  107. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  108. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  109. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  110. package/build/features/auth/screens/EmailSent/index.js +2 -0
  111. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  112. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  113. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  114. package/build/features/auth/screens/MigratingData/index.js +2 -0
  115. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  116. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  117. package/build/features/auth/screens/Mobile/validation.js +11 -3
  118. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  119. package/build/features/auth/screens/NID/NID.js +7 -43
  120. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  121. package/build/features/auth/screens/NID/validation.js +0 -1
  122. package/build/features/auth/screens/OTP/OTP.js +41 -10
  123. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  124. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  125. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  126. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  127. package/build/features/auth/screens/OperatorError/index.js +2 -0
  128. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  129. package/build/features/auth/screens/Password/Password.js +61 -0
  130. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  131. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  132. package/build/features/auth/screens/Password/index.d.ts +3 -0
  133. package/build/features/auth/screens/Password/index.js +2 -0
  134. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  135. package/build/features/auth/screens/Password/validation.js +4 -0
  136. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  137. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  138. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  139. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  140. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  141. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  142. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  143. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  144. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  145. package/build/features/bank/Bank.d.ts +5 -1
  146. package/build/features/bank/Bank.js +22 -9
  147. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  148. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  149. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  150. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  151. package/build/features/bank/screens/OperatorError/index.js +2 -0
  152. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  153. package/build/features/bank/screens/Verify/Verify.js +7 -6
  154. package/build/features/board/Board.d.ts +2 -0
  155. package/build/features/board/Board.js +24 -13
  156. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  157. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  158. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  159. package/build/features/board/screens/OperatorError/index.js +2 -0
  160. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  161. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  162. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  163. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  164. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  165. package/build/features/board/screens/Verify/Verify.js +3 -2
  166. package/build/features/brand/Brand.d.ts +5 -1
  167. package/build/features/brand/Brand.js +22 -9
  168. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +5 -5
  169. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  170. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  171. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  172. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  173. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  174. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  175. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  176. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  177. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  178. package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
  179. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  180. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  181. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  182. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  183. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  184. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  185. package/build/features/brand/screens/OperatorError/index.js +2 -0
  186. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  187. package/build/features/brand/screens/Verify/Verify.js +3 -2
  188. package/build/features/business/Business.js +20 -12
  189. package/build/features/business/screens/Activities/Activities.js +26 -9
  190. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  191. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  192. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  193. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  194. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  195. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  196. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  197. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -8
  198. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  199. package/build/features/business/screens/Customers/Customers.js +50 -10
  200. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  201. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  202. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  203. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  204. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  205. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  206. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  207. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  208. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  209. package/build/features/business/screens/Customers/validation.js +3 -8
  210. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  211. package/build/features/business/screens/DOB/DOB.js +45 -0
  212. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  213. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  214. package/build/features/business/screens/DOB/index.d.ts +3 -0
  215. package/build/features/business/screens/DOB/index.js +2 -0
  216. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  217. package/build/features/business/screens/DOB/validation.js +4 -0
  218. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  219. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  220. package/build/features/business/screens/IDBOD/validation.js +0 -1
  221. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  222. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  223. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  224. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  225. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  226. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  227. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  228. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  229. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  230. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  231. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  232. package/build/features/business/screens/OperatorError/index.js +2 -0
  233. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  234. package/build/features/business/screens/Verify/Verify.js +15 -4
  235. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  236. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  237. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  238. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  239. package/build/features/connect/Connect.d.ts +5 -1
  240. package/build/features/connect/Connect.js +16 -9
  241. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  242. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  243. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  244. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  245. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  246. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  247. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  248. package/build/features/connect/screens/DOB/index.js +2 -0
  249. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  250. package/build/features/connect/screens/DOB/validation.js +4 -0
  251. package/build/features/connect/screens/Individual/Email.js +1 -3
  252. package/build/features/connect/screens/Individual/Individual.js +11 -5
  253. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  254. package/build/features/connect/screens/Individual/validation.js +11 -3
  255. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  256. package/build/features/connect/screens/Merchant/validation.js +2 -2
  257. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  258. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  259. package/build/features/connect/screens/Mobile/validation.js +11 -3
  260. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  261. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  262. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  263. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  264. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  265. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  266. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  267. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  268. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  269. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  270. package/build/features/connect/screens/NID/NID.js +5 -11
  271. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  272. package/build/features/connect/screens/NID/validation.js +0 -1
  273. package/build/features/connect/screens/OTP/OTP.js +6 -6
  274. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  275. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  276. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  277. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  278. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  279. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  280. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  281. package/build/features/connectExpress/ConnectExpress.js +62 -39
  282. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  283. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  284. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  285. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  286. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  287. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  288. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  289. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  290. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  291. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  292. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  293. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  294. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  295. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  296. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  297. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  298. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  299. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  300. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  301. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  302. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  303. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
  304. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
  305. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
  306. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
  307. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  308. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  309. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  310. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  311. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  312. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  313. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  314. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  315. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  316. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  317. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  318. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  319. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  320. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  321. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  322. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  323. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  324. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  325. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  326. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  327. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  328. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  329. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  330. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  331. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  332. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  333. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  334. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  335. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  336. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  337. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  338. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  339. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  340. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  341. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  342. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  343. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  344. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +41 -0
  345. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  346. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  347. package/build/features/entity/Entity.d.ts +4 -1
  348. package/build/features/entity/Entity.js +22 -9
  349. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  350. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  351. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  352. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  353. package/build/features/entity/screens/EntityName/EntityName.js +31 -14
  354. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +5 -5
  355. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  356. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  357. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  358. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  359. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  360. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  361. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  362. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  363. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  364. package/build/features/entity/screens/EntityName/validation.js +1 -10
  365. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  366. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  367. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  368. package/build/features/entity/screens/OperatorError/index.js +2 -0
  369. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  370. package/build/features/entity/screens/Verify/Verify.js +3 -2
  371. package/build/features/featuresScreens.d.ts +1 -0
  372. package/build/features/featuresScreens.js +211 -13
  373. package/build/features/individual/Individual.d.ts +4 -1
  374. package/build/features/individual/Individual.js +22 -9
  375. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  376. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  377. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  378. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  379. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  380. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  381. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  382. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  383. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  384. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  385. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  386. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  387. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
  388. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  389. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  390. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  391. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  392. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  393. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  394. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  395. package/build/features/individual/screens/OperatorError/index.js +2 -0
  396. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  397. package/build/features/individual/screens/Verify/Verify.js +3 -2
  398. package/build/features/kyc/KYC.d.ts +11 -0
  399. package/build/features/kyc/KYC.js +99 -0
  400. package/build/features/kyc/index.d.ts +1 -0
  401. package/build/features/kyc/index.js +1 -0
  402. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  403. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  404. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  405. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  406. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  407. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  408. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  409. package/build/features/kyc/screens/Loading/index.js +2 -0
  410. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  411. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  412. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  413. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  414. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  415. package/build/features/kyc/screens/Success/Success.js +32 -0
  416. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  417. package/build/features/kyc/screens/Success/index.js +2 -0
  418. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  419. package/build/features/kyc/screens/Terms/Header.js +36 -0
  420. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  421. package/build/features/kyc/screens/Terms/Terms.js +87 -0
  422. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  423. package/build/features/kyc/screens/Terms/index.js +2 -0
  424. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  425. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  426. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  427. package/build/features/kyc/screens/TokenError/index.js +2 -0
  428. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  429. package/build/features/kyc/screens/Users/Users.js +76 -0
  430. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  431. package/build/features/kyc/screens/Users/index.js +2 -0
  432. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  433. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  434. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  435. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  436. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  437. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  438. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  439. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  440. package/build/features/password/Password.d.ts +4 -1
  441. package/build/features/password/Password.js +88 -31
  442. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  443. package/build/features/password/screens/OTP/OTP.js +3 -3
  444. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  445. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  446. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  447. package/build/features/password/screens/OperatorError/index.js +2 -0
  448. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  449. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  450. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  451. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  452. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  453. package/build/features/password/screens/Verify/Verify.js +7 -6
  454. package/build/features/shared/Address/CountryList.d.ts +5 -5
  455. package/build/features/shared/Address/InputSelect.d.ts +5 -5
  456. package/build/features/shared/Background/Background.js +1 -1
  457. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  458. package/build/features/shared/Button/Button.js +3 -1
  459. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  460. package/build/features/shared/Button/FlowsButtons.js +18 -4
  461. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  462. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  463. package/build/features/shared/Button/index.d.ts +2 -2
  464. package/build/features/shared/Button/index.js +2 -2
  465. package/build/features/shared/Calender/Calender.d.ts +2 -1
  466. package/build/features/shared/Calender/Calender.js +3 -3
  467. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  468. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  469. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  470. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  471. package/build/features/shared/Input/Input.d.ts +2 -2
  472. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  473. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  474. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  475. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  476. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  477. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  478. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  479. package/build/features/shared/NafathVerification/index.js +2 -0
  480. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  481. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  482. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  483. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  484. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  485. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  486. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  487. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  488. package/build/features/signIn/SignIn.js +18 -7
  489. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  490. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  491. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  492. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  493. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  494. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  495. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  496. package/build/features/tax/Tax.d.ts +4 -1
  497. package/build/features/tax/Tax.js +22 -9
  498. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  499. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  500. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  501. package/build/features/tax/screens/OperatorError/index.js +2 -0
  502. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  503. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  504. package/build/features/tax/screens/Verify/Verify.js +7 -6
  505. package/build/hooks/index.d.ts +3 -0
  506. package/build/hooks/index.js +3 -0
  507. package/build/hooks/useAppConfig.d.ts +1 -1
  508. package/build/hooks/useAppConfig.js +2 -2
  509. package/build/hooks/useAppDispatch.d.ts +1 -0
  510. package/build/hooks/useAppTheme.js +4 -3
  511. package/build/hooks/useCountDown.d.ts +10 -0
  512. package/build/hooks/useCountDown.js +17 -0
  513. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  514. package/build/hooks/useFormDirtyCheck.js +66 -0
  515. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  516. package/build/hooks/useSanitizedTranslation.js +15 -0
  517. package/build/hooks/useVerifyToken.d.ts +4 -2
  518. package/build/hooks/useVerifyToken.js +9 -4
  519. package/build/index.css +360 -120
  520. package/build/index.d.ts +3 -2
  521. package/build/index.js +4 -2
  522. package/build/theme/components.js +7 -0
  523. package/build/theme/palette.js +2 -1
  524. package/build/theme/shadows.js +1 -1
  525. package/build/theme/theme.d.ts +1 -1
  526. package/build/theme/theme.js +2 -2
  527. package/build/utils/array.js +2 -2
  528. package/build/utils/common.d.ts +1 -0
  529. package/build/utils/common.js +16 -3
  530. package/build/utils/error.d.ts +1 -0
  531. package/build/utils/error.js +3 -0
  532. package/build/utils/object.d.ts +1 -0
  533. package/build/utils/object.js +3 -0
  534. package/build/utils/string.d.ts +6 -2
  535. package/build/utils/string.js +28 -3
  536. package/build/utils/validation.d.ts +2 -0
  537. package/build/utils/validation.js +6 -0
  538. package/package.json +3 -4
  539. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  540. package/build/features/business/screens/OTP/OTP.js +0 -90
  541. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  542. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  543. package/build/features/business/screens/OTP/index.d.ts +0 -3
  544. package/build/features/business/screens/OTP/index.js +0 -2
  545. package/build/features/business/screens/OTP/validation.js +0 -4
  546. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  547. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  548. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  549. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  550. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  551. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  552. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  553. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -15,12 +15,16 @@ export interface AnimationFlowProps {
15
15
  pointerEvents?: 'auto' | 'none';
16
16
  merchantInfo?: MerchantInfo;
17
17
  isMaturityExpress?: boolean;
18
- showTextLogo?: boolean;
19
- hideFooter?: boolean;
20
- hideMerchantLogo?: boolean;
21
- hideLoaderOverlay?: boolean;
22
18
  animationDirection?: 'left' | 'right' | 'up' | 'down';
23
19
  loaderColor?: string;
24
20
  dialogEdgeFormat?: DialogEdgeFormat;
21
+ features?: {
22
+ poweredBy?: boolean;
23
+ merchantLogo?: boolean;
24
+ switchLanguage?: boolean;
25
+ overlay?: boolean;
26
+ loaderOverlay?: boolean;
27
+ tapTextLogo?: boolean;
28
+ };
25
29
  }
26
- export default function AnimationFlow({ open, children, breakpoint, type, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo, hideFooter, hideMerchantLogo, hideLoaderOverlay, animationDirection, loaderColor, dialogEdgeFormat }: AnimationFlowProps): JSX.Element;
30
+ export default function AnimationFlow({ open, children, breakpoint, type, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, animationDirection, loaderColor, dialogEdgeFormat, features }: AnimationFlowProps): JSX.Element;
@@ -24,10 +24,10 @@ var BoxStyled = styled(Box)(function () { return ({
24
24
  alignItems: 'center'
25
25
  }); });
26
26
  export default function AnimationFlow(_a) {
27
- var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, hideLoaderOverlay = _a.hideLoaderOverlay, animationDirection = _a.animationDirection, loaderColor = _a.loaderColor, dialogEdgeFormat = _a.dialogEdgeFormat;
27
+ var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, animationDirection = _a.animationDirection, loaderColor = _a.loaderColor, dialogEdgeFormat = _a.dialogEdgeFormat, features = _a.features;
28
28
  var small = useScreen(breakpoint).small;
29
29
  if (loading) {
30
- return _jsx(Loader, { color: loaderColor, hideLoaderOverlay: type === 'CONTENT' ? true : hideLoaderOverlay });
30
+ return _jsx(Loader, { color: loaderColor, hideLoaderOverlay: type === 'CONTENT' ? true : (features === null || features === void 0 ? void 0 : features.loaderOverlay) === false });
31
31
  }
32
32
  if (error) {
33
33
  return _jsx(Error, { error: error });
@@ -36,10 +36,10 @@ export default function AnimationFlow(_a) {
36
36
  return (_jsx(Fade, __assign({ in: true }, { children: _jsx(BoxStyled, { children: children }) })));
37
37
  }
38
38
  if (type === 'PUPOP') {
39
- return (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
39
+ return (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, hideTextLogo: (features === null || features === void 0 ? void 0 : features.tapTextLogo) === false, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
40
40
  }
41
41
  if (type === 'BOTTOMSHEET') {
42
- return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo }, { children: children })));
42
+ return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, onClose: onClose, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, hideFooter: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
43
43
  }
44
- return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
44
+ return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, onClose: onClose, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, hideFooter: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, hideTextLogo: (features === null || features === void 0 ? void 0 : features.tapTextLogo) === false, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
45
45
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { BottomSheetProps as MainBottomSheetProps } from 'react-spring-bottom-sheet';
3
3
  import 'react-spring-bottom-sheet/dist/style.css';
4
- import { MerchantInfo } from '../../@types';
4
+ import { DialogEdgeFormat, MerchantInfo } from '../../@types';
5
5
  export interface BottomSheetProps extends MainBottomSheetProps {
6
6
  children: React.ReactNode;
7
7
  open: boolean;
@@ -10,7 +10,10 @@ export interface BottomSheetProps extends MainBottomSheetProps {
10
10
  isMaturityExpress?: boolean;
11
11
  merchantInfo?: MerchantInfo;
12
12
  hideFooter?: boolean;
13
+ hidePoweredBy?: boolean;
13
14
  hideMerchantLogo?: boolean;
15
+ dialogEdgeFormat?: DialogEdgeFormat;
16
+ onClose?: () => void;
14
17
  }
15
- declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, hideFooter, hideMerchantLogo, ...rest }: BottomSheetProps) => JSX.Element>;
18
+ declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, hideFooter, hideMerchantLogo, dialogEdgeFormat, hidePoweredBy, onClose, ...rest }: BottomSheetProps) => JSX.Element>;
16
19
  export default _default;
@@ -28,6 +28,8 @@ import Box from '@mui/material/Box';
28
28
  import 'react-spring-bottom-sheet/dist/style.css';
29
29
  import { ICONS_NAMES } from '../../constants';
30
30
  import { useLanguage } from '../../hooks';
31
+ import Icon from '../Icon';
32
+ import { DialogEdgeFormat } from '../../@types';
31
33
  import { CustomFooter, PoweredByFooter } from '../../features/shared/Footer';
32
34
  import LogoBadge from '../LogoBadge';
33
35
  var LanguageFooterStyled = styled(Box)(function (_a) {
@@ -42,19 +44,18 @@ var LanguageFooterStyled = styled(Box)(function (_a) {
42
44
  });
43
45
  });
44
46
  var BottomSheetStyled = styled(BottomSheet, {
45
- shouldForwardProp: function (prop) { return !['isMaturityExpress', 'languageBarHeight'].includes(prop.toString()); }
47
+ shouldForwardProp: function (prop) { return !['isMaturityExpress', 'languageBarHeight', 'dialogEdgeFormat', 'showPoweredBy'].includes(prop.toString()); }
46
48
  })(function (_a) {
47
- var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress, languageBarHeight = _a.languageBarHeight;
49
+ var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress, languageBarHeight = _a.languageBarHeight, dialogEdgeFormat = _a.dialogEdgeFormat, showPoweredBy = _a.showPoweredBy;
48
50
  return ({
49
51
  '[data-rsbs-header]:before': __assign({ width: '75px', height: '5px' }, (isMaturityExpress && { width: '0px', height: '0px' })),
50
52
  '[data-rsbs-backdrop]': {
51
53
  backgroundColor: 'transparent'
52
54
  },
53
- '[data-rsbs-header]': __assign({ paddingBottom: theme.spacing(6), position: 'absolute', width: '100vw' }, (isMaturityExpress && { display: 'none' })),
54
- '[data-rsbs-overlay]': __assign({ backgroundColor: theme.palette.background.paper, zIndex: 9999, maxHeight: "calc(100vh - ".concat(languageBarHeight, "px)") }, (isMaturityExpress && {
55
- marginBottom: theme.spacing(5.625),
56
- paddingTop: theme.spacing(5)
57
- })),
55
+ '[data-rsbs-header]': __assign({ position: 'absolute', width: '100vw' }, (isMaturityExpress && { display: 'none' })),
56
+ '[data-rsbs-overlay]': __assign(__assign({ backgroundColor: theme.palette.background.paper, zIndex: 9999, maxHeight: "calc(100vh - ".concat(languageBarHeight, "px)"), borderTopLeftRadius: theme.spacing(1.5), borderTopRightRadius: theme.spacing(1.5) }, (isMaturityExpress && __assign(__assign({}, (showPoweredBy && {
57
+ marginBottom: theme.spacing(5.625)
58
+ })), { paddingTop: theme.spacing(5) }))), (dialogEdgeFormat === DialogEdgeFormat.STRAIGHT && { borderTopLeftRadius: theme.spacing(0), borderTopRightRadius: theme.spacing(0) })),
58
59
  '[data-rsbs-scroll]': {
59
60
  '&::-webkit-scrollbar': {
60
61
  width: '0px'
@@ -74,21 +75,49 @@ var FooterStyled = styled(Box)(function (_a) {
74
75
  var theme = _a.theme;
75
76
  return (__assign(__assign({ bottom: theme.spacing(-5.625), position: 'fixed', height: theme.spacing(5.625), display: 'flex' }, theme.typography.caption), { justifyContent: 'center', alignItems: 'center', width: '100vw', background: '#E6E7E9', borderTop: '1px solid rgba(156, 160, 169, 0.3)' }));
76
77
  });
78
+ var CloseIconStyled = styled(Icon)(function (_a) {
79
+ var theme = _a.theme;
80
+ return ({
81
+ width: theme.spacing(3.75),
82
+ height: theme.spacing(3.75),
83
+ cursor: 'pointer'
84
+ });
85
+ });
86
+ var CloseBox = styled(Box)(function (_a) {
87
+ var theme = _a.theme;
88
+ return ({
89
+ display: 'flex',
90
+ justifyContent: 'end',
91
+ marginBlockStart: theme.spacing(2),
92
+ marginInlineEnd: theme.spacing(2),
93
+ direction: theme.direction,
94
+ position: 'absolute',
95
+ right: 0,
96
+ left: 0,
97
+ zIndex: 9999,
98
+ top: 0
99
+ });
100
+ });
77
101
  var BottomSheetComponent = function (_a) {
78
- var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo", "hideFooter", "hideMerchantLogo"]);
102
+ var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, dialogEdgeFormat = _a.dialogEdgeFormat, hidePoweredBy = _a.hidePoweredBy, onClose = _a.onClose, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo", "hideFooter", "hideMerchantLogo", "dialogEdgeFormat", "hidePoweredBy", "onClose"]);
79
103
  var sheetRef = React.useRef(null);
80
104
  var isAr = useLanguage().isAr;
81
105
  var logo = (merchantInfo || {}).logo;
106
+ var handleOnCloseButton = function () {
107
+ onClose && onClose();
108
+ };
82
109
  var getLanguageBarHeight = function () {
83
- var viewportHeight = window.innerHeight;
84
- var documentHeight = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
85
- return documentHeight - viewportHeight + (isMaturityExpress ? 150 : 70);
110
+ return isMaturityExpress && !hideFooter ? 150 : 70;
86
111
  };
87
112
  var getMinHeight = function (maxHeight) {
88
113
  var el = document.getElementById('main-feature-container');
89
114
  var footer = document.getElementById('bottom-sheet-powered_by_footer');
90
115
  var height = el ? el.clientHeight : 0;
91
- var footerHeight = footer ? footer.clientHeight + 20 : 0;
116
+ var footerHeight = 0;
117
+ if (footer)
118
+ footerHeight = footer.clientHeight + 20;
119
+ else if (hidePoweredBy && isMaturityExpress)
120
+ footerHeight = 40;
92
121
  return (height || maxHeight * 0.7) + footerHeight;
93
122
  };
94
123
  React.useEffect(function () {
@@ -102,9 +131,9 @@ var BottomSheetComponent = function (_a) {
102
131
  }, 500);
103
132
  }
104
133
  }, [screenId]);
105
- return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), sibling: hideFooter ? (_jsx(_Fragment, {})) : (_jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) })), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
134
+ return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), dialogEdgeFormat: dialogEdgeFormat, sibling: hideFooter ? (_jsx(_Fragment, {})) : (open && (_jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) }))), isMaturityExpress: isMaturityExpress, showPoweredBy: !hidePoweredBy, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
106
135
  var maxHeight = _a.maxHeight;
107
136
  return [getMinHeight(maxHeight), maxHeight * 0.95];
108
- } }, rest, { children: [isMaturityExpress && !hideMerchantLogo && (_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON })), children, isMaturityExpress && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
137
+ } }, rest, { children: [isMaturityExpress && !hideMerchantLogo && (_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON })), onClose && (_jsx(CloseBox, __assign({ id: 'close-container' }, { children: _jsx(CloseIconStyled, { src: ICONS_NAMES.CLOSE_ICON, onClick: handleOnCloseButton }) }))), children, isMaturityExpress && !hidePoweredBy && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
109
138
  };
110
139
  export default React.memo(BottomSheetComponent);
@@ -13,13 +13,14 @@ export interface DialogProps extends MUIDialogProps {
13
13
  pointerEvents?: 'none' | 'auto';
14
14
  merchantInfo?: MerchantInfo;
15
15
  isMaturityExpress?: boolean;
16
- showTextLogo?: boolean;
17
- hideFooter?: boolean;
16
+ hideTextLogo?: boolean;
17
+ hideLanguage?: boolean;
18
+ hidePoweredBy?: boolean;
18
19
  hideMerchantLogo?: boolean;
19
20
  animationDirection?: 'left' | 'right' | 'up' | 'down';
20
21
  showAsContent?: boolean;
21
22
  sx?: SxProps<Theme>;
22
23
  dialogEdgeFormat?: DialogEdgeFormat;
23
24
  }
24
- declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo, hideFooter, hideMerchantLogo, animationDirection, sx, dialogEdgeFormat, ...rest }: DialogProps) => JSX.Element>;
25
+ declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, hideTextLogo, hideLanguage, hidePoweredBy, hideMerchantLogo, animationDirection, sx, dialogEdgeFormat, ...rest }: DialogProps) => JSX.Element>;
25
26
  export default _default;
@@ -105,7 +105,7 @@ var LanguageFooterStyled = styled(Box, { shouldForwardProp: function (prop) { re
105
105
  });
106
106
  });
107
107
  var Dialog = function (_a) {
108
- var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, _d = _a.animationDirection, animationDirection = _d === void 0 ? 'up' : _d, sx = _a.sx, dialogEdgeFormat = _a.dialogEdgeFormat, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "merchantInfo", "isMaturityExpress", "showTextLogo", "hideFooter", "hideMerchantLogo", "animationDirection", "sx", "dialogEdgeFormat"]);
108
+ var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, hideTextLogo = _a.hideTextLogo, hideLanguage = _a.hideLanguage, hidePoweredBy = _a.hidePoweredBy, hideMerchantLogo = _a.hideMerchantLogo, _d = _a.animationDirection, animationDirection = _d === void 0 ? 'up' : _d, sx = _a.sx, dialogEdgeFormat = _a.dialogEdgeFormat, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "merchantInfo", "isMaturityExpress", "hideTextLogo", "hideLanguage", "hidePoweredBy", "hideMerchantLogo", "animationDirection", "sx", "dialogEdgeFormat"]);
109
109
  var isAr = useLanguage().isAr;
110
110
  var theme = useTheme();
111
111
  var animation = {};
@@ -124,7 +124,9 @@ var Dialog = function (_a) {
124
124
  return (_jsxs(MuiDialog, __assign({ id: DIALOG_ID, PaperProps: {
125
125
  elevation: 0
126
126
  }, sx: __assign({ '& .MuiDialog-paper': __assign({ overflowY: 'visible' }, (dialogEdgeFormat === DialogEdgeFormat.STRAIGHT && { borderRadius: theme.spacing(0) })), '&.MuiDialog-root': {
127
- marginBottom: isMaturityExpress ? '60px' : '0px'
128
- }, pointerEvents: pointerEvents }, sx), hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, (animationDirection && { TransitionProps: { direction: animationDirection } }), { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [!hideMerchantLogo && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), !isMaturityExpress && showTextLogo && (_jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) }))] })), children] })) })), isMaturityExpress ? _jsx(PoweredByFooter, {}) : !hideFooter && _jsx(CustomFooter, {}), !hideFooter && (_jsx(LanguageFooterStyled, __assign({ showLanguage: showLanguage }, { children: _jsx(CustomFooter, {}) })))] })));
127
+ marginBottom: isMaturityExpress && !hideLanguage ? '60px' : '0px'
128
+ }, '& .MuiDialog-container': {
129
+ outline: 'none !important'
130
+ }, pointerEvents: pointerEvents }, sx), hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, (animationDirection && { TransitionProps: { direction: animationDirection } }), { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [!hideMerchantLogo && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), !isMaturityExpress && !hideTextLogo && (_jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) }))] })), children] })) })), isMaturityExpress && !hidePoweredBy ? _jsx(PoweredByFooter, {}) : !isMaturityExpress && !hideLanguage && _jsx(CustomFooter, {}), !hideLanguage && (_jsx(LanguageFooterStyled, __assign({ showLanguage: showLanguage }, { children: _jsx(CustomFooter, {}) })))] })));
129
131
  };
130
132
  export default React.memo(Dialog);
@@ -12,5 +12,5 @@ export interface DatePickerProps extends CalendarProps {
12
12
  isDob?: boolean;
13
13
  isVerified?: boolean;
14
14
  }
15
- declare const _default: React.MemoExoticComponent<({ open, disabled, dir, readOnly, onDateChange, onClick, onDatePicked, value, isDob, isVerified, ...rest }: DatePickerProps) => JSX.Element>;
15
+ declare const _default: React.MemoExoticComponent<({ open, disabled, dir, readOnly, onDateChange, onClick, onDatePicked, value, isDob, isVerified, minDate, maxDate, ...rest }: DatePickerProps) => JSX.Element>;
16
16
  export default _default;
@@ -71,7 +71,7 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
71
71
  });
72
72
  });
73
73
  var DatePicker = function (_a) {
74
- var _b = _a.open, open = _b === void 0 ? false : _b, disabled = _a.disabled, dir = _a.dir, readOnly = _a.readOnly, onDateChange = _a.onDateChange, onClick = _a.onClick, onDatePicked = _a.onDatePicked, value = _a.value, isDob = _a.isDob, isVerified = _a.isVerified, rest = __rest(_a, ["open", "disabled", "dir", "readOnly", "onDateChange", "onClick", "onDatePicked", "value", "isDob", "isVerified"]);
74
+ var _b = _a.open, open = _b === void 0 ? false : _b, disabled = _a.disabled, dir = _a.dir, readOnly = _a.readOnly, onDateChange = _a.onDateChange, onClick = _a.onClick, onDatePicked = _a.onDatePicked, value = _a.value, isDob = _a.isDob, isVerified = _a.isVerified, minDate = _a.minDate, maxDate = _a.maxDate, rest = __rest(_a, ["open", "disabled", "dir", "readOnly", "onDateChange", "onClick", "onDatePicked", "value", "isDob", "isVerified", "minDate", "maxDate"]);
75
75
  var _c = React.useState(), date = _c[0], setDate = _c[1];
76
76
  var _d = React.useState(null), anchor = _d[0], setAnchor = _d[1];
77
77
  var _e = React.useState(open), openCalender = _e[0], setOpenCalender = _e[1];
@@ -111,6 +111,6 @@ var DatePicker = function (_a) {
111
111
  return (_jsxs(Container, __assign({ openCalender: openCalender, disabled: disabled, id: 'arabic-container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? formateDate(date) : '', placeholder: DATE_FORMAT, onClick: function (e) {
112
112
  if (!disabled)
113
113
  toggleCalender(e);
114
- }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({ calendar: arabic, locale: dir === 'rtl' ? arabic_ar : arabic_en, maxDate: rest.maxDate || defaultMax, minDate: defaultMin, format: DATE_FORMAT, onChange: handleOnDateChange, value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), className: 'custom-container' }, rest)), _jsx(Divider, {})] }))] })));
114
+ }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({ calendar: arabic, locale: dir === 'rtl' ? arabic_ar : arabic_en, maxDate: maxDate || defaultMax, minDate: minDate || defaultMin, format: DATE_FORMAT, onChange: handleOnDateChange, value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), className: 'custom-container' }, rest)), _jsx(Divider, {})] }))] })));
115
115
  };
116
116
  export default memo(DatePicker);
@@ -3,6 +3,9 @@
3
3
  width: 100% !important;
4
4
  z-index: 0 !important;
5
5
  }
6
+ .rmdp-day-picker {
7
+ padding-inline: 0px !important;
8
+ }
6
9
 
7
10
  .rmdp-day-picker > div {
8
11
  width: 100%;
@@ -13,6 +16,7 @@
13
16
 
14
17
  .rmdp-calendar {
15
18
  width: 100%;
19
+ padding: 0 !important;
16
20
  padding-bottom: 15px !important;
17
21
  padding-top: 12px !important;
18
22
  }
@@ -22,7 +26,14 @@
22
26
  color: #ffffff !important;
23
27
  background-color: black !important;
24
28
  }
25
-
29
+ .rmdp-week,
30
+ .rmdp-ym {
31
+ justify-content: start !important;
32
+ }
33
+ .rmdp-day span,
34
+ .rmdp-week-day {
35
+ flex: 0 0 14.2857%;
36
+ }
26
37
  .rmdp-week-day {
27
38
  color: #abaeb6 !important;
28
39
  font-weight: 400 !important;
@@ -35,6 +46,9 @@
35
46
  color: #3a4154 !important;
36
47
  /* background: radial-gradient(circle closest-side, #fafafa 0, #fafafa 98%, transparent 100%) !important; */
37
48
  }
49
+ .rmdp-day.rmdp-disabled {
50
+ background-color: #f0f0f0 !important;
51
+ }
38
52
  .rmdp-day.rmdp-selected span:not(.highlight):hover {
39
53
  color: #ffffff !important;
40
54
  background-color: black !important;
@@ -55,10 +69,25 @@
55
69
  margin-bottom: 12px;
56
70
  }
57
71
  .rmdp-day-picker .rmdp-day {
58
- height: 36px !important;
59
- width: 36px !important;
72
+ height: 40px !important;
73
+ width: 40px !important;
74
+ flex: 0 0 14.2857%;
60
75
  }
61
76
  .rmdp-day-picker .rmdp-day span {
62
77
  height: 36px !important;
63
78
  width: 36px !important;
64
79
  }
80
+ .rmdp-month-picker .rmdp-ym .rmdp-day {
81
+ margin: unset;
82
+ }
83
+ .rmdp-month-picker .rmdp-ym .rmdp-day,
84
+ .rmdp-week-day {
85
+ height: 100%;
86
+ }
87
+ .rmdp-year-picker .rmdp-ym .rmdp-day {
88
+ margin: unset;
89
+ }
90
+ .rmdp-year-picker .rmdp-ym .rmdp-day,
91
+ .rmdp-week-day {
92
+ height: 100%;
93
+ }
@@ -13,5 +13,5 @@ export interface DatePickerProps extends CalendarProps {
13
13
  isDob?: boolean;
14
14
  isVerified?: boolean;
15
15
  }
16
- declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, isDob, isVerified, open, ...rest }: DatePickerProps) => JSX.Element>;
16
+ declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, isDob, isVerified, open, minDate, maxDate, ...rest }: DatePickerProps) => JSX.Element>;
17
17
  export default _default;
@@ -67,7 +67,7 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
67
67
  });
68
68
  });
69
69
  var DatePicker = function (_a) {
70
- var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, isDob = _a.isDob, isVerified = _a.isVerified, open = _a.open, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue", "isDob", "isVerified", "open"]);
70
+ var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, isDob = _a.isDob, isVerified = _a.isVerified, open = _a.open, minDate = _a.minDate, maxDate = _a.maxDate, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue", "isDob", "isVerified", "open", "minDate", "maxDate"]);
71
71
  var _b = useState(), date = _b[0], setDate = _b[1];
72
72
  var _c = React.useState(null), anchor = _c[0], setAnchor = _c[1];
73
73
  var _d = React.useState(open), openCalender = _d[0], setOpenCalender = _d[1];
@@ -106,6 +106,6 @@ var DatePicker = function (_a) {
106
106
  return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? convertToEnglishDateFormat(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
107
107
  if (!disabled)
108
108
  toggleCalender(e);
109
- }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({}, rest, { value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
109
+ }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({}, rest, { value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: maxDate || defaultMax, minDate: minDate || defaultMin })), _jsx(Divider, {})] }))] })));
110
110
  };
111
111
  export default memo(DatePicker);
@@ -42,7 +42,8 @@ var LanguageTextStyled = styled(Text, { shouldForwardProp: function (prop) { ret
42
42
  var TextStyled = styled(Text)(function (_a) {
43
43
  var theme = _a.theme;
44
44
  return ({
45
- marginInline: theme.spacing(0.625)
45
+ marginInline: theme.spacing(0.625),
46
+ whiteSpace: 'pre'
46
47
  });
47
48
  });
48
49
  var IconStyled = styled(Icon)(function (_a) {
@@ -57,7 +57,7 @@ var InputStyled = styled(Input)(function (_a) {
57
57
  height: '100%',
58
58
  width: '100%'
59
59
  },
60
- input: __assign(__assign({}, theme.typography.subtitle2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, background: theme.palette.background.default, padding: theme.spacing(1.5, 2.5, 1.5), '&::placeholder': {
60
+ input: __assign(__assign({}, theme.typography.subtitle2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, background: "".concat(theme.palette.background.default, " !important"), padding: theme.spacing(1.5, 2.5, 1.5), '&::placeholder': {
61
61
  color: alpha(theme.palette.text.primary, 0.8),
62
62
  fontWeight: theme.typography.fontWeightLight
63
63
  } })
@@ -9,14 +9,14 @@ 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 } from "react/jsx-runtime";
13
13
  import { Fragment } from 'react';
14
14
  import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
15
- import CssBaseline from '@mui/material/CssBaseline';
15
+ import ScopedCssBaseline from '@mui/material/ScopedCssBaseline';
16
16
  export default function ThemeProvider(_a) {
17
17
  var children = _a.children, theme = _a.theme;
18
18
  if (!theme) {
19
19
  return _jsx(Fragment, {});
20
20
  }
21
- return (_jsxs(MUIThemeProvider, __assign({ theme: theme }, { children: [_jsx(CssBaseline, {}), children] })));
21
+ return (_jsx(ScopedCssBaseline, __assign({ sx: { background: 'inherit' } }, { children: _jsx(MUIThemeProvider, __assign({ theme: theme }, { children: children })) })));
22
22
  }
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
33
33
  var _b;
34
34
  var theme = _a.theme;
35
35
  return (_b = {},
36
- _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
36
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
37
37
  _b);
38
38
  });
39
39
  var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
@@ -8,9 +8,11 @@ export declare const ENDPOINT_PATHS: {
8
8
  EXPRESS_UPDATE_LEAD: string;
9
9
  EXPRESS_CREATE_ACCOUNT: string;
10
10
  ADDRESS_PATH: string;
11
+ MIGRATION_STATUS: string;
11
12
  SANDBOX_BASE_URL: string;
12
13
  PRODUCTION_BASE_URL: string;
13
14
  DEV_BASE_URL: string;
15
+ BETA_BASE_URL: string;
14
16
  BUSINESS_COUNTRIES: string;
15
17
  COUNTRIES: string;
16
18
  IP: string;
@@ -24,9 +26,7 @@ export declare const ENDPOINT_PATHS: {
24
26
  FIREBASE_URL: string;
25
27
  CREATE_ACCOUNT: string;
26
28
  CHANNEL: string;
27
- CUSTOMER_BASES: string;
28
- SALES: string;
29
- EXPECTED_CUSTOMERS: string;
29
+ BRAND_OPERATIONS: string;
30
30
  SIGNUP: string;
31
31
  SOURCE_INCOME: string;
32
32
  MONTHLY_INCOME: string;
@@ -46,17 +46,15 @@ export declare const ENDPOINT_PATHS: {
46
46
  RETRIEVE_ACTIVITIES_LIST_PATH: string;
47
47
  DOCUMENT: string;
48
48
  CREATE_AUTH_NID: string;
49
- SEGMENTS_PATH: string;
50
49
  TEAM_SIZE_PATH: string;
51
50
  CITIES: string;
52
51
  INIT: string;
53
52
  BUSINESS: string;
54
53
  RETRIEVE_ACTIVITIES_ISIC: string;
55
54
  CONNECT: string;
56
- SEGMENT_LOCATION: string;
57
- SEGMENT_PROFIT: string;
58
- SEGMENT_TECH: string;
55
+ CREATE_CONNECT: string;
59
56
  MERCHANT: string;
60
57
  TERMINAL: string;
61
58
  CURRENCY: string;
59
+ SEGMENT_LIST: string;
62
60
  };
@@ -1,6 +1,7 @@
1
1
  var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
4
+ var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
4
5
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
5
6
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
6
7
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -21,9 +22,7 @@ var CHECK_EMAIL = '/individual/email/availability';
21
22
  var CHECK_BRAND = '/brand/name/check';
22
23
  var CREATE_ACCOUNT_PATH = '/account';
23
24
  var CHANNEL_PATH = '/v2/channel';
24
- var CUSTOMER_BASES_PATH = '/v2/customerBases';
25
- var SALES_PATH = '/v2/sales';
26
- var EXPECTED_CUSTOMERS_PATH = '/v2/expectedCustomers';
25
+ var BRAND_OPERATIONS = 'v2/operations';
27
26
  var SIGNUP_PATH = '/signup';
28
27
  var SOURCE_INCOME_PATH = '/v2/sourceOfIncome';
29
28
  var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
@@ -44,20 +43,19 @@ var EXPRESS_LEAD_IDENTITY_AUTH_PATH = '/express/token/verify';
44
43
  var EXPRESS_UPDATE_LEAD_PATH = '/express/lead';
45
44
  var EXPRESS_CREATE_ACCOUNT = '/express/account';
46
45
  var CONNECT_PATH = '/connect';
46
+ var CREATE_CONNECT = '/v3/connect';
47
47
  var CREATE_AUTH_NID_PATH = "".concat(CONNECT_PATH, "/auth");
48
48
  var VERIFY_AUTH_OTP_PATH = "".concat(CONNECT_PATH, "/auth");
49
49
  var DOCUMENT_PATH = '/document';
50
- var SEGMENTS_PATH = '/businessSegment/list';
51
50
  var TEAM_SIZE_PATH = '/businessSegment/team/list';
52
51
  var ADDRESS_PATH = '/address';
53
52
  var INIT_PATH = 'init';
54
53
  var BUSINESS_PATH = '/business';
55
54
  var MERCHANT_PATH = '/merchant';
56
55
  var TERMINAL_PATH = '/terminal';
57
- var SEGMENT_LOCATION_PATH = "".concat(BRAND_PATH, "/segment/location");
58
- var SEGMENT_PROFIT_PATH = "".concat(BRAND_PATH, "/segment/profit");
59
- var SEGMENT_TECH_PATH = "".concat(BRAND_PATH, "/segment/tech");
56
+ var SEGMENT_LIST = "v2".concat(BRAND_PATH, "/segment");
60
57
  var CREATE_TOKEN_PATH = '/token';
58
+ var MIGRATION_STATUS = '/migration';
61
59
  export var ENDPOINT_PATHS = {
62
60
  CREATE_TOKEN_PATH: CREATE_TOKEN_PATH,
63
61
  CREATE_EXPRESS_AUTH_PATH: CREATE_EXPRESS_AUTH_PATH,
@@ -68,9 +66,11 @@ export var ENDPOINT_PATHS = {
68
66
  EXPRESS_UPDATE_LEAD: EXPRESS_UPDATE_LEAD_PATH,
69
67
  EXPRESS_CREATE_ACCOUNT: EXPRESS_CREATE_ACCOUNT,
70
68
  ADDRESS_PATH: ADDRESS_PATH,
69
+ MIGRATION_STATUS: MIGRATION_STATUS,
71
70
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
72
71
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
73
72
  DEV_BASE_URL: DEV_BASE_URL,
73
+ BETA_BASE_URL: BETA_BASE_URL,
74
74
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
75
75
  COUNTRIES: API_COUNTRIES,
76
76
  IP: IP_PATH,
@@ -84,9 +84,7 @@ export var ENDPOINT_PATHS = {
84
84
  FIREBASE_URL: FIREBASE_URL,
85
85
  CREATE_ACCOUNT: CREATE_ACCOUNT_PATH,
86
86
  CHANNEL: CHANNEL_PATH,
87
- CUSTOMER_BASES: CUSTOMER_BASES_PATH,
88
- SALES: SALES_PATH,
89
- EXPECTED_CUSTOMERS: EXPECTED_CUSTOMERS_PATH,
87
+ BRAND_OPERATIONS: BRAND_OPERATIONS,
90
88
  SIGNUP: SIGNUP_PATH,
91
89
  SOURCE_INCOME: SOURCE_INCOME_PATH,
92
90
  MONTHLY_INCOME: MONTHLY_INCOME_PATH,
@@ -106,17 +104,15 @@ export var ENDPOINT_PATHS = {
106
104
  RETRIEVE_ACTIVITIES_LIST_PATH: RETRIEVE_ACTIVITIES_LIST_PATH,
107
105
  DOCUMENT: DOCUMENT_PATH,
108
106
  CREATE_AUTH_NID: CREATE_AUTH_NID_PATH,
109
- SEGMENTS_PATH: SEGMENTS_PATH,
110
107
  TEAM_SIZE_PATH: TEAM_SIZE_PATH,
111
108
  CITIES: CITIES_PATH,
112
109
  INIT: INIT_PATH,
113
110
  BUSINESS: BUSINESS_PATH,
114
111
  RETRIEVE_ACTIVITIES_ISIC: RETRIEVE_ACTIVITIES_ISIC_PATH,
115
112
  CONNECT: CONNECT_PATH,
116
- SEGMENT_LOCATION: SEGMENT_LOCATION_PATH,
117
- SEGMENT_PROFIT: SEGMENT_PROFIT_PATH,
118
- SEGMENT_TECH: SEGMENT_TECH_PATH,
113
+ CREATE_CONNECT: CREATE_CONNECT,
119
114
  MERCHANT: MERCHANT_PATH,
120
115
  TERMINAL: TERMINAL_PATH,
121
- CURRENCY: CURRENCY_PATH
116
+ CURRENCY: CURRENCY_PATH,
117
+ SEGMENT_LIST: SEGMENT_LIST
122
118
  };