@tap-payments/auth-jsconnect 1.0.90-test → 1.0.94-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 (224) hide show
  1. package/README.md +58 -52
  2. package/build/@types/app.d.ts +9 -0
  3. package/build/@types/app.js +9 -0
  4. package/build/@types/form.d.ts +2 -0
  5. package/build/api/account.js +1 -1
  6. package/build/api/auth.js +1 -1
  7. package/build/api/availabilityServices.js +1 -1
  8. package/build/api/axios.d.ts +2 -0
  9. package/build/api/axios.js +4 -2
  10. package/build/api/country.js +1 -1
  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/individual.js +1 -1
  15. package/build/api/ip.js +1 -1
  16. package/build/api/lead.js +1 -1
  17. package/build/api/operator.js +1 -1
  18. package/build/app/rootReducer.d.ts +6 -7
  19. package/build/app/rootReducer.js +7 -9
  20. package/build/app/settings.d.ts +9 -3
  21. package/build/app/settings.js +42 -6
  22. package/build/app/store.d.ts +0 -2
  23. package/build/components/AnimationFlow/BottomSheet.js +1 -1
  24. package/build/components/AnimationFlow/Dialog.js +2 -2
  25. package/build/components/AnimationFlow/Loader.js +1 -1
  26. package/build/components/DatePicker/DatePicker.js +3 -3
  27. package/build/components/DatePicker/customStyle.css +86 -0
  28. package/build/components/Footer/Footer.d.ts +0 -2
  29. package/build/components/Footer/Footer.js +3 -4
  30. package/build/components/Input/Input.js +2 -2
  31. package/build/components/OTPTimer/OTPTimer.js +1 -1
  32. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  33. package/build/components/SimpleList/SimpleList.js +1 -1
  34. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  35. package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
  36. package/build/constants/app.d.ts +1 -2
  37. package/build/constants/app.js +1 -9
  38. package/build/features/app/bank/bankStore.d.ts +6 -2
  39. package/build/features/app/bank/bankStore.js +42 -5
  40. package/build/features/app/business/businessStore.d.ts +8 -10
  41. package/build/features/app/business/businessStore.js +42 -44
  42. package/build/features/app/connect/connectStore.d.ts +3 -8
  43. package/build/features/app/connect/connectStore.js +27 -61
  44. package/build/features/app/individual/individualStore.d.ts +7 -8
  45. package/build/features/app/individual/individualStore.js +53 -48
  46. package/build/features/app/password/passwordStore.d.ts +6 -2
  47. package/build/features/app/password/passwordStore.js +41 -5
  48. package/build/features/app/tax/taxStore.d.ts +6 -2
  49. package/build/features/app/tax/taxStore.js +43 -6
  50. package/build/features/bank/Bank.d.ts +1 -1
  51. package/build/features/bank/Bank.js +13 -12
  52. package/build/features/bank/screens/BankDetails/BankDetails.js +10 -9
  53. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  54. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  55. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -0
  56. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +67 -0
  57. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  58. package/build/features/bank/screens/BankDetails/validation.d.ts +3 -0
  59. package/build/features/bank/screens/BankDetails/validation.js +3 -2
  60. package/build/features/bank/screens/Success/Success.js +3 -3
  61. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -10
  62. package/build/features/bank/screens/Verify/OTPInput.d.ts +3 -1
  63. package/build/features/bank/screens/Verify/OTPInput.js +8 -3
  64. package/build/features/bank/screens/Verify/Verify.js +12 -11
  65. package/build/features/business/Business.d.ts +1 -1
  66. package/build/features/business/Business.js +13 -15
  67. package/build/features/business/screens/Activities/Activities.js +7 -7
  68. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  69. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  70. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  71. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  72. package/build/features/business/screens/Activities/SalesChannels.js +7 -7
  73. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  74. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  75. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  76. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  77. package/build/features/business/screens/BusinessType/validation.js +2 -2
  78. package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
  79. package/build/features/business/screens/Customers/CustomerLocations.js +8 -8
  80. package/build/features/business/screens/Customers/Customers.js +8 -8
  81. package/build/features/business/screens/Customers/ExpectedCustomers.js +6 -6
  82. package/build/features/business/screens/Customers/ExpectedSalesRange.js +7 -7
  83. package/build/features/business/screens/Customers/RefundPolicy.d.ts +2 -2
  84. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  85. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  86. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  87. package/build/features/business/screens/IDBOD/ID.js +6 -6
  88. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  89. package/build/features/business/screens/OTP/OTP.js +9 -9
  90. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  91. package/build/features/business/screens/Success/Success.js +3 -3
  92. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -9
  93. package/build/features/business/screens/Verify/OTPInput.d.ts +3 -1
  94. package/build/features/business/screens/Verify/OTPInput.js +8 -3
  95. package/build/features/business/screens/Verify/Verify.js +12 -11
  96. package/build/features/connect/Connect.d.ts +1 -1
  97. package/build/features/connect/Connect.js +14 -16
  98. package/build/features/connect/screens/Individual/Email.js +7 -7
  99. package/build/features/connect/screens/Individual/Individual.js +9 -9
  100. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  101. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  102. package/build/features/connect/screens/Individual/Name.js +6 -6
  103. package/build/features/connect/screens/Individual/validation.js +1 -1
  104. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  105. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  106. package/build/features/connect/screens/Merchant/BrandName.js +12 -11
  107. package/build/features/connect/screens/Merchant/Merchant.js +7 -7
  108. package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
  109. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  110. package/build/features/connect/screens/Merchant/validation.js +1 -1
  111. package/build/features/connect/screens/Mobile/Mobile.js +10 -10
  112. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  113. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  114. package/build/features/connect/screens/Mobile/Title.js +2 -2
  115. package/build/features/connect/screens/NID/DOB.js +5 -5
  116. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  117. package/build/features/connect/screens/NID/NID.js +9 -9
  118. package/build/features/connect/screens/OTP/OTP.js +9 -9
  119. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  120. package/build/features/connect/screens/ThankYou/ThankYou.js +3 -3
  121. package/build/features/featuresScreens.d.ts +1 -2
  122. package/build/features/featuresScreens.js +30 -37
  123. package/build/features/individual/Individual.d.ts +1 -1
  124. package/build/features/individual/Individual.js +13 -15
  125. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +11 -9
  126. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  127. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  128. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  129. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  130. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  131. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -9
  132. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  133. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  134. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +8 -8
  135. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  136. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  137. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  138. package/build/features/individual/screens/Success/Success.js +3 -3
  139. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -10
  140. package/build/features/individual/screens/Verify/OTPInput.d.ts +3 -1
  141. package/build/features/individual/screens/Verify/OTPInput.js +8 -3
  142. package/build/features/individual/screens/Verify/Verify.js +12 -11
  143. package/build/features/password/Password.d.ts +1 -1
  144. package/build/features/password/Password.js +13 -12
  145. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  146. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  147. package/build/features/password/screens/CreatePassword/CreatePassword.js +7 -7
  148. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  149. package/build/features/password/screens/Success/Success.js +3 -3
  150. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -10
  151. package/build/features/password/screens/Verify/OTPInput.d.ts +3 -1
  152. package/build/features/password/screens/Verify/OTPInput.js +8 -3
  153. package/build/features/password/screens/Verify/Verify.js +12 -11
  154. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  155. package/build/features/shared/Background/Background.js +3 -2
  156. package/build/features/shared/Background/LogoBackground.d.ts +1 -4
  157. package/build/features/shared/Background/LogoBackground.js +8 -39
  158. package/build/features/shared/Button/AbsherButton.d.ts +2 -3
  159. package/build/features/shared/Button/AbsherButton.js +7 -12
  160. package/build/features/shared/Button/Button.d.ts +1 -1
  161. package/build/features/shared/Button/Button.js +7 -7
  162. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  163. package/build/features/shared/Button/EmailProvidersButtons.js +4 -3
  164. package/build/features/shared/Button/FlowsButtons.d.ts +5 -2
  165. package/build/features/shared/Button/FlowsButtons.js +14 -9
  166. package/build/features/shared/Button/MobileButton.d.ts +2 -3
  167. package/build/features/shared/Button/MobileButton.js +7 -12
  168. package/build/features/shared/Button/SuccessButton.js +1 -1
  169. package/build/features/shared/Footer/Footer.js +5 -6
  170. package/build/features/shared/Input/Input.d.ts +1 -1
  171. package/build/features/shared/Input/Input.js +2 -2
  172. package/build/features/shared/OTP/OTP.d.ts +3 -2
  173. package/build/features/shared/OTP/OTP.js +13 -5
  174. package/build/features/shared/Search/Search.js +1 -1
  175. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  176. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  177. package/build/features/tax/Tax.d.ts +1 -1
  178. package/build/features/tax/Tax.js +13 -12
  179. package/build/features/tax/screens/Success/Success.js +3 -3
  180. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -10
  181. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -0
  182. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +66 -0
  183. package/build/features/tax/screens/TaxDetails/TaxDetails.js +11 -8
  184. package/build/features/tax/screens/TaxDetails/VATId.js +18 -7
  185. package/build/features/tax/screens/TaxDetails/validation.d.ts +3 -0
  186. package/build/features/tax/screens/TaxDetails/validation.js +2 -1
  187. package/build/features/tax/screens/Verify/OTPInput.d.ts +3 -1
  188. package/build/features/tax/screens/Verify/OTPInput.js +8 -3
  189. package/build/features/tax/screens/Verify/Verify.js +12 -11
  190. package/build/hooks/index.d.ts +1 -0
  191. package/build/hooks/index.js +1 -0
  192. package/build/hooks/useAppConfig.d.ts +1 -1
  193. package/build/hooks/useAppConfig.js +7 -4
  194. package/build/hooks/useAppDispatch.d.ts +0 -1
  195. package/build/hooks/useAppSelector.d.ts +1 -1
  196. package/build/hooks/useAppTheme.d.ts +1 -1
  197. package/build/hooks/useAppTheme.js +3 -3
  198. package/build/hooks/useErrorListener.d.ts +1 -1
  199. package/build/hooks/useErrorListener.js +5 -7
  200. package/build/hooks/useLanguage.js +1 -1
  201. package/build/hooks/useRedirectionListener.js +1 -1
  202. package/build/hooks/useStepStartedListener.d.ts +1 -0
  203. package/build/hooks/useStepStartedListener.js +10 -0
  204. package/build/i18n.js +1 -1
  205. package/build/index.css +135 -0
  206. package/build/index.d.ts +8 -9
  207. package/build/index.js +8 -11
  208. package/build/theme/theme.d.ts +1 -1
  209. package/build/utils/locale.d.ts +1 -1
  210. package/build/utils/locale.js +1 -1
  211. package/build/utils/rsa.js +1 -1
  212. package/build/utils/string.d.ts +2 -1
  213. package/build/utils/string.js +22 -3
  214. package/package.json +127 -127
  215. package/build/features/Landing/Landing.d.ts +0 -7
  216. package/build/features/Landing/Landing.js +0 -55
  217. package/build/features/Landing/index.d.ts +0 -1
  218. package/build/features/Landing/index.js +0 -1
  219. package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.d.ts +0 -5
  220. package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +0 -41
  221. package/build/features/Landing/screens/VerifyAndRedirect/index.d.ts +0 -2
  222. package/build/features/Landing/screens/VerifyAndRedirect/index.js +0 -2
  223. package/build/features/app/landing/landingStore.d.ts +0 -22
  224. package/build/features/app/landing/landingStore.js +0 -103
