@tap-payments/auth-jsconnect 1.0.2 → 1.0.5

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 (294) hide show
  1. package/build/@types/app.d.ts +16 -0
  2. package/build/@types/app.js +6 -2
  3. package/build/@types/index.js +0 -1
  4. package/build/@types/redux.js +0 -1
  5. package/build/@types/theme.d.ts +12 -3
  6. package/build/@types/theme.js +15 -2
  7. package/build/app/rootReducer.d.ts +1 -1
  8. package/build/app/rootReducer.js +1 -2
  9. package/build/app/settings.d.ts +7 -2
  10. package/build/app/settings.js +21 -7
  11. package/build/app/store.d.ts +2 -2
  12. package/build/app/store.js +0 -1
  13. package/build/assets/locales/ar.json +22 -3
  14. package/build/assets/locales/en.json +20 -1
  15. package/build/components/AnimationFlow/AnimationFlow.js +15 -5
  16. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
  17. package/build/components/AnimationFlow/BottomSheet.js +43 -5
  18. package/build/components/AnimationFlow/Dialog.d.ts +3 -2
  19. package/build/components/AnimationFlow/Dialog.js +35 -18
  20. package/build/components/AnimationFlow/index.js +0 -1
  21. package/build/components/Button/Button.d.ts +7 -3
  22. package/build/components/Button/Button.js +21 -3
  23. package/build/components/Button/index.js +0 -1
  24. package/build/components/CheckBox/CheckBox.js +2 -2
  25. package/build/components/CheckBox/index.js +0 -1
  26. package/build/components/Collapse/Collapse.d.ts +5 -0
  27. package/build/components/Collapse/Collapse.js +28 -0
  28. package/build/components/Collapse/index.d.ts +3 -0
  29. package/build/components/Collapse/index.js +2 -0
  30. package/build/components/DatePicker/DatePicker.js +10 -14
  31. package/build/components/DatePicker/index.js +0 -1
  32. package/build/components/Footer/Footer.js +2 -16
  33. package/build/components/Footer/index.js +0 -1
  34. package/build/components/Form/Form.js +2 -2
  35. package/build/components/Form/index.js +0 -1
  36. package/build/components/Icon/Icon.js +2 -2
  37. package/build/components/Icon/index.js +0 -1
  38. package/build/components/Input/Input.d.ts +4 -1
  39. package/build/components/Input/Input.js +8 -7
  40. package/build/components/Input/index.js +0 -1
  41. package/build/components/InputAdornment/InputAdornment.js +3 -3
  42. package/build/components/InputAdornment/index.js +0 -1
  43. package/build/components/List/List.js +2 -4
  44. package/build/components/List/index.js +0 -1
  45. package/build/components/ListItem/ListItem.js +2 -2
  46. package/build/components/ListItem/index.js +0 -1
  47. package/build/components/Loader/Loader.d.ts +10 -8
  48. package/build/components/Loader/Loader.js +25 -43
  49. package/build/components/Loader/index.js +0 -1
  50. package/build/components/LogoBadge/LogoBadge.js +4 -5
  51. package/build/components/LogoBadge/index.js +0 -1
  52. package/build/components/OTPField/OTPField.js +2 -2
  53. package/build/components/OTPField/index.js +0 -1
  54. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  55. package/build/components/OTPTimer/OTPTimer.js +6 -8
  56. package/build/components/OTPTimer/index.js +0 -1
  57. package/build/components/ProgressBar/ProgressBar.js +2 -3
  58. package/build/components/ProgressBar/index.js +0 -1
  59. package/build/components/Providers/ReduxProvider.js +13 -3
  60. package/build/components/Providers/ThemeProvider.js +18 -10
  61. package/build/components/Providers/index.js +0 -1
  62. package/build/components/SimpleList/SimpleList.d.ts +10 -2
  63. package/build/components/SimpleList/SimpleList.js +58 -26
  64. package/build/components/SimpleList/index.js +0 -1
  65. package/build/components/Slide/Slide.d.ts +6 -0
  66. package/build/components/Slide/Slide.js +30 -0
  67. package/build/components/Slide/index.d.ts +3 -0
  68. package/build/components/Slide/index.js +2 -0
  69. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
  70. package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
  71. package/build/components/SocialMediaGroup/index.d.ts +3 -0
  72. package/build/components/SocialMediaGroup/index.js +2 -0
  73. package/build/components/Text/Text.js +2 -2
  74. package/build/components/Text/index.js +0 -1
  75. package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
  76. package/build/components/ToggleButton/ToggleButton.js +44 -0
  77. package/build/components/ToggleButton/index.d.ts +3 -0
  78. package/build/components/ToggleButton/index.js +2 -0
  79. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
  80. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
  81. package/build/components/ToggleButtonGroup/index.d.ts +3 -0
  82. package/build/components/ToggleButtonGroup/index.js +2 -0
  83. package/build/components/Tooltip/Tooltip.d.ts +10 -0
  84. package/build/components/Tooltip/Tooltip.js +44 -0
  85. package/build/components/Tooltip/index.d.ts +3 -0
  86. package/build/components/Tooltip/index.js +2 -0
  87. package/build/components/Warning/Warning.d.ts +2 -1
  88. package/build/components/Warning/Warning.js +4 -3
  89. package/build/components/Warning/index.js +0 -1
  90. package/build/constants/app.d.ts +5 -4
  91. package/build/constants/app.js +35 -5
  92. package/build/constants/assets.d.ts +7 -0
  93. package/build/constants/assets.js +8 -2
  94. package/build/constants/dummy.js +0 -1
  95. package/build/constants/index.d.ts +1 -0
  96. package/build/constants/index.js +1 -1
  97. package/build/constants/validation.d.ts +2 -0
  98. package/build/constants/validation.js +2 -0
  99. package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
  100. package/build/features/app/{midStore.js → business/midStore.js} +0 -1
  101. package/build/features/app/connect/midStore.d.ts +10 -0
  102. package/build/features/app/connect/midStore.js +18 -0
  103. package/build/features/business/index.d.ts +0 -0
  104. package/build/features/business/index.js +1 -0
  105. package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
  106. package/build/features/business/screens/IDBOD/DOB.js +44 -0
  107. package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
  108. package/build/features/business/screens/IDBOD/ID.js +68 -0
  109. package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
  110. package/build/features/business/screens/IDBOD/IDBOD.js +86 -0
  111. package/build/features/business/screens/IDBOD/index.d.ts +3 -0
  112. package/build/features/business/screens/IDBOD/index.js +2 -0
  113. package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
  114. package/build/features/business/screens/IDBOD/validation.js +5 -0
  115. package/build/features/connect/Connect.js +31 -25
  116. package/build/features/connect/Footer.d.ts +4 -0
  117. package/build/features/connect/Footer.js +16 -0
  118. package/build/features/connect/index.js +0 -1
  119. package/build/features/connect/screens/Individual/Email.d.ts +5 -0
  120. package/build/features/connect/screens/Individual/Email.js +56 -0
  121. package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
  122. package/build/features/connect/screens/Individual/Individual.js +86 -0
  123. package/build/features/connect/screens/Individual/Name.d.ts +5 -0
  124. package/build/features/connect/screens/Individual/Name.js +58 -0
  125. package/build/features/connect/screens/Individual/index.d.ts +3 -0
  126. package/build/features/connect/screens/Individual/index.js +2 -0
  127. package/build/features/connect/screens/Individual/validation.d.ts +11 -0
  128. package/build/features/connect/screens/Individual/validation.js +5 -0
  129. package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
  130. package/build/features/connect/screens/MID/BusinessCountry.js +18 -53
  131. package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
  132. package/build/features/connect/screens/MID/IDNumber.js +28 -22
  133. package/build/features/connect/screens/MID/MID.js +85 -27
  134. package/build/features/connect/screens/MID/MIDTitle.js +3 -5
  135. package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
  136. package/build/features/connect/screens/MID/MobileNumber.js +28 -69
  137. package/build/features/connect/screens/MID/index.js +0 -1
  138. package/build/features/connect/screens/MID/validation.d.ts +18 -0
  139. package/build/features/connect/screens/MID/validation.js +8 -0
  140. package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
  141. package/build/features/connect/screens/Merchant/BrandName.js +99 -0
  142. package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
  143. package/build/features/connect/screens/Merchant/Merchant.js +94 -0
  144. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
  145. package/build/features/connect/screens/Merchant/SocialMedia.js +87 -0
  146. package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
  147. package/build/features/connect/screens/Merchant/TAC.js +88 -0
  148. package/build/features/connect/screens/Merchant/index.d.ts +3 -0
  149. package/build/features/connect/screens/Merchant/index.js +2 -0
  150. package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
  151. package/build/features/connect/screens/Merchant/validation.js +23 -0
  152. package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
  153. package/build/features/connect/screens/OTP/OTP.js +76 -32
  154. package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
  155. package/build/features/connect/screens/OTP/OTPInput.js +51 -0
  156. package/build/features/connect/screens/OTP/OTPTimer.d.ts +5 -0
  157. package/build/features/connect/screens/OTP/OTPTimer.js +35 -0
  158. package/build/features/connect/screens/OTP/index.js +0 -1
  159. package/build/features/connect/screens/OTP/validation.d.ts +8 -0
  160. package/build/features/connect/screens/OTP/validation.js +4 -0
  161. package/build/features/connect/screens/Password/Password.d.ts +5 -0
  162. package/build/features/connect/screens/Password/Password.js +86 -0
  163. package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
  164. package/build/features/connect/screens/Password/PasswordInput.js +73 -0
  165. package/build/features/connect/screens/Password/index.d.ts +3 -0
  166. package/build/features/connect/screens/Password/index.js +2 -0
  167. package/build/features/connect/screens/Password/validation.d.ts +8 -0
  168. package/build/features/connect/screens/Password/validation.js +4 -0
  169. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
  170. package/build/features/connect/screens/ThankYou/ThankYou.js +76 -0
  171. package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
  172. package/build/features/connect/screens/ThankYou/index.js +2 -0
  173. package/build/features/featuresScreens.d.ts +2 -0
  174. package/build/features/featuresScreens.js +28 -0
  175. package/build/hooks/index.d.ts +4 -0
  176. package/build/hooks/index.js +4 -1
  177. package/build/hooks/useAppDispatch.d.ts +4 -0
  178. package/build/hooks/useAppDispatch.js +2 -0
  179. package/build/hooks/useAppSelector.d.ts +3 -0
  180. package/build/hooks/useAppSelector.js +2 -0
  181. package/build/hooks/useAppTheme.js +3 -3
  182. package/build/hooks/useEventListener.d.ts +5 -0
  183. package/build/hooks/useEventListener.js +20 -0
  184. package/build/hooks/useLanguage.d.ts +4 -0
  185. package/build/hooks/useLanguage.js +8 -0
  186. package/build/hooks/useThemeMode.js +0 -1
  187. package/build/i18n.js +0 -1
  188. package/build/index.css +5 -0
  189. package/build/index.js +0 -1
  190. package/build/theme/components.js +0 -1
  191. package/build/theme/index.js +0 -1
  192. package/build/theme/palette.js +1 -1
  193. package/build/theme/shadows.js +0 -1
  194. package/build/theme/theme.d.ts +1 -1
  195. package/build/theme/theme.js +0 -2
  196. package/build/theme/typography.js +0 -1
  197. package/build/utils/array.js +0 -1
  198. package/build/utils/html.js +0 -1
  199. package/build/utils/index.js +0 -1
  200. package/build/utils/object.js +0 -1
  201. package/build/utils/storage.js +0 -1
  202. package/build/utils/string.d.ts +1 -1
  203. package/build/utils/string.js +1 -4
  204. package/build/utils/style.js +0 -1
  205. package/build/utils/validation.d.ts +4 -0
  206. package/build/utils/validation.js +12 -1
  207. package/package.json +120 -112
  208. package/build/@types/app.js.map +0 -1
  209. package/build/@types/index.js.map +0 -1
  210. package/build/@types/redux.js.map +0 -1
  211. package/build/@types/theme.js.map +0 -1
  212. package/build/app/hooks.d.ts +0 -7
  213. package/build/app/hooks.js +0 -4
  214. package/build/app/hooks.js.map +0 -1
  215. package/build/app/rootReducer.js.map +0 -1
  216. package/build/app/settings.js.map +0 -1
  217. package/build/app/store.js.map +0 -1
  218. package/build/components/AnimationFlow/AnimationFlow.js.map +0 -1
  219. package/build/components/AnimationFlow/BottomSheet.js.map +0 -1
  220. package/build/components/AnimationFlow/Dialog.js.map +0 -1
  221. package/build/components/AnimationFlow/index.js.map +0 -1
  222. package/build/components/Button/Button.js.map +0 -1
  223. package/build/components/Button/index.js.map +0 -1
  224. package/build/components/CheckBox/CheckBox.js.map +0 -1
  225. package/build/components/CheckBox/index.js.map +0 -1
  226. package/build/components/DatePicker/DatePicker.js.map +0 -1
  227. package/build/components/DatePicker/index.js.map +0 -1
  228. package/build/components/Footer/Footer.js.map +0 -1
  229. package/build/components/Footer/index.js.map +0 -1
  230. package/build/components/Form/Form.js.map +0 -1
  231. package/build/components/Form/index.js.map +0 -1
  232. package/build/components/Icon/Icon.js.map +0 -1
  233. package/build/components/Icon/index.js.map +0 -1
  234. package/build/components/Input/Input.js.map +0 -1
  235. package/build/components/Input/index.js.map +0 -1
  236. package/build/components/InputAdornment/InputAdornment.js.map +0 -1
  237. package/build/components/InputAdornment/index.js.map +0 -1
  238. package/build/components/List/List.js.map +0 -1
  239. package/build/components/List/index.js.map +0 -1
  240. package/build/components/ListItem/ListItem.js.map +0 -1
  241. package/build/components/ListItem/index.js.map +0 -1
  242. package/build/components/Loader/Loader.js.map +0 -1
  243. package/build/components/Loader/index.js.map +0 -1
  244. package/build/components/LogoBadge/LogoBadge.js.map +0 -1
  245. package/build/components/LogoBadge/index.js.map +0 -1
  246. package/build/components/OTPField/OTPField.js.map +0 -1
  247. package/build/components/OTPField/index.js.map +0 -1
  248. package/build/components/OTPTimer/OTPTimer.js.map +0 -1
  249. package/build/components/OTPTimer/index.js.map +0 -1
  250. package/build/components/ProgressBar/ProgressBar.js.map +0 -1
  251. package/build/components/ProgressBar/index.js.map +0 -1
  252. package/build/components/Providers/ReduxProvider.js.map +0 -1
  253. package/build/components/Providers/ThemeProvider.js.map +0 -1
  254. package/build/components/Providers/index.js.map +0 -1
  255. package/build/components/SimpleList/SimpleList.js.map +0 -1
  256. package/build/components/SimpleList/index.js.map +0 -1
  257. package/build/components/Text/Text.js.map +0 -1
  258. package/build/components/Text/index.js.map +0 -1
  259. package/build/components/Warning/Warning.js.map +0 -1
  260. package/build/components/Warning/index.js.map +0 -1
  261. package/build/constants/app.js.map +0 -1
  262. package/build/constants/assets.js.map +0 -1
  263. package/build/constants/dummy.js.map +0 -1
  264. package/build/constants/index.js.map +0 -1
  265. package/build/features/app/midStore.js.map +0 -1
  266. package/build/features/connect/Connect.js.map +0 -1
  267. package/build/features/connect/index.js.map +0 -1
  268. package/build/features/connect/screens/MID/BusinessCountry.js.map +0 -1
  269. package/build/features/connect/screens/MID/IDNumber.js.map +0 -1
  270. package/build/features/connect/screens/MID/MID.js.map +0 -1
  271. package/build/features/connect/screens/MID/MIDTitle.js.map +0 -1
  272. package/build/features/connect/screens/MID/MobileNumber.js.map +0 -1
  273. package/build/features/connect/screens/MID/index.js.map +0 -1
  274. package/build/features/connect/screens/OTP/OTP.js.map +0 -1
  275. package/build/features/connect/screens/OTP/index.js.map +0 -1
  276. package/build/hooks/index.js.map +0 -1
  277. package/build/hooks/useAppTheme.js.map +0 -1
  278. package/build/hooks/useThemeMode.js.map +0 -1
  279. package/build/i18n.js.map +0 -1
  280. package/build/index.js.map +0 -1
  281. package/build/theme/components.js.map +0 -1
  282. package/build/theme/index.js.map +0 -1
  283. package/build/theme/palette.js.map +0 -1
  284. package/build/theme/shadows.js.map +0 -1
  285. package/build/theme/theme.js.map +0 -1
  286. package/build/theme/typography.js.map +0 -1
  287. package/build/utils/array.js.map +0 -1
  288. package/build/utils/html.js.map +0 -1
  289. package/build/utils/index.js.map +0 -1
  290. package/build/utils/object.js.map +0 -1
  291. package/build/utils/storage.js.map +0 -1
  292. package/build/utils/string.js.map +0 -1
  293. package/build/utils/style.js.map +0 -1
  294. package/build/utils/validation.js.map +0 -1
