@tap-payments/auth-jsconnect 2.4.54-test → 2.4.57-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,6 @@ import { isExist, groupSectionWithSelectedActivitiesAtBeginning, hasVerifiedValu
|
|
|
33
33
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
34
34
|
import Search from '../../../shared/Search';
|
|
35
35
|
import InputSelect from '../../../shared/InputSelect';
|
|
36
|
-
import Input from '../../../shared/Input';
|
|
37
36
|
import { businessSelector } from '../../../app/business/businessStore';
|
|
38
37
|
import CheckIcon from '../../../shared/CheckIcon';
|
|
39
38
|
var InputStyled = styled(InputSelect)(function (_a) {
|
|
@@ -42,14 +41,9 @@ var InputStyled = styled(InputSelect)(function (_a) {
|
|
|
42
41
|
paddingInlineEnd: theme.spacing(2.5)
|
|
43
42
|
});
|
|
44
43
|
});
|
|
45
|
-
var SelectedInputStyled = styled(
|
|
46
|
-
var
|
|
44
|
+
var SelectedInputStyled = styled(InputStyled, { shouldForwardProp: function (prop) { return prop !== 'anchorEl'; } })(function (_a) {
|
|
45
|
+
var anchorEl = _a.anchorEl;
|
|
47
46
|
return ({
|
|
48
|
-
paddingInlineEnd: theme.spacing(2.5),
|
|
49
|
-
'& .MuiInputBase-input': {
|
|
50
|
-
cursor: readOnly ? 'default' : 'pointer',
|
|
51
|
-
WebkitTextFillColor: 'inherit'
|
|
52
|
-
},
|
|
53
47
|
'&.MuiInputBase-root': {
|
|
54
48
|
'&.MuiInput-root': __assign({ borderTop: 'none' }, (!anchorEl && {
|
|
55
49
|
borderBottom: 'none'
|
|
@@ -32,7 +32,6 @@ import Text from '../../../../components/Text';
|
|
|
32
32
|
import { isExist, groupSectionWithSelectedActivitiesAtBeginning, hasVerifiedValue, filterActivitiesByName } from '../../../../utils';
|
|
33
33
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
34
34
|
import Search from '../../../shared/Search';
|
|
35
|
-
import Input from '../../../shared/Input';
|
|
36
35
|
import InputSelect from '../../../shared/InputSelect';
|
|
37
36
|
import { entitySelector } from '../../../app/entity/entityStore';
|
|
38
37
|
import CheckIcon from '../../../../features/shared/CheckIcon';
|
|
@@ -42,14 +41,9 @@ var InputStyled = styled(InputSelect)(function (_a) {
|
|
|
42
41
|
paddingInlineEnd: theme.spacing(2.5)
|
|
43
42
|
});
|
|
44
43
|
});
|
|
45
|
-
var SelectedInputStyled = styled(
|
|
46
|
-
var
|
|
44
|
+
var SelectedInputStyled = styled(InputStyled, { shouldForwardProp: function (prop) { return prop !== 'anchorEl'; } })(function (_a) {
|
|
45
|
+
var anchorEl = _a.anchorEl;
|
|
47
46
|
return ({
|
|
48
|
-
paddingInlineEnd: theme.spacing(2.5),
|
|
49
|
-
'& .MuiInputBase-input': {
|
|
50
|
-
cursor: readOnly ? 'default' : 'pointer',
|
|
51
|
-
WebkitTextFillColor: 'inherit'
|
|
52
|
-
},
|
|
53
47
|
'&.MuiInputBase-root': {
|
|
54
48
|
'&.MuiInput-root': __assign({ borderTop: 'none' }, (!anchorEl && {
|
|
55
49
|
borderBottom: 'none'
|
package/build/utils/array.js
CHANGED
|
@@ -200,14 +200,14 @@ export var getRecentDocumentBasedOnPurpose = function (documents, purpose) {
|
|
|
200
200
|
if ((documents || []).length === 0)
|
|
201
201
|
return [];
|
|
202
202
|
var filteredByPurpose = documents.filter(function (doc) {
|
|
203
|
-
return doc.
|
|
203
|
+
return doc.type === purpose;
|
|
204
204
|
});
|
|
205
205
|
if ((filteredByPurpose || []).length > 0) {
|
|
206
206
|
return filteredByPurpose.sort(function (a, b) { return b.created - a.created; })[0];
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
209
|
return documents
|
|
210
|
-
.filter(function (doc) { var _a; return !((_a = doc.file_details) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
210
|
+
.filter(function (doc) { var _a; return !((_a = doc.file_details) === null || _a === void 0 ? void 0 : _a.length) && doc.id; })
|
|
211
211
|
.sort(function (a, b) { return b.created - a.created; })[0];
|
|
212
212
|
}
|
|
213
213
|
};
|