@tap-payments/auth-jsconnect 2.0.55-test → 2.0.57-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 (289) hide show
  1. package/build/api/account.js +1 -1
  2. package/build/api/auth.d.ts +1 -1
  3. package/build/api/auth.js +1 -1
  4. package/build/api/availabilityServices.js +1 -1
  5. package/build/api/axios.js +2 -2
  6. package/build/api/board.js +1 -1
  7. package/build/api/brand.d.ts +1 -1
  8. package/build/api/brand.js +1 -1
  9. package/build/api/country.js +1 -1
  10. package/build/api/data.d.ts +16 -16
  11. package/build/api/data.js +1 -1
  12. package/build/api/entity.js +1 -1
  13. package/build/api/firebase.js +1 -1
  14. package/build/api/index.d.ts +101 -0
  15. package/build/api/individual.js +1 -1
  16. package/build/api/ip.js +1 -1
  17. package/build/api/lead.d.ts +1 -1
  18. package/build/api/lead.js +1 -1
  19. package/build/api/operator.js +1 -1
  20. package/build/api/user.js +1 -1
  21. package/build/app/rootReducer.d.ts +10 -10
  22. package/build/app/rootReducer.js +10 -10
  23. package/build/app/settings.d.ts +2 -2
  24. package/build/app/settings.js +5 -5
  25. package/build/app/store.d.ts +1 -1
  26. package/build/components/AnimationFlow/AnimationFlow.js +1 -1
  27. package/build/components/AnimationFlow/Dialog.js +3 -3
  28. package/build/components/DatePicker/DatePicker.js +3 -3
  29. package/build/components/DatePicker/customStyle.css +86 -0
  30. package/build/components/FileInput/DragAndDrop.js +6 -6
  31. package/build/components/FileInput/UploadInput.js +2 -2
  32. package/build/components/Footer/Footer.js +3 -3
  33. package/build/components/Input/Input.js +2 -2
  34. package/build/components/OTPTimer/OTPTimer.js +1 -1
  35. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  36. package/build/components/SimpleList/SimpleList.js +1 -1
  37. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  38. package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
  39. package/build/constants/app.d.ts +2 -1
  40. package/build/constants/app.js +5 -4
  41. package/build/constants/validation.d.ts +1 -1
  42. package/build/constants/validation.js +1 -1
  43. package/build/features/app/auth/authStore.d.ts +2 -2
  44. package/build/features/app/auth/authStore.js +2 -2
  45. package/build/features/app/bank/bankStore.d.ts +2 -2
  46. package/build/features/app/bank/bankStore.js +4 -4
  47. package/build/features/app/business/businessStore.d.ts +12 -2
  48. package/build/features/app/business/businessStore.js +110 -5
  49. package/build/features/app/connect/connectStore.d.ts +2 -2
  50. package/build/features/app/connect/connectStore.js +52 -32
  51. package/build/features/app/entity/entityStore.d.ts +2 -2
  52. package/build/features/app/entity/entityStore.js +5 -5
  53. package/build/features/app/individual/individualStore.d.ts +2 -2
  54. package/build/features/app/individual/individualStore.js +4 -4
  55. package/build/features/app/otp/otpStore.d.ts +2 -2
  56. package/build/features/app/otp/otpStore.js +4 -4
  57. package/build/features/app/password/passwordStore.d.ts +2 -2
  58. package/build/features/app/password/passwordStore.js +4 -4
  59. package/build/features/app/signIn/signInStore.d.ts +2 -2
  60. package/build/features/app/signIn/signInStore.js +4 -4
  61. package/build/features/app/tax/taxStore.d.ts +2 -2
  62. package/build/features/app/tax/taxStore.js +5 -5
  63. package/build/features/auth/Auth.d.ts +1 -1
  64. package/build/features/auth/Auth.js +10 -10
  65. package/build/features/auth/screens/OTP/OTP.js +8 -8
  66. package/build/features/auth/screens/OTP/OTPInput.js +3 -3
  67. package/build/features/bank/Bank.d.ts +1 -1
  68. package/build/features/bank/Bank.js +10 -10
  69. package/build/features/bank/screens/BankDetails/BankDetails.js +7 -7
  70. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  71. package/build/features/bank/screens/BankDetails/BankStatement.js +5 -5
  72. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  73. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  74. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  75. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  76. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  77. package/build/features/bank/screens/Success/Success.js +3 -3
  78. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  79. package/build/features/bank/screens/Verify/OTPInput.js +4 -4
  80. package/build/features/bank/screens/Verify/Verify.js +9 -9
  81. package/build/features/business/Business.d.ts +1 -1
  82. package/build/features/business/Business.js +10 -10
  83. package/build/features/business/screens/Activities/Activities.js +7 -7
  84. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  85. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  86. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  87. package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
  88. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  89. package/build/features/business/screens/Activities/SalesChannels.js +7 -7
  90. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  91. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  92. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  93. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  94. package/build/features/business/screens/BusinessType/validation.js +2 -2
  95. package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
  96. package/build/features/business/screens/CivilID/CivilID.js +85 -0
  97. package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
  98. package/build/features/business/screens/CivilID/IDNumber.js +59 -0
  99. package/build/features/business/screens/CivilID/index.d.ts +3 -0
  100. package/build/features/business/screens/CivilID/index.js +2 -0
  101. package/build/features/business/screens/CivilID/validation.d.ts +8 -0
  102. package/build/features/business/screens/CivilID/validation.js +4 -0
  103. package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
  104. package/build/features/business/screens/Customers/CustomerLocations.js +9 -9
  105. package/build/features/business/screens/Customers/Customers.js +8 -8
  106. package/build/features/business/screens/Customers/ExpectedCustomers.js +7 -7
  107. package/build/features/business/screens/Customers/ExpectedSalesRange.js +8 -8
  108. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  109. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  110. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  111. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  112. package/build/features/business/screens/IDBOD/ID.js +6 -6
  113. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  114. package/build/features/business/screens/OTP/OTP.js +9 -9
  115. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  116. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  117. package/build/features/business/screens/Success/Success.js +3 -3
  118. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  119. package/build/features/business/screens/Verify/OTPInput.js +4 -4
  120. package/build/features/business/screens/Verify/Verify.js +9 -9
  121. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  122. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +162 -0
  123. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
  124. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +22 -0
  125. package/build/features/business/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
  126. package/build/features/business/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
  127. package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
  128. package/build/features/business/screens/VerifyPACI/index.js +2 -0
  129. package/build/features/connect/Connect.d.ts +1 -1
  130. package/build/features/connect/Connect.js +10 -10
  131. package/build/features/connect/screens/CivilID/CivilID.js +8 -8
  132. package/build/features/connect/screens/CivilID/IDNumber.js +7 -7
  133. package/build/features/connect/screens/CivilID/validation.js +1 -1
  134. package/build/features/connect/screens/Individual/Email.js +7 -7
  135. package/build/features/connect/screens/Individual/Individual.js +10 -10
  136. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  137. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  138. package/build/features/connect/screens/Individual/Name.js +6 -6
  139. package/build/features/connect/screens/Individual/validation.js +1 -1
  140. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  141. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  142. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  143. package/build/features/connect/screens/Merchant/Merchant.js +9 -9
  144. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -1
  145. package/build/features/connect/screens/Merchant/SalesChannels.js +7 -7
  146. package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
  147. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  148. package/build/features/connect/screens/Merchant/validation.js +1 -1
  149. package/build/features/connect/screens/Mobile/Mobile.js +10 -10
  150. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  151. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  152. package/build/features/connect/screens/Mobile/Title.js +2 -2
  153. package/build/features/connect/screens/NID/DOB.js +5 -5
  154. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  155. package/build/features/connect/screens/NID/NID.js +8 -8
  156. package/build/features/connect/screens/OTP/OTP.js +9 -9
  157. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  158. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  159. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +16 -23
  160. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +3 -3
  161. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +1 -1
  162. package/build/features/entity/Entity.d.ts +1 -1
  163. package/build/features/entity/Entity.js +10 -10
  164. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -1
  165. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +9 -9
  166. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +7 -7
  167. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +4 -4
  168. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +5 -5
  169. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +5 -5
  170. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +1 -1
  171. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +7 -7
  172. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  173. package/build/features/entity/screens/Success/Success.js +3 -3
  174. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  175. package/build/features/entity/screens/Verify/OTPInput.js +4 -4
  176. package/build/features/entity/screens/Verify/Verify.js +9 -9
  177. package/build/features/featuresScreens.d.ts +1 -1
  178. package/build/features/featuresScreens.js +49 -49
  179. package/build/features/individual/Individual.d.ts +1 -1
  180. package/build/features/individual/Individual.js +10 -10
  181. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -8
  182. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  183. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  184. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  185. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  186. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  187. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +10 -10
  188. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  189. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -9
  190. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  191. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  192. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +8 -8
  193. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  194. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  195. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  196. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  197. package/build/features/individual/screens/Success/Success.js +3 -3
  198. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  199. package/build/features/individual/screens/Verify/OTPInput.js +4 -4
  200. package/build/features/individual/screens/Verify/Verify.js +9 -9
  201. package/build/features/otp/OTP.d.ts +1 -1
  202. package/build/features/otp/OTP.js +9 -9
  203. package/build/features/otp/screens/OTPVerify/OTPInput.js +4 -4
  204. package/build/features/otp/screens/OTPVerify/Verify.js +5 -5
  205. package/build/features/password/Password.d.ts +1 -1
  206. package/build/features/password/Password.js +10 -10
  207. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  208. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  209. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  210. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  211. package/build/features/password/screens/OTP/OTP.js +9 -9
  212. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  213. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  214. package/build/features/password/screens/Success/Success.js +4 -4
  215. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  216. package/build/features/password/screens/Verify/OTPInput.js +4 -4
  217. package/build/features/password/screens/Verify/Verify.js +9 -9
  218. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  219. package/build/features/shared/Background/Background.js +2 -2
  220. package/build/features/shared/Background/LogoBackground.js +3 -3
  221. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  222. package/build/features/shared/Button/AbsherButton.js +3 -3
  223. package/build/features/shared/Button/Button.d.ts +1 -1
  224. package/build/features/shared/Button/Button.js +7 -7
  225. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  226. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  227. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  228. package/build/features/shared/Button/FlowsButtons.js +6 -6
  229. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  230. package/build/features/shared/Button/MobileButton.js +3 -3
  231. package/build/features/shared/Dialog/CloseDialog.js +2 -2
  232. package/build/features/shared/Dialog/DialogContainer.js +2 -2
  233. package/build/features/shared/Footer/Footer.js +4 -4
  234. package/build/features/shared/Input/Input.d.ts +1 -1
  235. package/build/features/shared/Input/Input.js +2 -2
  236. package/build/features/shared/OTP/OTP.d.ts +1 -1
  237. package/build/features/shared/OTP/OTP.js +3 -3
  238. package/build/features/shared/Search/Search.js +1 -1
  239. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  240. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  241. package/build/features/shared/UploadFile/UploadFile.js +10 -10
  242. package/build/features/signIn/SignIn.d.ts +1 -1
  243. package/build/features/signIn/SignIn.js +10 -10
  244. package/build/features/signIn/screens/Email/Email.js +8 -8
  245. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  246. package/build/features/signIn/screens/Email/validation.js +1 -1
  247. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  248. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  249. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  250. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  251. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  252. package/build/features/signIn/screens/Password/Password.js +7 -7
  253. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  254. package/build/features/tax/Tax.d.ts +1 -1
  255. package/build/features/tax/Tax.js +10 -10
  256. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  257. package/build/features/tax/screens/Success/Success.js +3 -3
  258. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  259. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  260. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  261. package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
  262. package/build/features/tax/screens/Verify/OTPInput.js +4 -4
  263. package/build/features/tax/screens/Verify/Verify.js +9 -9
  264. package/build/hooks/useAppConfig.d.ts +1 -1
  265. package/build/hooks/useAppConfig.js +4 -4
  266. package/build/hooks/useAppSelector.d.ts +1 -1
  267. package/build/hooks/useAppTheme.d.ts +1 -1
  268. package/build/hooks/useAppTheme.js +3 -3
  269. package/build/hooks/useErrorListener.js +1 -1
  270. package/build/hooks/useLanguage.js +1 -1
  271. package/build/hooks/useRedirectionListener.js +1 -1
  272. package/build/hooks/useScreen.js +1 -1
  273. package/build/hooks/useStepStartedListener.js +1 -1
  274. package/build/i18n.js +1 -1
  275. package/build/index.css +140 -0
  276. package/build/index.d.ts +10 -10
  277. package/build/index.js +10 -10
  278. package/build/theme/theme.d.ts +1 -1
  279. package/build/utils/array.d.ts +1 -1
  280. package/build/utils/common.d.ts +1 -0
  281. package/build/utils/common.js +3 -0
  282. package/build/utils/index.d.ts +1 -0
  283. package/build/utils/index.js +1 -0
  284. package/build/utils/locale.d.ts +1 -1
  285. package/build/utils/locale.js +1 -1
  286. package/build/utils/rsa.js +1 -1
  287. package/build/utils/string.d.ts +1 -1
  288. package/build/utils/string.js +4 -4
  289. package/package.json +1 -1
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
- import { ICONS_NAMES } from '@constants';
27
- import { SocialMediaTypes } from '@types';
26
+ import { ICONS_NAMES } from '../../constants';
27
+ import { SocialMediaTypes } from '../../@types';
28
28
  import Fade from '@mui/material/Fade';