@@ -12,11 +12,11 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { alpha, styled } from '@mui/material/styles';
14
14
  import Box from '@mui/material/Box';
15
- import Icon from '@components/Icon';
16
- import Text from '@components/Text';
17
- import { ICONS_NAMES } from '@constants';
15
+ import Icon from '../../../components/Icon';
16
+ import Text from '../../../components/Text';
17
+ import { ICONS_NAMES } from '../../../constants';
18
18
  import { useTranslation } from 'react-i18next';
19
- import { useLanguage } from '@src/hooks';
19
+ import { useLanguage } from '../../../hooks';
20
20
  var BoxStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'enabled'; } })(function (_a) {
21
21
  var _b;
22
22
  var theme = _a.theme, enabled = _a.enabled, isAr = _a.isAr;
@@ -15,7 +15,7 @@ import { styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
16
  import LogoBackground from './LogoBackground';
17
17
  var BackgroundStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isTapOrigin'; } })(function (_a) {
18
- var isTapOrigin = _a.isTapOrigin;
18
+ var isTapOrigin = _a.isTapOrigin, theme = _a.theme;
19
19
  return ({
20
20
  width: '100vw',
21
21
  height: '100vh',
@@ -24,6 +24,7 @@ var BackgroundStyled = styled(Box, { shouldForwardProp: function (prop) { return
24
24
  });
25
25
  var Background = function (_a) {
26
26
  var children = _a.children, isTapOrigin = _a.isTapOrigin, loading = _a.loading;
27
- return (_jsxs(BackgroundStyled, __assign({ id: 'background', isTapOrigin: isTapOrigin }, { children: [_jsx(LogoBackground, { hide: loading || !isTapOrigin }), children] })));
27
+ var showLogo = !loading && isTapOrigin;
28
+ return (_jsxs(BackgroundStyled, __assign({ id: 'background', isTapOrigin: isTapOrigin }, { children: [showLogo && _jsx(LogoBackground, {}), children] })));
28
29
  };
29
30
  export default memo(Background);
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
- declare type LogoBackgroundProps = {
3
- hide?: boolean;
4
- };
5
- declare const _default: React.MemoExoticComponent<({ hide }: LogoBackgroundProps) => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
6
3
  export default _default;
@@ -1,22 +1,10 @@
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
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { memo } from 'react';
14
- import { styled, useTheme } from '@mui/material/styles';
15
- import Collapse from '@mui/material/Collapse';
3
+ import { styled } from '@mui/material/styles';
16
4
  import Box from '@mui/material/Box';
17
- import Icon from '@components/Icon';
18
- import { ICONS_NAMES } from '@constants';
19
- import { useLanguage } from '@hooks';
5
+ import Icon from '../../../components/Icon';
6
+ import { ICONS_NAMES } from '../../../constants';
7
+ import { useLanguage } from '../../../hooks';
20
8
  var BoxStyled = styled(Box)(function (_a) {
21
9
  var _b;
22
10
  var theme = _a.theme;
@@ -25,8 +13,7 @@ var BoxStyled = styled(Box)(function (_a) {
25
13
  flexDirection: 'column',
26
14
  justifyContent: 'center',
27
15
  alignItems: 'center',
28
- paddingTop: theme.spacing(5),
29
- paddingBottom: theme.spacing(2)
16
+ paddingTop: theme.spacing(5)
30
17
  },
31
18
  _b[theme.breakpoints.down('sm')] = {
32
19
  paddingTop: theme.spacing(11)
@@ -40,34 +27,16 @@ var LogoBadgeStyled = styled(Icon)(function (_a) {
40
27
  width: theme.spacing(8.875)
41
28
  });
42
29
  });
43
- var LogoIconBoxStyled = styled(Box)(function (_a) {
44
- var _b;
45
- var theme = _a.theme;
46
- return (_b = {
47
- paddingTop: theme.spacing(2.5),
48
- width: '100%',
49
- display: 'flex',
50
- justifyContent: 'center'
51
- },
52
- _b[theme.transitions.create(['top'])] = {
53
- duration: theme.transitions.duration.standard
54
- },
55
- _b);
56
- });
57
30
  var LogoIconStyled = styled(Icon)(function (_a) {
58
31
  var theme = _a.theme;
59
32
  return ({
60
33
  width: theme.spacing(5.875),
61
34
  height: theme.spacing(3.625),
62
- padding: theme.spacing(0)
35
+ marginTop: theme.spacing(2.5)
63
36
  });
64
37
  });
65
- var LogoBackground = function (_a) {
66
- var hide = _a.hide;
38
+ var LogoBackground = function () {
67
39
  var isAr = useLanguage().isAr;
68
- var theme = useTheme();
69
- var style = getComputedStyle(document.body);
70
- console.log(style.getPropertyValue('--rsbs-overlay-h'));
71
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' }) })] }) })));
40
+ return (_jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' })] }));
72
41
  };
73
42
  export default memo(LogoBackground);
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from '@components/Button';
2
+ import { ButtonProps } from '../../../components/Button';
3
3
  interface AbsherButtonProps extends ButtonProps {
4
- isAr: boolean;
5
4
  loading?: boolean;
6
5
  hideIcon?: boolean;
7
6
  }
8
- export default function AbsherButton({ children, isAr, hideIcon, disabled, ...props }: AbsherButtonProps): JSX.Element;
7
+ export default function AbsherButton({ children, hideIcon, disabled, ...props }: AbsherButtonProps): JSX.Element;
9
8
  export {};
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import Button from '@components/Button';
25
- import Icon from '@components/Icon';
24
+ import Button from '../../../components/Button';
25
+ import Icon from '../../../components/Icon';
26
26
  import { styled, useTheme } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
- import { ICONS_NAMES } from '@constants';
28
+ import { ICONS_NAMES } from '../../../constants';
29
29
  var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
30
30
  var theme = _a.theme, disabled = _a.disabled;
31
31
  return (__assign({ width: theme.spacing(3), height: theme.spacing(3), marginInlineStart: theme.spacing(0.75) }, (disabled && {
@@ -33,18 +33,13 @@ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop
33
33
  })));
34
34
  });
35
35
  var ButtonBoxStyled = styled(Box)(function (_a) {
36
- var _b;
37
36
  var theme = _a.theme;
38
- return (_b = {
39
- margin: theme.spacing(0, 2.5, 2.5, 2.5)
40
- },
41
- _b[theme.breakpoints.down('sm')] = {
42
- margin: theme.spacing(0, 2.5, 0.25, 2.5)
43
- },
44
- _b);
37
+ return ({
38
+ margin: theme.spacing(0, 2.5, 2.5, 2.5)
39
+ });
45
40
  });
46
41
  export default function AbsherButton(_a) {
47
- var children = _a.children, isAr = _a.isAr, hideIcon = _a.hideIcon, disabled = _a.disabled, props = __rest(_a, ["children", "isAr", "hideIcon", "disabled"]);
42
+ var children = _a.children, hideIcon = _a.hideIcon, disabled = _a.disabled, props = __rest(_a, ["children", "hideIcon", "disabled"]);
48
43
  var theme = useTheme();
49
44
  var btnColor = theme.palette.primary.light;
50
45
  return (_jsx(ButtonBoxStyled, { children: _jsx(Button, __assign({ outLineColor: btnColor, variant: 'outlined', disabled: disabled, type: 'button', startIcon: !hideIcon && _jsx(IconStyled, { disabled: disabled, src: ICONS_NAMES.ABSHER_LOGO }) }, props, { children: children })) }));
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from '@components/Button';
2
+ import { ButtonProps } from '../../../components/Button';
3
3
  export interface CustomButtonProps extends ButtonProps {
4
4
  isAr: boolean;
5
5
  loading?: boolean;
@@ -22,15 +22,15 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import React, { Fragment } from 'react';
25
- import Button from '@components/Button';
26
- import Icon from '@components/Icon';
25
+ import Button from '../../../components/Button';
26
+ import Icon from '../../../components/Icon';
27
27
  import { styled } from '@mui/material/styles';
28
- import Loader from '@components/Loader';
29
- import { ICONS_NAMES } from '@constants';
30
- import Warning from '@components/Warning';
31
- import Collapse from '@components/Collapse';
28
+ import Loader from '../../../components/Loader';
29
+ import { ICONS_NAMES } from '../../../constants';
30
+ import Warning from '../../../components/Warning';
31
+ import Collapse from '../../../components/Collapse';
32
32
  import Box from '@mui/material/Box';
33
- import Text from '@components/Text';
33
+ import Text from '../../../components/Text';
34
34
  var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
35
35
  var theme = _a.theme, isAr = _a.isAr;
36
36
  return ({
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from '@components/Button';
2
+ import { ButtonProps } from '../../../components/Button';
3
3
  declare type buttonProps = {
4
4
  title: string;
5
5
  href: string;
@@ -10,11 +10,11 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import Button from '@components/Button';
13
+ import Button from '../../../components/Button';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
16
  import Link from '@mui/material/Link';
17
- import { ICONS_NAMES } from '@constants';
17
+ import { ICONS_NAMES } from '../../../constants';
18
18
  var Image = styled('img')(function (_a) {
19
19
  var theme = _a.theme;
20
20
  return ({
@@ -45,7 +45,8 @@ var GMailButtonStyled = styled(Button)(function (_a) {
45
45
  var OutlookButtonStyled = styled(Button)(function (_a) {
46
46
  var theme = _a.theme;
47
47
  return ({
48
- width: '100%'
48
+ width: '100%',
49
+ marginBottom: theme.spacing(2.5)
49
50
  });
50
51
  });
51
52
  var AppleButtonStyled = styled(Button)(function (_a) {
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from '@components/Button';
2
+ import { ButtonProps } from '../../../components/Button';
3
3
  import { SxProps, Theme } from '@mui/material/styles';
4
+ import { FlowsTypes } from '../../../@types';
4
5
  export declare type ButtonItemProps = {
6
+ name: string;
5
7
  title: string;
6
8
  href: string;
7
9
  src: string;
@@ -11,5 +13,6 @@ export declare type ButtonItemProps = {
11
13
  };
12
14
  export interface EmailProvidersButtonsProps extends ButtonProps {
13
15
  buttons: ButtonItemProps[];
16
+ flowName: FlowsTypes;
14
17
  }
15
- export default function FlowsButtons({ buttons }: EmailProvidersButtonsProps): JSX.Element;
18
+ export default function FlowsButtons({ buttons, flowName }: EmailProvidersButtonsProps): JSX.Element;
@@ -10,15 +10,16 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import Button from '@components/Button';
13
+ import Button from '../../../components/Button';
14
14
  import { alpha, styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
16
  import Link from '@mui/material/Link';
17
- import { ICONS_NAMES } from '@src/constants';
17
+ import { ICONS_NAMES } from '../../../constants';
18
18
  import CheckIcon from '@mui/icons-material/Check';
19
- import { useAppDispatch } from '@src/hooks';
20
- import { handleOpen } from '@src/app/settings';
21
- var Image = styled('img', { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
19
+ import { useAppDispatch } from '../../../hooks';
20
+ import { handleOpen, handleCurrentActiveScreen } from '../../../app/settings';
21
+ import { getScreenNameBasedOnFlow } from '../../../utils';
22
+ var Image = styled('img')(function (_a) {
22
23
  var theme = _a.theme;
23
24
  return ({
24
25
  width: theme.spacing(3),
@@ -84,21 +85,25 @@ var CheckIconStyled = styled(CheckIcon)(function (_a) {
84
85
  });
85
86
  });
86
87
  export default function FlowsButtons(_a) {
87
- var buttons = _a.buttons;
88
+ var buttons = _a.buttons, flowName = _a.flowName;
88
89
  var dispatch = useAppDispatch();
89
90
  var onRedirect = function (item) {
90
91
  if (item.isCompleted)
91
92
  return;
93
+ if (flowName === item.name && item.name !== 'password') {
94
+ dispatch(handleCurrentActiveScreen(getScreenNameBasedOnFlow(item.name)));
95
+ return;
96
+ }
92
97
  dispatch(handleOpen(false));
93
98
  setTimeout(function () {
94
99
  window.location.href = item.href;
95
100
  }, 500);
96
101
  };
97
102
  return (_jsx(ButtonBoxStyled, { children: buttons.map(function (_a, idx) {
98
- var title = _a.title, href = _a.href, src = _a.src, hoverSrc = _a.hoverSrc, isCompleted = _a.isCompleted, sx = _a.sx;
103
+ var title = _a.title, href = _a.href, src = _a.src, hoverSrc = _a.hoverSrc, isCompleted = _a.isCompleted, sx = _a.sx, name = _a.name;
99
104
  var isLast = idx === buttons.length - 1;
100
105
  return (_jsx(Link, __assign({ underline: 'none', onClick: function () {
101
- onRedirect({ title: title, href: href, src: src, hoverSrc: hoverSrc, isCompleted: isCompleted });
102
- } }, { children: _jsx(ButtonStyled, __assign({ variant: 'outlined', isCompleted: isCompleted, sx: __assign({ mb: isLast ? 0 : 1.8 }, sx), endIcon: isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsx(Image, { sx: { height: 15, transform: 'unset' }, src: ICONS_NAMES.Arrow_filled_right_icon })), startIcon: _jsx(Image, { src: src, alt: title }), type: 'button' }, { children: title })) }), idx));
106
+ onRedirect({ title: title, href: href, src: src, hoverSrc: hoverSrc, isCompleted: isCompleted, name: name });
107
+ } }, { children: _jsx(ButtonStyled, __assign({ variant: 'outlined', isCompleted: isCompleted, sx: __assign({ mb: isLast ? 2.5 : 1.8 }, sx), endIcon: isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsx(Image, { sx: { height: 15, transform: 'unset' }, src: ICONS_NAMES.Arrow_filled_right_icon })), startIcon: _jsx(Image, { src: src, alt: title }), type: 'button' }, { children: title })) }), idx));
103
108
  }) }));
104
109
  }
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps } from '@components/Button';
2
+ import { ButtonProps } from '../../../components/Button';
3
3
  interface MobileButtonProps extends ButtonProps {
4
- isAr: boolean;
5
4
  loading?: boolean;
6
5
  hideIcon?: boolean;
7
6
  }
8
- export default function MobileButton({ children, isAr, hideIcon, disabled, ...props }: MobileButtonProps): JSX.Element;
7
+ export default function MobileButton({ children, hideIcon, disabled, ...props }: MobileButtonProps): JSX.Element;
9
8
  export {};
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import Button from '@components/Button';
25
- import Icon from '@components/Icon';
24
+ import Button from '../../../components/Button';
25
+ import Icon from '../../../components/Icon';
26
26
  import { styled } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
- import { ICONS_NAMES } from '@constants';
28
+ import { ICONS_NAMES } from '../../../constants';
29
29
  var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
30
30
  var theme = _a.theme, disabled = _a.disabled;
31
31
  return (__assign({ width: theme.spacing(3), height: theme.spacing(3), marginInlineStart: theme.spacing(0.75) }, (disabled && {
@@ -33,17 +33,12 @@ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop
33
33
  })));
34
34
  });
35
35
  var ButtonBoxStyled = styled(Box)(function (_a) {
36
- var _b;
37
36
  var theme = _a.theme;
38
- return (_b = {
39
- margin: theme.spacing(0, 2.5, 2.5, 2.5)
40
- },
41
- _b[theme.breakpoints.down('sm')] = {
42
- margin: theme.spacing(0, 2.5, 0.25, 2.5)
43
- },
44
- _b);
37
+ return ({
38
+ margin: theme.spacing(0, 2.5, 2.5, 2.5)
39
+ });
45
40
  });
46
41
  export default function MobileButton(_a) {
47
- var children = _a.children, isAr = _a.isAr, hideIcon = _a.hideIcon, disabled = _a.disabled, props = __rest(_a, ["children", "isAr", "hideIcon", "disabled"]);
42
+ var children = _a.children, hideIcon = _a.hideIcon, disabled = _a.disabled, props = __rest(_a, ["children", "hideIcon", "disabled"]);
48
43
  return (_jsx(ButtonBoxStyled, { children: _jsx(Button, __assign({ disabled: disabled, type: 'button', variant: 'outlined', startIcon: !hideIcon && _jsx(IconStyled, { disabled: disabled, src: ICONS_NAMES.MOBILE_ICON }) }, props, { children: children })) }));
49
44
  }
@@ -26,7 +26,7 @@ import Button from './Button';
26
26
  import { styled } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
28
  var ButtonStyled = styled(Button, {
29
- shouldForwardProp: function (prop) { return prop !== 'isLoading'; }
29
+ shouldForwardProp: function (prop) { return !['isLoading', 'isAr'].includes(prop); }
30
30
  })(function (_a) {
31
31
  var theme = _a.theme, isLoading = _a.isLoading;
32
32
  return ({
@@ -1,15 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LanguageMode } from '@types';
3
- import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
4
- import { handleLanguage } from '@app/settings';
5
- import Footer from '@components/Footer';
2
+ import { LanguageMode } from '../../../@types';
3
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../hooks';
4
+ import { handleLanguage, settingsSelector } from '../../../app/settings';
5
+ import Footer from '../../../components/Footer';
6
6
  import { useTranslation } from 'react-i18next';
7
- import { connectSelector } from '@features/app/connect/connectStore';
8
7
  export default function CustomFooter() {
9
8
  var isEn = useLanguage().isEn;
10
9
  var t = useTranslation().t;
11
10
  var dispatch = useAppDispatch();
12
- var data = useAppSelector(connectSelector).data;
11
+ var data = useAppSelector(settingsSelector).data;
13
12
  var handleChangeLanguage = function () {
14
13
  var language = isEn ? LanguageMode.AR : LanguageMode.EN;
15
14
  dispatch(handleLanguage(language));
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from '@components/Input';
2
+ import { InputProps } from '../../../components/Input';
3
3
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
4
4
  align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
5
5
  children?: React.ReactNode;
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
24
  import { styled, alpha } from '@mui/material/styles';
25
- import Text from '@components/Text';
25
+ import Text from '../../../components/Text';
26
26
  import Box from '@mui/material/Box';
27
- import Input from '@components/Input';
27
+ import Input from '../../../components/Input';
28
28
  import Mandatory from '../Mandatory';
29
29
  export var InputLabelStyled = styled(Text)(function (_a) {
30
30
  var theme = _a.theme;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
- import { OTPFieldProps } from '@components/OTPField';
2
+ import { OTPFieldProps } from '../../../components/OTPField';
3
3
  interface OTPProps extends OTPFieldProps {
4
4
  timerInSeconds?: number;
5
5
  onResetClick?: () => void;
6
6
  timeEndLabel?: string;
7
+ loading?: boolean;
7
8
  }
8
- declare const _default: React.MemoExoticComponent<({ timeEndLabel, timerInSeconds, onResetClick, ...props }: OTPProps) => JSX.Element>;
9
+ declare const _default: React.MemoExoticComponent<({ timeEndLabel, loading, timerInSeconds, onResetClick, ...props }: OTPProps) => JSX.Element>;
9
10
  export default _default;
@@ -24,9 +24,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
26
  import Box from '@mui/material/Box/Box';
27
- import OTPField from '@components/OTPField';
28
- import OTPTimer from '@components/OTPTimer';
29
- import { useContainerDimensions } from '@hooks';
27
+ import CircularProgress from '@mui/material/CircularProgress';
28
+ import OTPField from '../../../components/OTPField';
29
+ import OTPTimer from '../../../components/OTPTimer';
30
+ import { useContainerDimensions } from '../../../hooks';
30
31
  var OTPStyled = styled(OTPField)(function (_a) {
31
32
  var _b;
32
33
  var theme = _a.theme, parentWidth = _a.parentWidth;
@@ -71,8 +72,15 @@ var OTPBox = styled(Box)(function (_a) {
71
72
  },
72
73
  _b);
73
74
  });
75
+ var LoaderBoxStyled = styled(OTPBox)(function (_a) {
76
+ var theme = _a.theme;
77
+ return ({
78
+ display: 'flex',
79
+ justifyContent: 'end'
80
+ });
81
+ });
74
82
  var OTPInput = function (_a) {
75
- var timeEndLabel = _a.timeEndLabel, timerInSeconds = _a.timerInSeconds, onResetClick = _a.onResetClick, props = __rest(_a, ["timeEndLabel", "timerInSeconds", "onResetClick"]);
83
+ var timeEndLabel = _a.timeEndLabel, loading = _a.loading, timerInSeconds = _a.timerInSeconds, onResetClick = _a.onResetClick, props = __rest(_a, ["timeEndLabel", "loading", "timerInSeconds", "onResetClick"]);
76
84
  var otpRef = React.useRef(null);
77
85
  var width = useContainerDimensions(otpRef).width;
78
86
  React.useEffect(function () {
@@ -80,6 +88,6 @@ var OTPInput = function (_a) {
80
88
  if (el)
81
89
  el.className = 'middle-input-element';
82
90
  }, [props.value]);
83
- return (_jsxs(_Fragment, { children: [_jsx(OTPBox, __assign({ id: 'otp-container', ref: otpRef }, { children: _jsx(OTPStyled, __assign({}, props, { parentWidth: width })) })), typeof timerInSeconds != 'undefined' && (_jsx(BoxStyled, { children: _jsx(OTPTimer, { timeEndLabel: timeEndLabel || '', timeInSeconds: timerInSeconds, onResetClick: onResetClick }) }))] }));
91
+ return (_jsxs(_Fragment, { children: [_jsx(OTPBox, __assign({ id: 'otp-container', ref: otpRef }, { children: _jsx(OTPStyled, __assign({}, props, { parentWidth: width })) })), typeof timerInSeconds != 'undefined' && (_jsx(BoxStyled, { children: loading ? (_jsx(LoaderBoxStyled, { children: _jsx(CircularProgress, { size: 20, thickness: 5 }) })) : (_jsx(OTPTimer, { timeEndLabel: timeEndLabel || '', timeInSeconds: timerInSeconds, onResetClick: onResetClick })) }))] }));
84
92
  };
85
93
  export default React.memo(OTPInput);
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import Input from '@features/shared/Input';
4
+ import Input from '../../shared/Input';
5
5
  var Search = function (_a) {
6
6
  var onSearchValue = _a.onSearchValue;
7
7
  var t = useTranslation().t;
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import Icon from '@src/components/Icon';
13
+ import Icon from '../../../components/Icon';
14
14
  import { styled } from '@mui/material/styles';
15
- import { ICONS_NAMES } from '@src/constants';
15
+ import { ICONS_NAMES } from '../../../constants';
16
16
  var SearchIcon = styled(Icon)(function (_a) {
17
17
  var theme = _a.theme;
18
18
  return ({
@@ -14,12 +14,12 @@ import Box from '@mui/material/Box/Box';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import * as React from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
- import Text from '@components/Text';
17
+ import Text from '../../../components/Text';
18
18
  import Container from '../Containers/ScreenContainer';
19
- import { EmailProvidersButton, SuccessButton } from '@features/shared/Button';
20
- import Icon from '@components/Icon';
21
- import { ICONS_NAMES } from '@constants';
22
- import { useLanguage } from '@hooks';
19
+ import { EmailProvidersButton, SuccessButton } from '../../shared/Button';
20
+ import Icon from '../../../components/Icon';
21
+ import { ICONS_NAMES } from '../../../constants';
22
+ import { useLanguage } from '../../../hooks';
23
23
  var MailBoxStyled = styled(Box)(function () { return ({
24
24
  width: '100%'
25
25
  }); });
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LibConfig } from '@types';
2
+ import { LibConfig } from '../../@types';
3
3
  export interface TaxLibProps extends LibConfig {
4
4
  }
5
5
  export declare function TaxLib(props: TaxLibProps): JSX.Element;
@@ -11,26 +11,27 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { memo, useEffect } from 'react';
14
- import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener } from '@hooks';
15
- import { handleLanguage, settingsSelector } from '@app/settings';
16
- import AnimationFlow from '@components/AnimationFlow';
17
- import { store } from '@app/store';
18
- import { ReduxProvider, ThemeProvider } from '@components/Providers';
19
- import Collapse from '@components/Collapse';
20
- import { getParameterByName, reactElement } from '@utils';
21
- import { FeatureContainer } from '@features/shared/Containers';
22
- import { TAX_SCREENS_NAVIGATION } from '@constants';
14
+ import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
15
+ import { handleLanguage, settingsSelector } from '../../app/settings';
16
+ import AnimationFlow from '../../components/AnimationFlow';
17
+ import { store } from '../../app/store';
18
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
19
+ import Collapse from '../../components/Collapse';
20
+ import { getParameterByName, reactElement } from '../../utils';
21
+ import { FeatureContainer } from '../shared/Containers';
22
+ import { TAX_SCREENS_NAVIGATION } from '../../constants';
23
23
  import { taxFeatureScreens } from '../featuresScreens';
24
24
  import CustomFooter from '../shared/Footer';
25
- import { taxSelector, verifyLeadToken } from '@features/app/tax/taxStore';
25
+ import { taxSelector, verifyLeadToken } from '../app/tax/taxStore';
26
26
  import Background from '../shared/Background';
27
27
  var Tax = memo(function (props) {
28
28
  var theme = useAppTheme().theme;
29
29
  var dispatch = useAppDispatch();
30
30
  var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, settingLoading = _a.loading;
31
- var customLoading = useAppSelector(taxSelector).customLoading;
31
+ var _b = useAppSelector(taxSelector), customLoading = _b.customLoading, taxError = _b.error;
32
32
  var loading = useAppConfig(__assign({ navigation: TAX_SCREENS_NAVIGATION }, props)).loading;
33
- useErrorListener();
33
+ useErrorListener(taxError || error);
34
+ useStepStartedListener();
34
35
  var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
35
36
  var verifyToken = function () {
36
37
  var token = getParameterByName('token');
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { useAppDispatch, useAppSelector } from '@hooks';
5
- import { updateLeadSuccess, taxSelector } from '@features/app/tax/taxStore';
6
- import SuccessScreen from '@features/shared/SuccessScreen';
4
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
5
+ import { updateLeadSuccess, taxSelector } from '../../../app/tax/taxStore';
6
+ import SuccessScreen from '../../../shared/SuccessScreen';
7
7
  var Success = function (_a) {
8
8
  var t = useTranslation().t;
9
9
  var dispatch = useAppDispatch();
@@ -13,15 +13,15 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
13
  import React, { memo, useEffect, useState } from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { styled } from '@mui/material/styles';
16
- import { FlowsButtons } from '@features/shared/Button';
17
- import { ICONS_NAMES } from '@constants';
18
- import { useAppSelector, useLanguage } from '@hooks';
19
- import { allAreTruthy, showLastFour } from '@utils';
20
- import { taxSelector } from '@features/app/tax/taxStore';
16
+ import { FlowsButtons } from '../../../shared/Button';
17
+ import { ICONS_NAMES } from '../../../../constants';
18
+ import { useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { allAreTruthy, showLastFour } from '../../../../utils';
20
+ import { taxSelector } from '../../../app/tax/taxStore';
21
21
  import Box from '@mui/material/Box';
22
- import Text from '@components/Text';
23
- import Container from '@features/shared/Containers/ScreenContainer';
24
- import AcceptancePayouts from '@features/shared/AcceptancePayouts';
22
+ import Text from '../../../../components/Text';
23
+ import Container from '../../../shared/Containers/ScreenContainer';
24
+ import AcceptancePayouts from '../../../shared/AcceptancePayouts';
25
25
  var TitleStyled = styled(Text)(function (_a) {
26
26
  var _b;
27
27
  var theme = _a.theme;
@@ -60,7 +60,6 @@ var SuccessWithFlowButtons = function () {
60
60
  var reMapFlowData = function (flows) {
61
61
  if (flows === void 0) { flows = []; }
62
62
  var images = ICONS_NAMES;
63
- var statuses = [];
64
63
  var mappedFlows = flows.map(function (_a) {
65
64
  var name = _a.name, url = _a.url, status = _a.status;
66
65
  var type = status === 'initiated' ? 'pending' : 'completed';
@@ -79,6 +78,7 @@ var SuccessWithFlowButtons = function () {
79
78
  var src = isCompleted ? "".concat(name, "_green_icon") : "".concat(name, "_filled_icon");
80
79
  var hoverSrc = "".concat(name, "_white_icon");
81
80
  return {
81
+ name: name,
82
82
  title: title,
83
83
  href: url,
84
84
  src: images[src],
@@ -96,6 +96,6 @@ var SuccessWithFlowButtons = function () {
96
96
  if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0)
97
97
  reMapFlowData(flows);
98
98
  }, [flows, isAr]);
99
- return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons }) })] }));
99
+ return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons, flowName: data.flowName }) })] }));
100
100
  };
101
101
  export default memo(SuccessWithFlowButtons);
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ConfirmPolicy: () => JSX.Element;
3
+ export default ConfirmPolicy;