@@ -0,0 +1,23 @@
1
+ import * as yup from 'yup';
2
+ export var MerchantValidationSchema = yup.object().shape({
3
+ brandName: yup.string().min(3, 'Please enter valid brand name').required('Brand Name is required'),
4
+ termAndConditionChecked: yup.boolean().required().isTrue('Please accept the terms and conditions'),
5
+ links: yup.object().shape({
6
+ website: yup
7
+ .string()
8
+ .matches(/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/, 'Please enter valid url')
9
+ .required('Website is required'),
10
+ instagram: yup
11
+ .string()
12
+ .notRequired()
13
+ .nullable()
14
+ .transform(function (value) { return (!!value ? value : null); })
15
+ .min(2, 'Invalid instagram username'),
16
+ twitter: yup
17
+ .string()
18
+ .notRequired()
19
+ .nullable()
20
+ .transform(function (value) { return (!!value ? value : null); })
21
+ .min(2, 'Invalid instagram username')
22
+ })
23
+ });
@@ -1,7 +1,11 @@
1
1
  import * as React from 'react';
2
2
  export interface OTPProps {
3
3
  phone?: string;
4
- onOTPChange?: (otp: string) => void;
5
4
  }
6
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<OTPProps & React.RefAttributes<unknown>>>;
5
+ declare const _default: React.MemoExoticComponent<{
6
+ ({ phone }: OTPProps): JSX.Element;
7
+ defaultProps: {
8
+ phone: string;
9
+ };
10
+ }>;
7
11
  export default _default;
