@tap-payments/auth-jsconnect 2.6.102-test → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. package/build/@types/app.d.ts +47 -14
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +49 -0
  4. package/build/@types/config.js +1 -0
  5. package/build/@types/form.d.ts +11 -1
  6. package/build/@types/index.d.ts +1 -0
  7. package/build/@types/index.js +1 -0
  8. package/build/@types/redux.d.ts +1 -0
  9. package/build/@types/theme.d.ts +4 -0
  10. package/build/@types/theme.js +5 -0
  11. package/build/api/account.d.ts +4 -0
  12. package/build/api/account.js +9 -2
  13. package/build/api/auth.d.ts +35 -20
  14. package/build/api/auth.js +1 -1
  15. package/build/api/data.d.ts +4 -17
  16. package/build/api/data.js +5 -45
  17. package/build/api/entity.d.ts +5 -2
  18. package/build/api/entity.js +12 -4
  19. package/build/api/firebase.js +68 -8
  20. package/build/api/index.d.ts +13 -25
  21. package/build/api/lead.d.ts +16 -3
  22. package/build/api/lead.js +16 -0
  23. package/build/api/user.d.ts +7 -0
  24. package/build/api/user.js +9 -1
  25. package/build/app/rootReducer.d.ts +1 -0
  26. package/build/app/rootReducer.js +3 -1
  27. package/build/app/settings.d.ts +3 -2
  28. package/build/app/settings.js +64 -31
  29. package/build/app/store.d.ts +2 -0
  30. package/build/assets/locales/ar.json +353 -151
  31. package/build/assets/locales/en.json +349 -150
  32. package/build/components/AnimationFlow/AnimationFlow.d.ts +11 -6
  33. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  34. package/build/components/AnimationFlow/BottomSheet.d.ts +5 -2
  35. package/build/components/AnimationFlow/BottomSheet.js +43 -14
  36. package/build/components/AnimationFlow/Dialog.d.ts +6 -4
  37. package/build/components/AnimationFlow/Dialog.js +9 -7
  38. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  39. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  40. package/build/components/ArabicDatePicker/style.css +32 -3
  41. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  42. package/build/components/DatePicker/DatePicker.js +2 -2
  43. package/build/components/Footer/Footer.js +2 -1
  44. package/build/components/Input/Input.js +1 -1
  45. package/build/components/Providers/ThemeProvider.js +3 -3
  46. package/build/components/Tooltip/Tooltip.js +1 -1
  47. package/build/constants/api.d.ts +5 -7
  48. package/build/constants/api.js +11 -15
  49. package/build/constants/app.d.ts +39 -0
  50. package/build/constants/app.js +345 -35
  51. package/build/constants/assets.d.ts +3 -0
  52. package/build/constants/assets.js +4 -1
  53. package/build/constants/dummy.d.ts +4 -219
  54. package/build/constants/dummy.js +64 -6194
  55. package/build/constants/flows.d.ts +26 -0
  56. package/build/constants/flows.js +27 -0
  57. package/build/constants/index.d.ts +1 -0
  58. package/build/constants/index.js +1 -0
  59. package/build/constants/validation.d.ts +2 -0
  60. package/build/constants/validation.js +2 -0
  61. package/build/features/app/auth/authStore.d.ts +29 -8
  62. package/build/features/app/auth/authStore.js +454 -136
  63. package/build/features/app/bank/bankStore.d.ts +13 -18
  64. package/build/features/app/bank/bankStore.js +186 -153
  65. package/build/features/app/board/boardStore.d.ts +5 -1
  66. package/build/features/app/board/boardStore.js +82 -51
  67. package/build/features/app/brand/brandStore.d.ts +17 -33
  68. package/build/features/app/brand/brandStore.js +254 -257
  69. package/build/features/app/business/businessStore.d.ts +37 -15
  70. package/build/features/app/business/businessStore.js +407 -223
  71. package/build/features/app/connect/connectStore.d.ts +33 -5
  72. package/build/features/app/connect/connectStore.js +316 -93
  73. package/build/features/app/connectExpress/connectExpressStore.d.ts +53 -23
  74. package/build/features/app/connectExpress/connectExpressStore.js +604 -345
  75. package/build/features/app/entity/entityStore.d.ts +20 -36
  76. package/build/features/app/entity/entityStore.js +204 -238
  77. package/build/features/app/individual/individualStore.d.ts +18 -34
  78. package/build/features/app/individual/individualStore.js +269 -292
  79. package/build/features/app/kyc/kycStore.d.ts +67 -0
  80. package/build/features/app/kyc/kycStore.js +408 -0
  81. package/build/features/app/password/passwordStore.d.ts +33 -18
  82. package/build/features/app/password/passwordStore.js +260 -219
  83. package/build/features/app/signIn/signInStore.js +19 -15
  84. package/build/features/app/tax/taxStore.d.ts +13 -7
  85. package/build/features/app/tax/taxStore.js +170 -136
  86. package/build/features/auth/Auth.d.ts +5 -6
  87. package/build/features/auth/Auth.js +44 -20
  88. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  89. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  90. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  91. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  92. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  93. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  94. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  95. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  96. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  97. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  98. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  99. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  100. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  101. package/build/features/auth/screens/DOB/index.js +2 -0
  102. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  103. package/build/features/auth/screens/DOB/validation.js +4 -0
  104. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  105. package/build/features/auth/screens/Email/Email.js +57 -0
  106. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  107. package/build/features/auth/screens/Email/EmailField.js +52 -0
  108. package/build/features/auth/screens/Email/index.d.ts +3 -0
  109. package/build/features/auth/screens/Email/index.js +2 -0
  110. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  111. package/build/features/auth/screens/Email/validation.js +4 -0
  112. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  113. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  114. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  115. package/build/features/auth/screens/EmailSent/index.js +2 -0
  116. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  117. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  118. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  119. package/build/features/auth/screens/MigratingData/index.js +2 -0
  120. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  121. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  122. package/build/features/auth/screens/Mobile/validation.js +11 -3
  123. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  124. package/build/features/auth/screens/NID/NID.js +7 -43
  125. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  126. package/build/features/auth/screens/NID/validation.js +0 -1
  127. package/build/features/auth/screens/OTP/OTP.js +41 -10
  128. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  129. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  130. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  131. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  132. package/build/features/auth/screens/OperatorError/index.js +2 -0
  133. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  134. package/build/features/auth/screens/Password/Password.js +61 -0
  135. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  136. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  137. package/build/features/auth/screens/Password/index.d.ts +3 -0
  138. package/build/features/auth/screens/Password/index.js +2 -0
  139. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  140. package/build/features/auth/screens/Password/validation.js +4 -0
  141. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  142. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  143. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  144. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  145. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  146. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  147. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  148. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  149. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  150. package/build/features/bank/Bank.d.ts +5 -1
  151. package/build/features/bank/Bank.js +22 -9
  152. package/build/features/bank/screens/BankDetails/BankDetails.js +20 -6
  153. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  154. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  155. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  156. package/build/features/bank/screens/OperatorError/index.js +2 -0
  157. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  158. package/build/features/bank/screens/Verify/Verify.js +7 -6
  159. package/build/features/board/Board.d.ts +2 -0
  160. package/build/features/board/Board.js +24 -13
  161. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  162. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  163. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  164. package/build/features/board/screens/OperatorError/index.js +2 -0
  165. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  166. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  167. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  168. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  169. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  170. package/build/features/board/screens/Verify/Verify.js +3 -2
  171. package/build/features/brand/Brand.d.ts +5 -1
  172. package/build/features/brand/Brand.js +22 -9
  173. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +5 -5
  174. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  175. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  176. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  177. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  178. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  179. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  180. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  181. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  182. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  183. package/build/features/brand/screens/BrandInfo/BrandInfo.js +26 -6
  184. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  185. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  186. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  187. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  188. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  189. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  190. package/build/features/brand/screens/OperatorError/index.js +2 -0
  191. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  192. package/build/features/brand/screens/Verify/Verify.js +3 -2
  193. package/build/features/business/Business.js +20 -12
  194. package/build/features/business/screens/Activities/Activities.js +26 -9
  195. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  196. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  197. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  198. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  199. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  200. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  201. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  202. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -8
  203. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  204. package/build/features/business/screens/Customers/Customers.js +50 -10
  205. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  206. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  207. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  208. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  209. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  210. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  211. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  212. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  213. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  214. package/build/features/business/screens/Customers/validation.js +3 -8
  215. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  216. package/build/features/business/screens/DOB/DOB.js +45 -0
  217. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  218. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  219. package/build/features/business/screens/DOB/index.d.ts +3 -0
  220. package/build/features/business/screens/DOB/index.js +2 -0
  221. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  222. package/build/features/business/screens/DOB/validation.js +4 -0
  223. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  224. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  225. package/build/features/business/screens/IDBOD/validation.js +0 -1
  226. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  227. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +105 -0
  228. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  229. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  230. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  231. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  232. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  233. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  234. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  235. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  236. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  237. package/build/features/business/screens/OperatorError/index.js +2 -0
  238. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  239. package/build/features/business/screens/Verify/Verify.js +15 -4
  240. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  241. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  242. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  243. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  244. package/build/features/connect/Connect.d.ts +5 -1
  245. package/build/features/connect/Connect.js +21 -14
  246. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  247. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  248. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  249. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  250. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  251. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  252. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  253. package/build/features/connect/screens/DOB/index.js +2 -0
  254. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  255. package/build/features/connect/screens/DOB/validation.js +4 -0
  256. package/build/features/connect/screens/Individual/Email.js +1 -3
  257. package/build/features/connect/screens/Individual/Individual.js +11 -5
  258. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  259. package/build/features/connect/screens/Individual/validation.js +11 -3
  260. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  261. package/build/features/connect/screens/Merchant/validation.js +2 -2
  262. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  263. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  264. package/build/features/connect/screens/Mobile/validation.js +11 -3
  265. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  266. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  267. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  268. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  269. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  270. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  271. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  272. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  273. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  274. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  275. package/build/features/connect/screens/NID/NID.js +5 -11
  276. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  277. package/build/features/connect/screens/NID/validation.js +0 -1
  278. package/build/features/connect/screens/OTP/OTP.js +6 -6
  279. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  280. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  281. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  282. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  283. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  284. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  285. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  286. package/build/features/connectExpress/ConnectExpress.js +64 -41
  287. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  288. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  289. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  290. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  291. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  292. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  293. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  294. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  295. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  296. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  297. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  298. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  299. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  300. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  301. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  302. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  303. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  304. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  305. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  306. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  307. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  308. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  309. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  310. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  311. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  312. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  313. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  314. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  315. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  316. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  317. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +108 -0
  318. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  319. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  320. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  321. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  322. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  323. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  324. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  325. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  326. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  327. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  328. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  329. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  330. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  331. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  332. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  333. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  334. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  335. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  336. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  337. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  338. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  339. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  340. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  341. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  342. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  343. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  344. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  345. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  346. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  347. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  348. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  349. package/build/features/entity/Entity.d.ts +4 -1
  350. package/build/features/entity/Entity.js +22 -9
  351. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  352. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  353. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  354. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  355. package/build/features/entity/screens/EntityName/EntityName.js +33 -15
  356. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +5 -5
  357. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  358. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  359. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  360. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  361. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  362. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  363. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  364. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  365. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  366. package/build/features/entity/screens/EntityName/validation.js +1 -10
  367. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  368. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  369. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  370. package/build/features/entity/screens/OperatorError/index.js +2 -0
  371. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  372. package/build/features/entity/screens/Verify/Verify.js +3 -2
  373. package/build/features/featuresScreens.d.ts +1 -0
  374. package/build/features/featuresScreens.js +211 -13
  375. package/build/features/individual/Individual.d.ts +4 -1
  376. package/build/features/individual/Individual.js +22 -9
  377. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  378. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  379. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  380. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  381. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  382. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  383. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  384. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  385. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  386. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  387. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  388. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  389. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  390. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  391. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  392. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  393. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  394. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  395. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  396. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  397. package/build/features/individual/screens/OperatorError/index.js +2 -0
  398. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  399. package/build/features/individual/screens/Verify/Verify.js +3 -2
  400. package/build/features/kyc/KYC.d.ts +11 -0
  401. package/build/features/kyc/KYC.js +99 -0
  402. package/build/features/kyc/index.d.ts +1 -0
  403. package/build/features/kyc/index.js +1 -0
  404. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  405. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  406. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  407. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  408. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  409. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  410. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  411. package/build/features/kyc/screens/Loading/index.js +2 -0
  412. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  413. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  414. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  415. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  416. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  417. package/build/features/kyc/screens/Success/Success.js +32 -0
  418. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  419. package/build/features/kyc/screens/Success/index.js +2 -0
  420. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  421. package/build/features/kyc/screens/Terms/Header.js +36 -0
  422. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  423. package/build/features/kyc/screens/Terms/Terms.js +81 -0
  424. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  425. package/build/features/kyc/screens/Terms/index.js +2 -0
  426. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  427. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  428. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  429. package/build/features/kyc/screens/TokenError/index.js +2 -0
  430. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  431. package/build/features/kyc/screens/Users/Users.js +76 -0
  432. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  433. package/build/features/kyc/screens/Users/index.js +2 -0
  434. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  435. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  436. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  437. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  438. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  439. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  440. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  441. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  442. package/build/features/password/Password.d.ts +4 -1
  443. package/build/features/password/Password.js +88 -31
  444. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  445. package/build/features/password/screens/OTP/OTP.js +3 -3
  446. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  447. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  448. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  449. package/build/features/password/screens/OperatorError/index.js +2 -0
  450. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  451. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  452. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  453. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  454. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  455. package/build/features/password/screens/Verify/Verify.js +7 -6
  456. package/build/features/shared/Address/CountryList.d.ts +5 -5
  457. package/build/features/shared/Address/InputSelect.d.ts +5 -5
  458. package/build/features/shared/Background/Background.js +1 -1
  459. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  460. package/build/features/shared/Button/Button.js +3 -1
  461. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  462. package/build/features/shared/Button/FlowsButtons.js +18 -4
  463. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  464. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  465. package/build/features/shared/Button/index.d.ts +2 -2
  466. package/build/features/shared/Button/index.js +2 -2
  467. package/build/features/shared/Calender/Calender.d.ts +2 -1
  468. package/build/features/shared/Calender/Calender.js +3 -3
  469. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  470. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  471. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  472. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  473. package/build/features/shared/Input/Input.d.ts +2 -2
  474. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  475. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  476. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  477. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  478. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  479. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  480. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  481. package/build/features/shared/NafathVerification/index.js +2 -0
  482. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  483. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  484. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  485. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  486. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  487. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  488. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  489. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  490. package/build/features/signIn/SignIn.js +18 -7
  491. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  492. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  493. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  494. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  495. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  496. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  497. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  498. package/build/features/tax/Tax.d.ts +4 -1
  499. package/build/features/tax/Tax.js +22 -9
  500. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  501. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  502. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  503. package/build/features/tax/screens/OperatorError/index.js +2 -0
  504. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  505. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  506. package/build/features/tax/screens/Verify/Verify.js +7 -6
  507. package/build/hooks/index.d.ts +3 -0
  508. package/build/hooks/index.js +3 -0
  509. package/build/hooks/useAppConfig.d.ts +3 -3
  510. package/build/hooks/useAppConfig.js +4 -3
  511. package/build/hooks/useAppDispatch.d.ts +1 -0
  512. package/build/hooks/useAppTheme.js +4 -3
  513. package/build/hooks/useCountDown.d.ts +10 -0
  514. package/build/hooks/useCountDown.js +17 -0
  515. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  516. package/build/hooks/useFormDirtyCheck.js +66 -0
  517. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  518. package/build/hooks/useSanitizedTranslation.js +15 -0
  519. package/build/hooks/useVerifyToken.d.ts +4 -2
  520. package/build/hooks/useVerifyToken.js +9 -4
  521. package/build/index.css +360 -120
  522. package/build/index.d.ts +3 -2
  523. package/build/index.js +4 -2
  524. package/build/theme/components.js +7 -0
  525. package/build/theme/palette.js +2 -1
  526. package/build/theme/shadows.js +1 -1
  527. package/build/theme/theme.d.ts +1 -1
  528. package/build/theme/theme.js +2 -2
  529. package/build/utils/array.js +2 -2
  530. package/build/utils/common.d.ts +1 -0
  531. package/build/utils/common.js +16 -3
  532. package/build/utils/device.d.ts +2 -0
  533. package/build/utils/device.js +6 -0
  534. package/build/utils/object.d.ts +1 -0
  535. package/build/utils/object.js +3 -0
  536. package/build/utils/string.d.ts +6 -2
  537. package/build/utils/string.js +28 -3
  538. package/build/utils/validation.d.ts +2 -0
  539. package/build/utils/validation.js +6 -0
  540. package/package.json +2 -2
  541. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  542. package/build/features/business/screens/OTP/OTP.js +0 -90
  543. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  544. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  545. package/build/features/business/screens/OTP/index.d.ts +0 -3
  546. package/build/features/business/screens/OTP/index.js +0 -2
  547. package/build/features/business/screens/OTP/validation.js +0 -4
  548. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  549. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  550. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  551. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  552. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  553. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  554. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  555. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -1,4 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { BoxProps } from '@mui/material/Box';
