@tap-payments/auth-jsconnect 2.6.61-test → 2.6.83-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/@types/app.d.ts +2 -1
- package/build/api/auth.d.ts +19 -0
- package/build/api/auth.js +9 -1
- package/build/api/entity.d.ts +6 -1
- package/build/api/entity.js +2 -5
- package/build/api/index.d.ts +6 -5
- package/build/api/lead.d.ts +8 -1
- package/build/api/lead.js +2 -5
- package/build/app/settings.js +3 -3
- package/build/assets/locales/ar.json +5 -1
- package/build/assets/locales/en.json +5 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +7 -2
- package/build/components/AnimationFlow/AnimationFlow.js +16 -5
- package/build/components/AnimationFlow/BottomSheet.d.ts +3 -1
- package/build/components/AnimationFlow/BottomSheet.js +4 -4
- package/build/components/AnimationFlow/Dialog.d.ts +7 -1
- package/build/components/AnimationFlow/Dialog.js +5 -9
- package/build/components/AnimationFlow/Loader.d.ts +6 -1
- package/build/components/AnimationFlow/Loader.js +17 -5
- package/build/constants/app.d.ts +0 -1
- package/build/constants/app.js +14 -3
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +2 -1
- package/build/features/app/auth/authStore.d.ts +6 -13
- package/build/features/app/auth/authStore.js +168 -111
- package/build/features/app/board/boardStore.js +8 -2
- package/build/features/app/connectExpress/connectExpressStore.js +18 -5
- package/build/features/auth/Auth.d.ts +5 -0
- package/build/features/auth/Auth.js +56 -7
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +74 -0
- package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
- package/build/features/auth/screens/AccountNotFound/index.js +2 -0
- package/build/features/auth/screens/OTP/OTP.js +2 -3
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
- package/build/features/auth/screens/PreparingData/PreparingData.js +41 -0
- package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
- package/build/features/auth/screens/PreparingData/index.js +2 -0
- package/build/features/bank/Bank.d.ts +1 -0
- package/build/features/bank/Bank.js +5 -4
- package/build/features/board/Board.d.ts +1 -0
- package/build/features/board/Board.js +7 -5
- package/build/features/brand/Brand.d.ts +1 -0
- package/build/features/brand/Brand.js +5 -4
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/connect/screens/Individual/Email.js +3 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -1
- package/build/features/entity/Entity.d.ts +1 -0
- package/build/features/entity/Entity.js +5 -4
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/Individual.d.ts +1 -0
- package/build/features/individual/Individual.js +5 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualList/Email.js +3 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
- package/build/features/password/Password.d.ts +1 -0
- package/build/features/password/Password.js +5 -5
- package/build/features/shared/Address/CountryList.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +2 -1
- package/build/features/shared/Background/Background.js +9 -11
- package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
- package/build/features/shared/Containers/FeatureContainer.js +3 -3
- package/build/features/shared/DataLoading/DataLoading.d.ts +2 -1
- package/build/features/shared/DataLoading/DataLoading.js +2 -2
- package/build/features/tax/Tax.d.ts +1 -0
- package/build/features/tax/Tax.js +5 -4
- package/build/hooks/useAppConfig.js +2 -2
- package/build/hooks/useVerifyToken.d.ts +2 -1
- package/build/hooks/useVerifyToken.js +2 -2
- package/build/theme/palette.js +2 -1
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +8 -2
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -217,10 +217,11 @@ export interface LibConfig extends LibCallbacks {
|
|
|
217
217
|
appInfo: AppInfo;
|
|
218
218
|
businessCountryCode?: string;
|
|
219
219
|
scope: string;
|
|
220
|
+
platforms?: Array<string>;
|
|
220
221
|
postURL?: string;
|
|
221
222
|
redirectUrl?: string;
|
|
222
223
|
data?: Array<string>;
|
|
223
|
-
mode?: 'popup' | 'page';
|
|
224
|
+
mode?: 'popup' | 'page' | 'content';
|
|
224
225
|
boardMaturity?: boolean;
|
|
225
226
|
}
|
|
226
227
|
export interface OSDetails {
|
package/build/api/auth.d.ts
CHANGED
|
@@ -84,6 +84,24 @@ export declare type getExpressTokenVerifyParams = {
|
|
|
84
84
|
token: string;
|
|
85
85
|
leadId: string;
|
|
86
86
|
};
|
|
87
|
+
export declare type ConfigBody = {
|
|
88
|
+
board: boolean;
|
|
89
|
+
public_key: string;
|
|
90
|
+
domain: string;
|
|
91
|
+
language: string;
|
|
92
|
+
country: string;
|
|
93
|
+
scope: string;
|
|
94
|
+
lead_id: string;
|
|
95
|
+
maturity: boolean;
|
|
96
|
+
board_maturity?: boolean;
|
|
97
|
+
notification?: {
|
|
98
|
+
email: boolean;
|
|
99
|
+
sms: boolean;
|
|
100
|
+
};
|
|
101
|
+
post?: {
|
|
102
|
+
url: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
87
105
|
declare const authService: {
|
|
88
106
|
createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
89
107
|
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -97,5 +115,6 @@ declare const authService: {
|
|
|
97
115
|
createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
|
|
98
116
|
getVerifyExpressAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
|
|
99
117
|
getExpressTokenVerify: ({ token, leadId }: getExpressTokenVerifyParams, config?: AxiosRequestConfig) => Promise<any>;
|
|
118
|
+
generateConfigToken: (body: ConfigBody) => Promise<any>;
|
|
100
119
|
};
|
|
101
120
|
export { authService };
|
package/build/api/auth.js
CHANGED
|
@@ -68,6 +68,13 @@ var createAuthKitNID = function (data) {
|
|
|
68
68
|
data: data
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
+
var generateConfigToken = function (body) {
|
|
72
|
+
return httpClient({
|
|
73
|
+
method: 'post',
|
|
74
|
+
url: ENDPOINT_PATHS.CONNECT,
|
|
75
|
+
data: body
|
|
76
|
+
});
|
|
77
|
+
};
|
|
71
78
|
var authService = {
|
|
72
79
|
createAuth: createAuth,
|
|
73
80
|
verifyAuth: verifyAuth,
|
|
@@ -80,6 +87,7 @@ var authService = {
|
|
|
80
87
|
verifyExpressLeadIdentity: verifyExpressLeadIdentity,
|
|
81
88
|
createExpressLeadIdentityAuth: createExpressLeadIdentityAuth,
|
|
82
89
|
getVerifyExpressAuth: getVerifyExpressAuth,
|
|
83
|
-
getExpressTokenVerify: getExpressTokenVerify
|
|
90
|
+
getExpressTokenVerify: getExpressTokenVerify,
|
|
91
|
+
generateConfigToken: generateConfigToken
|
|
84
92
|
};
|
|
85
93
|
export { authService };
|
package/build/api/entity.d.ts
CHANGED
|
@@ -114,6 +114,11 @@ export declare type RemoveEntityActivity = {
|
|
|
114
114
|
id: string;
|
|
115
115
|
}>;
|
|
116
116
|
};
|
|
117
|
+
export declare type MerchantListBody = {
|
|
118
|
+
business_entity_id: string;
|
|
119
|
+
create_if_not_present: boolean;
|
|
120
|
+
platforms?: Array<string>;
|
|
121
|
+
};
|
|
117
122
|
declare const entityService: {
|
|
118
123
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
119
124
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -130,7 +135,7 @@ declare const entityService: {
|
|
|
130
135
|
retrieveAllEntities: (id: string) => Promise<any>;
|
|
131
136
|
removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
|
|
132
137
|
getEntityListUsingIndividualId: (individualId: string) => Promise<any>;
|
|
133
|
-
getMerchantListUsingEntityId: (
|
|
138
|
+
getMerchantListUsingEntityId: (data: MerchantListBody) => Promise<any>;
|
|
134
139
|
getTerminalListUsingMerchantId: (merchantId: string) => Promise<any>;
|
|
135
140
|
};
|
|
136
141
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -106,14 +106,11 @@ var getEntityListUsingIndividualId = function (individualId) {
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
var getMerchantListUsingEntityId = function (
|
|
109
|
+
var getMerchantListUsingEntityId = function (data) {
|
|
110
110
|
return httpClient({
|
|
111
111
|
method: 'post',
|
|
112
112
|
url: "".concat(ENDPOINT_PATHS.MERCHANT, "/list"),
|
|
113
|
-
data:
|
|
114
|
-
create_if_not_present: true,
|
|
115
|
-
business_entity_id: entityId
|
|
116
|
-
}
|
|
113
|
+
data: data
|
|
117
114
|
});
|
|
118
115
|
};
|
|
119
116
|
var getTerminalListUsingMerchantId = function (merchantId) {
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody, ConfirmBody } from './operator';
|
|
3
|
-
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
|
|
3
|
+
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
|
-
import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity } from './entity';
|
|
6
|
+
import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity, MerchantListBody } from './entity';
|
|
7
7
|
import { CreateAccountBody, ExpressCreateAccountBody } from './account';
|
|
8
8
|
import { DataElementBody } from './data';
|
|
9
9
|
import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody } from './individual';
|
|
@@ -42,6 +42,7 @@ declare const API: {
|
|
|
42
42
|
createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
|
|
43
43
|
getVerifyExpressAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
44
44
|
getExpressTokenVerify: ({ token, leadId }: import("./auth").getExpressTokenVerifyParams, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
45
|
+
generateConfigToken: (body: ConfigBody) => Promise<any>;
|
|
45
46
|
};
|
|
46
47
|
leadService: {
|
|
47
48
|
createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -54,7 +55,7 @@ declare const API: {
|
|
|
54
55
|
retrieveLeadIdentity: (leadId: string) => Promise<any>;
|
|
55
56
|
updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
56
57
|
verifyExpressLeadToken: (data: ExpressLeadVerifyBody) => Promise<any>;
|
|
57
|
-
createVerifyTokenByBoardId: (
|
|
58
|
+
createVerifyTokenByBoardId: (data: import("./lead").CreateVerifyTokenBody) => Promise<any>;
|
|
58
59
|
};
|
|
59
60
|
entityService: {
|
|
60
61
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -72,7 +73,7 @@ declare const API: {
|
|
|
72
73
|
retrieveAllEntities: (id: string) => Promise<any>;
|
|
73
74
|
removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
|
|
74
75
|
getEntityListUsingIndividualId: (individualId: string) => Promise<any>;
|
|
75
|
-
getMerchantListUsingEntityId: (
|
|
76
|
+
getMerchantListUsingEntityId: (data: MerchantListBody) => Promise<any>;
|
|
76
77
|
getTerminalListUsingMerchantId: (merchantId: string) => Promise<any>;
|
|
77
78
|
};
|
|
78
79
|
availabilityServices: {
|
|
@@ -174,6 +175,6 @@ declare const API: {
|
|
|
174
175
|
getInitialData: (body: InitBody) => Promise<any>;
|
|
175
176
|
};
|
|
176
177
|
};
|
|
177
|
-
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody };
|
|
178
|
+
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody };
|
|
178
179
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
179
180
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ export declare type LeadVerifyBody = {
|
|
|
74
74
|
sms: boolean;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
export declare type CreateVerifyTokenBody = {
|
|
78
|
+
service_name: string;
|
|
79
|
+
board_id: string;
|
|
80
|
+
notification?: {
|
|
81
|
+
sms: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
77
84
|
export declare type ExpressLeadVerifyBody = {
|
|
78
85
|
token: string;
|
|
79
86
|
};
|
|
@@ -108,6 +115,6 @@ declare const leadService: {
|
|
|
108
115
|
retrieveLeadIdentity: (leadId: string) => Promise<any>;
|
|
109
116
|
updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
110
117
|
verifyExpressLeadToken: (data: ExpressLeadVerifyBody) => Promise<any>;
|
|
111
|
-
createVerifyTokenByBoardId: (
|
|
118
|
+
createVerifyTokenByBoardId: (data: CreateVerifyTokenBody) => Promise<any>;
|
|
112
119
|
};
|
|
113
120
|
export { leadService };
|
package/build/api/lead.js
CHANGED
|
@@ -97,15 +97,12 @@ var retrieveLeadIdentity = function (leadId) {
|
|
|
97
97
|
url: "".concat(ENDPOINT_PATHS.LEAD, "/").concat(leadId, "/identity")
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
var createVerifyTokenByBoardId = function (
|
|
100
|
+
var createVerifyTokenByBoardId = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
101
101
|
return __generator(this, function (_a) {
|
|
102
102
|
return [2, httpClient({
|
|
103
103
|
method: 'post',
|
|
104
104
|
url: "".concat(ENDPOINT_PATHS.CREATE_TOKEN_PATH),
|
|
105
|
-
data:
|
|
106
|
-
service_name: 'tap_email',
|
|
107
|
-
board_id: boardId
|
|
108
|
-
}
|
|
105
|
+
data: data
|
|
109
106
|
})];
|
|
110
107
|
});
|
|
111
108
|
}); };
|
package/build/app/settings.js
CHANGED
|
@@ -53,7 +53,7 @@ import i18n from '../i18n';
|
|
|
53
53
|
import { updateLocale } from '../utils/locale';
|
|
54
54
|
import API, { getAxiosHeaders, 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, lang, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, country_code, domain, language_1, country, scope, public_key, maturity_1, board_maturity, post, platform_redirect_url, data, lead_id, deviceInfo, isValidOperator, countries, countryCode, businessCountry, ipCountry;
|
|
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, country_code, domain, language_1, country, scope, public_key, maturity_1, board_maturity, post, platform_redirect_url, data, lead_id, platforms, deviceInfo, isValidOperator, countries, countryCode, businessCountry, ipCountry;
|
|
57
57
|
return __generator(this, function (_f) {
|
|
58
58
|
switch (_f.label) {
|
|
59
59
|
case 0:
|
|
@@ -81,8 +81,8 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
81
81
|
list = (country_list || { list: [] }).list;
|
|
82
82
|
_e = ip_info || {}, ip = _e.ip, latitude = _e.latitude, longitude = _e.longitude, country_code = _e.country_code;
|
|
83
83
|
if (config) {
|
|
84
|
-
domain = config.domain, language_1 = config.language, country = config.country, scope = config.scope, public_key = config.public_key, maturity_1 = config.maturity, board_maturity = config.board_maturity, post = config.post, platform_redirect_url = config.platform_redirect_url, data = config.data, lead_id = config.lead_id;
|
|
85
|
-
configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), (domain && { merchantDomain: domain })), (language_1 && { language: language_1 })), (country && { businessCountryCode: country })), (scope && { scope: scope })), (public_key && { publicKey: public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post === null || post === void 0 ? void 0 : post.url })), (platform_redirect_url && { redirectUrl: platform_redirect_url })), (data && { data: data })), (lead_id && { leadId: lead_id }));
|
|
84
|
+
domain = config.domain, language_1 = config.language, country = config.country, scope = config.scope, public_key = config.public_key, maturity_1 = config.maturity, board_maturity = config.board_maturity, post = config.post, platform_redirect_url = config.platform_redirect_url, data = config.data, lead_id = config.lead_id, platforms = config.platforms;
|
|
85
|
+
configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), (domain && { merchantDomain: domain })), (language_1 && { language: language_1 })), (country && { businessCountryCode: country })), (scope && { scope: scope })), (public_key && { publicKey: public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post === null || post === void 0 ? void 0 : post.url })), (platform_redirect_url && { redirectUrl: platform_redirect_url })), (data && { data: data })), (lead_id && { leadId: lead_id })), (platforms && { platforms: platforms }));
|
|
86
86
|
if (typeof maturity_1 === 'boolean')
|
|
87
87
|
matureData = maturity_1 ? 'full' : 'express';
|
|
88
88
|
thunkApi.dispatch(handleSetAppConfig(configInfo));
|
|
@@ -432,5 +432,9 @@
|
|
|
432
432
|
"country_list_title": "الرجاء تحديد بلدك",
|
|
433
433
|
"Choose_any_country": "بحث عن البلد ...",
|
|
434
434
|
"operator_is_invalid": "المشغل غير مصرح له",
|
|
435
|
-
"
|
|
435
|
+
"account_not_found": "Account not found",
|
|
436
|
+
"account_not_found_desc": "It looks like you're new here.",
|
|
437
|
+
"account_not_found_desc_sub": "To get started and make the most of Tap, please create an account.",
|
|
438
|
+
"try_sign_in": "Try signing in again",
|
|
439
|
+
"sign_up": "Sign up"
|
|
436
440
|
}
|
|
@@ -462,5 +462,9 @@
|
|
|
462
462
|
"country_list_title": "Please select your country",
|
|
463
463
|
"choose_any_country": "Search Country...",
|
|
464
464
|
"operator_is_invalid": "Operator is invalid",
|
|
465
|
-
"
|
|
465
|
+
"account_not_found": "Account not found",
|
|
466
|
+
"account_not_found_desc": "It looks like you're new here.",
|
|
467
|
+
"account_not_found_desc_sub": "To get started and make the most of Tap, please create an account.",
|
|
468
|
+
"try_sign_in": "Try signing in again",
|
|
469
|
+
"sign_up": "Sign up"
|
|
466
470
|
}
|
|
@@ -4,7 +4,7 @@ export interface AnimationFlowProps {
|
|
|
4
4
|
open: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
isTapOrigin?: boolean;
|
|
7
|
-
type?: 'PUPOP' | 'BOTTOMSHEET';
|
|
7
|
+
type?: 'PUPOP' | 'BOTTOMSHEET' | 'CONTENT';
|
|
8
8
|
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
error?: string | null;
|
|
@@ -16,5 +16,10 @@ export interface AnimationFlowProps {
|
|
|
16
16
|
merchantInfo?: MerchantInfo;
|
|
17
17
|
isMaturityExpress?: boolean;
|
|
18
18
|
showTextLogo?: boolean;
|
|
19
|
+
hideFooter?: boolean;
|
|
20
|
+
hideMerchantLogo?: boolean;
|
|
21
|
+
hideLoaderOverlay?: boolean;
|
|
22
|
+
animationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
23
|
+
loaderColor?: string;
|
|
19
24
|
}
|
|
20
|
-
export default function AnimationFlow({ open, children, breakpoint, type, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo }: AnimationFlowProps): JSX.Element;
|
|
25
|
+
export default function AnimationFlow({ open, children, breakpoint, type, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo, hideFooter, hideMerchantLogo, hideLoaderOverlay, animationDirection, loaderColor }: AnimationFlowProps): JSX.Element;
|
|
@@ -11,24 +11,35 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { useScreen } from '../../hooks';
|
|
14
|
+
import Fade from '@mui/material/Fade';
|
|
15
|
+
import Box from '@mui/material/Box';
|
|
16
|
+
import { styled } from '@mui/material/styles';
|
|
14
17
|
import Dialog from './Dialog';
|
|
15
18
|
import BottomSheet from './BottomSheet';
|
|
16
19
|
import Loader from './Loader';
|
|
17
20
|
import Error from './Error';
|
|
21
|
+
var BoxStyled = styled(Box)(function () { return ({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
justifyContent: 'center',
|
|
24
|
+
alignItems: 'center'
|
|
25
|
+
}); });
|
|
18
26
|
export default function AnimationFlow(_a) {
|
|
19
|
-
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo;
|
|
27
|
+
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, hideLoaderOverlay = _a.hideLoaderOverlay, animationDirection = _a.animationDirection, loaderColor = _a.loaderColor;
|
|
20
28
|
var small = useScreen(breakpoint).small;
|
|
21
29
|
if (loading) {
|
|
22
|
-
return _jsx(Loader, {});
|
|
30
|
+
return _jsx(Loader, { color: loaderColor, hideLoaderOverlay: type === 'CONTENT' ? true : hideLoaderOverlay });
|
|
23
31
|
}
|
|
24
32
|
if (error) {
|
|
25
33
|
return _jsx(Error, { error: error });
|
|
26
34
|
}
|
|
35
|
+
if (type === 'CONTENT') {
|
|
36
|
+
return (_jsx(Fade, __assign({ in: true }, { children: _jsx(BoxStyled, { children: children }) })));
|
|
37
|
+
}
|
|
27
38
|
if (type === 'PUPOP') {
|
|
28
|
-
return (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo }, { children: children })));
|
|
39
|
+
return (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo, animationDirection: animationDirection }, { children: children })));
|
|
29
40
|
}
|
|
30
41
|
if (type === 'BOTTOMSHEET') {
|
|
31
|
-
return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo }, { children: children })));
|
|
42
|
+
return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo }, { children: children })));
|
|
32
43
|
}
|
|
33
|
-
return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo }, { children: children })));
|
|
44
|
+
return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, showTextLogo: showTextLogo, hideFooter: hideFooter, hideMerchantLogo: hideMerchantLogo, animationDirection: animationDirection }, { children: children })));
|
|
34
45
|
}
|
|
@@ -9,6 +9,8 @@ export interface BottomSheetProps extends MainBottomSheetProps {
|
|
|
9
9
|
pointerEvents?: 'none' | 'auto';
|
|
10
10
|
isMaturityExpress?: boolean;
|
|
11
11
|
merchantInfo?: MerchantInfo;
|
|
12
|
+
hideFooter?: boolean;
|
|
13
|
+
hideMerchantLogo?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, ...rest }: BottomSheetProps) => JSX.Element>;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, hideFooter, hideMerchantLogo, ...rest }: BottomSheetProps) => JSX.Element>;
|
|
14
16
|
export default _default;
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { BottomSheet } from 'react-spring-bottom-sheet';
|
|
26
26
|
import { styled } from '@mui/material/styles';
|
|
@@ -75,7 +75,7 @@ var FooterStyled = styled(Box)(function (_a) {
|
|
|
75
75
|
return (__assign(__assign({ bottom: theme.spacing(-5.625), position: 'fixed', height: theme.spacing(5.625), display: 'flex' }, theme.typography.caption), { justifyContent: 'center', alignItems: 'center', width: '100vw', background: '#E6E7E9', borderTop: '1px solid rgba(156, 160, 169, 0.3)' }));
|
|
76
76
|
});
|
|
77
77
|
var BottomSheetComponent = function (_a) {
|
|
78
|
-
var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo"]);
|
|
78
|
+
var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo", "hideFooter", "hideMerchantLogo"]);
|
|
79
79
|
var sheetRef = React.useRef(null);
|
|
80
80
|
var isAr = useLanguage().isAr;
|
|
81
81
|
var logo = (merchantInfo || {}).logo;
|
|
@@ -102,9 +102,9 @@ var BottomSheetComponent = function (_a) {
|
|
|
102
102
|
}, 500);
|
|
103
103
|
}
|
|
104
104
|
}, [screenId]);
|
|
105
|
-
return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), sibling: _jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) }), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
|
|
105
|
+
return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), sibling: hideFooter ? (_jsx(_Fragment, {})) : (_jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) })), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
|
|
106
106
|
var maxHeight = _a.maxHeight;
|
|
107
107
|
return [getMinHeight(maxHeight), maxHeight * 0.95];
|
|
108
|
-
} }, rest, { children: [isMaturityExpress && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), children, isMaturityExpress && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
|
|
108
|
+
} }, rest, { children: [isMaturityExpress && !hideMerchantLogo && (_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON })), children, isMaturityExpress && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
|
|
109
109
|
};
|
|
110
110
|
export default React.memo(BottomSheetComponent);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DialogProps as MUIDialogProps } from '@mui/material/Dialog';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
4
|
import { MerchantInfo } from '../../@types';
|
|
4
5
|
export interface DialogProps extends MUIDialogProps {
|
|
5
6
|
open: boolean;
|
|
@@ -13,6 +14,11 @@ export interface DialogProps extends MUIDialogProps {
|
|
|
13
14
|
merchantInfo?: MerchantInfo;
|
|
14
15
|
isMaturityExpress?: boolean;
|
|
15
16
|
showTextLogo?: boolean;
|
|
17
|
+
hideFooter?: boolean;
|
|
18
|
+
hideMerchantLogo?: boolean;
|
|
19
|
+
animationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
20
|
+
showAsContent?: boolean;
|
|
21
|
+
sx?: SxProps<Theme>;
|
|
16
22
|
}
|
|
17
|
-
declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo, ...rest }: DialogProps) => JSX.Element>;
|
|
23
|
+
declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, showTextLogo, hideFooter, hideMerchantLogo, animationDirection, sx, ...rest }: DialogProps) => JSX.Element>;
|
|
18
24
|
export default _default;
|
|
@@ -104,14 +104,14 @@ var LanguageFooterStyled = styled(Box, { shouldForwardProp: function (prop) { re
|
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
var Dialog = function (_a) {
|
|
107
|
-
var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "merchantInfo", "isMaturityExpress", "showTextLogo"]);
|
|
107
|
+
var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, showTextLogo = _a.showTextLogo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, _d = _a.animationDirection, animationDirection = _d === void 0 ? 'up' : _d, sx = _a.sx, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "merchantInfo", "isMaturityExpress", "showTextLogo", "hideFooter", "hideMerchantLogo", "animationDirection", "sx"]);
|
|
108
108
|
var isAr = useLanguage().isAr;
|
|
109
109
|
var animation = {};
|
|
110
110
|
if (animationType === 'slide') {
|
|
111
111
|
Object.assign(animation, { TransitionComponent: Transition });
|
|
112
112
|
}
|
|
113
113
|
var logo = (merchantInfo || {}).logo;
|
|
114
|
-
var
|
|
114
|
+
var _e = React.useState(false), showLanguage = _e[0], setShowLanguage = _e[1];
|
|
115
115
|
React.useEffect(function () {
|
|
116
116
|
if (isMaturityExpress) {
|
|
117
117
|
setTimeout(function () {
|
|
@@ -121,14 +121,10 @@ var Dialog = function (_a) {
|
|
|
121
121
|
}, []);
|
|
122
122
|
return (_jsxs(MuiDialog, __assign({ id: DIALOG_ID, PaperProps: {
|
|
123
123
|
elevation: 0
|
|
124
|
-
}, sx: {
|
|
125
|
-
'& .MuiDialog-paper': {
|
|
124
|
+
}, sx: __assign({ '& .MuiDialog-paper': {
|
|
126
125
|
overflowY: 'visible'
|
|
127
|
-
},
|
|
128
|
-
'&.MuiDialog-root': {
|
|
126
|
+
}, '&.MuiDialog-root': {
|
|
129
127
|
marginBottom: isMaturityExpress ? '60px' : '0px'
|
|
130
|
-
},
|
|
131
|
-
pointerEvents: pointerEvents
|
|
132
|
-
}, hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), !isMaturityExpress && showTextLogo && (_jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) }))] })), children] })) })), isMaturityExpress ? _jsx(PoweredByFooter, {}) : _jsx(CustomFooter, {}), _jsx(LanguageFooterStyled, __assign({ showLanguage: showLanguage }, { children: _jsx(CustomFooter, {}) }))] })));
|
|
128
|
+
}, pointerEvents: pointerEvents }, sx), hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, (animationDirection && { TransitionProps: { direction: animationDirection } }), { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [!hideMerchantLogo && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), !isMaturityExpress && showTextLogo && (_jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) }))] })), children] })) })), isMaturityExpress ? _jsx(PoweredByFooter, {}) : !hideFooter && _jsx(CustomFooter, {}), !hideFooter && (_jsx(LanguageFooterStyled, __assign({ showLanguage: showLanguage }, { children: _jsx(CustomFooter, {}) })))] })));
|
|
133
129
|
};
|
|
134
130
|
export default React.memo(Dialog);
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface LoadingProps {
|
|
3
|
+
hideLoaderOverlay?: boolean;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export default function FlowLoading({ hideLoaderOverlay, color }: LoadingProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,21 @@
|
|
|
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
|
+
};
|
|
1
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
13
|
import { styled } from '@mui/material/styles';
|
|
3
14
|
import Box from '@mui/material/Box';
|
|
4
15
|
import Loader from '../Loader';
|
|
5
|
-
var BoxStyled = styled(Box)(function (_a) {
|
|
16
|
+
var BoxStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'hideLoaderOverlay'; } })(function (_a) {
|
|
6
17
|
var _b;
|
|
7
|
-
var theme = _a.theme;
|
|
18
|
+
var theme = _a.theme, hideLoaderOverlay = _a.hideLoaderOverlay;
|
|
8
19
|
return (_b = {
|
|
9
20
|
width: '100%',
|
|
10
21
|
height: '100%'
|
|
@@ -15,10 +26,11 @@ var BoxStyled = styled(Box)(function (_a) {
|
|
|
15
26
|
_b.display = 'flex',
|
|
16
27
|
_b.justifyContent = 'center',
|
|
17
28
|
_b.alignItems = 'center',
|
|
18
|
-
_b.backgroundColor = 'rgba(0,0,0,0.5)',
|
|
29
|
+
_b.backgroundColor = hideLoaderOverlay ? 'inherit' : 'rgba(0,0,0,0.5)',
|
|
19
30
|
_b.zIndex = 2,
|
|
20
31
|
_b);
|
|
21
32
|
});
|
|
22
|
-
export default function FlowLoading() {
|
|
23
|
-
|
|
33
|
+
export default function FlowLoading(_a) {
|
|
34
|
+
var hideLoaderOverlay = _a.hideLoaderOverlay, color = _a.color;
|
|
35
|
+
return (_jsx(BoxStyled, __assign({ hideLoaderOverlay: hideLoaderOverlay }, { children: _jsx(Loader, { style: { width: 60, height: 60 }, svgStyle: { width: 60, height: 60 }, innerColor: color !== null && color !== void 0 ? color : 'white', outerColor: color !== null && color !== void 0 ? color : 'white', toggleAnimation: true }) })));
|
|
24
36
|
}
|
package/build/constants/app.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
9
9
|
languageMode: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const SCOPE_AUTH = "auth";
|
|
12
|
-
export declare const ACCOUNT_NOT_AVAILABLE = "account_not_available";
|
|
13
12
|
export declare const EXTERNAL_LINKS: {
|
|
14
13
|
TOS_EN: string;
|
|
15
14
|
TOS_AR: string;
|
package/build/constants/app.js
CHANGED
|
@@ -9,7 +9,6 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
9
9
|
languageMode: 'languageMode'
|
|
10
10
|
};
|
|
11
11
|
export var SCOPE_AUTH = 'auth';
|
|
12
|
-
export var ACCOUNT_NOT_AVAILABLE = 'account_not_available';
|
|
13
12
|
export var EXTERNAL_LINKS = {
|
|
14
13
|
TOS_EN: '/en/terms-conditions',
|
|
15
14
|
TOS_AR: '/ar/terms-conditions',
|
|
@@ -229,16 +228,28 @@ export var AUTH_SCREENS_NAVIGATION = [
|
|
|
229
228
|
},
|
|
230
229
|
{
|
|
231
230
|
name: 'AUTH_OTP_STEP',
|
|
232
|
-
next: '
|
|
231
|
+
next: 'AUTH_PREPARING_DATA_STEP',
|
|
233
232
|
prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP'],
|
|
234
233
|
order: 2
|
|
235
234
|
},
|
|
236
235
|
{
|
|
237
236
|
name: 'AUTH_VERIFY_PACI_STEP',
|
|
238
|
-
next: '
|
|
237
|
+
next: 'AUTH_PREPARING_DATA_STEP',
|
|
239
238
|
prev: 'AUTH_CIVIL_ID_STEP',
|
|
240
239
|
order: 2
|
|
241
240
|
},
|
|
241
|
+
{
|
|
242
|
+
name: 'AUTH_PREPARING_DATA_STEP',
|
|
243
|
+
next: ['AUTH_AUTHENTICATION_LIST_STEP', 'AUTH_ACCOUNT_NOT_FOUND_STEP'],
|
|
244
|
+
prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP', 'AUTH_CIVIL_ID_STEP'],
|
|
245
|
+
order: 3
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'AUTH_ACCOUNT_NOT_FOUND_STEP',
|
|
249
|
+
next: '',
|
|
250
|
+
prev: ['AUTH_NID_STEP', 'AUTH_MOBILE_STEP'],
|
|
251
|
+
order: 3
|
|
252
|
+
},
|
|
242
253
|
{
|
|
243
254
|
name: 'AUTH_AUTHENTICATION_LIST_STEP',
|
|
244
255
|
next: '',
|
|
@@ -103,5 +103,6 @@ export var ICONS_NAMES = {
|
|
|
103
103
|
brand_filled_icon: 'https://dash.b-cdn.net/icons/menu/brand-icon.svg',
|
|
104
104
|
Arrow_filled_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-blue.svg',
|
|
105
105
|
Arrow_green_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-green.svg',
|
|
106
|
-
Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg'
|
|
106
|
+
Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg',
|
|
107
|
+
account_not_found: 'https://tap-connecet.b-cdn.net/imgs/account_not_found.svg'
|
|
107
108
|
};
|
|
@@ -13,11 +13,7 @@ export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
13
13
|
response: any;
|
|
14
14
|
formData: MobileFormValues;
|
|
15
15
|
}, MobileFormValues, {}>;
|
|
16
|
-
export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<{
|
|
17
|
-
data: any;
|
|
18
|
-
brandList: any;
|
|
19
|
-
entityList: any;
|
|
20
|
-
}, OTPFormValues, {}>;
|
|
16
|
+
export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
21
17
|
export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
22
18
|
response: any;
|
|
23
19
|
formData: NIDFormValues;
|
|
@@ -26,11 +22,7 @@ export declare const resendNIDAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
26
22
|
response: any;
|
|
27
23
|
formData: NIDFormValues;
|
|
28
24
|
}, NIDFormValues, {}>;
|
|
29
|
-
export declare const verifyNIDOtp: import("@reduxjs/toolkit").AsyncThunk<{
|
|
30
|
-
data: any;
|
|
31
|
-
brandList: any;
|
|
32
|
-
entityList: any;
|
|
33
|
-
}, OTPFormValues, {}>;
|
|
25
|
+
export declare const verifyNIDOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
34
26
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
35
27
|
response: any;
|
|
36
28
|
formData: CivilFormValues;
|
|
@@ -38,15 +30,16 @@ export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
38
30
|
interface verifyPACIParams {
|
|
39
31
|
onSuccess: () => void;
|
|
40
32
|
}
|
|
41
|
-
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
42
|
-
|
|
33
|
+
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIParams, {}>;
|
|
34
|
+
export declare const checkAccountAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
43
35
|
brandList: any;
|
|
44
36
|
entityList: any;
|
|
45
|
-
},
|
|
37
|
+
}, void, {}>;
|
|
46
38
|
export declare const getMerchantList: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
47
39
|
export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<void, AuthenticationListFormValues & {
|
|
48
40
|
authId?: string | undefined;
|
|
49
41
|
}, {}>;
|
|
42
|
+
export declare const onSignUp: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
50
43
|
interface ResponseData {
|
|
51
44
|
responseData?: Record<string, any>;
|
|
52
45
|
}
|