@@ -1,14 +1,40 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
13
  import Box from '@mui/material/Box/Box';
2
14
  import { styled } from '@mui/material/styles';
3
- import OTPField from '../../../../components/OTPField';
4
15
  import * as React from 'react';
5
16
  import { useTranslation } from 'react-i18next';
6
17
  import Text from '../../../../components/Text';
18
+ import OTPTimer from './OTPTimer';
19
+ import Icon from '../../../../components/Icon';
20
+ import Button from '../../../../components/Button';
21
+ import Loader from '../../../../components/Loader';
22
+ import { ICONS_NAMES } from '../../../../constants/assets';
23
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
24
+ import { handleNextScreenStep, settingsSelector } from '../../../../app/settings';
25
+ import { useLanguage } from '../../../../hooks';
26
+ import { useForm, FormProvider } from 'react-hook-form';
27
+ import { yupResolver } from '@hookform/resolvers/yup';
28
+ import Form from '../../../../components/Form';
29
+ import { OTPValidation } from './validation';
30
+ import OTPInput from './OTPInput';
7
31
  var BoxStyled = styled(Box)(function (_a) {
8
32
  var theme = _a.theme;
9
33
  return ({
10
34
  display: 'flex',
11
- flexDirection: 'column'
35
+ flexDirection: 'column',
36
+ overflow: 'hidden',
37
+ direction: theme.direction
12
38
  });
13
39
  });
