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

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 (644) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +73 -18
  3. package/build/@types/app.js +19 -1
  4. package/build/@types/config.d.ts +49 -0
  5. package/build/@types/config.js +1 -0
  6. package/build/@types/form.d.ts +14 -3
  7. package/build/@types/index.d.ts +1 -0
  8. package/build/@types/index.js +1 -0
  9. package/build/@types/redux.d.ts +1 -0
  10. package/build/@types/theme.d.ts +4 -0
  11. package/build/@types/theme.js +5 -0
  12. package/build/api/account.d.ts +6 -0
  13. package/build/api/account.js +16 -2
  14. package/build/api/auth.d.ts +44 -2
  15. package/build/api/auth.js +18 -1
  16. package/build/api/availabilityServices.d.ts +1 -0
  17. package/build/api/country.d.ts +1 -0
  18. package/build/api/country.js +8 -1
  19. package/build/api/data.d.ts +4 -17
  20. package/build/api/data.js +5 -45
  21. package/build/api/entity.d.ts +28 -3
  22. package/build/api/entity.js +23 -10
  23. package/build/api/firebase.js +68 -8
  24. package/build/api/index.d.ts +24 -29
  25. package/build/api/lead.d.ts +27 -3
  26. package/build/api/lead.js +63 -1
  27. package/build/api/operator.d.ts +8 -3
  28. package/build/api/operator.js +4 -16
  29. package/build/api/user.d.ts +7 -0
  30. package/build/api/user.js +9 -1
  31. package/build/app/rootReducer.d.ts +2 -0
  32. package/build/app/rootReducer.js +5 -1
  33. package/build/app/settings.d.ts +13 -6
  34. package/build/app/settings.js +119 -77
  35. package/build/app/store.d.ts +4 -0
  36. package/build/assets/locales/ar.json +346 -143
  37. package/build/assets/locales/en.json +343 -143
  38. package/build/components/AnimationFlow/AnimationFlow.d.ts +14 -3
  39. package/build/components/AnimationFlow/AnimationFlow.js +16 -5
  40. package/build/components/AnimationFlow/BottomSheet.d.ts +7 -2
  41. package/build/components/AnimationFlow/BottomSheet.js +44 -15
  42. package/build/components/AnimationFlow/Dialog.d.ts +11 -2
  43. package/build/components/AnimationFlow/Dialog.js +10 -12
  44. package/build/components/AnimationFlow/Loader.d.ts +6 -1
  45. package/build/components/AnimationFlow/Loader.js +17 -5
  46. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  47. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  48. package/build/components/ArabicDatePicker/style.css +32 -3
  49. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  50. package/build/components/DatePicker/DatePicker.js +2 -2
  51. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  52. package/build/components/Footer/Footer.js +2 -1
  53. package/build/components/Input/Input.js +1 -1
  54. package/build/components/Providers/ThemeProvider.js +3 -3
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/components/Tooltip/Tooltip.js +1 -1
  57. package/build/constants/api.d.ts +9 -7
  58. package/build/constants/api.js +19 -15
  59. package/build/constants/app.d.ts +56 -0
  60. package/build/constants/app.js +446 -21
  61. package/build/constants/assets.d.ts +4 -0
  62. package/build/constants/assets.js +5 -1
  63. package/build/constants/dummy.d.ts +43 -196
  64. package/build/constants/dummy.js +614 -6141
  65. package/build/constants/flows.d.ts +24 -0
  66. package/build/constants/flows.js +25 -0
  67. package/build/constants/index.d.ts +1 -0
  68. package/build/constants/index.js +1 -0
  69. package/build/constants/validation.d.ts +5 -0
  70. package/build/constants/validation.js +6 -1
  71. package/build/features/app/auth/authStore.d.ts +103 -0
  72. package/build/features/app/auth/authStore.js +1184 -0
  73. package/build/features/app/bank/bankStore.d.ts +13 -18
  74. package/build/features/app/bank/bankStore.js +194 -161
  75. package/build/features/app/board/boardStore.d.ts +33 -0
  76. package/build/features/app/board/boardStore.js +269 -0
  77. package/build/features/app/brand/brandStore.d.ts +17 -31
  78. package/build/features/app/brand/brandStore.js +272 -266
  79. package/build/features/app/business/businessStore.d.ts +28 -10
  80. package/build/features/app/business/businessStore.js +363 -216
  81. package/build/features/app/connect/connectStore.d.ts +39 -15
  82. package/build/features/app/connect/connectStore.js +321 -216
  83. package/build/features/app/connectExpress/connectExpressStore.d.ts +63 -29
  84. package/build/features/app/connectExpress/connectExpressStore.js +744 -382
  85. package/build/features/app/entity/entityStore.d.ts +20 -34
  86. package/build/features/app/entity/entityStore.js +224 -249
  87. package/build/features/app/individual/individualStore.d.ts +22 -32
  88. package/build/features/app/individual/individualStore.js +331 -290
  89. package/build/features/app/password/passwordStore.d.ts +33 -18
  90. package/build/features/app/password/passwordStore.js +263 -223
  91. package/build/features/app/signIn/signInStore.js +19 -15
  92. package/build/features/app/tax/taxStore.d.ts +13 -7
  93. package/build/features/app/tax/taxStore.js +178 -144
  94. package/build/features/auth/Auth.d.ts +14 -0
  95. package/build/features/auth/Auth.js +168 -0
  96. package/build/features/auth/index.d.ts +1 -0
  97. package/build/features/auth/index.js +1 -0
  98. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  99. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  100. package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -0
  101. package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -0
  102. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
  103. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -0
  104. package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
  105. package/build/features/auth/screens/AccountNotFound/index.js +2 -0
  106. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  107. package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -0
  108. package/build/features/{connectExpress/screens/AuthenticationList → auth/screens/AuthMerchant}/MerchantList.d.ts +2 -1
  109. package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -0
  110. package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -0
  111. package/build/features/auth/screens/AuthMerchant/index.js +2 -0
  112. package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -0
  113. package/build/features/auth/screens/AuthMerchant/validation.js +4 -0
  114. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  115. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  116. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  117. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  118. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  119. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -0
  120. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
  121. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
  122. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  123. package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -0
  124. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  125. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -0
  126. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
  127. package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -0
  128. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  129. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -0
  130. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
  131. package/build/features/auth/screens/AuthenticationList/index.js +2 -0
  132. package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -0
  133. package/build/features/auth/screens/AuthenticationList/validation.js +68 -0
  134. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  135. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -0
  136. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
  137. package/build/features/auth/screens/BusinessCountry/index.js +2 -0
  138. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
  139. package/build/features/auth/screens/CivilID/CivilID.js +57 -0
  140. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
  141. package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
  142. package/build/features/auth/screens/CivilID/index.d.ts +3 -0
  143. package/build/features/auth/screens/CivilID/index.js +2 -0
  144. package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
  145. package/build/features/auth/screens/CivilID/validation.js +4 -0
  146. package/build/features/auth/screens/DOB/DOB.js +47 -0
  147. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  148. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  149. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  150. package/build/features/auth/screens/DOB/index.js +2 -0
  151. package/build/features/auth/screens/DOB/validation.d.ts +8 -0
  152. package/build/features/auth/screens/DOB/validation.js +4 -0
  153. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  154. package/build/features/auth/screens/Email/Email.js +57 -0
  155. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  156. package/build/features/auth/screens/Email/EmailField.js +52 -0
  157. package/build/features/auth/screens/Email/index.d.ts +3 -0
  158. package/build/features/auth/screens/Email/index.js +2 -0
  159. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  160. package/build/features/auth/screens/Email/validation.js +4 -0
  161. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  162. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  163. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  164. package/build/features/auth/screens/EmailSent/index.js +2 -0
  165. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  166. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  167. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  168. package/build/features/auth/screens/MigratingData/index.js +2 -0
  169. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
  170. package/build/features/auth/screens/Mobile/Mobile.js +82 -0
  171. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
  172. package/build/features/auth/screens/Mobile/MobileNumber.js +156 -0
  173. package/build/features/auth/screens/Mobile/index.d.ts +3 -0
  174. package/build/features/auth/screens/Mobile/index.js +2 -0
  175. package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
  176. package/build/features/auth/screens/Mobile/validation.js +38 -0
  177. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
  178. package/build/features/auth/screens/NID/IDNumber.js +55 -0
  179. package/build/features/auth/screens/NID/NID.d.ts +5 -0
  180. package/build/features/auth/screens/NID/NID.js +56 -0
  181. package/build/features/auth/screens/NID/index.d.ts +3 -0
  182. package/build/features/auth/screens/NID/index.js +2 -0
  183. package/build/features/auth/screens/NID/validation.d.ts +8 -0
  184. package/build/features/auth/screens/NID/validation.js +10 -0
  185. package/build/features/auth/screens/OTP/OTP.js +118 -0
  186. package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTPInput.js +27 -7
  187. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  188. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  189. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  190. package/build/features/auth/screens/OperatorError/index.js +2 -0
  191. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  192. package/build/features/auth/screens/Password/Password.js +61 -0
  193. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  194. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  195. package/build/features/auth/screens/Password/index.d.ts +3 -0
  196. package/build/features/auth/screens/Password/index.js +2 -0
  197. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  198. package/build/features/auth/screens/Password/validation.js +4 -0
  199. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
  200. package/build/features/auth/screens/PreparingData/PreparingData.js +44 -0
  201. package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
  202. package/build/features/auth/screens/PreparingData/index.js +2 -0
  203. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  204. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  205. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  206. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  207. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  208. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  209. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  210. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  211. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  212. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
  213. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
  214. package/build/features/auth/screens/VerifyPACI/index.js +2 -0
  215. package/build/features/bank/Bank.d.ts +6 -1
  216. package/build/features/bank/Bank.js +26 -12
  217. package/build/features/bank/screens/BankDetails/BankDetails.js +21 -7
  218. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  219. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  220. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  221. package/build/features/bank/screens/OperatorError/index.js +2 -0
  222. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  223. package/build/features/bank/screens/Verify/Verify.js +8 -7
  224. package/build/features/board/Board.d.ts +13 -0
  225. package/build/features/board/Board.js +87 -0
  226. package/build/features/board/index.d.ts +1 -0
  227. package/build/features/board/index.js +1 -0
  228. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  229. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  230. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  231. package/build/features/board/screens/OperatorError/index.js +2 -0
  232. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  233. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  234. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  235. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  236. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  237. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  238. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  239. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  240. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  241. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +44 -0
  242. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  243. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  244. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  245. package/build/features/{business/screens/OTP → board/screens/Verify}/OTPInput.js +9 -7
  246. package/build/features/{connectExpress/screens/IdentityOTP/OTP.js → board/screens/Verify/Verify.js} +25 -37
  247. package/build/features/board/screens/Verify/index.d.ts +2 -0
  248. package/build/features/board/screens/Verify/index.js +2 -0
  249. package/build/features/brand/Brand.d.ts +6 -1
  250. package/build/features/brand/Brand.js +26 -12
  251. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +9 -9
  252. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  253. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  254. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  255. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +5 -2
  256. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  257. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  258. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  259. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  260. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  261. package/build/features/brand/screens/BrandInfo/BrandInfo.js +27 -7
  262. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  263. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  264. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  265. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  266. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  267. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  268. package/build/features/brand/screens/OperatorError/index.js +2 -0
  269. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  270. package/build/features/brand/screens/Verify/Verify.js +4 -3
  271. package/build/features/business/Business.js +20 -12
  272. package/build/features/business/screens/Activities/Activities.js +27 -10
  273. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  274. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  275. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  276. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  277. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  278. package/build/features/business/screens/BusinessType/BusinessType.js +24 -8
  279. package/build/features/business/screens/BusinessType/EntityName.js +3 -3
  280. package/build/features/business/screens/BusinessType/LicenseList.js +3 -3
  281. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  282. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  283. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  284. package/build/features/business/screens/BusinessType/validation.js +16 -0
  285. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  286. package/build/features/business/screens/Customers/CustomerLocations.d.ts +14 -12
  287. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  288. package/build/features/business/screens/Customers/Customers.js +51 -11
  289. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  290. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  291. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  292. package/build/features/business/screens/Customers/ExpectedSalesRange.js +10 -4
  293. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  294. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  295. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  296. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  297. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  298. package/build/features/business/screens/Customers/validation.js +3 -8
  299. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  300. package/build/features/business/screens/DOB/DOB.js +45 -0
  301. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  302. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  303. package/build/features/business/screens/DOB/index.d.ts +3 -0
  304. package/build/features/business/screens/DOB/index.js +2 -0
  305. package/build/features/business/screens/DOB/validation.d.ts +8 -0
  306. package/build/features/business/screens/DOB/validation.js +4 -0
  307. package/build/features/business/screens/IDBOD/ID.js +6 -2
  308. package/build/features/business/screens/IDBOD/IDBOD.js +18 -19
  309. package/build/features/business/screens/IDBOD/validation.d.ts +7 -0
  310. package/build/features/business/screens/IDBOD/validation.js +4 -1
  311. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  312. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  313. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  314. package/build/features/business/screens/OperatorError/index.js +2 -0
  315. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  316. package/build/features/business/screens/Verify/Verify.js +16 -5
  317. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  318. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  319. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  320. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  321. package/build/features/connect/Connect.d.ts +5 -1
  322. package/build/features/connect/Connect.js +48 -31
  323. package/build/features/connect/screens/BrandSegment/BrandSegment.js +4 -26
  324. package/build/features/connect/screens/BrandSegment/TeamSize.js +1 -1
  325. package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -9
  326. package/build/features/connect/screens/BrandSegment/validation.js +0 -3
  327. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  328. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +113 -0
  329. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  330. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  331. package/build/features/connect/screens/CivilID/CivilID.js +12 -4
  332. package/build/features/{connectExpress/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  333. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  334. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  335. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  336. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  337. package/build/features/connect/screens/DOB/index.js +2 -0
  338. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  339. package/build/features/connect/screens/DOB/validation.js +4 -0
  340. package/build/features/connect/screens/Individual/Individual.js +12 -6
  341. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  342. package/build/features/connect/screens/Individual/validation.js +11 -3
  343. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  344. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  345. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  346. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  347. package/build/features/connect/screens/Merchant/validation.js +2 -2
  348. package/build/features/connect/screens/Mobile/Mobile.js +14 -7
  349. package/build/features/connect/screens/Mobile/MobileNumber.js +15 -11
  350. package/build/features/connect/screens/Mobile/validation.js +11 -3
  351. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  352. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  353. package/build/features/connect/screens/NID/NID.js +10 -13
  354. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  355. package/build/features/connect/screens/NID/validation.js +0 -1
  356. package/build/features/connect/screens/OTP/OTP.js +7 -7
  357. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  358. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +5 -0
  359. package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
  360. package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
  361. package/build/features/connect/screens/OperatorError/index.js +2 -0
  362. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  363. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  364. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  365. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  366. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  367. package/build/features/connectExpress/ConnectExpress.js +69 -36
  368. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  369. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  370. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  371. package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
  372. package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
  373. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  374. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
  375. package/build/features/connectExpress/screens/{AuthenticationList/TerminalList.d.ts → AuthMerchant/MerchantList.d.ts} +4 -3
  376. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
  377. package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
  378. package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
  379. package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
  380. package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
  381. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +28 -17
  382. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +3 -0
  383. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
  384. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +31 -0
  385. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  386. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +3 -3
  387. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +52 -10
  388. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
  389. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
  390. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +13 -10
  391. package/build/features/connectExpress/screens/AuthenticationList/validation.js +66 -7
  392. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  393. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -0
  394. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  395. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  396. package/build/features/connectExpress/screens/CivilID/CivilID.js +16 -5
  397. package/build/features/connectExpress/screens/CivilID/IDNumber.js +7 -2
  398. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
  399. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  400. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +20 -5
  401. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +6 -5
  402. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  403. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  404. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
  405. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  406. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  407. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +68 -1
  408. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +34 -7
  409. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  410. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  411. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  412. package/build/features/connectExpress/screens/DOB/DOB.d.ts +6 -0
  413. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  414. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  415. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  416. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  417. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  418. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  419. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  420. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  421. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  422. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  423. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  424. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +2 -2
  425. package/build/features/connectExpress/screens/Mobile/Mobile.js +17 -7
  426. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +18 -14
  427. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  428. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  429. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  430. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  431. package/build/features/connectExpress/screens/NID/NID.js +15 -12
  432. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  433. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  434. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  435. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  436. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +6 -2
  437. package/build/features/connectExpress/screens/NIDMissed/NID.js +10 -8
  438. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +7 -0
  439. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -1
  440. package/build/features/connectExpress/screens/OTP/OTP.js +14 -16
  441. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  442. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  443. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  444. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  445. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  446. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  447. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  448. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  449. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  450. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  451. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  452. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  453. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  454. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  455. package/build/features/entity/Entity.d.ts +5 -1
  456. package/build/features/entity/Entity.js +26 -12
  457. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  458. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +5 -3
  459. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +6 -4
  460. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  461. package/build/features/entity/screens/EntityName/EntityName.js +44 -19
  462. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +9 -9
  463. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  464. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  465. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  466. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  467. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  468. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  469. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -11
  470. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  471. package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
  472. package/build/features/entity/screens/EntityName/validation.js +38 -9
  473. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  474. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  475. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  476. package/build/features/entity/screens/OperatorError/index.js +2 -0
  477. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  478. package/build/features/entity/screens/Verify/Verify.js +4 -3
  479. package/build/features/featuresScreens.d.ts +2 -0
  480. package/build/features/featuresScreens.js +250 -16
  481. package/build/features/individual/Individual.d.ts +5 -1
  482. package/build/features/individual/Individual.js +26 -12
  483. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  484. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +55 -15
  485. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +36 -0
  486. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  487. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  488. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -4
  489. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -4
  490. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  491. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +4 -3
  492. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  493. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  494. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  495. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  496. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  497. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  498. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -2
  499. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  500. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +79 -21
  501. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  502. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  503. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +75 -63
  504. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  505. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  506. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  507. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  508. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  509. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  510. package/build/features/individual/screens/OperatorError/index.js +2 -0
  511. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  512. package/build/features/individual/screens/Verify/Verify.js +4 -3
  513. package/build/features/password/Password.d.ts +5 -1
  514. package/build/features/password/Password.js +90 -33
  515. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  516. package/build/features/password/screens/OTP/OTP.js +4 -4
  517. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  518. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  519. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  520. package/build/features/password/screens/OperatorError/index.js +2 -0
  521. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  522. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  523. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  524. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  525. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  526. package/build/features/password/screens/Verify/Verify.js +8 -7
  527. package/build/features/shared/Address/CountryList.d.ts +7 -7
  528. package/build/features/shared/Address/InputSelect.d.ts +7 -7
  529. package/build/features/shared/Background/Background.d.ts +3 -1
  530. package/build/features/shared/Background/Background.js +9 -11
  531. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  532. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  533. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  534. package/build/features/shared/BusinessCountry/index.js +2 -0
  535. package/build/features/shared/Button/Button.js +11 -5
  536. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  537. package/build/features/shared/Button/FlowsButtons.js +19 -4
  538. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  539. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  540. package/build/features/shared/Button/index.d.ts +2 -2
  541. package/build/features/shared/Button/index.js +2 -2
  542. package/build/features/shared/Calender/Calender.d.ts +2 -1
  543. package/build/features/shared/Calender/Calender.js +3 -3
  544. package/build/features/shared/Containers/FeatureContainer.d.ts +3 -1
  545. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  546. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  547. package/build/features/shared/DataLoading/DataLoading.d.ts +4 -1
  548. package/build/features/shared/DataLoading/DataLoading.js +2 -2
  549. package/build/features/shared/Dialog/DialogContainer.js +2 -1
  550. package/build/features/shared/Footer/Footer.js +2 -1
  551. package/build/features/shared/Input/Input.d.ts +2 -2
  552. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  553. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  554. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  555. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  556. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  557. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  558. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  559. package/build/features/shared/NafathVerification/index.js +2 -0
  560. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  561. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  562. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  563. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  564. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  565. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  566. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  567. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  568. package/build/features/signIn/SignIn.js +18 -7
  569. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  570. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  571. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  572. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  573. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  574. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  575. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  576. package/build/features/tax/Tax.d.ts +5 -1
  577. package/build/features/tax/Tax.js +26 -12
  578. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  579. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  580. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  581. package/build/features/tax/screens/OperatorError/index.js +2 -0
  582. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
  583. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  584. package/build/features/tax/screens/Verify/Verify.js +8 -7
  585. package/build/hooks/index.d.ts +3 -0
  586. package/build/hooks/index.js +3 -0
  587. package/build/hooks/useAppConfig.d.ts +3 -3
  588. package/build/hooks/useAppConfig.js +10 -8
  589. package/build/hooks/useAppDispatch.d.ts +2 -0
  590. package/build/hooks/useAppTheme.js +4 -3
  591. package/build/hooks/useCountDown.d.ts +10 -0
  592. package/build/hooks/useCountDown.js +17 -0
  593. package/build/hooks/useCountry.d.ts +1 -0
  594. package/build/hooks/useCountry.js +4 -3
  595. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  596. package/build/hooks/useFormDirtyCheck.js +66 -0
  597. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  598. package/build/hooks/useSanitizedTranslation.js +15 -0
  599. package/build/hooks/useVerifyToken.d.ts +5 -2
  600. package/build/hooks/useVerifyToken.js +10 -5
  601. package/build/index.css +360 -120
  602. package/build/index.d.ts +4 -2
  603. package/build/index.js +6 -2
  604. package/build/theme/components.js +7 -0
  605. package/build/theme/palette.js +4 -2
  606. package/build/theme/shadows.js +1 -1
  607. package/build/theme/theme.d.ts +1 -1
  608. package/build/theme/theme.js +2 -2
  609. package/build/utils/array.js +2 -2
  610. package/build/utils/common.d.ts +3 -0
  611. package/build/utils/common.js +38 -2
  612. package/build/utils/device.d.ts +2 -0
  613. package/build/utils/device.js +6 -0
  614. package/build/utils/locale.js +2 -1
  615. package/build/utils/object.d.ts +1 -0
  616. package/build/utils/object.js +4 -1
  617. package/build/utils/string.d.ts +7 -2
  618. package/build/utils/string.js +32 -5
  619. package/build/utils/validation.d.ts +5 -0
  620. package/build/utils/validation.js +16 -0
  621. package/package.json +2 -2
  622. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  623. package/build/features/business/screens/OTP/OTP.js +0 -90
  624. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +0 -8
  625. package/build/features/connect/screens/BrandSegment/SegmentLocations.js +0 -66
  626. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +0 -8
  627. package/build/features/connect/screens/BrandSegment/SegmentProfits.js +0 -66
  628. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +0 -8
  629. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +0 -66
  630. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +0 -100
  631. package/build/features/connectExpress/screens/AuthenticationList/TerminalList.js +0 -101
  632. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  633. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  634. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  635. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
  636. /package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTP.d.ts +0 -0
  637. /package/build/features/{business → auth}/screens/OTP/OTPInput.d.ts +0 -0
  638. /package/build/features/{business → auth}/screens/OTP/index.d.ts +0 -0
  639. /package/build/features/{business → auth}/screens/OTP/index.js +0 -0
  640. /package/build/features/{business → auth}/screens/OTP/validation.d.ts +0 -0
  641. /package/build/features/{business → auth}/screens/OTP/validation.js +0 -0
  642. /package/build/features/{connectExpress/screens/IdentityOTP/OTPInput.d.ts → board/screens/Verify/Verify.d.ts} +0 -0
  643. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.d.ts +0 -0
  644. /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.js +0 -0
@@ -8,7 +8,7 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
8
8
  sx?: SxProps<Theme> | undefined;
9
9
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
10
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
11
- }, 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<Theme>, {}, {}>;
11
+ }, 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<Theme>, {}, {}>;
12
12
  export declare type UploadFileProps = {
13
13
  index: number;
14
14
  purpose: string;
@@ -9,7 +9,7 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
9
9
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
10
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
11
11
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
12
- }, 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>, {}, {}>;
12
+ }, 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>, {}, {}>;
13
13
  interface UploadMultipleFileProps {
14
14
  id: string;
15
15
  control: Control<FieldValues, any>;
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { memo } from 'react';
13
+ import React, { memo } from 'react';
14
14
  import { createRoot } from 'react-dom/client';
15
- import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
16
- import { settingsSelector } from '../../app/settings';
15
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
16
+ import { handleCurrentActiveScreen, settingsSelector } from '../../app/settings';
17
17
  import AnimationFlow from '../../components/AnimationFlow';
18
18
  import { store } from '../../app/store';
19
19
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
@@ -25,14 +25,25 @@ import { signInFeatureScreens } from '../featuresScreens';
25
25
  import { signInSelector } from '../app/signIn/signInStore';
26
26
  import Background from '../shared/Background';
27
27
  var SignIn = memo(function (props) {
28
+ var _a, _b;
28
29
  var theme = useAppTheme().theme;
29
- var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, settingLoading = _a.loading;
30
- var _b = useAppSelector(signInSelector), signInError = _b.error, loading = _b.loading;
30
+ var dispatch = useAppDispatch();
31
+ var _c = useAppSelector(settingsSelector), data = _c.data, error = _c.error, settingLoading = _c.loading;
32
+ var _d = useAppSelector(signInSelector), signInError = _d.error, loading = _d.loading;
31
33
  useAppConfig(__assign({ navigation: SigIn_SCREENS_NAVIGATION }, props));
32
34
  useErrorListener(signInError || error);
33
35
  useStepStartedListener();
34
- var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress;
35
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, open: open, error: error, loading: settingLoading, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: signInFeatureScreens.map(function (_a, index) {
36
+ var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress, appConfig = data.appConfig;
37
+ var animationDirection = open ? (_a = appConfig.features) === null || _a === void 0 ? void 0 : _a.dialogStartTransition : (_b = appConfig.features) === null || _b === void 0 ? void 0 : _b.dialogEndTransition;
38
+ React.useEffect(function () {
39
+ if (settingLoading || !props.open)
40
+ return;
41
+ if (!data.isValidOperator) {
42
+ dispatch(handleCurrentActiveScreen('SIGIN_OPERATOR_ERROR_STEP'));
43
+ return;
44
+ }
45
+ }, [data.isValidOperator, settingLoading]);
46
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, animationDirection: animationDirection, open: open, error: error, loading: settingLoading, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress, dialogEdgeFormat: data.appConfig.dialogEdgeFormat, features: appConfig.features }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: signInFeatureScreens.map(function (_a, index) {
36
47
  var Element = _a.element, name = _a.name;
37
48
  var isActive = activeScreen.name === name;
38
49
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -35,7 +35,7 @@ import { signInSelector } from '../../../app/signIn/signInStore';
35
35
  import ExpandIcon from '../../../../components/ExpandIcon';
36
36
  import Input from '../../../shared/Input';
37
37
  import SimpleList from '../../../../components/SimpleList';
38
- import { removeAllCharsFromNumber } from '../../../../utils';
38
+ import { getMobileNumberLen, removeAllCharsFromNumber } from '../../../../utils';
39
39
  import { useLanguage, useAppSelector } from '../../../../hooks';
40
40
  import Search from '../../../shared/Search';
41
41
  var LabelContainerStyled = styled(Box)(function (_a) {
@@ -95,9 +95,10 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
95
95
  var countryName = (isAr ? (_b = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _b === void 0 ? void 0 : _b.arabic : (_c = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _c === void 0 ? void 0 : _c.english) || '';
96
96
  var error = !!mobileValue ? (_d = phoneControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message : '';
97
97
  var isSA = countryCodeValue.iso2 === 'SA';
98
- var mobileLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.digits;
99
- var isStartsWith5 = mobileValue.startsWith('5');
100
- var requiredLen = isSA && isStartsWith5 ? mobileLen - 1 : mobileLen;
98
+ var mobileMaxLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.max_digits;
99
+ var mobileMinLen = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.min_digits;
100
+ var requiredMaxLen = getMobileNumberLen(mobileMaxLen, mobileValue);
101
+ var requiredMinLen = getMobileNumberLen(mobileMinLen, mobileValue);
101
102
  React.useEffect(function () {
102
103
  if (mobileValue)
103
104
  setValue('mobile', mobileValue, { shouldValidate: true });
@@ -139,12 +140,12 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
139
140
  var filteredCountries = countries.filter(function (country) {
140
141
  return country.idd_prefix.toString().toLowerCase().startsWith(value.replace('+', '').toLowerCase()) ||
141
142
  country.capital.toLowerCase().startsWith(value.toLowerCase()) ||
142
- country.name.arabic.toLowerCase().startsWith(value.toLowerCase()) ||
143
- country.name.english.toLowerCase().startsWith(value.toLowerCase());
143
+ country.name.arabic.toLowerCase().includes(value.toLowerCase()) ||
144
+ country.name.english.toLowerCase().includes(value.toLowerCase());
144
145
  });
145
146
  setCountries(filteredCountries);
146
147
  };
147
- return (_jsxs(ScreenContainer, __assign({ ref: ref, sx: { minHeight: mobileValue ? '133px' : '0px' } }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_enter_mobile') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredLen }, type: 'tel', readOnly: !!anchorEl, required: true, onClick: onCloseCountryList, onChange: onPhoneNumberChange, onEnterPressed: function (e) { return loading && e.preventDefault(); }, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: function () { return toggleCountryList(); } }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { onClick: function () { return toggleCountryList(); }, anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: !anchorEl ? error && t(error, { length: requiredLen, number: '05|5' }) : undefined }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleList, { searchKeyPath: 'name.english', list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
148
+ return (_jsxs(ScreenContainer, __assign({ ref: ref, sx: { minHeight: mobileValue ? '133px' : '0px' } }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_enter_mobile') }) }), _jsx(InputStyled, { inputProps: { maxLength: requiredMaxLen }, type: 'tel', readOnly: !!anchorEl, required: true, onClick: onCloseCountryList, onChange: onPhoneNumberChange, onEnterPressed: function (e) { return loading && e.preventDefault(); }, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: function () { return toggleCountryList(); } }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { onClick: function () { return toggleCountryList(); }, anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: !anchorEl ? error && t(error, { minLength: requiredMinLen, length: requiredMaxLen, number: '05|5' }) : undefined }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleList, { searchKeyPath: 'name.english', list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
148
149
  return (_jsxs(_Fragment, { children: [_jsxs(CountryItemContainer, { children: [_jsxs(CountryCodeText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: ["+", item.idd_prefix] })), _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english }))] }), item.idd_prefix === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) && _jsx(CheckIcon, {})] }));
149
150
  } })] }))] })));