3
+ interface ContainerStyledProps extends BoxProps {
4
+ readOnly?: boolean;
5
+ }
2
6
  export declare const ContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
7
  children?: React.ReactNode;
4
8
  component?: React.ElementType<any> | undefined;
@@ -6,10 +10,10 @@ export declare const ContainerStyled: import("@emotion/styled").StyledComponent<
6
10
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
7
11
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
8
12
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
9
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & ContainerStyledProps, {}, {}>;
10
14
  export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("../../../../components/CheckBox").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
15
  export declare const TextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
12
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
16
+ align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
13
17
  children?: React.ReactNode;
14
18
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
15
19
  gutterBottom?: boolean | undefined;
@@ -20,7 +24,7 @@ export declare const TextStyled: import("@emotion/styled").StyledComponent<impor
20
24
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
21
25
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
22
26
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
23
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
27
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
28
  export declare const LinkStyled: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/Link").LinkBaseProps, "classes"> & {
25
29
  children?: React.ReactNode;
26
30
  classes?: Partial<import("@mui/material/Link").LinkClasses> | undefined;
@@ -31,6 +35,9 @@ export declare const LinkStyled: import("@emotion/styled").StyledComponent<Omit<
31
35
  variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
32
36
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & {
33
37
  ref?: ((instance: HTMLAnchorElement | null) => void) | React.RefObject<HTMLAnchorElement> | null | undefined;
34
- }, "type" | keyof import("@mui/material/OverridableComponent").CommonProps | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "slot" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "underline" | "variant" | "href" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "download" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
35
- declare const RefundPolicy: () => JSX.Element;
38
+ }, "left" | "right" | "type" | keyof import("@mui/material/OverridableComponent").CommonProps | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "slot" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "underline" | "variant" | "href" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "download" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
39
+ declare type RefundPolicyProps = {
40
+ readOnly?: boolean;
41
+ };
42
+ declare const RefundPolicy: ({ readOnly }: RefundPolicyProps) => JSX.Element;
36
43
  export default RefundPolicy;