14
40
  var OTPTitleContainerStyled = styled(Box)(function (_a) {
@@ -18,6 +44,7 @@ var OTPTitleContainerStyled = styled(Box)(function (_a) {
18
44
  background: theme.palette.common.white,
19
45
  border: '1px solid',
20
46
  borderColor: theme.palette.divider,
47
+ direction: theme.direction,
21
48
  borderRadius: theme.spacing(0, 0, 1.25, 1.25)
22
49
  },
23
50
  _b[theme.breakpoints.up('sm')] = {
@@ -25,20 +52,6 @@ var OTPTitleContainerStyled = styled(Box)(function (_a) {
25
52
  },
26
53
  _b);
27
54
  });
28
- var OTPStyled = styled(OTPField)(function (_a) {
29
- var _b;
30
- var theme = _a.theme;
31
- return (_b = {
32
- marginInlineStart: theme.spacing(2.0),
33
- input: {
34
- width: "".concat(theme.spacing(3.75), " !important")
35
- }
36
- },
37
- _b[theme.breakpoints.down('sm')] = {
38
- marginInlineStart: theme.spacing(3)
39
- },
40
- _b);
41
- });
42
55
  var OTPTitleStyled = styled(Text)(function (_a) {
43
56
  var theme = _a.theme;
44
57
  return ({
@@ -48,24 +61,55 @@ var OTPTitleStyled = styled(Text)(function (_a) {
48
61
  marginInlineStart: theme.spacing(2.5)
49
62
  });
50
63
  });
51
- var OTP = React.forwardRef(function (_a, ref) {
52
- var onOTPChange = _a.onOTPChange, phone = _a.phone;
53
- var _b = React.useState(''), otpValue = _b[0], seOtpValue = _b[1];
54
- var _c = useTranslation(), t = _c.t, i18n = _c.i18n;
55
- var handleOnOTPChange = function (otp) {
56
- seOtpValue(otp);
57
- onOTPChange === null || onOTPChange === void 0 ? void 0 : onOTPChange(otp);
58
- };
59
- return (React.createElement(BoxStyled, { ref: ref },
60
- React.createElement(OTPTitleContainerStyled, { dir: i18n.dir() },
61
- React.createElement(OTPTitleStyled, null,
62
- t('ide_opt_sent_title'),
63
- " ",
64
- React.createElement("span", { dir: 'ltr' }, phone))),
65
- React.createElement(OTPStyled, { value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } })));
64
+ var LoaderStyled = styled(Loader)(function (_a) {
65
+ var theme = _a.theme;
66
+ return ({
67
+ marginInlineStart: theme.spacing(-6.25),
68
+ '& .loader-box-container': {
69
+ marginInlineStart: theme.spacing(2.5)
70
+ }
71
+ });
72
+ });
73
+ var FormStyled = styled(Form)(function () { return ({
74
+ display: 'flex',
75
+ flexDirection: 'column'
76
+ }); });
77
+ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
78
+ var theme = _a.theme, isAr = _a.isAr;
79
+ return ({
80
+ width: theme.spacing(3),
81
+ height: theme.spacing(3),
82
+ paddingInlineStart: theme.spacing(1.5),
83
+ paddingInlineEnd: theme.spacing(0.5),
84
+ transform: isAr ? 'scaleX(-1)' : 'scaleX(1)'
85
+ });
86
+ });
87
+ var ButtonContainer = styled(Box)(function (_a) {
88
+ var theme = _a.theme;
89
+ return ({
90
+ margin: theme.spacing(2.5)
91
+ });
66
92
  });
93
+ var OTP = function (_a) {
94
+ var phone = _a.phone;
95
+ var dispatch = useAppDispatch();
96
+ var settingStore = useAppSelector(settingsSelector);
97
+ var methods = useForm({
98
+ resolver: yupResolver(OTPValidation),
99
+ defaultValues: {
100
+ otp: ''
101
+ },
102
+ mode: 'onChange'
103
+ });
104
+ var t = useTranslation().t;
105
+ var isAr = useLanguage().isAr;
106
+ var onSubmit = function (data) {
107
+ console.log('data', data);
108
+ dispatch(handleNextScreenStep(settingStore.data.activeScreen));
109
+ };
110
+ return (_jsx(BoxStyled, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [t('ide_opt_sent_title'), " ", _jsx("span", __assign({ dir: 'ltr' }, { children: phone }))] }) }), _jsx(OTPInput, {}), _jsx(OTPTimer, {}), _jsx(ButtonContainer, { children: _jsx(Button, __assign({ disabled: !methods.formState.isValid, type: 'submit', startIcon: _jsx(LoaderStyled, { innerColor: 'white', outerColor: 'white', size: 30 }), endIcon: _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, { children: t('next') })) })] })) })) }));
111
+ };
67
112
  OTP.defaultProps = {
68
113
  phone: '+996564656085'
69
114
  };