150
151
  });
@@ -1,3 +1,4 @@
1
+ import { getMobileNumberLen } from '../../../../utils';
1
2
  import * as yup from 'yup';
2
3
  export var PhoneValidationSchema = yup.object().shape({
3
4
  mobile: yup
@@ -6,7 +7,8 @@ export var PhoneValidationSchema = yup.object().shape({
6
7
  test: function (value) {
7
8
  var countryCode = this.parent.countryCode;
8
9
  var isSA = countryCode.iso2 === 'SA';
9
- var digits = countryCode.digits;
10
+ var maxDigits = countryCode.max_digits;
11
+ var minDigits = countryCode.min_digits;
10
12
  var mobileValue = value || '';
11
13
  var valueLen = mobileValue.length;
12
14
  var isNumber = mobileValue.match(/^[0-9]/g);
@@ -18,10 +20,16 @@ export var PhoneValidationSchema = yup.object().shape({
18
20
  if (isSA) {
19
21
  if (!isSaudiNumber)
20
22
  return this.createError({ message: 'start_with_number' });
21
- var requiredLen = isStartWith5 ? digits - 1 : digits;
23
+ var requiredLen = isStartWithZero ? maxDigits + 1 : maxDigits;
22
24
  return valueLen === requiredLen ? true : this.createError({ message: 'enter_valid_mobile_number' });
23
25
  }
24
- return valueLen === digits ? true : this.createError({ message: 'enter_valid_mobile_number' });
26
+ var requiredMaxLen = getMobileNumberLen(maxDigits, mobileValue);
27
+ var requiredMinLen = getMobileNumberLen(minDigits, mobileValue);
28
+ if (valueLen >= requiredMinLen && valueLen <= requiredMaxLen)
29
+ return true;
30
+ if (minDigits === maxDigits)
31
+ return this.createError({ message: 'enter_valid_mobile_number' });
32
+ return this.createError({ message: 'enter_valid_mobile_number_min_max_length' });
25
33
  }
26
34
  })
27
35
  .required('mobile_number_error')
@@ -29,7 +29,7 @@ import Text from '../../../../components/Text';
29
29
  import { clearError, signInSelector, resetOTPScreen, verifyAuthOTP } from '../../../app/signIn/signInStore';
30
30
  import Button from '../../../shared/Button';
31
31
  import { ScreenContainer } from '../../../shared/Containers';
32
- import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
32
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useSanitizedTranslation } from '../../../../hooks';
33
33
  import { handlePrevScreenStep } from '../../../../app/settings';
34
34
  import { useLanguage } from '../../../../hooks';
35
35
  import { useForm, FormProvider } from 'react-hook-form';
@@ -60,6 +60,7 @@ var FormStyled = styled(Form)(function () { return ({
60
60
  var OTP = function () {
61
61
  var _a;
62
62
  var dispatch = useAppDispatch();
63
+ var st = useSanitizedTranslation();
63
64
  var _b = useAppSelector(signInSelector), data = _b.data, loading = _b.loading, error = _b.error;
64
65
  var _c = data.otpData, responseBody = _c.responseBody, defaultValues = __rest(_c, ["responseBody"]);
65
66
  var methods = useForm({
@@ -85,9 +86,9 @@ var OTP = function () {
85
86
  dispatch(handlePrevScreenStep(isEmail ? 'SIGIN_EMAIL_STEP' : 'SIGIN_MOBILE_STEP'));
86
87
  };
87
88
  var disabled = !methods.formState.isValid || !!error;
88
- var phone = ((_a = data.auth.countryCode) === null || _a === void 0 ? void 0 : _a.idd_prefix) + (data.auth.mobile || '');
89
+ var phone = data.auth.mobile ? ((_a = data.auth.countryCode) === null || _a === void 0 ? void 0 : _a.idd_prefix) + data.auth.mobile : '';
89
90
  var email = data.auth.email || '';
90
- var title = t('ide_opt_sent_title');
91
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : title, !loading && _jsx("span", __assign({ dir: 'ltr' }, { children: isEmail ? maskEmail(email) : maskPhone(phone) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
91
+ var title = st('ide_opt_sent_title');
92
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? st('ide_otp_waiting_title') : title, !loading && _jsx("span", __assign({ dir: 'ltr' }, { children: isEmail ? maskEmail(email) : maskPhone(phone) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: st(error || '') }, { children: st('next') }))] })) })) }));
92
93
  };
93
94
  export default React.memo(OTP);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OperatorErrorProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import GenericError from '../../../shared/GenericError';
5
+ var OperatorError = function (_a) {
6
+ var t = useTranslation().t;
7
+ return _jsx(GenericError, { error: t('operator_is_invalid'), errorTitle: t('oops') });
8
+ };
9
+ export default React.memo(OperatorError);
@@ -0,0 +1,3 @@
1
+ import OperatorError, { OperatorErrorProps } from './OperatorError';
2
+ export type { OperatorErrorProps };
3
+ export default OperatorError;
@@ -0,0 +1,2 @@
1
+ import OperatorError from './OperatorError';
2
+ export default OperatorError;
@@ -3,8 +3,12 @@ import { LibConfig } from '../../@types';
3
3
  export interface TaxLibProps extends LibConfig {
4
4
  verifyToken?: string;
5
5
  configToken?: string;
6
+ loaderColor?: string;
6
7
  }
7
- export declare function TaxElement(props: TaxLibProps): JSX.Element;
8
+ export interface TaxLibFullProps extends TaxLibProps {
9
+ unmount?: () => void;
10
+ }
11
+ export declare function TaxElement(props: TaxLibFullProps): JSX.Element;
8
12
  export declare function renderTaxLib(config: TaxLibProps, elementId: string): {
9
13
  unmount: () => void;
10
14
  };
@@ -23,28 +23,32 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import React, { memo } from 'react';
25
25
  import { createRoot } from 'react-dom/client';
26
- import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
27
- import { settingsSelector } from '../../app/settings';
26
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken, useAppDispatch } from '../../hooks';
27
+ import { handleOpen, settingsSelector } from '../../app/settings';
28
28
  import AnimationFlow from '../../components/AnimationFlow';
29
29
  import { store } from '../../app/store';
30
30
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
31
31
  import Collapse from '../../components/Collapse';
32
- import { findOrCreateElementAndInject, sendPageView } from '../../utils';
32
+ import { findOrCreateElementAndInject, initializeGTM, sendPageView } from '../../utils';
33
33
  import { FeatureContainer } from '../shared/Containers';
34
34
  import { TAX_SCREENS_NAVIGATION } from '../../constants';
35
35
  import { taxFeatureScreens } from '../featuresScreens';
36
36
  import { taxSelector, verifyLeadToken } from '../app/tax/taxStore';
37
37
  import Background from '../shared/Background';
38
38
  var Tax = memo(function (_a) {
39
- var configToken = _a.configToken, verifyToken = _a.verifyToken, props = __rest(_a, ["configToken", "verifyToken"]);
39
+ var _b, _c, _d;
40
+ var configToken = _a.configToken, verifyToken = _a.verifyToken, loaderColor = _a.loaderColor, props = __rest(_a, ["configToken", "verifyToken", "loaderColor"]);
40
41
  var theme = useAppTheme().theme;
41
- var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading, internalLoading = _b.internalLoading;
42
- var _c = useAppSelector(taxSelector), customLoading = _c.customLoading, taxError = _c.error, loading = _c.loading;
43
- useAppConfig(__assign(__assign({ configToken: configToken, navigation: TAX_SCREENS_NAVIGATION }, props), { disableSettingFetching: !!verifyToken }));
42
+ var dispatch = useAppDispatch();
43
+ var _e = useAppSelector(settingsSelector), data = _e.data, error = _e.error, settingLoading = _e.loading;
44
+ var _f = useAppSelector(taxSelector), customLoading = _f.customLoading, taxError = _f.error, loading = _f.loading;
45
+ useAppConfig(__assign(__assign({ navigation: TAX_SCREENS_NAVIGATION }, props), { disableSettingFetching: props.mode === 'content' ? false : !!verifyToken || !!configToken }));
44
46
  useErrorListener(taxError || error);
45
47
  useStepStartedListener();
46
- var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress;
48
+ var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress, appConfig = data.appConfig;
49
+ var animationDirection = open ? (_b = appConfig.features) === null || _b === void 0 ? void 0 : _b.dialogStartTransition : (_c = appConfig.features) === null || _c === void 0 ? void 0 : _c.dialogEndTransition;
47
50
  React.useEffect(function () {
51
+ initializeGTM();
48
52
  sendPageView({
49
53
  title: 'Tax'
50
54
  });
@@ -54,11 +58,21 @@ var Tax = memo(function (_a) {
54
58
  loadingScreenName: 'TAX_LOADING_DATA_STEP',
55
59
  navigation: featureScreensNavigation,
56
60
  open: open,
61
+ mode: props.mode,
57
62
  internalToken: verifyToken,
58
- settingLoading: configToken ? internalLoading : settingLoading
63
+ settingLoading: settingLoading,
64
+ operatorErrorScreenName: 'TAX_OPERATOR_ERROR_STEP',
65
+ isValidOperator: data.isValidOperator
59
66
  });
60
- var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
61
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, open: open, error: error, loading: initialLoading, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: taxFeatureScreens.map(function (_a, index) {
67
+ var handleDialogClose = function () {
68
+ dispatch(handleOpen(false));
69
+ setTimeout(function () {
70
+ var _a;
71
+ (_a = props.unmount) === null || _a === void 0 ? void 0 : _a.call(props);
72
+ }, 1100);
73
+ };
74
+ var initialLoading = verifyToken && props.mode !== 'content' ? settingLoading : settingLoading || customLoading;
75
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ mode: props.mode, open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, onClose: ((_d = appConfig.features) === null || _d === void 0 ? void 0 : _d.closeButton) ? handleDialogClose : undefined, animationDirection: animationDirection, open: open, error: error, loading: initialLoading, loaderColor: loaderColor, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress, type: props.mode === 'content' ? 'CONTENT' : undefined, dialogEdgeFormat: data.appConfig.dialogEdgeFormat, features: appConfig.features }, { children: _jsx(FeatureContainer, __assign({ mode: props.mode, isMaturityExpress: isMaturityExpress }, { children: taxFeatureScreens.map(function (_a, index) {
62
76
  var Element = _a.element, name = _a.name;
63
77
  var isActive = activeScreen.name === name;
64
78
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -70,7 +84,7 @@ export function TaxElement(props) {
70
84
  export function renderTaxLib(config, elementId) {
71
85
  var element = findOrCreateElementAndInject(elementId);
72
86
  var root = createRoot(element);
73
- root.render(_jsx(TaxElement, __assign({}, config)));
74
87
  var unmount = function () { return root.unmount(); };
88
+ root.render(_jsx(TaxElement, __assign({}, config, { unmount: unmount })));
75
89
  return { unmount: unmount };
76
90
  }
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OperatorErrorProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import GenericError from '../../../shared/GenericError';
5
+ var OperatorError = function (_a) {
6
+ var t = useTranslation().t;
7
+ return _jsx(GenericError, { error: t('operator_is_invalid'), errorTitle: t('oops') });
8
+ };
9
+ export default React.memo(OperatorError);
@@ -0,0 +1,3 @@
1
+ import OperatorError, { OperatorErrorProps } from './OperatorError';
2
+ export type { OperatorErrorProps };
3
+ export default OperatorError;
@@ -0,0 +1,2 @@
1
+ import OperatorError from './OperatorError';
2
+ export default OperatorError;
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
21
21
  var _a = useAppSelector(taxSelector), data = _a.data, loading = _a.loading;
22
22
  var settingsData = useAppSelector(settingsSelector).data;
23
23
  var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
24
- var redirectUrl = settingsData.appConfig.redirectUrl;
25
- var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
24
+ var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals, recipient = _b.recipient, board_status = _b.board_status;
26
25
  var onClose = function () {
27
26
  dispatch(onCloseCompleteTax());
28
27
  };
29
- return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication && redirectUrl ? onClose : undefined }));
28
+ return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined, recipient: recipient, status: board_status }));
30
29
  };
31
30
  export default memo(SuccessWithFlowButtons);
@@ -16,7 +16,7 @@ import { useForm, FormProvider } from 'react-hook-form';
16
16
  import { yupResolver } from '@hookform/resolvers/yup';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import Form from '../../../../components/Form';
19
- import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
19
+ import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
20
20
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
21
21
  import { DocumentPurpose } from '../../../../@types';
22
22
  import { deepCopy, getFileDetailsFromDocument, isSA } from '../../../../utils';
@@ -55,13 +55,18 @@ var TaxDetails = function () {
55
55
  var noneEditable = useDataNoneEditable(data_status, ['tax_number', 'documents', 'is_vat_acknowledged']);
56
56
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
57
57
  var dataVerified = useDataVerified(data_verification, ['tax_number']);
58
+ var isDirty = useFormDirtyCheck(methods, {
59
+ vatId: entity === null || entity === void 0 ? void 0 : entity.vat_id,
60
+ confirmPolicy: entity === null || entity === void 0 ? void 0 : entity.is_vat_acknowledged
61
+ }).isDirty;
58
62
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
59
63
  var isVatIdVerified = dataVerified['tax_number'] && vat_id === methods.watch('vatId');
60
64
  var t = useTranslation().t;
61
65
  var isAr = useLanguage().isAr;
62
66
  var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
63
67
  var onSubmit = function (data) {
64
- dispatch(updateTaxInfo(deepCopy(getFelids(data))));
68
+ var formData = __assign(__assign({}, deepCopy(getFelids(data))), { isDirty: isDirty });
69
+ dispatch(updateTaxInfo(formData));
65
70
  };
66
71
  var onBack = function () {
67
72
  if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
@@ -70,6 +75,7 @@ var TaxDetails = function () {
70
75
  }
71
76
  dispatch(retrieveBoardStatus());
72
77
  };
73
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(VATId, { readOnly: readOnly['vatId'] || noneEditable['tax_number'], isVerified: isVatIdVerified }), _jsx(TaxDocument, { show: isSACountry, defaultFiles: defaultTaxFiles, readOnly: readOnly['documentId'] || noneEditable['documents'] }), _jsx(ConfirmPolicy, { readOnly: readOnly['confirmPolicy'] || noneEditable['is_vat_acknowledged'] }), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid || uploading, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
78
+ var disableBack = settingsData.appConfig.mode === 'content';
79
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(VATId, { readOnly: readOnly['vatId'] || noneEditable['tax_number'], isVerified: isVatIdVerified }), _jsx(TaxDocument, { show: isSACountry, defaultFiles: defaultTaxFiles, readOnly: readOnly['documentId'] || noneEditable['documents'] }), _jsx(ConfirmPolicy, { readOnly: readOnly['confirmPolicy'] || noneEditable['is_vat_acknowledged'] }), _jsx(Button, __assign({ disableBack: disableBack, onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid || uploading, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
74
80
  };
75
81
  export default TaxDetails;
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { useAppDispatch, useSetFromDefaultValues } from '../../../../hooks';
14
+ import { useAppDispatch, useSetFromDefaultValues, useSanitizedTranslation } from '../../../../hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
@@ -46,9 +46,10 @@ var FormStyled = styled(Form)(function () { return ({
46
46
  flexDirection: 'column'
47
47
  }); });
48
48
  var VerifyNumber = function (_a) {
49
- var _b, _c, _d, _e;
49
+ var _b, _c;
50
50
  var dispatch = useAppDispatch();
51
- var _f = useAppSelector(taxSelector), data = _f.data, loading = _f.loading, error = _f.error;
51
+ var _d = useAppSelector(taxSelector), data = _d.data, loading = _d.loading, error = _d.error;
52
+ var st = useSanitizedTranslation();
52
53
  var methods = useForm({
53
54
  resolver: yupResolver(OTPValidation),
54
55
  defaultValues: data.otpData,
@@ -57,8 +58,8 @@ var VerifyNumber = function (_a) {
57
58
  useSetFromDefaultValues(methods, data.otpData);
58
59
  var t = useTranslation().t;
59
60
  var isAr = useLanguage().isAr;
60
- var _g = React.useState(false), resendLoading = _g[0], setResendLoading = _g[1];
61
- var phone = (_e = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.contact) === null || _d === void 0 ? void 0 : _d.phone) === null || _e === void 0 ? void 0 : _e.number;
61
+ var _e = React.useState(false), resendLoading = _e[0], setResendLoading = _e[1];
62
+ var phone = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verification_by) === null || _c === void 0 ? void 0 : _c.sent_to;
62
63
  React.useEffect(function () {
63
64
  if (error && methods.formState.isValid && phone)
64
65
  dispatch(clearError());
@@ -69,7 +70,7 @@ var VerifyNumber = function (_a) {
69
70
  var onSubmit = function (formData) {
70
71
  dispatch(verifyTaxLeadOTP(deepCopy(formData)));
71
72
  };
72
- var disabled = !methods.formState.isValid || !!error || !phone || resendLoading;
73
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
73
+ var disabled = !methods.formState.isValid || !phone || resendLoading;
74
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? st('ide_otp_waiting_title') : st('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, loading: loading, error: st(error || '') }, { children: st('next') }))] })) })) }));
74
75
  };
75
76
  export default React.memo(VerifyNumber);
@@ -13,6 +13,7 @@ export * from './useStepStartedListener';
13
13
  export * from './useScreen';
14
14
  export * from './useSetFromDefaultValues';
15
15
  export * from './useCountUp';
16
+ export * from './useCountDown';
16
17
  export * from './useCountry';
17
18
  export * from './useVerifyToken';
18
19
  export * from './useFormReadOnly';
@@ -20,3 +21,5 @@ export * from './useDataNoneEditable';
20
21
  export * from './useFormErrorAndUpdateReadOnly';
21
22
  export * from './useExcludeReadOnlyFelids';
22
23
  export * from './useDataVerified';
24
+ export * from './useFormDirtyCheck';
25
+ export * from './useSanitizedTranslation';
@@ -13,6 +13,7 @@ export * from './useStepStartedListener';
13
13
  export * from './useScreen';
14
14
  export * from './useSetFromDefaultValues';
15
15
  export * from './useCountUp';
16
+ export * from './useCountDown';
16
17
  export * from './useCountry';
17
18
  export * from './useVerifyToken';
18
19
  export * from './useFormReadOnly';
@@ -20,3 +21,5 @@ export * from './useDataNoneEditable';
20
21
  export * from './useFormErrorAndUpdateReadOnly';
21
22
  export * from './useExcludeReadOnlyFelids';
22
23
  export * from './useDataVerified';
24
+ export * from './useFormDirtyCheck';
25
+ export * from './useSanitizedTranslation';
@@ -1,4 +1,4 @@
1
- import { ConfigExpressTokenParams, LibConfig, ScreenStepNavigation } from '../@types';
1
+ import { ConfigInfo, LibConfig, ScreenStepNavigation } from '../@types';
2
2
  interface AppConfigProps extends LibConfig {
3
3
  navigation: ScreenStepNavigation[];
4
4
  disableCountries?: boolean;
@@ -6,7 +6,7 @@ interface AppConfigProps extends LibConfig {
6
6
  disableSettingFetching?: boolean;
7
7
  maturity?: 'full' | 'express';
8
8
  configToken?: string;
9
- onVerifyConfigTokenSuccess?: (data: ConfigExpressTokenParams) => Promise<void>;
9
+ onVerifyConfigTokenSuccess?: (data: ConfigInfo) => Promise<void>;
10
10
  }
11
- export declare const useAppConfig: ({ appInfo, navigation, publicKey, disableCountries, disableLocale, disableSettingFetching, maturity, boardMaturity, configToken, onVerifyConfigTokenSuccess, ...rest }: AppConfigProps) => void;
11
+ export declare const useAppConfig: ({ appInfo, navigation, publicKey, disableCountries, disableLocale, disableSettingFetching, maturity, boardMaturity, configToken, onVerifyConfigTokenSuccess, scope, mode, showBoard, features, ...rest }: AppConfigProps) => void;
12
12
  export {};
@@ -21,20 +21,22 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { useEffect } from 'react';
24
- import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector, updateInternalLoading } from '../app/settings';
24
+ import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector } from '../app/settings';
25
25
  import { useAppDispatch } from './useAppDispatch';
26
26
  import { useAppSelector } from './useAppSelector';
27
- import { isTapDomain, removeRequestHeaders, setBaseUrl } from '../utils';
27
+ import { isConnectTapDomain, removeRequestHeaders, setBaseUrl } from '../utils';
28
28
  export var useAppConfig = function (_a) {
29
- var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, disableCountries = _a.disableCountries, disableLocale = _a.disableLocale, disableSettingFetching = _a.disableSettingFetching, maturity = _a.maturity, boardMaturity = _a.boardMaturity, configToken = _a.configToken, onVerifyConfigTokenSuccess = _a.onVerifyConfigTokenSuccess, rest = __rest(_a, ["appInfo", "navigation", "publicKey", "disableCountries", "disableLocale", "disableSettingFetching", "maturity", "boardMaturity", "configToken", "onVerifyConfigTokenSuccess"]);
29
+ var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, disableCountries = _a.disableCountries, disableLocale = _a.disableLocale, disableSettingFetching = _a.disableSettingFetching, maturity = _a.maturity, boardMaturity = _a.boardMaturity, configToken = _a.configToken, onVerifyConfigTokenSuccess = _a.onVerifyConfigTokenSuccess, scope = _a.scope, mode = _a.mode, showBoard = _a.showBoard, features = _a.features, rest = __rest(_a, ["appInfo", "navigation", "publicKey", "disableCountries", "disableLocale", "disableSettingFetching", "maturity", "boardMaturity", "configToken", "onVerifyConfigTokenSuccess", "scope", "mode", "showBoard", "features"]);
30
30
  var dispatch = useAppDispatch();
31
31
  var data = useAppSelector(settingsSelector).data;
32
32
  var setAppConfig = function () {
33
- dispatch(handleSetAppConfig(__assign({ appInfo: appInfo, publicKey: publicKey }, rest)));
33
+ if (!disableSettingFetching) {
34
+ dispatch(handleSetAppConfig(__assign({ appInfo: appInfo, publicKey: publicKey, scope: scope === null || scope === void 0 ? void 0 : scope.toLowerCase(), mode: mode !== null && mode !== void 0 ? mode : 'page', showBoard: showBoard !== null && showBoard !== void 0 ? showBoard : true, features: __assign({ merchantLogo: true, switchLanguage: true, overlay: true, loaderOverlay: true }, features) }, rest)));
35
+ }
34
36
  dispatch(handleActiveFlowScreens(navigation));
35
37
  };
36
38
  var checkDomain = function () {
37
- var isTap = isTapDomain(rest.merchantDomain);
39
+ var isTap = isConnectTapDomain(rest.merchantDomain);
38
40
  dispatch(handleIsTapOrigin(isTap));
39
41
  };
40
42
  useEffect(function () {
@@ -45,7 +47,6 @@ export var useAppConfig = function (_a) {
45
47
  return;
46
48
  if (!disableSettingFetching && !configToken)
47
49
  removeRequestHeaders();
48
- dispatch(updateInternalLoading(true));
49
50
  checkDomain();
50
51
  setBaseUrl(publicKey);
51
52
  setAppConfig();
@@ -53,14 +54,15 @@ export var useAppConfig = function (_a) {
53
54
  dispatch(handelBoardMaturity(boardMaturity));
54
55
  if (!data.isMaturityExpress)
55
56
  dispatch(handleLanguage(rest.language));
56
- if (!disableSettingFetching || configToken)
57
+ if (!disableSettingFetching)
57
58
  dispatch(fetchAppSettingsSync({
58
59
  disableCountries: disableCountries,
59
60
  disableLocale: disableLocale,
60
61
  mdn: rest.merchantDomain,
61
62
  maturity: maturity,
62
63
  onVerifyConfigTokenSuccess: onVerifyConfigTokenSuccess,
63
- configToken: configToken
64
+ configToken: configToken,
65
+ settingData: rest.settingData
64
66
  }));
65
67
  }, []);
66
68
  };
@@ -10,4 +10,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
10
10
  entity: import("../features/app/entity/entityStore").EntityState;
11
11
  brand: import("../features/app/brand/brandStore").BrandState;
12
12
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
13
+ auth: import("../features/app/auth/authStore").AuthState;
14
+ board: import("../features/app/board/boardStore").BoardState;
13
15
  }, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { LanguageMode, DirectionMode } from '../@types';
3
3
  import { settingsSelector } from '../app/settings';
4
- import { isMobile } from 'react-device-detect';
4
+ import { isMobile, isTablet } from 'react-device-detect';
5
5
  import { useAppSelector } from './useAppSelector';
6
6
  import { appTheme } from '../theme';
7
7
  export var useAppTheme = function () {
@@ -9,7 +9,8 @@ export var useAppTheme = function () {
9
9
  var data = useAppSelector(settingsSelector).data;
10
10
  useEffect(function () {
11
11
  var dir = data.language === LanguageMode.AR ? DirectionMode.RTL : DirectionMode.LTR;
12
- setTheme(appTheme(data.skin, isMobile, dir));
13
- }, [data.skin, data.language, isMobile]);
12
+ var isSmallScreen = isMobile && !isTablet;
13
+ setTheme(appTheme(data.skin, dir, isSmallScreen));
14
+ }, [data.skin, data.language, isMobile, isTablet]);
14
15
  return { theme: theme };
15
16
  };
@@ -0,0 +1,10 @@
1
+ interface CountDownOptions {
2
+ end?: number;
3
+ start: number;
4
+ startTimer: boolean;
5
+ sleepMS?: number;
6
+ }
7
+ export declare const useCountDown: ({ end, start, startTimer, sleepMS }: CountDownOptions) => {
8
+ count: number;
9
+ };
10
+ export {};