@tap-payments/auth-jsconnect 2.4.79-test → 2.4.81-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.
package/build/app/settings.js
CHANGED
|
@@ -47,13 +47,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, isKW, isSA } from '../utils';
|
|
50
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, isKW, isSA, getParameterByName } from '../utils';
|
|
51
51
|
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
52
52
|
import i18n from '../i18n';
|
|
53
53
|
import { updateLocale } from '../utils/locale';
|
|
54
54
|
import API, { setAxiosGlobalHeaders } from '../api';
|
|
55
55
|
export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, domain, language_1, country, scope, public_key, maturity_1, board_maturity, deviceInfo, isValidOperator, countries, countryCode, isKWOrSA, businessCountry;
|
|
56
|
+
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, lang, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, domain, language_1, country, scope, public_key, maturity_1, board_maturity, deviceInfo, isValidOperator, countries, countryCode, isKWOrSA, businessCountry;
|
|
57
57
|
return __generator(this, function (_f) {
|
|
58
58
|
switch (_f.label) {
|
|
59
59
|
case 0:
|
|
@@ -66,6 +66,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
66
66
|
_c = _f.sent(), visitorId = _c[0].visitorId, locale = _c[1];
|
|
67
67
|
configInfo = appConfig;
|
|
68
68
|
matureData = maturity;
|
|
69
|
+
lang = getParameterByName('lang');
|
|
69
70
|
setAxiosGlobalHeaders({
|
|
70
71
|
bi: visitorId || '',
|
|
71
72
|
mdn: encryptString(params.mdn || window.location.origin),
|
|
@@ -85,7 +86,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
85
86
|
if (typeof maturity_1 === 'boolean')
|
|
86
87
|
matureData = maturity_1 ? 'full' : 'express';
|
|
87
88
|
thunkApi.dispatch(handleSetAppConfig(configInfo));
|
|
88
|
-
thunkApi.dispatch(handleLanguage(config.language));
|
|
89
|
+
thunkApi.dispatch(handleLanguage(config.language || lang));
|
|
89
90
|
if (typeof board_maturity === 'boolean')
|
|
90
91
|
thunkApi.dispatch(handelBoardMaturity(board_maturity));
|
|
91
92
|
onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
|
|
@@ -396,7 +396,7 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
|
|
|
396
396
|
return ({ id: id, action: 'add' });
|
|
397
397
|
});
|
|
398
398
|
payload = __assign({ id: id, activities: isActivitiesNonEditable || (activityIds === null || activityIds === void 0 ? void 0 : activityIds.length) === 0 ? undefined : activityIds }, (!isCapitalNonEditable && {
|
|
399
|
-
capital: __assign({ paid: isCapitalPaidNonEditable ? undefined : removeAllCharsFromNumber(capitalPaid) }, (!((isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || !hasCapitalShares) && {
|
|
399
|
+
capital: __assign({ paid: isCapitalPaidNonEditable || !capitalPaid ? undefined : removeAllCharsFromNumber(capitalPaid) }, (!((isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || !hasCapitalShares) && {
|
|
400
400
|
shares: {
|
|
401
401
|
count: isCapitalShareCountNonEditable ? undefined : capitalShareCount,
|
|
402
402
|
value: isCapitalShareValueNonEditable ? undefined : removeAllCharsFromNumber(capitalShareValue)
|
|
@@ -61,13 +61,13 @@ import React, { memo } from 'react';
|
|
|
61
61
|
import { createRoot } from 'react-dom/client';
|
|
62
62
|
import { FeatureContainer } from '../shared/Containers';
|
|
63
63
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
|
|
64
|
-
import { handleCurrentActiveScreen,
|
|
64
|
+
import { handleCurrentActiveScreen, settingsSelector } from '../../app/settings';
|
|
65
65
|
import AnimationFlow from '../../components/AnimationFlow';
|
|
66
66
|
import { store } from '../../app/store';
|
|
67
67
|
import { connectExpressSelector, setIsLeadIdPassed, setPostUrl, setLeadId, retrieveLeadIdentityByIdAsync, setShowBoard } from '../app/connectExpress/connectExpressStore';
|
|
68
68
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
69
69
|
import Collapse from '../../components/Collapse';
|
|
70
|
-
import { isKW, findOrCreateElementAndInject,
|
|
70
|
+
import { isKW, findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
71
71
|
import { CONNECT_EXPRESS_SCREENS_NAVIGATION } from '../../constants';
|
|
72
72
|
import { connectExpressFeatureScreens } from '../featuresScreens';
|
|
73
73
|
import Background from '../shared/Background';
|
|
@@ -109,9 +109,6 @@ var ConnectExpress = memo(function (_a) {
|
|
|
109
109
|
React.useEffect(function () {
|
|
110
110
|
if (data.isValidOperator && props.open && !settingLoading) {
|
|
111
111
|
if (configToken) {
|
|
112
|
-
var lang = getParameterByName('lang');
|
|
113
|
-
if (lang)
|
|
114
|
-
dispatch(handleLanguage(lang));
|
|
115
112
|
if (connectData.leadId)
|
|
116
113
|
dispatch(retrieveLeadIdentityByIdAsync(connectData.leadId));
|
|
117
114
|
return;
|