70
115
  export default React.memo(OTP);
71
- //# sourceMappingURL=OTP.js.map
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,51 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import OTPField from '../../../../components/OTPField';
16
+ import * as React from 'react';
17
+ import { useController, useFormContext } from 'react-hook-form';
18
+ var BoxStyled = styled(Box)(function (_a) {
19
+ var theme = _a.theme;
20
+ return ({
21
+ display: 'flex',
22
+ flexDirection: 'column'
23
+ });
24
+ });
25
+ var OTPStyled = styled(OTPField)(function (_a) {
26
+ var _b;
27
+ var theme = _a.theme;
28
+ return (_b = {
29
+ marginInlineStart: theme.spacing(2.0),
30
+ input: {
31
+ width: "".concat(theme.spacing(3.75), " !important")
32
+ },
33
+ '& :focus': {
34
+ borderColor: theme.palette.primary.main
35
+ }
36
+ },
37
+ _b[theme.breakpoints.down('sm')] = {
38
+ marginInlineStart: theme.spacing(3)
39
+ },
40
+ _b);
41
+ });
42
+ var OTPInput = function (_a) {
43
+ var control = useFormContext().control;
44
+ var otpControl = useController({ name: 'otp', control: control });
45
+ var handleOnOTPChange = function (otp) {
46
+ otpControl.field.onChange(otp);
47
+ };
48
+ var otpValue = otpControl.field.value;
49
+ return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPStyled, { value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
50
+ };
51
+ export default React.memo(OTPInput);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface TimerProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: TimerProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import Box from '@mui/material/Box/Box';
4
+ import { styled } from '@mui/material/styles';
5
+ import { useTranslation } from 'react-i18next';
6
+ import OTPTimer from '../../../../components/OTPTimer';
7
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
8
+ var BoxStyled = styled(Box)(function (_a) {
9
+ var theme = _a.theme;
10
+ return ({
11
+ display: 'flex',
12
+ flexDirection: 'column',
13
+ padding: theme.spacing(2.5, 0, 6.5, 0)
14
+ });
15
+ });
16
+ var Timer = function (_a) {
17
+ var _b = React.useState(DEFAULT_TIMER_VALUE), timeValue = _b[0], seTimeValue = _b[1];
18
+ var t = useTranslation().t;
19
+ React.useEffect(function () {
20
+ if (timeValue <= 0)
21
+ return;
22
+ var interval = setInterval(function () {
23
+ seTimeValue(timeValue - 1);
24
+ }, 1000);
25
+ return function () { return clearInterval(interval); };
26
+ }, [timeValue]);
27
+ var resetTimer = function () {
28
+ seTimeValue(DEFAULT_TIMER_VALUE);
29
+ };
30
+ return (_jsx(BoxStyled, { children: _jsx(OTPTimer, { time: timeValue, onClick: function () {
31
+ if (timeValue <= 0)
32
+ resetTimer();
33
+ }, resendText: t('resend_otp') }) }));
34
+ };
35
+ export default React.memo(Timer);
@@ -1,3 +1,2 @@
1
1
  import OTP from './OTP';
2
2
  export default OTP;
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const OTPValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var OTPValidation = yup.object().shape({
3
+ otp: yup.string().min(6).required('OTP is required')
4
+ });
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface PasswordProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: PasswordProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,86 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useForm, FormProvider } from 'react-hook-form';
15
+ import { useTranslation } from 'react-i18next';
16
+ import { yupResolver } from '@hookform/resolvers/yup';
17
+ import Box from '@mui/material/Box';
18
+ import { styled } from '@mui/material/styles';
19
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
20
+ import { handleNextScreenStep, settingsSelector } from '../../../../app/settings';
21
+ import Form from '../../../../components/Form';
22
+ import Loader from '../../../../components/Loader';
23
+ import Icon from '../../../../components/Icon';
24
+ import Button from '../../../../components/Button';
25
+ import { useLanguage } from '../../../../hooks';
26
+ import { ICONS_NAMES } from '../../../../constants';
27
+ import { PasswordValidationSchema } from './validation';
28
+ import PasswordInput from './PasswordInput';
29
+ var BoxStyled = styled(Box)(function (_a) {
30
+ var theme = _a.theme;
31
+ return ({
32
+ padding: theme.spacing(2.5, 0, 2.5, 0),
33
+ overflow: 'hidden',
34
+ direction: theme.direction
35
+ });
36
+ });
37
+ var ButtonContainer = styled(Box)(function (_a) {
38
+ var theme = _a.theme;
39
+ return ({
40
+ margin: theme.spacing(0, 2.5, 0, 2.5)
41
+ });
42
+ });
43
+ var InputsContainerStyled = styled(Box)(function (_a) {
44
+ var theme = _a.theme;
45
+ return ({
46
+ paddingBottom: theme.spacing(5)
47
+ });
48
+ });
49
+ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
50
+ var theme = _a.theme, isAr = _a.isAr;
51
+ return ({
52
+ width: theme.spacing(3),
53
+ height: theme.spacing(3),
54
+ paddingInlineStart: theme.spacing(1.5),
55
+ paddingInlineEnd: theme.spacing(0.5),
56
+ transform: isAr ? 'scaleX(-1)' : 'scaleX(1)'
57
+ });
58
+ });
59
+ var LoaderStyled = styled(Loader)(function (_a) {
60
+ var theme = _a.theme;
61
+ return ({
62
+ marginInlineStart: theme.spacing(-6.25),
63
+ '& .loader-box-container': {
64
+ marginInlineStart: theme.spacing(2.5)
65
+ }
66
+ });
67
+ });
68
+ var Password = function (_a) {
69
+ var methods = useForm({
70
+ resolver: yupResolver(PasswordValidationSchema),
71
+ defaultValues: {
72
+ password: ''
73
+ },
74
+ mode: 'onChange'
75
+ });
76
+ var t = useTranslation().t;
77
+ var isAr = useLanguage().isAr;
78
+ var dispatch = useAppDispatch();
79
+ var settingStore = useAppSelector(settingsSelector);
80
+ var onSubmit = function (data) {
81
+ console.log('data', data);
82
+ dispatch(handleNextScreenStep(settingStore.data.activeScreen));
83
+ };
84
+ return (_jsx(BoxStyled, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(InputsContainerStyled, { children: _jsx(PasswordInput, {}) }), _jsx(ButtonContainer, { children: _jsx(Button, __assign({ disabled: !methods.formState.isValid, type: 'submit', startIcon: _jsx(LoaderStyled, { innerColor: 'white', outerColor: 'white', size: 30, toggleAnimation: false }), endIcon: _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, { children: t('next') })) })] })) })) }));
85
+ };
86
+ export default React.memo(Password);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ interface PasswordInputProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: PasswordInputProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,73 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import Box from '@mui/material/Box';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { useController, useFormContext } from 'react-hook-form';
6
+ import { styled, alpha } from '@mui/material/styles';
7
+ import VisibilityIcon from '@mui/icons-material/Visibility';
8
+ import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
9
+ import Text from '../../../../components/Text';
10
+ import Input from '../../../../components/Input';
11
+ var BoxStyled = styled(Box)(function () { return ({
12
+ display: 'flex',
13
+ flexDirection: 'column'
14
+ }); });
15
+ var LabelContainerStyled = styled(Box)(function (_a) {
16
+ var theme = _a.theme;
17
+ return ({
18
+ display: 'flex',
19
+ justifyContent: 'space-between',
20
+ padding: theme.spacing(0, 2.5, 1, 2.5)
21
+ });
22
+ });
23
+ var InputLabelStyled = styled(Text)(function (_a) {
24
+ var theme = _a.theme;
25
+ return ({
26
+ color: alpha(theme.palette.text.primary, 0.4),
27
+ fontSize: theme.spacing(1.5)
28
+ });
29
+ });
30
+ var InputStyled = styled(Input)(function (_a) {
31
+ var theme = _a.theme;
32
+ return ({
33
+ padding: theme.spacing(0, 2, 0, 0)
34
+ });
35
+ });
36
+ var PasswordHideIconStyled = styled(VisibilityOffIcon)(function (_a) {
37
+ var theme = _a.theme;
38
+ return ({
39
+ width: theme.spacing(2),
40
+ height: theme.spacing(2),
41
+ cursor: 'pointer',
42
+ color: alpha(theme.palette.text.primary, 0.4)
43
+ });
44
+ });
45
+ var PasswordShowIconStyled = styled(VisibilityIcon)(function (_a) {
46
+ var theme = _a.theme;
47
+ return ({
48
+ width: theme.spacing(2),
49
+ height: theme.spacing(2),
50
+ cursor: 'pointer',
51
+ color: alpha(theme.palette.text.primary, 0.4)
52
+ });
53
+ });
54
+ var PasswordInput = function (_a) {
55
+ var _b;
56
+ var t = useTranslation().t;
57
+ var control = useFormContext().control;
58
+ var _c = React.useState(false), showPassword = _c[0], setShowPassword = _c[1];
59
+ var passwordControl = useController({ control: control, name: 'password' });
60
+ var handlePasswordChange = function (_a) {
61
+ var target = _a.target;
62
+ passwordControl.field.onChange(target.value);
63
+ };
64
+ var handleShowPassword = function () {
65
+ setShowPassword(true);
66
+ };
67
+ var handleHidePassword = function () {
68
+ setShowPassword(false);
69
+ };
70
+ var passwordValue = passwordControl.field.value;
71
+ return (_jsxs(BoxStyled, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('password_label') }) }), _jsx(InputStyled, { inputProps: { autoComplete: 'off' }, onChange: handlePasswordChange, value: passwordValue, endAdornment: showPassword ? (_jsx(PasswordShowIconStyled, { onClick: handleHidePassword })) : (_jsx(PasswordHideIconStyled, { onClick: handleShowPassword })), placeholder: t('password_placeholder'), type: showPassword ? 'text' : 'password', warningType: 'alert', warningMessage: (_b = passwordControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message })] }));
72
+ };
73
+ export default React.memo(PasswordInput);
@@ -0,0 +1,3 @@
1
+ import Password, { PasswordProps } from './Password';
2
+ export type { PasswordProps };
3
+ export default Password;
@@ -0,0 +1,2 @@
1
+ import Password from './Password';
2
+ export default Password;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export declare const PasswordValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ password: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
+ password: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ password: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var PasswordValidationSchema = yup.object().shape({
3
+ password: yup.string().min(5).required('Password is required')
4
+ });
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface ThankYouProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: ThankYouProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,76 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
+ import Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import * as React from 'react';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../../components/Text';
18
+ import Button from '../../../../components/Button';
19
+ import { ICONS_NAMES } from '../../../../constants';
20
+ var BoxStyled = styled(Box)(function (_a) {
21
+ var theme = _a.theme;
22
+ return ({
23
+ display: 'flex',
24
+ flexDirection: 'column',
25
+ direction: theme.direction,
26
+ alignItems: 'center'
27
+ });
28
+ });
29
+ var ButtonStyled = styled(Button)(function (_a) {
30
+ var theme = _a.theme;
31
+ return ({
32
+ width: theme.spacing(5),
33
+ height: theme.spacing(5),
34
+ minHeight: theme.spacing(5),
35
+ minWidth: theme.spacing(5),
36
+ background: theme.palette.primary.main,
37
+ margin: theme.spacing(2.5),
38
+ borderRadius: theme.spacing(5)
39
+ });
40
+ });
41
+ var TextContainerStyled = styled(Box)(function (_a) {
42
+ var _b;
43
+ var theme = _a.theme;
44
+ return (_b = {
45
+ background: theme.palette.common.white,
46
+ border: '1px solid',
47
+ borderColor: theme.palette.divider,
48
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
49
+ },
50
+ _b[theme.breakpoints.up('sm')] = {
51
+ marginBottom: theme.spacing(6)
52
+ },
53
+ _b);
54
+ });
55
+ var TitleStyled = styled(Text)(function (_a) {
56
+ var theme = _a.theme;
57
+ return ({
58
+ fontSize: theme.typography.htmlFontSize,
59
+ fontWeight: theme.typography.fontWeightRegular,
60
+ color: theme.palette.text.primary,
61
+ marginBlock: theme.spacing(1.75),
62
+ lineHeight: 1.75,
63
+ padding: '0px 20px'
64
+ });
65
+ });
66
+ var ThankYou = function (_a) {
67
+ var t = useTranslation().t;
68
+ var onSuccess = function () {
69
+ console.log('success');
70
+ alert('Account created successfully, please check your email');
71
+ alert("It's a fake message, plz wait us to integrate with the backend. <A.Sharkawy>");
72
+ window.location.href = '/';
73
+ };
74
+ return (_jsxs(BoxStyled, { children: [_jsx(TextContainerStyled, { children: _jsxs(TitleStyled, { children: [t('thankyou_message'), " "] }) }), _jsx(ButtonStyled, __assign({ onClick: onSuccess }, { children: _jsx("img", { src: ICONS_NAMES.SUCCESS, alt: 'success Icon' }) }))] }));
75
+ };
76
+ export default React.memo(ThankYou);
@@ -0,0 +1,3 @@
1
+ import ThankYou, { ThankYouProps } from './ThankYou';
2
+ export type { ThankYouProps };
3
+ export default ThankYou;
@@ -0,0 +1,2 @@
1
+ import ThankYou from './ThankYou';
2
+ export default ThankYou;
@@ -0,0 +1,2 @@
1
+ import { FeatureScreenStep } from '../@types';
2
+ export declare const connectFeatureScreens: Array<FeatureScreenStep>;
@@ -0,0 +1,28 @@
1
+ import { lazy } from 'react';
2
+ var MIDScreen = lazy(function () { return import('./connect/screens/MID'); });
3
+ var IndividualScreen = lazy(function () { return import('./connect/screens/Individual'); });
4
+ var MerchantInfoScreen = lazy(function () { return import('./connect/screens/Merchant'); });
5
+ var OTPScreen = lazy(function () { return import('./connect/screens/OTP'); });
6
+ var ThankYouScreen = lazy(function () { return import('./connect/screens/ThankYou'); });
7
+ export var connectFeatureScreens = [
8
+ {
9
+ name: 'CONNECT_MID_STEP',
10
+ element: MIDScreen
11
+ },
12
+ {
13
+ name: 'CONNECT_OTP_STEP',
14
+ element: OTPScreen
15
+ },
16
+ {
17
+ name: 'CONNECT_INDIVIDUAL_STEP',
18
+ element: IndividualScreen
19
+ },
20
+ {
21
+ name: 'CONNECT_MERCHANT_INFO_STEP',
22
+ element: MerchantInfoScreen
23
+ },
24
+ {
25
+ name: 'CONNECT_THANK_YOU_STEP',
26
+ element: ThankYouScreen
27
+ }
28
+ ];
@@ -1,3 +1,7 @@
1
1
  export * from './useThemeMode';
2
2
  export * from './useAppTheme';
3
3
  export * from './useAppTheme';
4
+ export * from './useAppSelector';
5
+ export * from './useAppDispatch';
6
+ export * from './useEventListener';
7
+ export * from './useLanguage';
@@ -1,4 +1,7 @@
1
1
  export * from './useThemeMode';
2
2
  export * from './useAppTheme';
3
3
  export * from './useAppTheme';
4
- //# sourceMappingURL=index.js.map
4
+ export * from './useAppSelector';
5
+ export * from './useAppDispatch';
6
+ export * from './useEventListener';
7
+ export * from './useLanguage';
@@ -0,0 +1,4 @@
1
+ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
2
+ settings: import("../app/settings").SettingsState;
3
+ mid: import("../features/app/connect/midStore").MIDState;
4
+ }, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;