@@ -26,14 +26,11 @@ import { settingsSelector } from '../../../../app/settings';
26
26
  import { useAppSelector } from '../../../../hooks';
27
27
  import { ScreenContainer } from '../../../shared/Containers';
28
28
  import { businessSelector } from '../../../app/business/businessStore';
29
- export var ContainerStyled = styled(Box)(function (_a) {
30
- var theme = _a.theme;
31
- return ({
32
- display: 'flex',
33
- flexDirection: 'row',
34
- alignItems: 'center',
35
- padding: theme.spacing(0, 2.5, 1.5, 2.5)
36
- });
29
+ export var ContainerStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
30
+ var theme = _a.theme, readOnly = _a.readOnly;
31
+ return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: theme.spacing(0, 2.5, 1.5, 2.5) }, (readOnly && {
32
+ opacity: '0.6'
33
+ })));
37
34
  });
38
35
  export var CheckboxStyled = styled(CheckBox)(function (_a) {
39
36
  var theme = _a.theme;
@@ -66,19 +63,22 @@ export var LinkStyled = styled(Link)(function (_a) {
66
63
  letterSpacing: theme.spacing(0)
67
64
  });
68
65
  });
69
- var RefundPolicy = function () {
70
- var _a, _b, _c;
66
+ var RefundPolicy = function (_a) {
67
+ var _b, _c, _d;
68
+ var readOnly = _a.readOnly;
71
69
  var t = useTranslation().t;
72
70
  var isAr = useLanguage().isAr;
73
71
  var control = useFormContext().control;
74
72
  var settingsData = useAppSelector(settingsSelector).data;
75
73
  var data = useAppSelector(businessSelector).data;
76
- var terms = (_b = (_a = data.verify.responseBody) === null || _a === void 0 ? void 0 : _a.brand) === null || _b === void 0 ? void 0 : _b.terms;
74
+ var terms = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.brand) === null || _c === void 0 ? void 0 : _c.terms;
77
75
  var refundControl = useController({ control: control, name: 'refundPolicy' });
78
76
  var refundChecked = refundControl.field.value;
79
- var warningMessage = (_c = refundControl.fieldState.error) === null || _c === void 0 ? void 0 : _c.message;
77
+ var warningMessage = (_d = refundControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message;
80
78
  var countryCode = settingsData.businessCountry.iso2.toLowerCase();
81
79
  var handleRefundCheckedChange = function (event, checked) {
80
+ if (readOnly)
81
+ return;
82
82
  refundControl.field.onChange(checked);
83
83
  };
84
84
  var isChecked = React.useMemo(function () {
@@ -88,6 +88,6 @@ var RefundPolicy = function () {
88
88
  return term === 'general';
89
89
  })) === null || _b === void 0 ? void 0 : _b.agree);
90
90
  }, [terms]);
