@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
@@ -1,4 +1,4 @@
1
- import { REGEX_BENEFICIARY_NAME } from '@constants';
1
+ import { REGEX_BENEFICIARY_NAME } from '../../../../constants';
2
2
  import * as yup from 'yup';
3
3
  export var BankValidation = yup.object().shape({
4
4
  iban: yup
@@ -11,5 +11,6 @@ export var BankValidation = yup.object().shape({
11
11
  beneficiaryName: yup
12
12
  .string()
13
13
  .matches(REGEX_BENEFICIARY_NAME, 'beneficiary_name_invalid')
14
- .required('beneficiary_name_required')
14
+ .required('beneficiary_name_required'),
15
+ confirmPolicy: yup.boolean().required('alert_bank_confirm').isTrue('alert_bank_confirm')
15
16
  });
@@ -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 SuccessScreen from '@features/shared/SuccessScreen';
5
- import { useAppDispatch, useAppSelector } from '@hooks';
6
- import { bankSelector, updateLeadSuccess } from '@features/app/bank/bankStore';
4
+ import SuccessScreen from '../../../shared/SuccessScreen';
5
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
6
+ import { bankSelector, updateLeadSuccess } from '../../../app/bank/bankStore';
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 { bankSelector } from '@features/app/bank/bankStore';
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 { bankSelector } from '../../../app/bank/bankStore';
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);
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface OTPProps {
3
+ loading: boolean;
4
+ setLoading: (flag: boolean) => void;
3
5
  }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ loading, setLoading }: OTPProps) => JSX.Element>;
5
7
  export default _default;
@@ -13,10 +13,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import Box from '@mui/material/Box/Box';
15
15
  import { styled } from '@mui/material/styles';
16
- import OTPField from '@features/shared/OTP';
16
+ import OTPField from '../../../shared/OTP';
17
17
  import { useController, useFormContext } from 'react-hook-form';
18
18
  import { useTranslation } from 'react-i18next';
