@tap-payments/auth-jsconnect 2.1.3-test → 2.1.6-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 (39) hide show
  1. package/build/@types/form.d.ts +1 -0
  2. package/build/api/entity.d.ts +1 -1
  3. package/build/constants/app.d.ts +1 -0
  4. package/build/constants/app.js +11 -4
  5. package/build/features/app/bank/bankStore.js +3 -3
  6. package/build/features/app/business/businessStore.js +2 -2
  7. package/build/features/app/entity/entityStore.d.ts +13 -1
  8. package/build/features/app/entity/entityStore.js +189 -33
  9. package/build/features/app/individual/individualStore.js +5 -5
  10. package/build/features/app/password/passwordStore.d.ts +1 -7
  11. package/build/features/app/password/passwordStore.js +30 -19
  12. package/build/features/app/tax/taxStore.js +3 -3
  13. package/build/features/business/screens/BusinessType/LicenseList.js +4 -2
  14. package/build/features/business/screens/BusinessType/LicenseNumber.js +6 -6
  15. package/build/features/business/screens/BusinessType/LicenseType.js +12 -1
  16. package/build/features/entity/screens/Customers/CustomerLocations.d.ts +118 -0
  17. package/build/features/entity/screens/Customers/CustomerLocations.js +171 -0
  18. package/build/features/entity/screens/Customers/Customers.d.ts +5 -0
  19. package/build/features/entity/screens/Customers/Customers.js +90 -0
  20. package/build/features/entity/screens/Customers/ExpectedCustomers.d.ts +8 -0
  21. package/build/features/entity/screens/Customers/ExpectedCustomers.js +98 -0
  22. package/build/features/entity/screens/Customers/ExpectedSalesRange.d.ts +8 -0
  23. package/build/features/entity/screens/Customers/ExpectedSalesRange.js +127 -0
  24. package/build/features/entity/screens/Customers/RefundPolicy.d.ts +36 -0
  25. package/build/features/entity/screens/Customers/RefundPolicy.js +84 -0
  26. package/build/features/entity/screens/Customers/TransactionPolicy.d.ts +3 -0
  27. package/build/features/entity/screens/Customers/TransactionPolicy.js +44 -0
  28. package/build/features/entity/screens/Customers/index.d.ts +3 -0
  29. package/build/features/entity/screens/Customers/index.js +2 -0
  30. package/build/features/entity/screens/Customers/validation.d.ts +20 -0
  31. package/build/features/entity/screens/Customers/validation.js +13 -0
  32. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +14 -5
  33. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +2 -1
  34. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +15 -7
  35. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +73 -0
  36. package/build/features/entity/screens/EntityInfoConfirm/validation.js +61 -2
  37. package/build/features/featuresScreens.js +5 -0
  38. package/build/features/password/screens/Success/Success.js +7 -3
  39. package/package.json +1 -1