91
- return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.75 } }, { children: [_jsxs(ContainerStyled, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: refundChecked, onChange: handleRefundCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_refund_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_EN, target: '_blank', underline: 'always' }, { children: t('refund_policy_compliance') }))] })] }), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] })) })));
91
+ return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.75 } }, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: refundChecked, onChange: handleRefundCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_refund_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_EN, target: '_blank', underline: 'always' }, { children: t('refund_policy_compliance') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] })) })));
92
92
  };
93
93
  export default RefundPolicy;
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const TransactionPolicy: () => JSX.Element;
2
+ declare type TransactionPolicyProps = {
3
+ readOnly?: boolean;
4
+ };
5
+ declare const TransactionPolicy: ({ readOnly }: TransactionPolicyProps) => JSX.Element;
3
6
  export default TransactionPolicy;
@@ -25,19 +25,22 @@ import { ContainerStyled, CheckboxStyled, TextStyled, LinkStyled } from './Refun
25
25
  var CollapseStyled = styled(Collapse)(function () { return ({
26
26
  width: '100%'
27
27
  }); });
28
- var TransactionPolicy = function () {
29
- var _a, _b, _c;
28
+ var TransactionPolicy = function (_a) {
29
+ var _b, _c, _d;
30
+ var readOnly = _a.readOnly;
30
31
  var t = useTranslation().t;
31
32
  var isAr = useLanguage().isAr;
32
33
  var control = useFormContext().control;
33
34
  var settingsData = useAppSelector(settingsSelector).data;
34
35
  var data = useAppSelector(businessSelector).data;
35
- var terms = (_b = (_a = data.verify.responseBody) === null || _a === void 0 ? void 0 : _a.brand) === null || _b === void 0 ? void 0 : _b.terms;
36
+ var terms = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.brand) === null || _c === void 0 ? void 0 : _c.terms;
36
37
  var transactionControl = useController({ control: control, name: 'transactionPolicy' });
37
38
  var transactionChecked = transactionControl.field.value;
38
- var warningMessage = (_c = transactionControl.fieldState.error) === null || _c === void 0 ? void 0 : _c.message;
39
+ var warningMessage = (_d = transactionControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message;
39
40
  var countryCode = settingsData.businessCountry.iso2.toLowerCase();
40
41
  var handleTransactionCheckedChange = function (event, checked) {
42
+ if (readOnly)
43
+ return;
41
44
  transactionControl.field.onChange(checked);
42
45
  };
43
46
  var isChecked = React.useMemo(function () {
@@ -47,6 +50,6 @@ var TransactionPolicy = function () {
47
50
  return term === 'general';
48
51
  })) === null || _b === void 0 ? void 0 : _b.agree);
49
52
  }, [terms]);