19
- import { DEFAULT_TIMER_VALUE } from '@constants';
19
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
20
+ import { useAppDispatch } from '../../../../hooks';
21
+ import { resendOTP } from '../../../app/bank/bankStore';
20
22
  var BoxStyled = styled(Box)(function (_a) {
21
23
  var theme = _a.theme;
22
24
  return ({
@@ -26,17 +28,20 @@ var BoxStyled = styled(Box)(function (_a) {
26
28
  });
27
29
  });
28
30
  var OTPInput = function (_a) {
31
+ var loading = _a.loading, setLoading = _a.setLoading;
29
32
  var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
30
33
  var t = useTranslation().t;
31
34
  var otpControl = useController({ name: 'otp', control: control });
35
+ var dispatch = useAppDispatch();
32
36
  var handleOnOTPChange = function (otp) {
33
37
  otpControl.field.onChange(otp);
34
38
  };
35
39
  var handleOnResendOTP = function () {
36
40
  if (otpControl.field.value)
37
41
  setValue('otp', '', { shouldValidate: true });
42
+ dispatch(resendOTP());
38
43
  };
39
44
  var otpValue = otpControl.field.value;
40
- return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPField, { timeEndLabel: t('ide_otp_resend_label'), timerInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendOTP, value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
45
+ return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPField, { loading: loading, timeEndLabel: t('ide_otp_resend_label'), timerInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendOTP, value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
41
46
  };
42
47
  export default React.memo(OTPInput);
@@ -11,20 +11,20 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { useAppDispatch } from '@hooks';
14
+ import { useAppDispatch } from '../../../../hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
18
  import Box from '@mui/material/Box/Box';
19
19
  import { styled } from '@mui/material/styles';
20
- import { handlePrevScreenStep } from '@app/settings';
21
- import { useLanguage, useAppSelector } from '@hooks';
22
- import { maskPhone } from '@utils';
23
- import Form from '@components/Form';
24
- import Text from '@components/Text';
25
- import { ScreenContainer } from '@features/shared/Containers';
26
- import { bankSelector, clearError, resetOTPScreen, verifyBankLeadOTP } from '@features/app/bank/bankStore';
27
- import Button from '@features/shared/Button';
20
+ import { handlePrevScreenStep } from '../../../../app/settings';
21
+ import { useLanguage, useAppSelector } from '../../../../hooks';
22
+ import { maskPhone } from '../../../../utils';
23
+ import Form from '../../../../components/Form';
24
+ import Text from '../../../../components/Text';
25
+ import { ScreenContainer } from '../../../shared/Containers';
26
+ import { bankSelector, clearError, resetOTPScreen, verifyBankLeadOTP } from '../../../app/bank/bankStore';
27
+ import Button from '../../../shared/Button';
28
28
  import { OTPValidation } from './validation';
29
29
  import OTPInput from './OTPInput';
30
30
  var OTPTitleContainerStyled = styled(Box)(function (_a) {
@@ -57,6 +57,7 @@ var VerifyNumber = function (_a) {
57
57
  });
58
58
  var t = useTranslation().t;
59
59
  var isAr = useLanguage().isAr;
60
+ var _f = React.useState(false), resendLoading = _f[0], setResendLoading = _f[1];
60
61
  React.useEffect(function () {
61
62
  if (error)
62
63
  dispatch(clearError());
@@ -71,7 +72,7 @@ var VerifyNumber = function (_a) {
71
72
  dispatch(handlePrevScreenStep());
72
73
  };
73
74
  var phone = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.contact) === null || _c === void 0 ? void 0 : _c.phone) === null || _d === void 0 ? void 0 : _d.number;
74
- var disabled = !methods.formState.isValid || !!error || !phone;
75
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
75
+ var disabled = !methods.formState.isValid || !!error || !phone || resendLoading;
76
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
76
77
  };
77
78
  export default React.memo(VerifyNumber);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LibConfig } from '@types';
2
+ import { LibConfig } from '../../@types';
3
3
  export interface BusinessLibProps extends LibConfig {
4
4
  }
5
5
  export declare function BusinessLib(props: BusinessLibProps): JSX.Element;
@@ -11,16 +11,16 @@ 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 { FeatureContainer } from '@features/shared/Containers';
17
- import { businessSelector, getCountries, verifyLeadToken } from '@features/app/business/businessStore';
18
- import AnimationFlow from '@components/AnimationFlow';
19
- import { store } from '@app/store';
20
- import { ReduxProvider, ThemeProvider } from '@components/Providers';
21
- import Collapse from '@components/Collapse';
22
- import { getParameterByName, reactElement } from '@utils';
23
- import { BUSINESS_SCREENS_NAVIGATION } from '@constants';
14
+ import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
15
+ import { handleLanguage, settingsSelector } from '../../app/settings';
16
+ import { FeatureContainer } from '../shared/Containers';
17
+ import { businessSelector, verifyLeadToken } from '../app/business/businessStore';
18
+ import AnimationFlow from '../../components/AnimationFlow';
19
+ import { store } from '../../app/store';
20
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
21
+ import Collapse from '../../components/Collapse';
22
+ import { getParameterByName, reactElement } from '../../utils';
23
+ import { BUSINESS_SCREENS_NAVIGATION } from '../../constants';
24
24
  import { businessFeatureScreens } from '../featuresScreens';
25
25
  import CustomFooter from '../shared/Footer';
26
26
  import Background from '../shared/Background';
@@ -28,9 +28,10 @@ var Business = 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(businessSelector).customLoading;
31
+ var _b = useAppSelector(businessSelector), customLoading = _b.customLoading, businessError = _b.error;
32
32
  var loading = useAppConfig(__assign({ navigation: BUSINESS_SCREENS_NAVIGATION }, props)).loading;
33
- useErrorListener();
33
+ useErrorListener(businessError || 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');
@@ -46,9 +47,6 @@ var Business = memo(function (props) {
46
47
  if (!loading)
47
48
  verifyToken();
48
49
  }, [loading]);
49
- useEffect(function () {
50
- dispatch(getCountries());
51
- }, []);
52
50
  return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: businessFeatureScreens.map(function (_a, index) {
53
51
  var Element = _a.element, name = _a.name;
54
52
  var isActive = activeScreen.name === name;
@@ -14,17 +14,17 @@ import * as React from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import ActivitiesList from './ActivitiesList';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
- import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
18
- import Form from '@components/Form';
17
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
18
+ import Form from '../../../../components/Form';
19
19
  import { yupResolver } from '@hookform/resolvers/yup';
20
20
  import { useTranslation } from 'react-i18next';
21
- import { handlePrevScreenStep } from '@app/settings';
22
- import Button from '@features/shared/Button';
21
+ import { handlePrevScreenStep } from '../../../../app/settings';
22
+ import Button from '../../../shared/Button';
23
23
  import SalesChannels from './SalesChannels';
24
- import { ScreenContainer } from '@features/shared/Containers';
25
- import Collapse from '@components/Collapse';
24
+ import { ScreenContainer } from '../../../shared/Containers';
25
+ import Collapse from '../../../../components/Collapse';
26
26
  import OperationStartDate from './OperationStartDate';
27
- import { businessSelector, clearError, updateActivitiesInfo } from '@features/app/business/businessStore';
27
+ import { businessSelector, clearError, updateActivitiesInfo } from '../../../app/business/businessStore';
28
28
  import { ActivitiesValidationSchema } from './validation';
29
29
  var FormStyled = styled(Form)(function () { return ({
30
30
  display: 'flex',
@@ -12,7 +12,7 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
14
  }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("@components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
15
+ export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../../components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
16
16
  placeholder?: string | undefined;
17
17
  hide?: boolean | undefined;
18
18
  warningType?: "alert" | "error" | "hint" | undefined;
@@ -33,17 +33,17 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
33
33
  import * as React from 'react';
34
34
  import Box from '@mui/material/Box';
35
35
  import { alpha, styled } from '@mui/material/styles';
36
- import Text from '@components/Text';
37
- import Input from '@components/Input';
36
+ import Text from '../../../../components/Text';
37
+ import Input from '../../../../components/Input';
38
38
  import { useTranslation } from 'react-i18next';
39
39
  import { useController, useFormContext } from 'react-hook-form';
40
- import { useLanguage, useAppSelector } from '@hooks';
41
- import { BusinessType } from '@types';
42
- import Collapse from '@components/Collapse';
43
- import SimpleList from '@components/SimpleList';
44
- import ExpandIcon from '@components/ExpandIcon';
45
- import { ScreenContainer } from '@features/shared/Containers';
46
- import { businessSelector } from '@features/app/business/businessStore';
40
+ import { useLanguage, useAppSelector } from '../../../../hooks';
41
+ import { BusinessType } from '../../../../@types';
42
+ import Collapse from '../../../../components/Collapse';
43
+ import SimpleList from '../../../../components/SimpleList';
44
+ import ExpandIcon from '../../../../components/ExpandIcon';
45
+ import { ScreenContainer } from '../../../shared/Containers';
46
+ import { businessSelector } from '../../../app/business/businessStore';
47
47
  import CheckIcon from '@mui/icons-material/Check';
48
48
  import { MandatoryStyled } from './SalesChannels';
49
49
  export var InputLabelStyled = styled(Text)(function (_a) {
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { InputLabelStyled } from './ActivitiesList';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useController, useFormContext } from 'react-hook-form';
5
- import DatePicker from '@components/DatePicker';
6
- import { ScreenContainer } from '@features/shared/Containers';
5
+ import DatePicker from '../../../../components/DatePicker';
6
+ import { ScreenContainer } from '../../../shared/Containers';
7
7
  import { MandatoryStyled } from './SalesChannels';
8
8
  var OperationStartDate = function (_a) {
9
9
  var _b;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export declare const MandatoryStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
- export declare const CollapseStyled: import("@emotion/styled").StyledComponent<import("@components/Collapse").CollapseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
3
+ export declare const CollapseStyled: import("@emotion/styled").StyledComponent<import("../../../../components/Collapse").CollapseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
4
4
  declare const SalesChannels: () => JSX.Element;
5
5
  export default SalesChannels;
@@ -24,13 +24,13 @@ import Box from '@mui/material/Box';
24
24
  import { alpha, styled } from '@mui/material/styles';
25
25
  import { useTranslation } from 'react-i18next';
26
26
  import { useController, useFormContext } from 'react-hook-form';
27
- import { useLanguage, useAppSelector } from '@hooks';
28
- import Text from '@components/Text';
29
- import { businessSelector } from '@features/app/business/businessStore';
30
- import CheckBox from '@components/CheckBox';
31
- import Warning from '@components/Warning';
32
- import Collapse from '@components/Collapse';
33
- import { ScreenContainer } from '@features/shared/Containers';
27
+ import { useLanguage, useAppSelector } from '../../../../hooks';
28
+ import Text from '../../../../components/Text';
29
+ import { businessSelector } from '../../../app/business/businessStore';
30
+ import CheckBox from '../../../../components/CheckBox';
31
+ import Warning from '../../../../components/Warning';
32
+ import Collapse from '../../../../components/Collapse';
33
+ import { ScreenContainer } from '../../../shared/Containers';
34
34
  var InputLabelStyled = styled(Text)(function (_a) {
35
35
  var theme = _a.theme;
36
36
  return (__assign({ margin: theme.spacing(2.5, 2.5, 0.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
@@ -14,14 +14,14 @@ import * as React from 'react';
14
14
  import { useForm, FormProvider } from 'react-hook-form';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { yupResolver } from '@hookform/resolvers/yup';
17
- import { useAppDispatch, useAppSelector } from '@hooks';
18
- import { handlePrevScreenStep } from '@app/settings';
19
- import Form from '@components/Form';
20
- import Collapse from '@components/Collapse';
21
- import { useLanguage } from '@hooks';
22
- import ScreenContainer from '@features/shared/Containers/ScreenContainer';
23
- import { businessSelector, clearError, updateLeadBusinessType } from '@features/app/business/businessStore';
24
- import Button from '@features/shared/Button';
17
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
18
+ import { handlePrevScreenStep } from '../../../../app/settings';
19
+ import Form from '../../../../components/Form';
20
+ import Collapse from '../../../../components/Collapse';
21
+ import { useLanguage } from '../../../../hooks';
22
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
23
+ import { businessSelector, clearError, updateLeadBusinessType } from '../../../app/business/businessStore';
24
+ import Button from '../../../shared/Button';
25
25
  import { LicenseValidationSchema } from './validation';
26
26
  import LicenseList from './LicenseList';
27
27
  var BusinessType = function (_a) {
@@ -26,16 +26,16 @@ import { useTranslation } from 'react-i18next';
26
26
  import { useController, useFormContext } from 'react-hook-form';
27
27
  import Box from '@mui/material/Box';
28
28
  import { styled } from '@mui/material/styles';
29
- import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
30
- import { BusinessType } from '@types';
31
- import ScreenContainer from '@features/shared/Containers/ScreenContainer';
32
- import Input from '@features/shared/Input';
33
- import CheckIcon from '@features/shared/CheckIcon';
34
- import SimpleList from '@components/SimpleList';
35
- import { businessSelector, clearError } from '@features/app/business/businessStore';
36
- import Text from '@components/Text';
37
- import ExpandIcon from '@components/ExpandIcon';
38
- import Collapse from '@components/Collapse';
29
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
30
+ import { BusinessType } from '../../../../@types';
31
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
32
+ import Input from '../../../shared/Input';
33
+ import CheckIcon from '../../../shared/CheckIcon';
34
+ import SimpleList from '../../../../components/SimpleList';
35
+ import { businessSelector, clearError } from '../../../app/business/businessStore';
36
+ import Text from '../../../../components/Text';
37
+ import ExpandIcon from '../../../../components/ExpandIcon';
38
+ import Collapse from '../../../../components/Collapse';
39
39
  import LicenseNumber from './LicenseNumber';
40
40
  var InputStyled = styled(Input)(function (_a) {
41
41
  var theme = _a.theme;
@@ -13,14 +13,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { CR_NUMBER_LENGTH, FL_NUMBER_LENGTH } from '@constants';
17
- import { removeAllOtherThanCharsAndNumber } from '@utils';
18
- import ScreenContainer from '@features/shared/Containers/ScreenContainer';
19
- import ClearIcon from '@features/shared/ClearIcon';
20
- import CheckIcon from '@features/shared/CheckIcon';
21
- import Input from '@features/shared/Input';
22
- import Collapse from '@components/Collapse';
23
- import { BusinessType } from '@types';
16
+ import { CR_NUMBER_LENGTH, FL_NUMBER_LENGTH } from '../../../../constants';
17
+ import { removeAllOtherThanCharsAndNumber } from '../../../../utils';
18
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
19
+ import ClearIcon from '../../../shared/ClearIcon';
20
+ import CheckIcon from '../../../shared/CheckIcon';
21
+ import Input from '../../../shared/Input';
22
+ import Collapse from '../../../../components/Collapse';
23
+ import { BusinessType } from '../../../../@types';
24
24
  var LicenseNumber = function (_a) {
25
25
  var _b;
26
26
  var show = _a.show, readOnly = _a.readOnly;
@@ -17,12 +17,12 @@ import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import RadioGroup from '@mui/material/RadioGroup';
19
19
  import Radio from '@mui/material/Radio';
20
- import ScreenContainer from '@features/shared/Containers/ScreenContainer';
21
- import Text from '@components/Text';
22
- import Collapse from '@components/Collapse';
23
- import Icon from '@components/Icon/Icon';
24
- import { ICONS_NAMES } from '@constants';
25
- import { BusinessType } from '@types';
20
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
21
+ import Text from '../../../../components/Text';
22
+ import Collapse from '../../../../components/Collapse';
23
+ import Icon from '../../../../components/Icon/Icon';
24
+ import { ICONS_NAMES } from '../../../../constants';
25
+ import { BusinessType } from '../../../../@types';
26
26
  import BTypeSwitch from './Switch';
27
27
  var TitleStyled = styled(Text)(function (_a) {
28
28
  var theme = _a.theme;
@@ -1,6 +1,6 @@
1
1
  import * as yup from 'yup';
2
- import { FL_NUMBER_LENGTH, CR_NUMBER_LENGTH } from '@constants';
3
- import { BusinessType } from '@src/@types';
2
+ import { FL_NUMBER_LENGTH, CR_NUMBER_LENGTH } from '../../../../constants';
3
+ import { BusinessType } from '../../../../@types';
4
4
  var objectElements = {
5
5
  legal_name: yup.object().shape({
6
6
  ar: yup.string(),
@@ -12,7 +12,7 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
14
  }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("@components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
15
+ export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../../components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
16
16
  placeholder?: string | undefined;
17
17
  hide?: boolean | undefined;
18
18
  warningType?: "alert" | "error" | "hint" | undefined;
@@ -26,15 +26,15 @@ import Box from '@mui/material/Box';
26
26
  import { useTranslation } from 'react-i18next';
27
27
  import { useController, useFormContext } from 'react-hook-form';
28
28
  import { styled, alpha } from '@mui/material/styles';
29
- import Text from '@components/Text';
30
- import Collapse from '@components/Collapse';
29
+ import Text from '../../../../components/Text';
30
+ import Collapse from '../../../../components/Collapse';
31
31
  import CheckIcon from '@mui/icons-material/Check';
32
- import ExpandIcon from '@components/ExpandIcon';
33
- import Input from '@components/Input';
34
- import SimpleList from '@components/SimpleList';
35
- import { ScreenContainer } from '@features/shared/Containers';
36
- import { useLanguage, useAppSelector } from '@hooks';
37
- import { businessSelector } from '@features/app/business/businessStore';
32
+ import ExpandIcon from '../../../../components/ExpandIcon';
33
+ import Input from '../../../../components/Input';
34
+ import SimpleList from '../../../../components/SimpleList';
35
+ import { ScreenContainer } from '../../../shared/Containers';
36
+ import { useLanguage, useAppSelector } from '../../../../hooks';
37
+ import { businessSelector } from '../../../app/business/businessStore';
38
38
  export var InputLabelStyled = styled(Text)(function (_a) {
39
39
  var theme = _a.theme;
40
40
  return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
@@ -16,20 +16,20 @@ import * as React from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { useForm, FormProvider } from 'react-hook-form';
18
18
  import { yupResolver } from '@hookform/resolvers/yup';
19
- import { useAppDispatch, useAppSelector } from '@hooks';
20
- import { handlePrevScreenStep } from '@app/settings';
19
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
20
+ import { handlePrevScreenStep } from '../../../../app/settings';
21
21
  import { CustomerInfoValidation } from './validation';
22
- import Form from '@components/Form';
23
- import Button from '@features/shared/Button';
24
- import { useLanguage } from '@hooks';
22
+ import Form from '../../../../components/Form';
23
+ import Button from '../../../shared/Button';
24
+ import { useLanguage } from '../../../../hooks';
25
25
  import CustomerLocations from './CustomerLocations';
26
26
  import ExpectedCustomers from './ExpectedCustomers';
27
27
  import ExpectedSales from './ExpectedSalesRange';
28
28
  import RefundPolicy from './RefundPolicy';
29
29
  import TransactionPolicy from './TransactionPolicy';
30
- import { ScreenContainer } from '@features/shared/Containers';
31
- import Collapse from '@components/Collapse';
32
- import { businessSelector, clearError, updateCustomersInfo } from '@features/app/business/businessStore';
30
+ import { ScreenContainer } from '../../../shared/Containers';
31
+ import Collapse from '../../../../components/Collapse';
32
+ import { businessSelector, clearError, updateCustomersInfo } from '../../../app/business/businessStore';
33
33
  var FormStyled = styled(Form)(function () { return ({
34
34
  display: 'flex',
35
35
  flexDirection: 'column'