@@ -0,0 +1,171 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import Box from '@mui/material/Box';
26
+ import { useTranslation } from 'react-i18next';
27
+ import { useController, useFormContext } from 'react-hook-form';
28
+ import { styled, alpha } from '@mui/material/styles';
29
+ import InfoIcon from '@mui/icons-material/Info';
30
+ import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
31
+ import Text from '../../../../components/Text';
32
+ import Collapse from '../../../../components/Collapse';
33
+ import CheckIcon from '@mui/icons-material/Check';
34
+ import ExpandIcon from '../../../../components/ExpandIcon';
35
+ import Input from '../../../../components/Input';
36
+ import Tooltip from '../../../../components/Tooltip';
37
+ import SimpleList from '../../../../components/SimpleList';
38
+ import { ScreenContainer } from '../../../shared/Containers';
39
+ import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
40
+ import { entitySelector, clearError } from '../../../app/entity/entityStore';
41
+ import Search from '../../../shared/Search';
42
+ export var InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
43
+ var theme = _a.theme;
44
+ return ({
45
+ width: theme.spacing(2.75),
46
+ height: theme.spacing(2.125),
47
+ cursor: 'pointer',
48
+ color: alpha(theme.palette.text.primary, 0.4)
49
+ });
50
+ });
51
+ export var InfoIconStyled = styled(InfoIcon)(function (_a) {
52
+ var theme = _a.theme;
53
+ return ({
54
+ width: theme.spacing(2.75),
55
+ height: theme.spacing(2.125),
56
+ cursor: 'pointer',
57
+ color: alpha(theme.palette.text.primary, 0.4)
58
+ });
59
+ });
60
+ export var LabelContainerStyled = styled(Box)(function (_a) {
61
+ var theme = _a.theme;
62
+ return ({
63
+ display: 'flex',
64
+ justifyContent: 'space-between',
65
+ margin: theme.spacing(2.5, 2.5, 1.5, 2.5)
66
+ });
67
+ });
68
+ export var InputLabelStyled = styled(Text)(function (_a) {
69
+ var theme = _a.theme;
70
+ return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
71
+ });
72
+ export var BaseLabelStyled = styled(Text)(function (_a) {
73
+ var theme = _a.theme;
74
+ return (__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
75
+ });
76
+ export var InputStyled = styled(Input)(function (_a) {
77
+ var theme = _a.theme;
78
+ return ({
79
+ paddingInlineEnd: theme.spacing(2.5),
80
+ '& .MuiInputBase-input': {
81
+ cursor: 'pointer'
82
+ }
83
+ });
84
+ });
85
+ export var NameContainer = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
86
+ var theme = _a.theme, isSelected = _a.isSelected;
87
+ return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
88
+ });
89
+ export var CheckIconStyled = styled(CheckIcon)(function (_a) {
90
+ var theme = _a.theme;
91
+ return ({
92
+ color: theme.palette.success.main,
93
+ display: 'flex',
94
+ alignItems: 'flex-end'
95
+ });
96
+ });
97
+ export var RemainingCheck = styled(CheckIcon)(function (_a) {
98
+ var theme = _a.theme;
99
+ return ({
100
+ color: theme.palette.success.dark,
101
+ display: 'flex',
102
+ alignItems: 'flex-end'
103
+ });
104
+ });
105
+ var SimpleListStyled = styled((SimpleList))(function () { return ({
106
+ height: 'fit-content'
107
+ }); });
108
+ var customerLocations = function (_a) {
109
+ var rest = __rest(_a, []);
110
+ var _b = React.useState([]), customerLocationsList = _b[0], setCustomerLocationsList = _b[1];
111
+ var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
112
+ var t = useTranslation().t;
113
+ var isAr = useLanguage().isAr;
114
+ var control = useFormContext().control;
115
+ var dispatch = useAppDispatch();
116
+ var customerLocationsControl = useController({ name: 'customerLocations', control: control });
117
+ var _d = useAppSelector(entitySelector), data = _d.data, error = _d.error;
118
+ var _e = React.useState(false), isHovered = _e[0], setIsHovered = _e[1];
119
+ var verify = data.verify;
120
+ var response = verify.responseBody;
121
+ var onOpenList = function (event) {
122
+ var _a;
123
+ setAnchorEl(event.currentTarget);
124
+ (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
125
+ };
126
+ var onCloseList = function () {
127
+ var _a, _b;
128
+ setAnchorEl(null);
129
+ (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
130
+ if (((_b = response === null || response === void 0 ? void 0 : response.customerBases) === null || _b === void 0 ? void 0 : _b.length) > 0) {
131
+ setCustomerLocationsList(response === null || response === void 0 ? void 0 : response.customerBases);
132
+ }
133
+ };
134
+ React.useEffect(function () {
135
+ var _a;
136
+ if (((_a = response === null || response === void 0 ? void 0 : response.customerBases) === null || _a === void 0 ? void 0 : _a.length) > 0) {
137
+ setCustomerLocationsList(response === null || response === void 0 ? void 0 : response.customerBases);
138
+ }
139
+ }, [response === null || response === void 0 ? void 0 : response.customerBases]);
140
+ var checkRemainingCondition = function (item) {
141
+ return !!customerLocationsValue.find(function (location) {
142
+ return location.id === item.id;
143
+ });
144
+ };
145
+ var onSelectItem = function (customerLocations) {
146
+ onCloseList();
147
+ var checked = customerLocationsList.filter(function (location) { return (location === null || location === void 0 ? void 0 : location.code) === customerLocations.code; });
148
+ if (customerLocations.code === 'regional')
149
+ customerLocationsControl.field.onChange(checked.concat(customerLocationsList.filter(function (location) { return (location === null || location === void 0 ? void 0 : location.code) === 'local'; })));
150
+ else if (customerLocations.code === 'global')
151
+ customerLocationsControl.field.onChange(checked.concat(customerLocationsList.filter(function (location) { return (location === null || location === void 0 ? void 0 : location.code) != customerLocations.code; })));
152
+ else if (customerLocations.code === 'local')
153
+ customerLocationsControl.field.onChange(checked);
154
+ if (error)
155
+ dispatch(clearError());
156
+ };
157
+ var handleSearch = function (value) {
158
+ var _a;
159
+ var filteredList = (_a = response === null || response === void 0 ? void 0 : response.customerBases) === null || _a === void 0 ? void 0 : _a.filter(function (location) {
160
+ return location.name.en.toLowerCase().startsWith(value.toLowerCase()) ||
161
+ location.name.ar.toLowerCase().startsWith(value.toLowerCase());
162
+ });
163
+ setCustomerLocationsList(filteredList);
164
+ };
165
+ var customerLocationsValue = customerLocationsControl.field.value;
166
+ var customerLocationSelected = customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue[0];
167
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(BaseLabelStyled, { children: t('select_customer_base') }), _jsx(Tooltip, __assign({ title: t('customer_base_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(InputStyled, { readOnly: true, placeholder: t('choose_expected_sales'), value: isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.ar : customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name.en', list: customerLocationsList, placeholder: 'choose_customer_base', onSelectItem: onSelectItem, renderItem: function (item) {
168
+ return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.name.ar : item.name.en })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIconStyled, {}), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(RemainingCheck, {})] }));
169
+ } })] }))] }) })));
170
+ };
171
+ export default React.memo(customerLocations);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface CustomersProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: CustomersProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,90 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import Box from '@mui/material/Box/Box';
25
+ import { styled } from '@mui/material/styles';
26
+ import * as React from 'react';
27
+ import { useTranslation } from 'react-i18next';
28
+ import { useForm, FormProvider } from 'react-hook-form';
29
+ import { yupResolver } from '@hookform/resolvers/yup';
30
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
31
+ import { handlePrevScreenStep } from '../../../../app/settings';
32
+ import { CustomerInfoValidation } from './validation';
33
+ import Form from '../../../../components/Form';
34
+ import Button from '../../../shared/Button';
35
+ import { useLanguage } from '../../../../hooks';
36
+ import CustomerLocations from './CustomerLocations';
37
+ import ExpectedCustomers from './ExpectedCustomers';
38
+ import ExpectedSales from './ExpectedSalesRange';
39
+ import RefundPolicy from './RefundPolicy';
40
+ import TransactionPolicy from './TransactionPolicy';
41
+ import { ScreenContainer } from '../../../shared/Containers';
42
+ import Collapse from '../../../../components/Collapse';
43
+ import { entitySelector, clearError, updateCustomersInfo } from '../../../app/entity/entityStore';
44
+ var FormStyled = styled(Form)(function () { return ({
45
+ display: 'flex',
46
+ flexDirection: 'column'
47
+ }); });
48
+ var ListType;
49
+ (function (ListType) {
50
+ ListType["CustomerLocationsList"] = "CustomerLocationsList";
51
+ ListType["ExpectedCustomersList"] = "ExpectedCustomersList";
52
+ ListType["ExpectedSalesList"] = "ExpectedSalesList";
53
+ })(ListType || (ListType = {}));
54
+ var Customers = function (_a) {
55
+ var _b = React.useState(), listActive = _b[0], setListActive = _b[1];
56
+ var dispatch = useAppDispatch();
57
+ var _c = useAppSelector(entitySelector), data = _c.data, loading = _c.loading, error = _c.error;
58
+ var defaultValues = __rest(data.customersData, []);
59
+ var methods = useForm({
60
+ resolver: yupResolver(CustomerInfoValidation),
61
+ defaultValues: defaultValues,
62
+ mode: 'onChange'
63
+ });
64
+ useSetFromDefaultValues(methods, defaultValues);
65
+ var onSubmit = function (data) {
66
+ dispatch(updateCustomersInfo(data));
67
+ };
68
+ var onBack = function () {
69
+ dispatch(handlePrevScreenStep());
70
+ };
71
+ var t = useTranslation().t;
72
+ var isAr = useLanguage().isAr;
73
+ var handleMenuClick = function (flag) {
74
+ setListActive(flag);
75
+ };
76
+ React.useEffect(function () {
77
+ if (error)
78
+ dispatch(clearError());
79
+ }, [methods.formState.isValid]);
80
+ var isCustomerLocationsListActive = listActive === ListType.CustomerLocationsList;
81
+ var isExpectedCustomersListActive = listActive === ListType.ExpectedCustomersList;
82
+ var isExpectedSalesListActive = listActive === ListType.ExpectedSalesList;
83
+ var whenNotSelectCustomersLocation = !isExpectedCustomersListActive && !isExpectedSalesListActive;
84
+ var whenNotSelectExpectedCustomers = !isCustomerLocationsListActive && !isExpectedSalesListActive;
85
+ var whenNotSelectExpectedSales = !isCustomerLocationsListActive && !isExpectedCustomersListActive;
86
+ var isAnyListSelected = !isExpectedCustomersListActive && !isCustomerLocationsListActive && !isExpectedSalesListActive;
87
+ var disabled = !methods.formState.isValid || !!error;
88
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(CustomerLocations, { show: whenNotSelectCustomersLocation, onListOpen: function () { return handleMenuClick(ListType.CustomerLocationsList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ExpectedCustomers, { show: whenNotSelectExpectedCustomers, onListOpen: function () { return handleMenuClick(ListType.ExpectedCustomersList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ExpectedSales, { show: whenNotSelectExpectedSales, onListOpen: function () { return handleMenuClick(ListType.ExpectedSalesList); }, onListClose: function () { return handleMenuClick(); } }), _jsxs(Collapse, __assign({ in: isAnyListSelected }, { children: [_jsx(RefundPolicy, {}), _jsx(TransactionPolicy, {}), _jsx(Box, __assign({ sx: { mt: 2 } }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] }))] })) })) }));
89
+ };
90
+ export default React.memo(Customers);
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface ExpectedCustomersProps {
3
+ show: boolean;
4
+ onListOpen?: () => void;
5
+ onListClose?: () => void;
6
+ }
7
+ declare const ExpectedCustomers: ({ ...rest }: ExpectedCustomersProps) => JSX.Element;
8
+ export default ExpectedCustomers;
@@ -0,0 +1,98 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import Box from '@mui/material/Box';
26
+ import { styled } from '@mui/material/styles';
27
+ import { useTranslation } from 'react-i18next';
28
+ import { useController, useFormContext } from 'react-hook-form';
29
+ import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
30
+ import SimpleList from '../../../../components/SimpleList';
31
+ import Collapse from '../../../../components/Collapse';
32
+ import ExpandIcon from '../../../../components/ExpandIcon';
33
+ import { ScreenContainer } from '../../../shared/Containers';
34
+ import { CheckIconStyled, InputLabelStyled, InputStyled, NameContainer } from './CustomerLocations';
35
+ import { entitySelector, clearError } from '../../../app/entity/entityStore';
36
+ import Search from '../../../shared/Search';
37
+ var ListItemContainer = styled(Box)(function (_a) {
38
+ var theme = _a.theme;
39
+ return ({
40
+ display: 'flex',
41
+ direction: theme.direction
42
+ });
43
+ });
44
+ var SimpleListStyled = styled((SimpleList))(function () { return ({
45
+ height: 'fit-content'
46
+ }); });
47
+ var ExpectedCustomers = function (_a) {
48
+ var rest = __rest(_a, []);
49
+ var _b = React.useState([]), expectedCustomersList = _b[0], setExpectedCustomersList = _b[1];
50
+ var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
51
+ var t = useTranslation().t;
52
+ var isAr = useLanguage().isAr;
53
+ var dispatch = useAppDispatch();
54
+ var control = useFormContext().control;
55
+ var expectedCustomerControl = useController({ name: 'expectedCustomer', control: control });
56
+ var _d = useAppSelector(entitySelector), data = _d.data, error = _d.error;
57
+ var verify = data.verify;
58
+ var response = verify.responseBody;
59
+ var onOpenList = function (event) {
60
+ var _a;
61
+ setAnchorEl(event.currentTarget);
62
+ (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
63
+ };
64
+ var onCloseList = function () {
65
+ var _a, _b;
66
+ setAnchorEl(null);
67
+ (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
68
+ if (((_b = response === null || response === void 0 ? void 0 : response.expectedCustomerSales) === null || _b === void 0 ? void 0 : _b.length) > 0) {
69
+ setExpectedCustomersList(response === null || response === void 0 ? void 0 : response.expectedCustomerSales);
70
+ }
71
+ };
72
+ React.useEffect(function () {
73
+ var _a;
74
+ if (((_a = response === null || response === void 0 ? void 0 : response.expectedCustomerSales) === null || _a === void 0 ? void 0 : _a.length) > 0) {
75
+ setExpectedCustomersList(response === null || response === void 0 ? void 0 : response.expectedCustomerSales);
76
+ }
77
+ }, [response === null || response === void 0 ? void 0 : response.expectedCustomerSales]);
78
+ var onSelectItem = function (expectedCustomers) {
79
+ expectedCustomerControl.field.onChange(expectedCustomers);
80
+ if (error)
81
+ dispatch(clearError());
82
+ onCloseList();
83
+ };
84
+ var handleSearch = function (value) {
85
+ var _a;
86
+ var filteredList = (_a = response === null || response === void 0 ? void 0 : response.expectedCustomerSales) === null || _a === void 0 ? void 0 : _a.filter(function (customer) {
87
+ return customer.name.en.toLowerCase().startsWith(value.toLowerCase()) ||
88
+ customer.name.ar.toLowerCase().startsWith(value.toLowerCase());
89
+ });
90
+ setExpectedCustomersList(filteredList);
91
+ };
92
+ var expectedCustomersValue = expectedCustomerControl.field.value;
93
+ var expectedCustomersSelected = expectedCustomersValue;
94
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_customers_to_serve') }), _jsx(InputStyled, { readOnly: true, placeholder: t('choose_expected_sales'), value: isAr ? expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name.ar : expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name.en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name', list: expectedCustomersList, onSelectItem: onSelectItem, renderItem: function (item) {
95
+ return (_jsxs(_Fragment, { children: [_jsx(ListItemContainer, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (expectedCustomersValue === null || expectedCustomersValue === void 0 ? void 0 : expectedCustomersValue.id) }, { children: isAr ? item.name.ar : item.name.en })) }), item.id === (expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.id) && _jsx(CheckIconStyled, {})] }));
96
+ } })] }))] }) })));
97
+ };
98
+ export default ExpectedCustomers;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface ExpectedSalesRangeProps {
3
+ show: boolean;
4
+ onListOpen?: () => void;
5
+ onListClose?: () => void;
6
+ }
7
+ declare const ExpectedSalesRange: ({ show, onListClose, onListOpen }: ExpectedSalesRangeProps) => JSX.Element;
8
+ export default ExpectedSalesRange;
@@ -0,0 +1,127 @@
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 Box from '@mui/material/Box';
15
+ import { styled } from '@mui/material/styles';
16
+ import { useTranslation } from 'react-i18next';
17
+ import { useController, useFormContext } from 'react-hook-form';
18
+ import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
19
+ import SimpleList from '../../../../components/SimpleList';
20
+ import Collapse from '../../../../components/Collapse';
21
+ import ExpandIcon from '../../../../components/ExpandIcon';
22
+ import { entitySelector, clearError } from '../../../app/entity/entityStore';
23
+ import { isExist } from '../../../../utils';
24
+ import { ScreenContainer } from '../../../shared/Containers';
25
+ import { InputLabelStyled, CheckIconStyled, InputStyled, NameContainer } from './CustomerLocations';
26
+ import Search from '../../../shared/Search';
27
+ var ListItem = styled(Box)(function (_a) {
28
+ var theme = _a.theme;
29
+ return ({
30
+ display: 'flex',
31
+ justifyContent: 'space-between',
32
+ width: '100%',
33
+ paddingInlineStart: theme.spacing(2.5),
34
+ paddingInlineEnd: theme.spacing(2.5),
35
+ paddingTop: theme.spacing(1.5),
36
+ paddingBottom: theme.spacing(1.5)
37
+ });
38
+ });
39
+ var ListItemContainer = styled(Box)(function () { return ({
40
+ display: 'flex',
41
+ flexDirection: 'column',
42
+ width: '100%'
43
+ }); });
44
+ var SimpleListStyled = styled((SimpleList))(function () { return ({
45
+ height: 'fit-content'
46
+ }); });
47
+ var ExpectedSalesRange = function (_a) {
48
+ var show = _a.show, onListClose = _a.onListClose, onListOpen = _a.onListOpen;
49
+ var _b = React.useState([]), expectedSalesRangeList = _b[0], setExpectedSalesRangeList = _b[1];
50
+ var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
51
+ var _d = React.useState(''), subIndex = _d[0], setSubIndex = _d[1];
52
+ var t = useTranslation().t;
53
+ var isAr = useLanguage().isAr;
54
+ var control = useFormContext().control;
55
+ var dispatch = useAppDispatch();
56
+ var expectedSaleControl = useController({ name: 'expectedSale', control: control });
57
+ var _e = useAppSelector(entitySelector), data = _e.data, error = _e.error;
58
+ var verify = data.verify;
59
+ var expectedSales = (verify.responseBody || {}).expectedSales;
60
+ var expectedSalesRangeValue = expectedSaleControl.field.value;
61
+ var handleOpenMainMenu = function (event) {
62
+ setAnchorEl(event.currentTarget);
63
+ onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
64
+ };
65
+ var handleCloseMainMenu = function () {
66
+ setAnchorEl(null);
67
+ onListClose === null || onListClose === void 0 ? void 0 : onListClose();
68
+ handleCloseSubMenu();
69
+ if ((expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.length) > 0) {
70
+ setExpectedSalesRangeList(expectedSales);
71
+ }
72
+ };
73
+ var handleOpenSubMenu = function (index) {
74
+ if (subIndex === index)
75
+ setSubIndex('');
76
+ else
77
+ setSubIndex(index);
78
+ };
79
+ var handleCloseSubMenu = function () {
80
+ setSubIndex('');
81
+ };
82
+ React.useEffect(function () {
83
+ if ((expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.length) > 0) {
84
+ setExpectedSalesRangeList(expectedSales);
85
+ }
86
+ }, [expectedSales]);
87
+ var onSelectItem = function (expectedSalesRange) {
88
+ handleCloseMainMenu();
89
+ if (error)
90
+ dispatch(clearError());
91
+ expectedSaleControl.field.onChange(expectedSalesRange);
92
+ };
93
+ var handleSearch = function (value) {
94
+ var filteredList = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.filter(function (salesRange) {
95
+ var _a, _b, _c;
96
+ return salesRange.name.en.toLowerCase().includes(value.toLowerCase()) ||
97
+ salesRange.name.en.toLowerCase().replace(',', '').includes(value.toLowerCase()) ||
98
+ salesRange.name.ar.toLowerCase().includes(value.toLowerCase()) ||
99
+ ((_a = salesRange.sub) === null || _a === void 0 ? void 0 : _a.find(function (obj) { return obj.name.en.toLowerCase().includes(value.toLowerCase()); })) ||
100
+ ((_b = salesRange.sub) === null || _b === void 0 ? void 0 : _b.find(function (obj) {
101
+ return obj.name.en.toLowerCase().replace(',', '').includes(value.toLowerCase());
102
+ })) ||
103
+ ((_c = salesRange.sub) === null || _c === void 0 ? void 0 : _c.find(function (obj) { return obj.name.ar.toLowerCase().includes(value.toLowerCase()); }));
104
+ });
105
+ setExpectedSalesRangeList(filteredList);
106
+ };
107
+ React.useEffect(function () {
108
+ var item = isExist(expectedSales || [], expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id);
109
+ if (item)
110
+ setSubIndex(item.id);
111
+ }, [anchorEl, expectedSalesRangeValue]);
112
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_yearly') }), _jsx(InputStyled, { readOnly: true, value: (isAr ? expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.ar : expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.en) || '', onClick: !!anchorEl ? handleCloseMainMenu : handleOpenMainMenu, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: expectedSalesRangeList, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (item) {
113
+ var isOnlyOneItem = !item.sub || item.sub.length === 1;
114
+ if (isOnlyOneItem)
115
+ onSelectItem(item);
116
+ else
117
+ handleOpenSubMenu(item.id);
118
+ }, renderItem: function (item) {
119
+ var _a;
120
+ var isOnlyOneItem = !item.sub || ((_a = item.sub) === null || _a === void 0 ? void 0 : _a.length) === 1;
121
+ var showCheck = item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && isOnlyOneItem;
122
+ return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 8%)', borderBottom: '1px solid rgba(227, 232, 238, 0.8)' }, (isOnlyOneItem && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id), sx: __assign({}, (isOnlyOneItem && { paddingInlineStart: '5px' })) }, { children: isAr ? item.name.ar : item.name.en })), showCheck ? _jsx(CheckIconStyled, {}) : !isOnlyOneItem && _jsx(ExpandIcon, { anchorEl: subIndex === item.id })] })), _jsx(Collapse, __assign({ in: item.id === subIndex && !isOnlyOneItem }, { children: _jsx(SimpleListStyled, { sx: { pt: 0, pb: 0 }, list: (!isOnlyOneItem && item.sub) || [], onSelectItem: onSelectItem, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (item, idx) {
123
+ return (_jsxs(ListItem, __assign({ sx: { mt: idx === 0 ? 1 : 0 } }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) }, { children: isAr ? item.name.ar : item.name.en })), item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && _jsx(CheckIconStyled, {})] })));
124
+ } }) }))] }));
125
+ } })] }))] }) })));
126
+ };
127
+ export default ExpectedSalesRange;
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ export declare const ContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
+ children?: React.ReactNode;
4
+ component?: React.ElementType<any> | undefined;
5
+ ref?: React.Ref<unknown> | undefined;
6
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
7
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
8
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
9
+ }, 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") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
+ export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("../../../../components/CheckBox").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
+ export declare const TextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
12
+ align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
13
+ children?: React.ReactNode;
14
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
15
+ gutterBottom?: boolean | undefined;
16
+ noWrap?: boolean | undefined;
17
+ paragraph?: boolean | undefined;
18
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
19
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
20
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
21
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
22
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
23
+ }, 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>, {}, {}>;
24
+ export declare const LinkStyled: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/Link").LinkBaseProps, "classes"> & {
25
+ children?: React.ReactNode;
26
+ classes?: Partial<import("@mui/material/Link").LinkClasses> | undefined;
27
+ color?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string[] | import("csstype").Property.Color | undefined> | ((theme: import("@mui/material/styles").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string[] | import("csstype").Property.Color | undefined>);
28
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
29
+ TypographyClasses?: (Partial<import("@mui/material").TypographyClasses> & Partial<import("@mui/material/styles").ClassNameMap<never>>) | undefined;
30
+ underline?: "none" | "always" | "hover" | undefined;
31
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
32
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & {
33
+ ref?: ((instance: HTMLAnchorElement | null) => void) | React.RefObject<HTMLAnchorElement> | null | undefined;
34
+ }, "type" | 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" | "translate" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "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" | "children" | "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" | "underline" | "variant" | "href" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "download" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
35
+ declare const RefundPolicy: () => JSX.Element;
36
+ export default RefundPolicy;