50
- return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, { children: [_jsxs(ContainerStyled, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: transactionChecked, onChange: handleTransactionCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_chargeback_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_EN, target: '_blank', underline: 'always' }, { children: t('chargeback_policy') }))] })] }), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] }) })));
53
+ return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: transactionChecked, onChange: handleTransactionCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_chargeback_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_EN, target: '_blank', underline: 'always' }, { children: t('chargeback_policy') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] }) })));
51
54
  };
52
55
  export default TransactionPolicy;
@@ -1,20 +1,20 @@
1
1
  import * as yup from 'yup';
2
2
  export declare const CustomerInfoValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
3
  customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
4
- expectedCustomers: any;
5
- expectedSalesRange: any;
4
+ expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
5
+ expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
6
6
  refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
7
7
  transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
8
8
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
9
  customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
10
- expectedCustomers: any;
11
- expectedSalesRange: any;
10
+ expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
11
+ expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
12
12
  refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
13
13
  transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
14
14
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
15
15
  customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
16
- expectedCustomers: any;
17
- expectedSalesRange: any;
16
+ expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
17
+ expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
18
18
  refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
19
19
  transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
20
20
  }>>>;
@@ -1,13 +1,8 @@
1
1
  import * as yup from 'yup';