29
29
  import ToggleButtonGroup from '../ToggleButtonGroup';
30
30
  import ToggleButton from '../ToggleButton';
@@ -1,4 +1,4 @@
1
- import { ScreenStepNavigation, BusinessType } from '@types';
1
+ import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CLIENT_ORIGIN: string;
3
3
  export declare const LOCAL_STORAGE_KEYS: {
4
4
  themeMode: string;
@@ -98,6 +98,7 @@ export declare const BUSINESS_STEP_NAMES: {
98
98
  BUSINESS_INFO: string;
99
99
  PHONE_AUTH: string;
100
100
  IDENTITY_AUTH: string;
101
+ CREATE_AUTH_CIVIL_ID: string;
101
102
  IDENTITY_VERIFY_AUTH: string;
102
103
  BUSINESS_CR_INFO: string;
103
104
  BUSINESS_INFO_CONFIRM: string;
@@ -1,4 +1,4 @@
1
- import { BusinessType } from '@types';
1
+ import { BusinessType } from '../@types';
2
2
  export var CLIENT_ORIGIN = window.location.origin;
3
3
  export var LOCAL_STORAGE_KEYS = {
4
4
  themeMode: 'themeMode',
@@ -30,7 +30,7 @@ export var CONNECT_SCREENS_NAVIGATION = [
30
30
  {
31
31
  name: 'CONNECT_MOBILE_STEP',
32
32
  next: 'CONNECT_OTP_STEP',
33
- prev: ['CONNECT_NID_STEP', 'CONNECT_ID_STEP', 'CONNECT_CIVIL_ID_STEP'],
33
+ prev: ['CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP'],
34
34
  order: 1
35
35
  },
36
36
  {
@@ -48,13 +48,13 @@ export var CONNECT_SCREENS_NAVIGATION = [
48
48
  {
49
49
  name: 'CONNECT_INDIVIDUAL_STEP',
50
50
  next: 'CONNECT_MERCHANT_INFO_STEP',
51
- prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_ID_STEP'],
51
+ prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP'],
52
52
  order: 3
53
53
  },
54
54
  {
55
55
  name: 'CONNECT_MERCHANT_INFO_STEP',
56
56
  next: 'CONNECT_THANK_YOU_STEP',
57
- prev: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP', 'CONNECT_ID_STEP'],
57
+ prev: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP', 'CONNECT_CIVIL_ID_STEP'],
58
58
  order: 4
59
59
  },
60
60
  {
@@ -415,6 +415,7 @@ export var BUSINESS_STEP_NAMES = {
415
415
  BUSINESS_INFO: 'business_info',
416
416
  PHONE_AUTH: 'business_phone_auth',
417
417
  IDENTITY_AUTH: 'business_identity_auth',
418
+ CREATE_AUTH_CIVIL_ID: 'business_create_auth_civil_id',
418
419
  IDENTITY_VERIFY_AUTH: 'business_identity_auth_verify',
419
420
  BUSINESS_CR_INFO: 'business_cr_info',
420
421
  BUSINESS_INFO_CONFIRM: 'business_info_confirm',
@@ -1,5 +1,5 @@
1
1
  export declare const ID_NUMBER_LENGTH = 10;
2
- export declare const CIVIL_ID_NUMBER_LENGTH = 15;
2
+ export declare const CIVIL_ID_NUMBER_LENGTH = 12;
3
3
  export declare const DEFAULT_TIMER_VALUE = 59;
4
4
  export declare const VAT_ID_LENGTH = 15;
5
5
  export declare const MAX_IBAN_VALUE = 34;
@@ -1,5 +1,5 @@
1
1
  export var ID_NUMBER_LENGTH = 10;
2
- export var CIVIL_ID_NUMBER_LENGTH = 15;
2
+ export var CIVIL_ID_NUMBER_LENGTH = 12;
3
3
  export var DEFAULT_TIMER_VALUE = 59;
4
4
  export var VAT_ID_LENGTH = 15;
5
5
  export var MAX_IBAN_VALUE = 34;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@app/store';
2
- import { ResponseData, OTPFormValues, SharedState, ActionState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { ResponseData, OTPFormValues, SharedState, ActionState } from '../../../@types';
3
3
  export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
4
4
  export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  response: any;
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  var _a;
38
38
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
39
- import { handleOpen } from '@src/app/settings';
40
- import API from '@api';
39
+ import { handleOpen } from '../../../app/settings';
40
+ import API from '../../../api';
41
41
  export var retrieveLead = createAsyncThunk('retrieveLeadAuthKit', function (leadId) { return __awaiter(void 0, void 0, void 0, function () {
42
42
  var data;
43
43
  return __generator(this, function (_a) {
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
4
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  data: any;
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
53
- import { BANK_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
53
+ import { BANK_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '../../../constants';
54
54
  export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
55
55
  var payload, data, boardInfoData, board_id, board_info_id, info, hasBankCompleted;
56
56
  var _a;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, SalesChannel } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, SalesChannel, CivilFormValues } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  leadData: any;
@@ -18,6 +18,16 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
18
18
  };
19
19
  brandInfo: any;
20
20
  }, OTPFormValues, {}>;
21
+ interface verifyPACIParams {
22
+ onSuccess?: () => void | Promise<void>;
23
+ }
24
+ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
25
+ response: any;
26
+ }, verifyPACIParams, {}>;
27
+ export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
28
+ response: any;
29
+ formData: CivilFormValues;
30
+ }, CivilFormValues, {}>;
21
31
  export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
22
32
  data: any;
23
33
  formData: {
@@ -57,11 +57,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
57
57
  var _a;
58
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import moment from 'moment';
60
- import API from '@api';
61
- import { BusinessType, FlowsTypes } from '@types';
62
- import { BUSINESS_FLOW_SUCCESS, BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '@constants';
63
- import { convertNumbers2English, getEighteenYearsAgo, hasKey } from '@utils';
64
- import { handleNextScreenStep } from '@app/settings';
60
+ import API from '../../../api';
61
+ import { BusinessType, FlowsTypes } from '../../../@types';
62
+ import { BUSINESS_FLOW_SUCCESS, BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
63
+ import { convertNumbers2English, getEighteenYearsAgo, hasKey, sleep } from '../../../utils';
64
+ import { handleNextScreenStep } from '../../../app/settings';
65
65
  export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
66
  var payload, data, leadResponse, brandInfo, boardResponse, board_id, board_info_id, steps, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted;
67
67
  var _a, _b, _c, _d, _e, _f;
@@ -249,6 +249,76 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
249
249
  }
250
250
  });
251
251
  }); });
252
+ export var verifyPACI = createAsyncThunk('verifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
253
+ var _a, settings, connect, responseBody, expiry, interval, maxCalls, response, count, data, isSuccess;
254
+ var _b, _c;
255
+ return __generator(this, function (_d) {
256
+ switch (_d.label) {
257
+ case 0:
258
+ _a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
259
+ responseBody = connect.data.civilIdData.responseBody;
260
+ expiry = (responseBody === null || responseBody === void 0 ? void 0 : responseBody.expiry) || 120;
261
+ interval = 5;
262
+ maxCalls = Math.floor(expiry / interval);
263
+ response = null;
264
+ if (thunkApi.signal.aborted) {
265
+ return [2, { response: null }];
266
+ }
267
+ count = 1;
268
+ _d.label = 1;
269
+ case 1:
270
+ if (!(count <= maxCalls)) return [3, 7];
271
+ return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token)];
272
+ case 2:
273
+ data = _d.sent();
274
+ response = data;
275
+ if (count === 1) {
276
+ }
277
+ isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
278
+ if (!isSuccess) return [3, 4];
279
+ return [4, ((_c = params === null || params === void 0 ? void 0 : params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params))];
280
+ case 3:
281
+ _d.sent();
282
+ _d.label = 4;
283
+ case 4: return [4, sleep(interval * 1000)];
284
+ case 5:
285
+ _d.sent();
286
+ _d.label = 6;
287
+ case 6:
288
+ count++;
289
+ return [3, 1];
290
+ case 7: return [2, { response: response }];
291
+ }
292
+ });
293
+ }); });
294
+ export var createCivilIdAuth = createAsyncThunk('createCivilIdAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
295
+ var settings, requestBody, data;
296
+ var _a, _b;
297
+ return __generator(this, function (_c) {
298
+ switch (_c.label) {
299
+ case 0:
300
+ settings = thunkApi.getState().settings;
301
+ requestBody = {
302
+ lang: settings.data.language,
303
+ user_credentail: {
304
+ identification_id: params.civilId,
305
+ country_code: 'KW'
306
+ },
307
+ sign_in: false,
308
+ step_name: BUSINESS_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
309
+ encryption_contract: ['user_credentail.identification_id']
310
+ };
311
+ return [4, API.authService.createAuth(requestBody)];
312
+ case 1:
313
+ data = (_c.sent()).data;
314
+ if (!data.errors) {
315
+ thunkApi.dispatch(handleNextScreenStep());
316
+ (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody.user_credentail);
317
+ }
318
+ return [2, { response: data, formData: params }];
319
+ }
320
+ });
321
+ }); });
252
322
  export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
