@tap-payments/auth-jsconnect 2.11.22-development → 2.11.23-development
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.
|
@@ -69,16 +69,16 @@ var OrBoxStyled = styled(Box)(function (_a) {
|
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
var Mobile = function (_a) {
|
|
72
|
-
var _b, _c;
|
|
72
|
+
var _b, _c, _d;
|
|
73
73
|
var settingData = useAppSelector(settingsSelector).data;
|
|
74
|
-
var
|
|
75
|
-
var
|
|
74
|
+
var _e = useAppSelector(connectExpressSelector), data = _e.data, loading = _e.loading, error = _e.error;
|
|
75
|
+
var _f = React.useState(false), anchor = _f[0], setAnchor = _f[1];
|
|
76
76
|
var t = useTranslation().t;
|
|
77
77
|
var isAr = useLanguage().isAr;
|
|
78
78
|
var dispatch = useAppDispatch();
|
|
79
|
-
var
|
|
79
|
+
var _g = useCountry((_b = settingData.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2), isKuwait = _g.isKuwait, isOther = _g.isOther;
|
|
80
80
|
var responseData = data.responseData, isLeadIdPassed = data.isLeadIdPassed;
|
|
81
|
-
var isLeadIdentityIdAvailable = (
|
|
81
|
+
var isLeadIdentityIdAvailable = (_d = (_c = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _c === void 0 ? void 0 : _c.identification) === null || _d === void 0 ? void 0 : _d.id;
|
|
82
82
|
var methods = useForm({
|
|
83
83
|
resolver: yupResolver(PhoneValidationSchema(isLeadIdPassed)),
|
|
84
84
|
defaultValues: data.mobileData,
|
|
@@ -95,13 +95,14 @@ var Mobile = function (_a) {
|
|
|
95
95
|
dispatch(createMobileAuthAsync(deepCopy(formData)));
|
|
96
96
|
};
|
|
97
97
|
var onBack = function () {
|
|
98
|
+
var _a;
|
|
98
99
|
var screen = isKuwait ? 'CONNECT_EXPRESS_CIVIL_ID_STEP' : 'CONNECT_EXPRESS_NID_STEP';
|
|
99
100
|
var eventAction = isKuwait ? 'PACI Click' : 'Abser Click';
|
|
100
101
|
sendCustomEventToGTM({
|
|
101
102
|
event: 'Send Event',
|
|
102
103
|
event_category: 'User Registration Flow',
|
|
103
104
|
event_action: eventAction,
|
|
104
|
-
event_label: settingData.businessCountry.iso2
|
|
105
|
+
event_label: (_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
|
|
105
106
|
});
|
|
106
107
|
dispatch(handlePrevScreenStep(screen));
|
|
107
108
|
};
|