2
- var objectElements = {
3
- id: yup.number(),
4
- name_ar: yup.string(),
5
- name_en: yup.string()
6
- };
7
2
  export var CustomerInfoValidation = yup.object().shape({
8
- customerLocations: yup.array().required('please_choose_base'),
9
- expectedCustomers: yup.object().shape(objectElements).required('select_expected_customers_serve'),
10
- expectedSalesRange: yup.object().shape(objectElements).required('select_expected_sales'),
3
+ customerLocations: yup.array().min(1, 'please_choose_base').required('please_choose_base'),
4
+ expectedCustomer: yup.object().required('select_expected_customers_serve'),
5
+ expectedSale: yup.object().required('select_expected_sales'),
11
6
  refundPolicy: yup.boolean().required().isTrue('refund_policy_error'),
12
7
  transactionPolicy: yup.boolean().required().isTrue('transaction_policy_error')
13
8
  });
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface BODProps {
3
+ onDateClicked?: (flag: boolean) => void;
4
+ }
5
+ declare const _default: React.MemoExoticComponent<({ onDateClicked }: BODProps) => JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,45 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useController, useFormContext } from 'react-hook-form';
16
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
+ import { styled, alpha } from '@mui/material/styles';
18
+ import Text from '../../../../components/Text';
19
+ import { ScreenContainer } from '../../../shared/Containers';
20
+ import Calender from '../../../shared/Calender';
21
+ import { businessSelector, clearError } from '../../../app/business/businessStore';
22
+ var InputLabelStyled = styled(Text)(function (_a) {
23
+ var theme = _a.theme;
24
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6) }, theme.typography.caption), { cursor: 'pointer' }));
25
+ });
26
+ var BOD = function (_a) {
27
+ var _b;
28
+ var onDateClicked = _a.onDateClicked;
29
+ var t = useTranslation().t;
30
+ var control = useFormContext().control;
31
+ var dispatch = useAppDispatch();
32
+ var dobControl = useController({ control: control, name: 'dob' });
33
+ var error = useAppSelector(businessSelector).error;
34
+ var handleBirthDateChange = function (data) {
35
+ if (error)
36
+ dispatch(clearError());
37
+ dobControl.field.onChange(data);
38
+ };
39
+ var dateValue = (_b = dobControl === null || dobControl === void 0 ? void 0 : dobControl.field) === null || _b === void 0 ? void 0 : _b.value;
40
+ return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
41
+ var spacing = _a.spacing;
42
+ return spacing(0, 2.5, 1.5, 2.5);
43
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
44
+ };
45
+ export default React.memo(BOD);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface DOBFormProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: DOBFormProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,72 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useForm, FormProvider } from 'react-hook-form';
16
+ import { styled } from '@mui/material/styles';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
19
+ import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
20
+ import Form from '../../../../components/Form';
21
+ import Button from '../../../shared/Button';
22
+ import { ScreenContainer } from '../../../shared/Containers';
23
+ import { businessSelector, clearError, updateLeadDOB } from '../../../app/business/businessStore';
24
+ import Collapse from '../../../../components/Collapse';
25
+ import { COLLECT_DOB_INFO_NAFATH } from '../../../../constants';
26
+ import { deepCopy, sendCustomEventToGTM } from '../../../../utils';
27
+ import { DOBValidationSchema } from './validation';
28
+ import DOB from './DOB';
29
+ var FormStyled = styled(Form)(function () { return ({
30
+ display: 'flex',
31
+ flexDirection: 'column'
32
+ }); });
33
+ var DOBForm = function (_a) {
34
+ var _b;
35
+ var _c = React.useState(false), collapse = _c[0], setCollapse = _c[1];
36
+ var isAr = useLanguage().isAr;
37
+ var dispatch = useAppDispatch();
38
+ var t = useTranslation().t;
39
+ var _d = useAppSelector(businessSelector), data = _d.data, loading = _d.loading, error = _d.error;
40
+ var settingsData = useAppSelector(settingsSelector).data;
41
+ var methods = useForm({
42
+ resolver: yupResolver(DOBValidationSchema),
43
+ defaultValues: data.dobData,
44
+ mode: 'onChange'
45
+ });
46
+ useSetFromDefaultValues(methods, data.dobData);
47
+ React.useEffect(function () {
48
+ sendCustomEventToGTM({
49
+ event: 'Send Event',
50
+ event_category: 'Account Creation Flow',
51
+ event_action: 'DOB Details Step',
52
+ event_label: settingsData.businessCountry.iso2
53
+ });
54
+ }, []);
55
+ React.useEffect(function () {
56
+ if (error)
57
+ dispatch(clearError());
58
+ }, [methods.formState.isValid]);
59
+ var onSubmit = function (data) {
60
+ dispatch(updateLeadDOB(deepCopy(data)));
61
+ };
62
+ var handleCollapseOpenClose = function (flag) {
63
+ setCollapse(flag);
64
+ };
65
+ var onBack = function () {
66
+ dispatch(handlePrevScreenStep());
67
+ };
68
+ var disabled = !methods.formState.isValid;
69
+ var disableBack = ((_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verifyNextStepName) === COLLECT_DOB_INFO_NAFATH;
70
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(DOB, { onDateClicked: handleCollapseOpenClose }), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ sx: { mt: 10 }, loading: loading, disableBack: disableBack, onBackClicked: onBack, isAr: isAr, disabled: disabled, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
71
+ };
72
+ export default React.memo(DOBForm);
@@ -0,0 +1,3 @@
1
+ import DOBForm, { DOBFormProps } from './DOBForm';
2
+ export type { DOBFormProps };
3
+ export default DOBForm;
@@ -0,0 +1,2 @@
1
+ import DOBForm from './DOBForm';
2
+ export default DOBForm;
@@ -1,8 +1,8 @@
1
1
  import * as yup from 'yup';
2
- export declare const OTPValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
2
+ export declare const DOBValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
4
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
5
+ dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
6
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
+ dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
8
  }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var DOBValidationSchema = yup.object().shape({
3
+ dob: yup.string().min(5).required('enter_valid_birth_date')
4
+ });
@@ -22,7 +22,7 @@ import Button from '../../../shared/Button';
22
22
  import { ScreenContainer } from '../../../shared/Containers';
