@tap-payments/auth-jsconnect 2.4.15-test → 2.4.16-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,15 +33,15 @@ var FormStyled = styled(Form)(function () { return ({
|
|
|
33
33
|
flexDirection: 'column'
|
|
34
34
|
}); });
|
|
35
35
|
var EntityCapital = function (_a) {
|
|
36
|
-
var _b, _c, _d, _e, _f;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var _b, _c, _d, _e, _f, _g;
|
|
37
|
+
var _h = React.useState(false), anchorEl = _h[0], setAnchorEl = _h[1];
|
|
38
|
+
var _j = useAppSelector(entitySelector), data = _j.data, loading = _j.loading, error = _j.error, uploading = _j.uploading;
|
|
39
39
|
var isAr = useLanguage().isAr;
|
|
40
40
|
var t = useTranslation().t;
|
|
41
41
|
var dispatch = useAppDispatch();
|
|
42
|
-
var
|
|
42
|
+
var _k = data.entityCapitalData, responseBody = _k.responseBody, capitalPaid = _k.capitalPaid, capitalShareCount = _k.capitalShareCount, capitalShareValue = _k.capitalShareValue, activities = _k.activities;
|
|
43
43
|
var entity = (data.verify.responseBody || {}).entity;
|
|
44
|
-
var
|
|
44
|
+
var _l = entity || {}, data_verification = _l.data_verification, capital = _l.capital;
|
|
45
45
|
var methods = useForm({
|
|
46
46
|
resolver: yupResolver(EntityCapitalValidationSchema()),
|
|
47
47
|
defaultValues: {
|
|
@@ -65,8 +65,8 @@ var EntityCapital = function (_a) {
|
|
|
65
65
|
var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
|
|
66
66
|
var dataVerified = useDataVerified(data_verification, ['capital.paid', 'capital.shares.count', 'capital.shares.value']);
|
|
67
67
|
var isCapitalPaidVerified = dataVerified['capital.paid'] && ((_b = capital === null || capital === void 0 ? void 0 : capital.paid) === null || _b === void 0 ? void 0 : _b.toString()) === removeAllCharsFromNumber(watch('capitalPaid'));
|
|
68
|
-
var isCapitalShareCountVerified = dataVerified['capital.shares.count'] && ((_d = (_c = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _c === void 0 ? void 0 : _c.count) === null || _d === void 0 ? void 0 : _d.toString()) === watch('capitalShareCount');
|
|
69
|
-
var isCapitalShareValueVerified = dataVerified['capital.shares.value'] && ((
|
|
68
|
+
var isCapitalShareCountVerified = dataVerified['capital.shares.count'] && ((_d = (_c = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _c === void 0 ? void 0 : _c.count) === null || _d === void 0 ? void 0 : _d.toString()) === ((_e = watch('capitalShareCount')) === null || _e === void 0 ? void 0 : _e.toString());
|
|
69
|
+
var isCapitalShareValueVerified = dataVerified['capital.shares.value'] && ((_g = (_f = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.toString()) === removeAllCharsFromNumber(watch('capitalShareValue'));
|
|
70
70
|
var onSubmit = function (data) {
|
|
71
71
|
dispatch(updateEntityCapital(getFelids(data)));
|
|
72
72
|
};
|