@tap-payments/auth-jsconnect 2.7.11-test → 2.8.0-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/build/@types/app.d.ts +18 -17
  2. package/build/@types/config.d.ts +1 -1
  3. package/build/@types/form.d.ts +25 -22
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/auth.d.ts +15 -31
  7. package/build/api/auth.js +1 -1
  8. package/build/api/availabilityServices.d.ts +3 -3
  9. package/build/api/axios.js +1 -1
  10. package/build/api/board.d.ts +3 -3
  11. package/build/api/brand.d.ts +1 -1
  12. package/build/api/country.d.ts +1 -1
  13. package/build/api/data.d.ts +11 -11
  14. package/build/api/document.d.ts +2 -2
  15. package/build/api/entity.d.ts +10 -10
  16. package/build/api/file.d.ts +1 -1
  17. package/build/api/individual.d.ts +5 -5
  18. package/build/api/init.d.ts +1 -1
  19. package/build/api/lead.d.ts +12 -12
  20. package/build/api/lead.js +1 -1
  21. package/build/api/operator.d.ts +2 -2
  22. package/build/api/operator.js +1 -1
  23. package/build/api/user.d.ts +2 -2
  24. package/build/app/settings.d.ts +21 -3
  25. package/build/app/settings.js +2 -2
  26. package/build/app/store.d.ts +4 -4
  27. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  28. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  29. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  30. package/build/components/AnimationFlow/Error.d.ts +1 -2
  31. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  32. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  33. package/build/components/Button/Button.d.ts +1 -1
  34. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  35. package/build/components/Collapse/Collapse.d.ts +1 -2
  36. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  37. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  38. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  39. package/build/components/FileInput/UploadInput.d.ts +1 -2
  40. package/build/components/Footer/Footer.d.ts +1 -1
  41. package/build/components/Form/Form.d.ts +1 -1
  42. package/build/components/Input/Input.d.ts +1 -1
  43. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  44. package/build/components/List/List.d.ts +1 -1
  45. package/build/components/ListItem/ListItem.d.ts +1 -1
  46. package/build/components/Loader/Loader.d.ts +1 -1
  47. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  48. package/build/components/OTPField/OTPField.d.ts +1 -1
  49. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  50. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  51. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  52. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  53. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  54. package/build/components/Radio/Radio.d.ts +1 -1
  55. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  56. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  57. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  58. package/build/components/Slide/Slide.d.ts +1 -1
  59. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  60. package/build/components/Text/Text.d.ts +1 -1
  61. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  62. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  63. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  64. package/build/components/Warning/Warning.d.ts +1 -1
  65. package/build/constants/api.d.ts +1 -0
  66. package/build/constants/api.js +2 -0
  67. package/build/constants/app.d.ts +3 -1
  68. package/build/constants/app.js +27 -7
  69. package/build/constants/assets.d.ts +1 -0
  70. package/build/constants/assets.js +2 -1
  71. package/build/constants/validation.d.ts +1 -0
  72. package/build/constants/validation.js +1 -0
  73. package/build/features/app/auth/authStore.d.ts +183 -18
  74. package/build/features/app/auth/authStore.js +152 -37
  75. package/build/features/app/bank/bankStore.d.ts +92 -11
  76. package/build/features/app/bank/bankStore.js +18 -11
  77. package/build/features/app/board/boardStore.d.ts +41 -5
  78. package/build/features/app/board/boardStore.js +1 -1
  79. package/build/features/app/brand/brandStore.d.ts +142 -16
  80. package/build/features/app/brand/brandStore.js +16 -10
  81. package/build/features/app/business/businessStore.d.ts +162 -18
  82. package/build/features/app/business/businessStore.js +1 -1
  83. package/build/features/app/connect/connectStore.d.ts +151 -16
  84. package/build/features/app/connect/connectStore.js +1 -1
  85. package/build/features/app/connectExpress/connectExpressStore.d.ts +271 -30
  86. package/build/features/app/connectExpress/connectExpressStore.js +35 -39
  87. package/build/features/app/entity/entityStore.d.ts +92 -11
  88. package/build/features/app/entity/entityStore.js +16 -10
  89. package/build/features/app/individual/individualStore.d.ts +189 -23
  90. package/build/features/app/individual/individualStore.js +19 -13
  91. package/build/features/app/password/passwordStore.d.ts +117 -13
  92. package/build/features/app/password/passwordStore.js +31 -19
  93. package/build/features/app/signIn/signInStore.d.ts +61 -7
  94. package/build/features/app/signIn/signInStore.js +1 -1
  95. package/build/features/app/tax/taxStore.d.ts +82 -10
  96. package/build/features/app/tax/taxStore.js +17 -11
  97. package/build/features/auth/Auth.d.ts +1 -2
  98. package/build/features/auth/Auth.js +6 -7
  99. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  100. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  101. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  102. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  103. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  104. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +45 -0
  105. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  106. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  107. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  108. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  109. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  110. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  111. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
  112. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  113. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  114. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  115. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +3 -3
  116. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  117. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  118. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  119. package/build/features/auth/screens/Email/Email.js +57 -0
  120. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  121. package/build/features/auth/screens/Email/EmailField.js +52 -0
  122. package/build/features/auth/screens/Email/index.d.ts +3 -0
  123. package/build/features/auth/screens/Email/index.js +2 -0
  124. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  125. package/build/features/auth/screens/Email/validation.js +4 -0
  126. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  127. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  128. package/build/features/auth/screens/Mobile/MobileNumber.js +6 -9
  129. package/build/features/auth/screens/NID/DOB.d.ts +1 -2
  130. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  131. package/build/features/auth/screens/NID/NID.js +4 -34
  132. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  133. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  134. package/build/features/auth/screens/OTP/OTPInput.js +8 -1
  135. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  136. package/build/features/auth/screens/Password/Password.js +61 -0
  137. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  138. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  139. package/build/features/auth/screens/Password/index.d.ts +3 -0
  140. package/build/features/auth/screens/Password/index.js +2 -0
  141. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  142. package/build/features/auth/screens/Password/validation.js +4 -0
  143. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  144. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  145. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  146. package/build/features/bank/Bank.d.ts +1 -2
  147. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  148. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  149. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  150. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  151. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  152. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  153. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  154. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  155. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  156. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  157. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  158. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  159. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  160. package/build/features/board/Board.d.ts +1 -2
  161. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  162. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  163. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  164. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  165. package/build/features/brand/Brand.d.ts +1 -2
  166. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -29
  167. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  168. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  169. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  170. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  171. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
  172. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
  173. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  174. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  175. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  176. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  177. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  178. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  179. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  180. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  181. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  182. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  183. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  184. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  185. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  186. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  187. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  188. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  189. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  190. package/build/features/business/Business.d.ts +1 -2
  191. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  192. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  193. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  194. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  195. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  196. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  197. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  198. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  199. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  200. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  201. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  202. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  203. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  204. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  205. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  206. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  207. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  208. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  209. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  210. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  211. package/build/features/business/screens/Customers/CustomerLocations.d.ts +17 -41
  212. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  213. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  214. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  215. package/build/features/business/screens/Customers/RefundPolicy.d.ts +11 -19
  216. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
  217. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  218. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  219. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  220. package/build/features/business/screens/OTP/OTP.d.ts +1 -1
  221. package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
  222. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  223. package/build/features/business/screens/Success/Success.d.ts +1 -1
  224. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  225. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  226. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  227. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  228. package/build/features/connect/Connect.d.ts +1 -2
  229. package/build/features/connect/Connect.js +1 -1
  230. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  231. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  232. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  233. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  234. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  235. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  236. package/build/features/connect/screens/Individual/Email.js +1 -1
  237. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  238. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  239. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  240. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  241. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  242. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  243. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  244. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  245. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  246. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  247. package/build/features/connect/screens/NID/DOB.d.ts +1 -2
  248. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  249. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  250. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  251. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  252. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  253. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  254. package/build/features/connectExpress/ConnectExpress.d.ts +1 -3
  255. package/build/features/connectExpress/ConnectExpress.js +6 -10
  256. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  257. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  258. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  259. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  260. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  261. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  262. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
  263. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  264. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  265. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  266. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  267. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  268. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  269. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  270. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  271. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  272. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  273. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  274. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  275. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  276. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -3
  277. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  280. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  281. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  282. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
  283. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
  284. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  285. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  286. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  287. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  288. package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
  289. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  290. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
  291. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  292. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  293. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  294. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  295. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  296. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  297. package/build/features/entity/Entity.d.ts +1 -2
  298. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  299. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  300. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  301. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  302. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  303. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  304. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  305. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -29
  306. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  307. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  308. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  309. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  310. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  311. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  312. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  313. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  314. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  315. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  316. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  317. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  318. package/build/features/featuresScreens.js +15 -0
  319. package/build/features/individual/Individual.d.ts +1 -2
  320. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  321. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  322. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  323. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +3 -3
  324. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  325. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  326. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +3 -3
  327. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  328. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  329. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  330. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  331. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  332. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  333. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  334. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  335. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  336. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  337. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  338. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  339. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  340. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  341. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  342. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  343. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  344. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  345. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  346. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  347. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  348. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  349. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  350. package/build/features/password/Password.d.ts +1 -2
  351. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  352. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  353. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  354. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  355. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  356. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  357. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  358. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  359. package/build/features/password/screens/Success/Success.d.ts +1 -1
  360. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  361. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  362. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  363. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  364. package/build/features/shared/Address/Address.d.ts +1 -2
  365. package/build/features/shared/Address/CountryList.d.ts +13 -29
  366. package/build/features/shared/Address/InputSelect.d.ts +13 -29
  367. package/build/features/shared/Address/InputSelect.js +1 -1
  368. package/build/features/shared/Address/InputText.d.ts +1 -1
  369. package/build/features/shared/Background/Background.d.ts +1 -1
  370. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  371. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  372. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  373. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  374. package/build/features/shared/Button/AbsherButton.d.ts +1 -2
  375. package/build/features/shared/Button/Button.d.ts +1 -2
  376. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  377. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  378. package/build/features/shared/Button/FlowsButtons.js +1 -1
  379. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  380. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  381. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  382. package/build/features/shared/Calender/Calender.d.ts +1 -2
  383. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  384. package/build/features/shared/Chip/Chip.d.ts +1 -2
  385. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  386. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  387. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  388. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  389. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  390. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  391. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  392. package/build/features/shared/Dot/Dot.d.ts +1 -2
  393. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  394. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  395. package/build/features/shared/Footer/Footer.d.ts +1 -2
  396. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  397. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  398. package/build/features/shared/Input/Input.d.ts +6 -14
  399. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  400. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  401. package/build/features/shared/OTP/OTP.d.ts +1 -1
  402. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  403. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  404. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  405. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  406. package/build/features/shared/Search/Search.d.ts +1 -2
  407. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  408. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  409. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  410. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
  411. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  412. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
  413. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
  414. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
  415. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  416. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
  417. package/build/features/signIn/SignIn.d.ts +1 -2
  418. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  419. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  420. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  421. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  422. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  423. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  424. package/build/features/tax/Tax.d.ts +1 -2
  425. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  426. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  427. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  428. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  429. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  430. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  431. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  432. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  433. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  434. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  435. package/build/hooks/useAppConfig.d.ts +1 -1
  436. package/build/hooks/useAppConfig.js +2 -2
  437. package/build/hooks/useDataVerified.d.ts +1 -1
  438. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  439. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  440. package/build/hooks/useFormReadOnly.d.ts +2 -2
  441. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  442. package/build/utils/array.js +1 -1
  443. package/package.json +1 -1
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -65,11 +65,11 @@ import AnimationFlow from '../../components/AnimationFlow';
65
65
  import { store } from '../../app/store';