23
23
  import { businessSelector, clearError, updateLeadIdentity } from '../../../app/business/businessStore';
24
24
  import Collapse from '../../../../components/Collapse';
25
- import { deepCopy, isOtherThanKWOrSA } from '../../../../utils';
25
+ import { deepCopy, isOtherThanKWOrSA, sendCustomEventToGTM } from '../../../../utils';
26
26
  import { NIDOtherCountryValidationSchema, NIDValidationSchema } from './validation';
27
27
  import ID from './ID';
28
28
  import DOB from './DOB';
@@ -44,6 +44,14 @@ var IDBOD = function (_a) {
44
44
  mode: 'onChange'
45
45
  });
46
46
  useSetFromDefaultValues(methods, data.nidData);
47
+ React.useEffect(function () {
48
+ sendCustomEventToGTM({
49
+ event: 'Send Event',
50
+ event_category: 'Account Creation Flow',
51
+ event_action: 'ID Details Step',
52
+ event_label: settingsData.businessCountry.iso2
53
+ });
54
+ }, []);
47
55
  React.useEffect(function () {
48
56
  if (error)
49
57
  dispatch(clearError());
@@ -55,6 +63,6 @@ var IDBOD = function (_a) {
55
63
  setCollapse(flag);
56
64
  };
57
65
  var disabled = !methods.formState.isValid;
58
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(ID, {}) })), _jsx(DOB, { onDateClicked: handleCollapseOpenClose }), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ loading: loading, disableBack: true, isAr: isAr, disabled: disabled, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
66
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(ID, {}) })), _jsx(Collapse, __assign({ in: isOtherCountry }, { children: _jsx(DOB, { onDateClicked: handleCollapseOpenClose }) })), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ sx: !isOtherCountry ? { mt: 10 } : {}, loading: loading, disableBack: true, isAr: isAr, disabled: disabled, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
59
67
  };
60
68
  export default React.memo(IDBOD);
@@ -1,12 +1,9 @@
1
1
  import * as yup from 'yup';
2
2
  export declare const NIDValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
3
  nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
5
4
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
6
- dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
5
  nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
6
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
- dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
10
7
  nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
11
8
  }>>>;
12
9
  export declare const NIDOtherCountryValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
@@ -1,6 +1,5 @@
1
1
  import * as yup from 'yup';