253
323
  var _a, settings, business, identification_id_type, stepName, requestBody, data;
254
324
  var _b, _c, _d;
@@ -753,6 +823,41 @@ export var businessSlice = createSlice({
753
823
  .addCase(verifyLeadOTP.rejected, function (state, action) {
754
824
  state.loading = false;
755
825
  state.error = action.error.message;
826
+ })
827
+ .addCase(createCivilIdAuth.pending, function (state, action) {
828
+ state.loading = true;
829
+ state.error = null;
830
+ })
831
+ .addCase(createCivilIdAuth.fulfilled, function (state, action) {
832
+ var _a;
833
+ state.loading = false;
834
+ state.error = null;
835
+ var _b = action.payload, formData = _b.formData, response = _b.response;
836
+ var description = (((_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
837
+ if (description) {
838
+ state.error = description;
839
+ return;
840
+ }
841
+ })
842
+ .addCase(createCivilIdAuth.rejected, function (state, action) {
843
+ state.loading = false;
844
+ state.error = action.error.message;
845
+ })
846
+ .addCase(verifyPACI.pending, function (state) {
847
+ state.loading = true;
848
+ state.error = null;
849
+ })
850
+ .addCase(verifyPACI.fulfilled, function (state, action) {
851
+ state.loading = false;
852
+ state.error = null;
853
+ state.data.otpData.responseBody = action.payload.response;
854
+ })
855
+ .addCase(verifyPACI.rejected, function (state, action) {
856
+ state.loading = false;
857
+ var error = action.error.message;
858
+ if (error !== 'Aborted') {
859
+ state.error = error;
860
+ }
756
861
  })
757
862
  .addCase(updateLeadIdentity.pending, function (state) {
758
863
  state.loading = true;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@app/store';
2
- import { ResponseData, MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { ResponseData, MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
4
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  response: any;
@@ -56,12 +56,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
56
56
  };
57
57
  var _a;
58
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
- import { handleNextScreenStep } from '@app/settings';
60
- import { FlowsTypes } from '@types';
61
- import API from '@api';
62
- import { CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, OTHER_BRAND, TWITTER_URL } from '@constants';
63
- import { defaultCountry } from '@constants';
64
- import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo } from '@utils';
59
+ import { handleNextScreenStep } from '../../../app/settings';
60
+ import { FlowsTypes } from '../../../@types';
61
+ import API from '../../../api';
62
+ import { CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, OTHER_BRAND, TWITTER_URL } from '../../../constants';
63
+ import { defaultCountry } from '../../../constants';
64
+ import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo, sleep } from '../../../utils';
65
65
  export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
66
  var settings, requestBody, data;
67
67
  var _a, _b;
@@ -105,7 +105,7 @@ export var createCivilIdAuth = createAsyncThunk('createCivilIdAuth', function (p
105
105
  },
106
106
  sign_in: false,
107
107
  step_name: CONNECT_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
108
- encryption_contract: ['user_credentail.civil_id']
108
+ encryption_contract: ['user_credentail.identification_id']
109
109
  };
110
110
  return [4, API.authService.createAuth(requestBody)];
111
111
  case 1:
@@ -266,46 +266,63 @@ export var verifyAuth = createAsyncThunk('verifyAuth', function (params, thunkAp
266
266
  });
267
267
  }); });
268
268
  export var verifyPACI = createAsyncThunk('verifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
269
- var _a, settings, connect, responseBody, data, params_3, params_4;
269
+ var _a, settings, connect, responseBody, expiry, interval, maxCalls, response, count, data, isSuccess, leadBody, leadBody;
270
270
  var _b, _c, _d, _e;
271
271
  return __generator(this, function (_f) {
272
272
  switch (_f.label) {
273
273
  case 0:
274
274
  _a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
275
275
  responseBody = connect.data.civilIdData.responseBody;
276
- return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token)];
276
+ expiry = (responseBody === null || responseBody === void 0 ? void 0 : responseBody.expiry) || 120;
277
+ interval = 5;
278
+ maxCalls = Math.floor(expiry / interval);
279
+ response = null;
280
+ if (thunkApi.signal.aborted) {
281
+ return [2, { response: null }];
282
+ }
283
+ count = 1;
284
+ _f.label = 1;
277
285
  case 1:
286
+ if (!(count <= maxCalls)) return [3, 7];
287
+ return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token)];
288
+ case 2:
278
289
  data = _f.sent();
279
- if (!(((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success')) return [3, 6];
290
+ response = data;
291
+ if (count === 1) {
292
+ thunkApi.dispatch(retrieveBrandList(data === null || data === void 0 ? void 0 : data.individual_id));
293
+ thunkApi.dispatch(retrieveChannels());
294
+ }
295
+ isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
296
+ if (!isSuccess) return [3, 4];
280
297
  return [4, ((_c = params === null || params === void 0 ? void 0 : params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params))];
281
- case 2:
282
- _f.sent();
283
- (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, {});
284
- if (!(responseBody === null || responseBody === void 0 ? void 0 : responseBody.new_user)) return [3, 3];
285
- params_3 = {
286
- leadId: data === null || data === void 0 ? void 0 : data.lead_id,
287
- stepName: 'CONNECT_INDIVIDUAL_STEP'
288
- };
289
- thunkApi.dispatch(retrieveLead(params_3));
290
- return [3, 6];
291
- case 3: return [4, thunkApi.dispatch(retrieveBrandList(data === null || data === void 0 ? void 0 : data.individual_id))];
292
- case 4:
293
- _f.sent();
294
- return [4, thunkApi.dispatch(retrieveChannels())];
295
- case 5:
298
+ case 3:
296
299
  _f.sent();
297
- if (!(data === null || data === void 0 ? void 0 : data.lead_id)) {
298
- params_4 = {
300
+ if (responseBody === null || responseBody === void 0 ? void 0 : responseBody.new_user) {
301
+ leadBody = {
302
+ leadId: data === null || data === void 0 ? void 0 : data.lead_id,
303
+ stepName: 'CONNECT_INDIVIDUAL_STEP'
304
+ };
305
+ thunkApi.dispatch(retrieveLead(leadBody));
306
+ }
307
+ else if (!(data === null || data === void 0 ? void 0 : data.lead_id)) {
308
+ leadBody = {
299
309
  individualId: data === null || data === void 0 ? void 0 : data.individual_id,
300
310
  stepName: 'CONNECT_MERCHANT_INFO_STEP'
301
311
  };
302
- thunkApi.dispatch(createLead(params_4));
312
+ thunkApi.dispatch(createLead(leadBody));
303
313
  }
304
- else {
314
+ else
305
315
  thunkApi.dispatch(handleNextScreenStep('CONNECT_MERCHANT_INFO_STEP'));
306
- }
316
+ (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, {});
317
+ return [3, 7];
318
+ case 4: return [4, sleep(interval * 1000)];
319
+ case 5:
320
+ _f.sent();
307
321
  _f.label = 6;
308
- case 6: return [2, { response: data }];
322
+ case 6:
323
+ count++;
324
+ return [3, 1];
325
+ case 7: return [2, { response: response }];
309
326
  }
310
327
  });
311
328
  }); });
@@ -676,7 +693,10 @@ export var connectSlice = createSlice({
676
693
  })
677
694
  .addCase(verifyPACI.rejected, function (state, action) {
678
695
  state.loading = false;
679
- state.error = action.error.message;
696
+ var error = action.error.message;
697
+ if (error !== 'Aborted') {
698
+ state.error = error;
699
+ }
680
700
  })
681
701
  .addCase(createNIDAuth.fulfilled, function (state, action) {
682
702
  var _a;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { EntityFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { EntityFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  boardResponse: {
@@ -47,12 +47,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
53
- import { ENTITY_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
53
+ import { ENTITY_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '../../../constants';
54
54
  import moment from 'moment';
55
- import { convertNumbers2English } from '@utils';
55
+ import { convertNumbers2English } from '../../../utils';
56
56
  export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
57
57
  var payload, data, boardInfoData, board_id, board_info_id, info, hasEntityCompleted;
58
58
  var _a;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  boardResponse: {
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
53
- import { BUSINESS_FLOW_SUCCESS, INDIVIDUAl_STEP_NAMES } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
53
+ import { BUSINESS_FLOW_SUCCESS, INDIVIDUAl_STEP_NAMES } from '../../../constants';
54
54
  export var verifyLeadToken = createAsyncThunk('individualVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
55
55
  var payload, settings, data, boardData, countryCode, boardInfoData, countries, board_id, board_info_id, entity, info, hasIndividualCompleted;
56
56
  var _a, _b, _c;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  }, void, {}>;
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { handleNextScreenStep } from '@app/settings';
53
- import { OTP_STEP_NAMES } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { handleNextScreenStep } from '../../../app/settings';
53
+ import { OTP_STEP_NAMES } from '../../../constants';
54
54
  export var resendOTP = createAsyncThunk('otpResendOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
55
55
  var otp, payload, data;
56
56
  return __generator(this, function (_a) {
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  boardResponse: {
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
53
- import { BUSINESS_FLOW_SUCCESS, PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
53
+ import { BUSINESS_FLOW_SUCCESS, PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
54
54
  export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
55
55
  var payload, data, boardInfoData, board_id, board_info_id, info, hasPasswordCompleted;
56
56
  var _a;
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '../../../@types';
3
3
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  formData: MobileFormValues;
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { defaultCountry, SignIn_STEP_NAMES } from '@constants';
52
- import { handleNextScreenStep, handleOpen } from '@app/settings';
53
- import { getAxiosHeaders } from '@api';
50
+ import API from '../../../api';
51
+ import { defaultCountry, SignIn_STEP_NAMES } from '../../../constants';
52
+ import { handleNextScreenStep, handleOpen } from '../../../app/settings';
53
+ import { getAxiosHeaders } from '../../../api';
54
54
  var redirection = function (type) {
55
55
  if (type === 1)
56
56
  return handleNextScreenStep('SIGIN_PASSWORD_STEP');
@@ -1,5 +1,5 @@
1
- import { RootState } from '@store';
2
- import { FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  boardResponse: any;
@@ -47,11 +47,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import API from '@api';
51
- import { FlowsTypes } from '@types';
52
- import { hasKey } from '@utils';
53
- import { handleNextScreenStep, handleCurrentActiveScreen } from '@app/settings';
54
- import { BUSINESS_FLOW_SUCCESS, TAX_STEP_NAMES } from '@constants';
50
+ import API from '../../../api';
51
+ import { FlowsTypes } from '../../../@types';
52
+ import { hasKey } from '../../../utils';
53
+ import { handleNextScreenStep, handleCurrentActiveScreen } from '../../../app/settings';
54
+ import { BUSINESS_FLOW_SUCCESS, TAX_STEP_NAMES } from '../../../constants';
55
55
  export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
56
  var payload, data, boardData, boardInfoData, info, hasTaxCompleted;
57
57
  var _a, _b;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LibConfig } from '@types';
2
+ import { LibConfig } from '../../@types';
3
3
  export interface AuthLibProps extends LibConfig {
4
4
  leadId: string;
5
5
  postURL: string;
@@ -22,16 +22,16 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
24
24
  import { memo, useEffect } from 'react';
25
- import { FeatureContainer } from '@features/shared/Containers';
26
- import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '@hooks';
27
- import { settingsSelector, handleOpen } from '@app/settings';
28
- import AnimationFlow from '@components/AnimationFlow';
29
- import { store } from '@app/store';
30
- import { authSelector, retrieveLead, storeLeadId, storePostUrl } from '@features/app/auth/authStore';
31
- import { ReduxProvider, ThemeProvider } from '@components/Providers';
32
- import Collapse from '@components/Collapse';
33
- import { reactElement, removeElement } from '@utils';
34
- import { AUTH_SCREENS_NAVIGATION, DIALOG_ID } from '@constants';
25
+ import { FeatureContainer } from '../shared/Containers';
26
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
27
+ import { settingsSelector, handleOpen } from '../../app/settings';
28
+ import AnimationFlow from '../../components/AnimationFlow';
29
+ import { store } from '../../app/store';
30
+ import { authSelector, retrieveLead, storeLeadId, storePostUrl } from '../app/auth/authStore';
31
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
32
+ import Collapse from '../../components/Collapse';
33
+ import { reactElement, removeElement } from '../../utils';
34
+ import { AUTH_SCREENS_NAVIGATION, DIALOG_ID } from '../../constants';
35
35
  import { authFeatureScreens } from '../featuresScreens';
36
36
  import Background from '../shared/Background';
37
37
  var Auth = memo(function (_a) {