66
66
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
67
67
  import Collapse from '../../components/Collapse';
68
- import { findOrCreateElementAndInject, sendPageView, isSA, isTapDomain } from '../../utils';
68
+ import { findOrCreateElementAndInject, sendPageView, isTapDomain, isOtherThanKWOrSA } from '../../utils';
69
69
  import { AUTH_SCREENS_NAVIGATION } from '../../constants';
70
70
  import Background from '../shared/Background';
71
71
  import { FeatureContainer } from '../shared/Containers';
72
- import { authSelector, setMobileCountryCode, setLeadId, retrieveLeadIdentityByIdAsync } from '../app/auth/authStore';
72
+ import { authSelector, setMobileCountryCode, setLeadId, retrieveLeadIdentityByIdAsync, storeIsBusinessCountryPassed } from '../app/auth/authStore';
73
73
  import { authFeatureScreens } from '../featuresScreens';
74
74
  var Auth = memo(function (_a) {
75
75
  var postURL = _a.postURL, hideOverlay = _a.hideOverlay, configToken = _a.configToken, hideMerchantLogo = _a.hideMerchantLogo, hideLoaderOverlay = _a.hideLoaderOverlay, openAnimationDirection = _a.openAnimationDirection, closeAnimationDirection = _a.closeAnimationDirection, props = __rest(_a, ["postURL", "hideOverlay", "configToken", "hideMerchantLogo", "hideLoaderOverlay", "openAnimationDirection", "closeAnimationDirection"]);
@@ -97,6 +97,7 @@ var Auth = memo(function (_a) {
97
97
  sendPageView({ title: 'Auth' });
98
98
  dispatch(setLeadId((_a = props.leadId) !== null && _a !== void 0 ? _a : ''));
99
99
  }, []);
100
+ var isOtherThanKWOrSACountry = React.useMemo(function () { var _a; return isOtherThanKWOrSA((_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2); }, [settingData.businessCountry]);
100
101
  React.useEffect(function () {
101
102
  var _a, _b;
102
103
  if (settingLoading || !props.open || !settingData.isValidOperator)
@@ -108,6 +109,7 @@ var Auth = memo(function (_a) {
108
109
  var iso2 = (_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
109
110
  var ipIso2 = (_b = settingData.ipCountry) === null || _b === void 0 ? void 0 : _b.iso2;
110
111
  if (!iso2 && ipIso2 && settingData.appConfig.scope === 'auth') {
112
+ dispatch(storeIsBusinessCountryPassed(false));
111
113
  dispatch(handleSetCountryByIso2(ipIso2));
112
114
  iso2 = ipIso2;
113
115
  }
@@ -115,9 +117,6 @@ var Auth = memo(function (_a) {
115
117
  dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
116
118
  return;
117
119
  }
118
- if (iso2 && !isSA(iso2)) {
119
- dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
120
- }
121
120
  }, [settingData.isValidOperator, settingLoading]);
122
121
  React.useEffect(function () {
123
122
  var _a;
@@ -125,7 +124,7 @@ var Auth = memo(function (_a) {
125
124
  dispatch(setMobileCountryCode(settingData.businessCountry));
126
125
  }
127
126
  }, [settingData.businessCountry]);
128
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ hideOverlay: hideOverlay, open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, hideLoaderOverlay: hideLoaderOverlay, screenId: activeScreen.name, hideFooter: true, hideMerchantLogo: hideMerchantLogo, merchantInfo: merchant, isMaturityExpress: !isTapDomain(props.merchantDomain), animationDirection: animationDirection, dialogEdgeFormat: settingData.appConfig.dialogEdgeFormat }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: !isTapDomain(props.merchantDomain) }, { children: authFeatureScreens.map(function (_a, index) {
127
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ hideOverlay: hideOverlay, open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, hideLoaderOverlay: hideLoaderOverlay, screenId: activeScreen.name, hideFooter: true, hideMerchantLogo: hideMerchantLogo, merchantInfo: merchant, isMaturityExpress: !isTapDomain(props.merchantDomain), animationDirection: animationDirection, dialogEdgeFormat: settingData.appConfig.dialogEdgeFormat }, { children: _jsx(FeatureContainer, __assign({ sx: isOtherThanKWOrSACountry && activeScreen.name === 'AUTH_SWITCH_STEP' ? { minHeight: '190px' } : {}, isMaturityExpress: !isTapDomain(props.merchantDomain) }, { children: authFeatureScreens.map(function (_a, index) {
129
128
  var Element = _a.element, name = _a.name;
130
129
  var isActive = activeScreen.name === name;
131
130
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface AccountCreatedLoaderProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: AccountCreatedLoaderProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: AccountCreatedLoaderProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface AccountNotFoundProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: AccountNotFoundProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: AccountNotFoundProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -23,7 +23,6 @@ import FlatButton from '../../../../components/Button';
23
23
  import Warning from '../../../../components/Warning';
24
24
  import { handleCurrentActiveScreen } from '../../../../app/settings';
25
25
  import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
26
- import { AuthForType } from '../../../../@types';
27
26
  import { authSelector, onSignUp } from '../../../app/auth/authStore';
28
27
  var Container = styled(Box)(function (_a) {
29
28
  var theme = _a.theme;
@@ -60,11 +59,9 @@ var AccountNotFound = function (_a) {
60
59
  var t = useTranslation().t;
61
60
  var dispatch = useAppDispatch();
62
61
  var isAr = useLanguage().isAr;
63
- var _b = useAppSelector(authSelector), authData = _b.data, loading = _b.loading, error = _b.error;
64
- var isNidAuth = authData.otpData.authFor === AuthForType.NATIONAL_ID;
62
+ var _b = useAppSelector(authSelector), loading = _b.loading, error = _b.error;
65
63
  var onSignIn = function () {
66
- var screen = isNidAuth ? 'AUTH_NID_STEP' : 'AUTH_MOBILE_STEP';
67
- dispatch(handleCurrentActiveScreen(screen));
64
+ dispatch(handleCurrentActiveScreen('AUTH_SWITCH_STEP'));
68
65
  };
69
66
  var handleOnSignUp = function () {
70
67
  dispatch(onSignUp());
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface AuthMerchantProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: AuthMerchantProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: AuthMerchantProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface AuthSwitchProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: AuthSwitchProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,45 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
+ import { handleNextScreenStep, settingsSelector } from '../../../../app/settings';
17
+ import { resetStore } from '../../../app/auth/authStore';
18
+ import { AbsherButton, MobileButton } from '../../../shared/Button';
19
+ import { ScreenContainer } from '../../../shared/Containers';
20
+ import { isKW, isSA } from '../../../../utils';
21
+ import { ICONS_NAMES } from '../../../../constants';
22
+ var AuthSwitch = function (_a) {
23
+ var dispatch = useAppDispatch();
24
+ var t = useTranslation().t;
25
+ var data = useAppSelector(settingsSelector).data;
26
+ React.useEffect(function () {
27
+ dispatch(resetStore());
28
+ }, []);
29
+ var isKWCountry = React.useMemo(function () { return isKW(data.businessCountry.iso2); }, [data.businessCountry.iso2]);
30
+ var isSACountry = React.useMemo(function () { return isSA(data.businessCountry.iso2); }, [data.businessCountry.iso2]);
31
+ var onOpenMobile = function () {
32
+ dispatch(handleNextScreenStep('AUTH_MOBILE_STEP'));
33
+ };
34
+ var onOpenEmail = function () {
35
+ dispatch(handleNextScreenStep('AUTH_EMAIL_STEP'));
36
+ };
37
+ var onOpenNID = function () {
38
+ dispatch(handleNextScreenStep('AUTH_NID_STEP'));
39
+ };
40
+ var onOpenPACI = function () {
41
+ dispatch(handleNextScreenStep('AUTH_CIVIL_ID_STEP'));
42
+ };
43
+ return (_jsxs(ScreenContainer, { children: [_jsx(MobileButton, __assign({ sx: { mt: 2.5 }, onClick: function () { return onOpenMobile(); } }, { children: t('mobile_button_label') })), _jsx(MobileButton, __assign({ onClick: function () { return onOpenEmail(); }, icon: ICONS_NAMES.email_icon }, { children: t('email_button_label') })), isKWCountry ? (_jsx(MobileButton, __assign({ onClick: function () { return onOpenPACI(); }, icon: ICONS_NAMES.PACI_ICON }, { children: t('paci_button_label') }))) : (isSACountry && _jsx(AbsherButton, __assign({ onClick: function () { return onOpenNID(); } }, { children: t('absher_button_label') })))] }));
44
+ };
45
+ export default React.memo(AuthSwitch);
@@ -0,0 +1,3 @@
1
+ import AuthSwitch, { AuthSwitchProps } from './AuthSwitch';
2
+ export type { AuthSwitchProps };
3
+ export default AuthSwitch;
@@ -0,0 +1,2 @@
1
+ import AuthSwitch from './AuthSwitch';
2
+ export default AuthSwitch;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface AuthenticationListProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: AuthenticationListProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: AuthenticationListProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -17,8 +17,7 @@ import Collapse from '@mui/material/Collapse';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
18
  import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
19
19
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
20
- import { deepCopy, isKW, sendCustomEventToGTM } from '../../../../utils';
21
- import { AuthForType } from '../../../../@types';
20
+ import { deepCopy, sendCustomEventToGTM } from '../../../../utils';
22
21
  import Form from '../../../../components/Form';
23
22
  import { ScreenContainer } from '../../../shared/Containers';
24
23
  import Button from '../../../shared/Button';
@@ -41,8 +40,6 @@ var AuthenticationList = function (_a) {
41
40
  var _d = React.useState(), listActive = _d[0], setListActive = _d[1];
42
41
  var brandList = (data.responseData || {}).brandList;
43
42
  var _e = React.useState(false), isAddEntity = _e[0], setIsAddEntity = _e[1];
44
- var otpData = data.otpData;
45
- var startWithNID = otpData.authFor === AuthForType.NATIONAL_ID;
46
43
  React.useEffect(function () {
47
44
  sendCustomEventToGTM({
48
45
  event: 'Send Event',
@@ -71,7 +68,6 @@ var AuthenticationList = function (_a) {
71
68
  dispatch(getMerchantList(deepCopy(formData)));
72
69
  };
73
70
  var onBack = function () {
74
- var _a;
75
71
  if (isAddEntity) {
76
72
  setIsAddEntity(false);
77
73
  methods.setValue('licenseNumber', '');
@@ -80,10 +76,8 @@ var AuthenticationList = function (_a) {
80
76
  methods.setValue('entityInfo', undefined, { shouldValidate: true });
81
77
  return;
82
78
  }
83
- var code = (_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
84
- var screen = startWithNID ? (isKW(code) ? 'AUTH_CIVIL_ID_STEP' : 'AUTH_NID_STEP') : 'AUTH_MOBILE_STEP';
85
79
  dispatch(resetAuthenticationScreen());
86
- dispatch(handlePrevScreenStep(screen));
80
+ dispatch(handlePrevScreenStep());
87
81
  };
88
82
  React.useEffect(function () {
89
83
  if (error)
@@ -6,5 +6,5 @@ interface BrandListProps {
6
6
  onListOpen?: () => void;
7
7
  onListClose?: () => void;
8
8
  }
9
- declare const _default: React.MemoExoticComponent<({ show, list, ...rest }: BrandListProps) => JSX.Element>;
9
+ declare const _default: React.MemoExoticComponent<({ show, list, ...rest }: BrandListProps) => import("react/jsx-runtime").JSX.Element>;
10
10
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const EntityLegalName: () => JSX.Element;
1
+ declare const EntityLegalName: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default EntityLegalName;
@@ -10,7 +10,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
10
10
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
11
  titleAccess?: string | undefined;
12
12
  viewBox?: string | undefined;
13
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
14
14
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
15
15
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
@@ -24,8 +24,8 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
24
24
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
25
  titleAccess?: string | undefined;
26
26
  viewBox?: string | undefined;
27
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
28
28
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
29
29
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
30
- declare const Type: () => JSX.Element;
30
+ declare const Type: () => import("react/jsx-runtime").JSX.Element;
31
31
  export default Type;
@@ -7,5 +7,5 @@ interface EntityListProps {
7
7
  onListClose?: () => void;
8
8
  handleAddEntity?: (flag: boolean) => void;
9
9
  }
10
- declare const _default: React.MemoExoticComponent<({ show, countryList, handleAddEntity, ...rest }: EntityListProps) => JSX.Element>;
10
+ declare const _default: React.MemoExoticComponent<({ show, countryList, handleAddEntity, ...rest }: EntityListProps) => import("react/jsx-runtime").JSX.Element>;
11
11
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface BusinessCountryScreenProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: BusinessCountryScreenProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: BusinessCountryScreenProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -52,7 +52,7 @@ import { useAppSelector, useAppDispatch, useLanguage } from '../../../../hooks';
52
52
  import { ScreenContainer } from '../../../shared/Containers';
53
53
  import BusinessCountry from '../../../shared/BusinessCountry';
54
54
  import Button from '../../../shared/Button';
55
- import { findCountryByIso2, isKW, isOtherThanKWOrSA } from '../../../../utils';
55
+ import { findCountryByIso2, isSA } from '../../../../utils';
56
56
  import Collapse from '../../../../components/Collapse';
57
57
  import { handleNextScreenStep, handleSetCountryByIso2, settingsSelector } from '../../../../app/settings';
58
58
  import { authSelector, updateBusinessCountry, storeIsStartFromBusinessCountry, clearError, resetStore, setMobileCountryCode } from '../../../app/auth/authStore';
@@ -89,7 +89,7 @@ var BusinessCountryScreen = function (_a) {
89
89
  case 2:
90
90
  if (countryCode)
91
91
  dispatch(setMobileCountryCode(countryCode));
92
- if (isOtherThanKWOrSA(iso2) || isKW(iso2)) {
92
+ if (!isSA(iso2)) {
93
93
  dispatch(handleNextScreenStep('AUTH_MOBILE_STEP'));
94
94
  return [2];
95
95
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface CivilIDProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: CivilIDProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: CivilIDProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -13,49 +13,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useForm, FormProvider } from 'react-hook-form';
16
- import { alpha, styled } from '@mui/material/styles';
17
- import Box from '@mui/material/Box';
16
+ import { styled } from '@mui/material/styles';
18
17
  import { yupResolver } from '@hookform/resolvers/yup';
19
18
  import { civilIDValidationSchema } from './validation';
20
19
  import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
21
- import { handleCurrentActiveScreen, handlePrevScreenStep } from '../../../../app/settings';
20
+ import { handlePrevScreenStep } from '../../../../app/settings';
22
21
  import { clearError, authSelector, resetStore, createCivilIdAuth } from '../../../app/auth/authStore';
23
22
  import Form from '../../../../components/Form';
24
- import Button, { MobileButton } from '../../../shared/Button';
23
+ import Button from '../../../shared/Button';
25
24
  import { ScreenContainer } from '../../../shared/Containers';
26
- import Collapse from '../../../../components/Collapse';
27
- import Divider from '@mui/material/Divider';
28
- import Text from '../../../../components/Text';
29
25
  import { deepCopy } from '../../../../utils';
30
26
  import IDNumber from './IDNumber';
31
27
  var FormStyled = styled(Form)(function () { return ({
32
28
  display: 'flex',
33
29
  flexDirection: 'column'
34
30
  }); });
35
- var TextStyled = styled(Text)(function (_a) {
36
- var theme = _a.theme;
37
- return ({
38
- color: alpha(theme.palette.primary.dark, 0.4)
39
- });
40
- });
41
- var DividerStyled = styled(Divider)(function (_a) {
42
- var theme = _a.theme;
43
- return ({
44
- width: '45%',
45
- borderColor: alpha(theme.palette.primary.dark, 0.4),
46
- marginBlockEnd: theme.spacing(0.62)
47
- });
48
- });
49
- var OrBoxStyled = styled(Box)(function (_a) {
50
- var theme = _a.theme;
51
- return ({
52
- display: 'flex',
53
- justifyContent: 'space-between',
54
- marginBlockEnd: theme.spacing(1.62),
55
- marginBlockStart: theme.spacing(-1.25),
56
- marginInline: theme.spacing(2.5)
57
- });
58
- });
59
31
  var CivilID = function (_a) {
60
32
  var isAr = useLanguage().isAr;
61
33
  var dispatch = useAppDispatch();
@@ -79,10 +51,7 @@ var CivilID = function (_a) {
79
51
  var onBack = function () {
80
52
  dispatch(handlePrevScreenStep());
81
53
  };
82
- var onBackToCountryList = function () {
83
- dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
84
- };
85
54
  var disabled = !methods.formState.isValid;
86
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(IDNumber, { sx: { mb: methods.formState.isValid ? 7.5 : 0, transition: 'mb 0.3s' } }), _jsx(Button, __assign({ loading: loading, isAr: isAr, onBackClicked: onBackToCountryList, disableBack: !data.isStartFromBusinessCountry, disabled: disabled, error: t(error || '') }, { children: t('next') })), _jsxs(Collapse, __assign({ in: !methods.formState.isValid }, { children: [_jsxs(OrBoxStyled, { children: [_jsx(DividerStyled, {}), _jsx(TextStyled, { children: t('or') }), _jsx(DividerStyled, {})] }), _jsx(MobileButton, __assign({ onClick: function () { return onBack(); }, disabled: loading }, { children: t('mobile_button_label') }))] }))] })) })) }));
55
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(IDNumber, { sx: { mb: 5, transition: 'mb 0.3s' } }), _jsx(Button, __assign({ loading: loading, isAr: isAr, onBackClicked: onBack, disabled: disabled, error: t(error || '') }, { children: t('next') }))] })) })) }));
87
56
  };
88
57
  export default React.memo(CivilID);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface EmailProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: EmailProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,57 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useForm, FormProvider } from 'react-hook-form';
16
+ import { styled } from '@mui/material/styles';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { EmailInfoValidation } from './validation';
19
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
20
+ import { handlePrevScreenStep } from '../../../../app/settings';
21
+ import { clearError, authSelector, resetStore, createEmailAuth } from '../../../app/auth/authStore';
22
+ import Form from '../../../../components/Form';
23
+ import Button from '../../../shared/Button';
24
+ import { ScreenContainer } from '../../../shared/Containers';
25
+ import { deepCopy } from '../../../../utils';
26
+ import EmailField from './EmailField';
27
+ var FormStyled = styled(Form)(function () { return ({
28
+ display: 'flex',
29
+ flexDirection: 'column'
30
+ }); });
31
+ var Email = function (_a) {
32
+ var isAr = useLanguage().isAr;
33
+ var dispatch = useAppDispatch();
34
+ var t = useTranslation().t;
35
+ var _b = useAppSelector(authSelector), data = _b.data, loading = _b.loading, error = _b.error;
36
+ var methods = useForm({
37
+ resolver: yupResolver(EmailInfoValidation),
38
+ defaultValues: data.emailData,
39
+ mode: 'onChange'
40
+ });
41
+ React.useEffect(function () {
42
+ if (error)
43
+ dispatch(clearError());
44
+ }, [methods.formState.isValid]);
45
+ React.useEffect(function () {
46
+ dispatch(resetStore());
47
+ }, []);
48
+ var onSubmit = function (data) {
49
+ dispatch(createEmailAuth(deepCopy(data)));
50
+ };
51
+ var onBack = function () {
52
+ dispatch(handlePrevScreenStep());
53
+ };
54
+ var disabled = !methods.formState.isValid;
55
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(EmailField, { sx: { mb: 5, transition: 'mb 0.3s' } }), _jsx(Button, __assign({ loading: loading, isAr: isAr, onBackClicked: onBack, disabled: disabled, error: t(error || '') }, { children: t('next') }))] })) })) }));
56
+ };
57
+ export default React.memo(Email);
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ interface EmailFieldProps {
4
+ sx: SxProps<Theme> | undefined;
5
+ readOnly?: boolean;
6
+ }
7
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<EmailFieldProps & React.RefAttributes<unknown>>>;
8
+ export default _default;
@@ -0,0 +1,52 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useController, useFormContext } from 'react-hook-form';
16
+ import Box from '@mui/material/Box';
17
+ import { styled, alpha } from '@mui/material/styles';
18
+ import Text from '../../../../components/Text';
19
+ import { MAX_EMAIL_LENGTH } from '../../../../constants';
20
+ import Input from '../../../shared/Input';
21
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
22
+ import { EndAdornment } from '../../../shared/EndAdornment';
23
+ var LabelContainerStyled = styled(Box)(function (_a) {
24
+ var theme = _a.theme;
25
+ return ({
26
+ display: 'flex',
27
+ justifyContent: 'space-between',
28
+ padding: theme.spacing(0, 2.5, 1.25, 2.5)
29
+ });
30
+ });
31
+ var InputLabelStyled = styled(Text)(function (_a) {
32
+ var theme = _a.theme;
33
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
34
+ });
35
+ var EmailField = React.forwardRef(function (_a, ref) {
36
+ var _b;
37
+ var sx = _a.sx, readOnly = _a.readOnly;
38
+ var t = useTranslation().t;
39
+ var control = useFormContext().control;
40
+ var emailControl = useController({ control: control, name: 'email' });
41
+ var handleEmailChange = function (_a) {
42
+ var target = _a.target;
43
+ emailControl.field.onChange(target.value);
44
+ };
45
+ var clearEmail = function () {
46
+ emailControl.field.onChange('');
47
+ };
48
+ var emailValue = emailControl.field.value;
49
+ var error = (_b = emailControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
50
+ return (_jsxs(ScreenContainer, __assign({ ref: ref, sx: sx }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_email_lable') }) }), _jsx(Input, { type: 'email', readOnly: readOnly, inputProps: { maxLength: MAX_EMAIL_LENGTH }, onChange: handleEmailChange, value: emailValue, endAdornment: _jsx(EndAdornment, { value: emailValue, error: error, onClear: clearEmail }), placeholder: t('signup_email_placeholder'), warningType: 'alert', warningMessage: error && t(error), required: true })] })));
51
+ });
52
+ export default React.memo(EmailField);
@@ -0,0 +1,3 @@
1
+ import Email, { EmailProps } from './Email';
2
+ export type { EmailProps };
3
+ export default Email;
@@ -0,0 +1,2 @@
1
+ import Email from './Email';
2
+ export default Email;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const EmailInfoValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ email: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ email: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ email: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var EmailInfoValidation = yup.object().shape({
3
+ email: yup.string().email('email_not_valid').required('email_not_valid')
4
+ });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface MobileProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: MobileProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: MobileProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;