2
2
  export var NIDValidationSchema = yup.object().shape({
3
- dob: yup.string().min(5).required('enter_valid_birth_date'),
4
3
  nid: yup
5
4
  .string()
6
5
  .matches(/^(1|2)([0-9]{1,})$/g, 'signup_invalid_national_id_format')
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CollectMobileOwnership: () => JSX.Element;
3
+ export default CollectMobileOwnership;
@@ -0,0 +1,105 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { FormProvider, useForm } from 'react-hook-form';
14
+ import { ScreenContainer } from '../../../../features/shared/Containers';
15
+ import { styled } from '@mui/material/styles';
16
+ import Form from '../../../../components/Form';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { PhoneValidationSchema } from './validation';
19
+ import { Box, alpha } from '@mui/material';
20
+ import { useTranslation } from 'react-i18next';
21
+ import Text from '../../../../components/Text';
22
+ import { Button as SharedButton } from '../../../shared/Button';
23
+ import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
24
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
25
+ import { businessSelector, skipUpdateLeadMobile, updateLeadMobile } from '../../../../features/app/business/businessStore';
26
+ import Button from '../../../../components/Button';
27
+ import MobileNumber from './MobileNumber';
28
+ var FormStyled = styled(Form)(function () { return ({
29
+ display: 'flex',
30
+ flexDirection: 'column',
31
+ justifyContent: 'flex-start'
32
+ }); });
33
+ var TitleContainerStyled = styled(Box)(function (_a) {
34
+ var theme = _a.theme;
35
+ return ({
36
+ background: theme.palette.common.white,
37
+ borderTop: '1px solid rgba(227, 232, 238, 0.8)',
38
+ borderBottom: '1px solid rgba(227, 232, 238, 0.8)',
39
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
40
+ });
41
+ });
42
+ var TitleStyled = styled(Text)(function (_a) {
43
+ var theme = _a.theme;
44
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightLight, margin: theme.spacing(1.75, 2.5), lineHeight: 1.2 }));
45
+ });
46
+ var InputLabelStyled = styled(Text)(function (_a) {
47
+ var theme = _a.theme;
48
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular }, theme.typography.caption), { lineHeight: 1.2 }));
49
+ });
50
+ var CurrentMobileContainerStyled = styled(Box)(function (_a) {
51
+ var theme = _a.theme;
52
+ return ({
53
+ display: 'flex',
54
+ flexDirection: 'column',
55
+ rowGap: theme.spacing(1.6),
56
+ height: theme.spacing(9.375),
57
+ marginTop: theme.spacing(2.85),
58
+ marginInlineStart: theme.spacing(2.375)
59
+ });
60
+ });
61
+ var MobileNumberContainer = styled(Box)(function (_a) {
62
+ var theme = _a.theme;
63
+ return ({
64
+ display: 'flex',
65
+ columnGap: theme.spacing(0.9)
66
+ });
67
+ });
68
+ var CountryCodeStyled = styled(Text)(function (_a) {
69
+ var theme = _a.theme;
70
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium, lineHeight: 1.2 }));
71
+ });
72
+ var MobileNumberStyled = styled(Text)(function (_a) {
73
+ var theme = _a.theme;
74
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, lineHeight: 1.2 }));
75
+ });
76
+ var UpdateLaterContainerStyled = styled(Box)(function (_a) {
77
+ var theme = _a.theme;
78
+ return ({
79
+ marginLeft: theme.spacing(2.5),
80
+ marginRight: theme.spacing(2.5)
81
+ });
82
+ });
83
+ var CollectMobileOwnership = function () {
84
+ var dispatch = useAppDispatch();
85
+ var t = useTranslation().t;
86
+ var isAr = useLanguage().isAr;
87
+ var settingsData = useAppSelector(settingsSelector).data;
88
+ var _a = useAppSelector(businessSelector), data = _a.data, loading = _a.loading, error = _a.error;
89
+ var methods = useForm({
90
+ resolver: yupResolver(PhoneValidationSchema()),
91
+ defaultValues: { mobile: '', countryCode: settingsData.businessCountry },
92
+ mode: 'onChange'
93
+ });
94
+ var onSubmit = function (data) {
95
+ dispatch(updateLeadMobile(data));
96
+ };
97
+ var onBack = function () {
98
+ dispatch(handlePrevScreenStep());
99
+ };
100
+ var onUpdateLater = function () {
101
+ dispatch(skipUpdateLeadMobile());
102
+ };
103
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(TitleContainerStyled, { children: _jsx(TitleStyled, { children: t('mobile_ownership_title') }) }), _jsxs(CurrentMobileContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('current_mobile_number') }), _jsxs(MobileNumberContainer, { children: [_jsxs(CountryCodeStyled, { children: ["+", data.mobileData.countryCode.idd_prefix] }), _jsx(MobileNumberStyled, { children: data.mobileData.mobile })] })] }), _jsx(MobileNumber, {}), _jsx(SharedButton, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('update_mobile_number') })), _jsx(UpdateLaterContainerStyled, { children: _jsx(Button, __assign({ variant: 'text', onClick: function () { return onUpdateLater(); } }, { children: t('update_later') })) })] })) })) }));
104
+ };
105
+ export default CollectMobileOwnership;
@@ -1,5 +1,3 @@
1
1
  import * as React from 'react';
2
- export interface OTPProps {
3
- }
4
2
  declare const _default: React.MemoExoticComponent<() => JSX.Element>;
5
3
  export default _default;