@tap-payments/auth-jsconnect 2.10.0-beta → 2.10.0-sandbox
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 +7 -1
- package/build/@types/app.js +7 -0
- package/build/@types/form.d.ts +3 -0
- package/build/api/account.d.ts +1 -0
- package/build/api/account.js +7 -0
- package/build/api/auth.d.ts +1 -0
- package/build/api/index.d.ts +1 -0
- package/build/app/settings.d.ts +1 -0
- package/build/app/settings.js +9 -4
- package/build/assets/currencies/SARSymbol.d.ts +7 -0
- package/build/assets/currencies/SARSymbol.js +28 -0
- package/build/assets/currencies/index.d.ts +2 -0
- package/build/assets/currencies/index.js +2 -0
- package/build/assets/currencies/utils.d.ts +4 -0
- package/build/assets/currencies/utils.js +4 -0
- package/build/assets/locales/ar.json +10 -1
- package/build/assets/locales/en.json +36 -1
- package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
- package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
- package/build/components/TextWithCurrency/index.d.ts +2 -0
- package/build/components/TextWithCurrency/index.js +2 -0
- package/build/constants/api.d.ts +1 -1
- package/build/constants/api.js +2 -2
- package/build/constants/app.d.ts +3 -1
- package/build/constants/app.js +42 -13
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/assets.js +9 -2
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +24 -5
- package/build/features/app/auth/authStore.js +186 -89
- package/build/features/app/business/businessStore.js +53 -29
- package/build/features/app/connect/connectStore.js +47 -35
- package/build/features/app/connectExpress/connectExpressStore.d.ts +14 -3
- package/build/features/app/connectExpress/connectExpressStore.js +301 -109
- package/build/features/app/individual/individualStore.js +0 -1
- package/build/features/app/kyc/kycStore.js +49 -25
- package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
- package/build/features/auth/screens/OTP/OTP.js +15 -3
- package/build/features/auth/screens/OTP/index.d.ts +1 -2
- package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
- package/build/features/auth/screens/Passcode/Passcode.js +82 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
- package/build/features/auth/screens/Passcode/index.d.ts +2 -0
- package/build/features/auth/screens/Passcode/index.js +2 -0
- package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
- package/build/features/auth/screens/Passcode/validation.js +4 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
- package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +4 -6
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +4 -6
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +4 -6
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
- package/build/features/kyc/screens/Terms/Terms.js +8 -2
- package/build/features/kyc/screens/Users/Users.js +1 -1
- package/build/features/shared/Background/LogoBackground.js +5 -17
- package/build/features/shared/Button/Button.js +1 -2
- package/build/features/shared/Button/FlowsButtons.js +2 -1
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/hooks/useAppConfig.js +1 -1
- package/build/utils/common.d.ts +1 -1
- package/build/utils/common.js +6 -4
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/string.d.ts +1 -1
- package/package.json +3 -4
package/build/@types/app.d.ts
CHANGED
|
@@ -351,12 +351,18 @@ export declare enum AuthForType {
|
|
|
351
351
|
NATIONAL_ID = "national_id",
|
|
352
352
|
NATIONAL_ID_MISSED = "national_id_missed"
|
|
353
353
|
}
|
|
354
|
+
export declare enum AuthForScreen {
|
|
355
|
+
INDIVIDUAL = "individual",
|
|
356
|
+
DOB = "dob",
|
|
357
|
+
MOBILE_OWNERSHIP = "mobile_ownership"
|
|
358
|
+
}
|
|
354
359
|
export declare enum AuthTypeNumber {
|
|
355
360
|
EMAIL_OTP = 5,
|
|
356
361
|
MOBILE_OTP = 2,
|
|
357
362
|
PASSWORD = 1,
|
|
358
363
|
MIGRATION = 10,
|
|
359
|
-
RESET_PASSWORD = 7
|
|
364
|
+
RESET_PASSWORD = 7,
|
|
365
|
+
PASSCODE = 11
|
|
360
366
|
}
|
|
361
367
|
export declare enum MigrationStatus {
|
|
362
368
|
IN_PROGRESS = "IN_PROGRESS",
|
package/build/@types/app.js
CHANGED
|
@@ -43,6 +43,12 @@ export var AuthForType;
|
|
|
43
43
|
AuthForType["NATIONAL_ID"] = "national_id";
|
|
44
44
|
AuthForType["NATIONAL_ID_MISSED"] = "national_id_missed";
|
|
45
45
|
})(AuthForType || (AuthForType = {}));
|
|
46
|
+
export var AuthForScreen;
|
|
47
|
+
(function (AuthForScreen) {
|
|
48
|
+
AuthForScreen["INDIVIDUAL"] = "individual";
|
|
49
|
+
AuthForScreen["DOB"] = "dob";
|
|
50
|
+
AuthForScreen["MOBILE_OWNERSHIP"] = "mobile_ownership";
|
|
51
|
+
})(AuthForScreen || (AuthForScreen = {}));
|
|
46
52
|
export var AuthTypeNumber;
|
|
47
53
|
(function (AuthTypeNumber) {
|
|
48
54
|
AuthTypeNumber[AuthTypeNumber["EMAIL_OTP"] = 5] = "EMAIL_OTP";
|
|
@@ -50,6 +56,7 @@ export var AuthTypeNumber;
|
|
|
50
56
|
AuthTypeNumber[AuthTypeNumber["PASSWORD"] = 1] = "PASSWORD";
|
|
51
57
|
AuthTypeNumber[AuthTypeNumber["MIGRATION"] = 10] = "MIGRATION";
|
|
52
58
|
AuthTypeNumber[AuthTypeNumber["RESET_PASSWORD"] = 7] = "RESET_PASSWORD";
|
|
59
|
+
AuthTypeNumber[AuthTypeNumber["PASSCODE"] = 11] = "PASSCODE";
|
|
53
60
|
})(AuthTypeNumber || (AuthTypeNumber = {}));
|
|
54
61
|
export var MigrationStatus;
|
|
55
62
|
(function (MigrationStatus) {
|
package/build/@types/form.d.ts
CHANGED
package/build/api/account.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const accountService: {
|
|
|
20
20
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
21
21
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
22
22
|
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
23
|
+
checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
|
|
23
24
|
checkMigrationStatus: (jobId: string) => Promise<any>;
|
|
24
25
|
};
|
|
25
26
|
export { accountService };
|
package/build/api/account.js
CHANGED
|
@@ -20,6 +20,12 @@ var checkAccountAvailability = function (individualId) {
|
|
|
20
20
|
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
+
var checkAccountAvailabilityStatus = function (individualId) {
|
|
24
|
+
return httpClient({
|
|
25
|
+
method: 'get',
|
|
26
|
+
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status")
|
|
27
|
+
});
|
|
28
|
+
};
|
|
23
29
|
var checkMigrationStatus = function (jobId) {
|
|
24
30
|
return httpClient({
|
|
25
31
|
method: 'get',
|
|
@@ -30,6 +36,7 @@ var accountService = {
|
|
|
30
36
|
createAccount: createAccount,
|
|
31
37
|
expressCreateAccount: expressCreateAccount,
|
|
32
38
|
checkAccountAvailability: checkAccountAvailability,
|
|
39
|
+
checkAccountAvailabilityStatus: checkAccountAvailabilityStatus,
|
|
33
40
|
checkMigrationStatus: checkMigrationStatus
|
|
34
41
|
};
|
|
35
42
|
export { accountService };
|
package/build/api/auth.d.ts
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ declare const API: {
|
|
|
91
91
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
92
92
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
93
93
|
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
94
|
+
checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
|
|
94
95
|
checkMigrationStatus: (jobId: string) => Promise<any>;
|
|
95
96
|
};
|
|
96
97
|
dataService: {
|
package/build/app/settings.d.ts
CHANGED
package/build/app/settings.js
CHANGED
|
@@ -56,7 +56,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
|
|
59
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage, sleep } from '../utils';
|
|
60
60
|
import { BUSINESS_COUNTRIES, DEFAULT_COUNTRY_ISO2, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
61
61
|
import i18n from '../i18n';
|
|
62
62
|
import { updateLocale } from '../utils/locale';
|
|
@@ -112,7 +112,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
112
112
|
thunkApi.dispatch(handleLanguage(lang));
|
|
113
113
|
if (configInfo.publicKey) {
|
|
114
114
|
if (configToken) {
|
|
115
|
-
setBaseUrl(configInfo.publicKey);
|
|
115
|
+
setBaseUrl(configInfo.publicKey, appConfig.businessCountryCode);
|
|
116
116
|
}
|
|
117
117
|
thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
|
|
118
118
|
}
|
|
@@ -179,7 +179,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
179
179
|
});
|
|
180
180
|
}); });
|
|
181
181
|
export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
182
|
-
var settings, _a, appConfig, authId, postURL, redirectUrl, bi, merchantId, brandId, entityId, body, data, urlQueryStart, newUrl;
|
|
182
|
+
var settings, _a, appConfig, authId, postURL, redirectUrl, bi, merchantId, brandId, entityId, nextScreen, body, data, urlQueryStart, newUrl;
|
|
183
183
|
var _b, _c;
|
|
184
184
|
return __generator(this, function (_d) {
|
|
185
185
|
switch (_d.label) {
|
|
@@ -188,7 +188,7 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
|
|
|
188
188
|
_a = settings.data, appConfig = _a.appConfig, authId = _a.authId;
|
|
189
189
|
postURL = appConfig.postURL, redirectUrl = appConfig.redirectUrl;
|
|
190
190
|
bi = settings.data.deviceInfo.browser.browser_id;
|
|
191
|
-
merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId;
|
|
191
|
+
merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId, nextScreen = params.nextScreen;
|
|
192
192
|
if (!authId) return [3, 2];
|
|
193
193
|
body = {
|
|
194
194
|
post_url: postURL || '',
|
|
@@ -203,6 +203,10 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
|
|
|
203
203
|
case 1:
|
|
204
204
|
data = _d.sent();
|
|
205
205
|
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, data);
|
|
206
|
+
if (nextScreen) {
|
|
207
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen(nextScreen)); });
|
|
208
|
+
return [2];
|
|
209
|
+
}
|
|
206
210
|
if (settings.data.appConfig.mode === 'popup') {
|
|
207
211
|
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
208
212
|
thunkApi.dispatch(handleOpen(false));
|
|
@@ -358,6 +362,7 @@ export var settingsSlice = createSlice({
|
|
|
358
362
|
if (state.data.locale && country.iso2)
|
|
359
363
|
updateLocale(state.data.locale, country.iso2);
|
|
360
364
|
state.data.businessCountry = country;
|
|
365
|
+
setBaseUrl(state.data.appConfig.publicKey, country.iso2);
|
|
361
366
|
}
|
|
362
367
|
}
|
|
363
368
|
},
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
var SARSymbol = function (_a) {
|
|
25
|
+
var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
|
|
26
|
+
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 1124.14 1256.39' }, svgProps, { children: _jsx("path", { d: 'M699.62 1113.02a460.24 460.24 0 0 0-38.4 143.37l424.51-90.24a460.44 460.44 0 0 0 38.4-143.37l-424.51 90.24zM1085.73 895.8a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.33v-135.2l292.27-62.11a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.27V66.13a466.56 466.56 0 0 0-132.25 110.99v403.35l-132.25 28.11V0A466.4 466.4 0 0 0 396.7 110.99v525.69l-295.92 62.88a460.46 460.46 0 0 0-38.42 143.37l334.33-71.05v170.26l-358.3 76.14a460.16 460.16 0 0 0-38.4 143.37l375.03-79.7a119.13 119.13 0 0 0 73.83-49.24l68.78-101.97v-.02a65.72 65.72 0 0 0 11.3-36.97V743.77l132.25-28.11v270.4l424.53-90.28z' }) })) })));
|
|
27
|
+
};
|
|
28
|
+
export default SARSymbol;
|
|
@@ -136,12 +136,14 @@
|
|
|
136
136
|
"cancel": "إلغاء",
|
|
137
137
|
"capital_paid_hint": "00000",
|
|
138
138
|
"capital_paid_label": "رأس المال المدفوع ({{currency}})",
|
|
139
|
+
"capital_paid_input_label": "رأس المال المدفوع",
|
|
139
140
|
"capital_paid_required": "Please Enter paid amount",
|
|
140
141
|
"capital_share_count_hint": "00000",
|
|
141
142
|
"capital_share_count_label": "عدد اسهم رأس المال",
|
|
142
143
|
"capital_share_count_required": "Please Enter share count",
|
|
143
144
|
"capital_share_value_hint": "00000",
|
|
144
145
|
"capital_share_value_label": "قيمة السهم ({{currency}})",
|
|
146
|
+
"capital_share_value_input_label": "قيمة السهم",
|
|
145
147
|
"capital_share_value_required": "Please Enter share value",
|
|
146
148
|
"category": "الفئة",
|
|
147
149
|
"category_name": "اسم الفئة",
|
|
@@ -280,6 +282,7 @@
|
|
|
280
282
|
"entity_type_required": "Please select at least one entity type",
|
|
281
283
|
"expected_customers_to_serve": "عدد العملاء شهريا",
|
|
282
284
|
"expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
|
|
285
|
+
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
283
286
|
"expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
|
|
284
287
|
"expected_served_monthly": "عدد العملاء شهريا",
|
|
285
288
|
"expiry_date": "تاريخ الإنتهاء",
|
|
@@ -483,6 +486,7 @@
|
|
|
483
486
|
"please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
|
|
484
487
|
"please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
|
|
485
488
|
"please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
|
|
489
|
+
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
486
490
|
"please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
|
|
487
491
|
"please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
|
|
488
492
|
"powered_by": "بواسطة",
|
|
@@ -523,6 +527,7 @@
|
|
|
523
527
|
"share_count_label": "عدد الأسهم",
|
|
524
528
|
"share_value_hint": "0000",
|
|
525
529
|
"share_value_label": "قيمة السهم ({{currency}})",
|
|
530
|
+
"share_value_input_label": "قيمة السهم",
|
|
526
531
|
"sign_up": "Sign up",
|
|
527
532
|
"signed_up": "تسجيل الدخول",
|
|
528
533
|
"signin_email_label": "البريد الألكتروني",
|
|
@@ -638,5 +643,9 @@
|
|
|
638
643
|
"current_mobile_number": "رقم الجوال الحالي",
|
|
639
644
|
"new_mobile_number": "رقم الجوال الجديد",
|
|
640
645
|
"update_mobile_number": "تحديث رقم الجوال",
|
|
641
|
-
"update_later": "سأقوم بالتحديث لاحقاً"
|
|
646
|
+
"update_later": "سأقوم بالتحديث لاحقاً",
|
|
647
|
+
"passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
|
|
648
|
+
"sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
|
|
649
|
+
"passcode_required": "الرجاء إدخال رمز المرور المطلوب",
|
|
650
|
+
"login_with_passcode": "تسجيل الدخول باستخدام رمز المرور"
|
|
642
651
|
}
|
|
@@ -135,12 +135,14 @@
|
|
|
135
135
|
"cancel": "Cancel",
|
|
136
136
|
"capital_paid_hint": "00000",
|
|
137
137
|
"capital_paid_label": "Capital Paid ({{currency}})",
|
|
138
|
+
"capital_paid_input_label": "Capital Paid",
|
|
138
139
|
"capital_paid_required": "Please Enter paid amount",
|
|
139
140
|
"capital_share_count_hint": "00000",
|
|
140
141
|
"capital_share_count_label": "Capital Share Count",
|
|
141
142
|
"capital_share_count_required": "Please Enter share count",
|
|
142
143
|
"capital_share_value_hint": "00000",
|
|
143
144
|
"capital_share_value_label": "Capital Share Value ({{currency}})",
|
|
145
|
+
"capital_share_value_input_label": "Capital Share Value",
|
|
144
146
|
"capital_share_value_required": "Please Enter share value",
|
|
145
147
|
"category": "Category",
|
|
146
148
|
"category_name": "Category name",
|
|
@@ -288,6 +290,7 @@
|
|
|
288
290
|
"entity_type_required": "Please select at least one entity type",
|
|
289
291
|
"expected_customers_to_serve": "Customers server per month",
|
|
290
292
|
"expected_sales_monthly": "Expected sale per month? ({{currency}})",
|
|
293
|
+
"expected_sale_per_month": "Expected sale per month?",
|
|
291
294
|
"expected_sales_yearly": "What is the expected sales for your business per month?",
|
|
292
295
|
"expected_served_monthly": "Customers server per month",
|
|
293
296
|
"expiry_date": "Date of expiry",
|
|
@@ -499,6 +502,7 @@
|
|
|
499
502
|
"please_choose_is_authorized": "Please tell us if you are the authorized user",
|
|
500
503
|
"please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
|
|
501
504
|
"please_enter_actual_income": "Monthly income ({{currency}})",
|
|
505
|
+
"monthly_income": "Monthly income",
|
|
502
506
|
"please_enter_employer_name": "Please enter the name of your employer",
|
|
503
507
|
"please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
|
|
504
508
|
"powered_by": "Powered by",
|
|
@@ -545,6 +549,7 @@
|
|
|
545
549
|
"share_count_label": "Share Count",
|
|
546
550
|
"share_value_hint": "0000",
|
|
547
551
|
"share_value_label": "Share Value ({{currency}})",
|
|
552
|
+
"share_value_input_label": "Share Value",
|
|
548
553
|
"sign_up": "Sign up",
|
|
549
554
|
"signed_up": "Signed up",
|
|
550
555
|
"signin_email_label": "Email address",
|
|
@@ -665,5 +670,35 @@
|
|
|
665
670
|
"current_mobile_number": "Current mobile number",
|
|
666
671
|
"new_mobile_number": "New mobile number",
|
|
667
672
|
"update_mobile_number": "Update mobile number",
|
|
668
|
-
"update_later": "I'll update later"
|
|
673
|
+
"update_later": "I'll update later",
|
|
674
|
+
"terminal_manage_terminals": "Manage Terminals",
|
|
675
|
+
"terminal_link_terminal": "Link Terminal",
|
|
676
|
+
"terminal_linked": "Linked",
|
|
677
|
+
"terminal_link": "Link",
|
|
678
|
+
"terminal_unlinked": "Unlinked",
|
|
679
|
+
"terminal_paired_with": "Paired with",
|
|
680
|
+
"terminal_device_id": "Device ID",
|
|
681
|
+
"terminal_serial_number": "Serial no",
|
|
682
|
+
"terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
|
|
683
|
+
"terminal_or_use_code": "or use code",
|
|
684
|
+
"terminal_unlink": "Unlink",
|
|
685
|
+
"terminal_linked_with": "Linked with",
|
|
686
|
+
"terminal_send_link_request": "Send linking request",
|
|
687
|
+
"terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
|
|
688
|
+
"terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
|
|
689
|
+
"terminal_resend_request": "Resend Request",
|
|
690
|
+
"terminal_with": "with",
|
|
691
|
+
"terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
|
|
692
|
+
"terminal_go_to_board": "Go to Board",
|
|
693
|
+
"terminal_linked_success": "Your terminal {{device}} is linked successfully",
|
|
694
|
+
"terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
|
|
695
|
+
"terminal_no_terminal_linked": "No Terminal Linked",
|
|
696
|
+
"terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
|
|
697
|
+
"terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
|
|
698
|
+
"terminal_id": "Terminal ID",
|
|
699
|
+
"terminal_devices": "{{name}} Devices",
|
|
700
|
+
"passcode_title": "Please enter your passcode",
|
|
701
|
+
"sign_in_with_otp": "Sign in with OTP",
|
|
702
|
+
"passcode_required": "Please enter the required Passcode",
|
|
703
|
+
"login_with_passcode": "Login with Passcode"
|
|
669
704
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getCurrencyByCountryIso2 } from '../../utils';
|
|
3
|
+
import { CURRENCY_ICON } from '../../assets/currencies/utils';
|
|
4
|
+
var TextWithCurrency = function (_a) {
|
|
5
|
+
var text = _a.text, countryCode = _a.countryCode;
|
|
6
|
+
if (!countryCode)
|
|
7
|
+
return _jsx(_Fragment, { children: text });
|
|
8
|
+
var currencyCode = getCurrencyByCountryIso2(countryCode);
|
|
9
|
+
var CurrencyIcon = CURRENCY_ICON[countryCode];
|
|
10
|
+
if (CurrencyIcon)
|
|
11
|
+
return (_jsxs("span", { children: [text, " (", _jsx(CurrencyIcon, {}), ")"] }));
|
|
12
|
+
return (_jsxs("span", { children: [text, currencyCode ? " (".concat(currencyCode, ")") : ''] }));
|
|
13
|
+
};
|
|
14
|
+
export default TextWithCurrency;
|
package/build/constants/api.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare const ENDPOINT_PATHS: {
|
|
|
11
11
|
MIGRATION_STATUS: string;
|
|
12
12
|
SANDBOX_BASE_URL: string;
|
|
13
13
|
PRODUCTION_BASE_URL: string;
|
|
14
|
+
PRODUCTION_BASE_URL_SA: string;
|
|
14
15
|
DEV_BASE_URL: string;
|
|
15
|
-
BETA_BASE_URL: string;
|
|
16
16
|
BUSINESS_COUNTRIES: string;
|
|
17
17
|
COUNTRIES: string;
|
|
18
18
|
IP: string;
|
package/build/constants/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
|
|
2
2
|
var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
3
|
+
var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
|
|
3
4
|
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
4
|
-
var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
|
|
5
5
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
6
6
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
7
7
|
var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
|
|
@@ -69,8 +69,8 @@ export var ENDPOINT_PATHS = {
|
|
|
69
69
|
MIGRATION_STATUS: MIGRATION_STATUS,
|
|
70
70
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
71
71
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
72
|
+
PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
|
|
72
73
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
73
|
-
BETA_BASE_URL: BETA_BASE_URL,
|
|
74
74
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
75
75
|
COUNTRIES: API_COUNTRIES,
|
|
76
76
|
IP: IP_PATH,
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScreenStepNavigation, BusinessType } from '../@types';
|
|
2
2
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
3
|
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
|
|
4
|
-
export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
|
|
5
4
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
6
5
|
export declare const CLIENT_ORIGIN: string;
|
|
7
6
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
|
@@ -11,6 +10,7 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
11
10
|
languageMode: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const SCOPE_AUTH = "auth";
|
|
13
|
+
export declare const SCOPE_MERCHANT = "merchant";
|
|
14
14
|
export declare const DEFAULT_COUNTRY_ISO2 = "KW";
|
|
15
15
|
export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
|
|
16
16
|
export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
|
|
@@ -120,6 +120,7 @@ export declare const AUTH_STEP_NAMES: {
|
|
|
120
120
|
CREATE_AUTH_NID: string;
|
|
121
121
|
VERIFY_AUTH_NID: string;
|
|
122
122
|
UPDATE_DOB_INFO: string;
|
|
123
|
+
CREATE_AUTH_PASSCODE: string;
|
|
123
124
|
};
|
|
124
125
|
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
125
126
|
CREATE_AUTH_MOBILE: string;
|
|
@@ -139,6 +140,7 @@ export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
|
139
140
|
CONNECT_EXPRESS_SUCCESS: string;
|
|
140
141
|
COLLECT_MOBILE_OWNERSHIP: string;
|
|
141
142
|
COLLECT_MOBILE_OWNERSHIP_SKIPPED: string;
|
|
143
|
+
VERIFY_AUTH_MOBILE_OTP: string;
|
|
142
144
|
};
|
|
143
145
|
export declare const SignIn_STEP_NAMES: {
|
|
144
146
|
CREATE_AUTH_MOBILE: string;
|
package/build/constants/app.js
CHANGED
|
@@ -2,7 +2,6 @@ import { BusinessType } from '../@types';
|
|
|
2
2
|
import { CONNECT_FLOWS } from './flows';
|
|
3
3
|
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
|
|
4
4
|
export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
|
|
5
|
-
export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
|
|
6
5
|
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
7
6
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
8
7
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
@@ -12,6 +11,7 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
12
11
|
languageMode: 'languageMode'
|
|
13
12
|
};
|
|
14
13
|
export var SCOPE_AUTH = 'auth';
|
|
14
|
+
export var SCOPE_MERCHANT = 'merchant';
|
|
15
15
|
export var DEFAULT_COUNTRY_ISO2 = 'KW';
|
|
16
16
|
export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
|
|
17
17
|
export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
|
|
@@ -230,13 +230,22 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
name: 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
233
|
-
next: [
|
|
233
|
+
next: [
|
|
234
|
+
'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
235
|
+
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
236
|
+
'CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP'
|
|
237
|
+
],
|
|
234
238
|
prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_NID_MISSED_STEP'],
|
|
235
239
|
order: 5
|
|
236
240
|
},
|
|
237
241
|
{
|
|
238
242
|
name: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
239
|
-
next: [
|
|
243
|
+
next: [
|
|
244
|
+
'CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP',
|
|
245
|
+
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
246
|
+
'COLLECT_MOBILE_OWNERSHIP',
|
|
247
|
+
'CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP'
|
|
248
|
+
],
|
|
240
249
|
prev: [
|
|
241
250
|
'CONNECT_EXPRESS_MOBILE_STEP',
|
|
242
251
|
'CONNECT_EXPRESS_NID_STEP',
|
|
@@ -253,7 +262,8 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
253
262
|
'CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP',
|
|
254
263
|
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
255
264
|
'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
256
|
-
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP'
|
|
265
|
+
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
266
|
+
'CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP'
|
|
257
267
|
],
|
|
258
268
|
prev: ['CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP', 'CONNECT_EXPRESS_NID_MISSED_STEP'],
|
|
259
269
|
order: 6
|
|
@@ -264,29 +274,40 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
264
274
|
prev: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
265
275
|
order: 6
|
|
266
276
|
},
|
|
277
|
+
{
|
|
278
|
+
name: 'CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP',
|
|
279
|
+
next: [
|
|
280
|
+
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
281
|
+
'COLLECT_MOBILE_OWNERSHIP',
|
|
282
|
+
'CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP',
|
|
283
|
+
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'
|
|
284
|
+
],
|
|
285
|
+
prev: ['CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP', 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP', 'COLLECT_MOBILE_OWNERSHIP'],
|
|
286
|
+
order: 7
|
|
287
|
+
},
|
|
267
288
|
{
|
|
268
289
|
name: 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
269
290
|
next: 'CONNECT_EXPRESS_PREPARING_DATA_STEP',
|
|
270
291
|
prev: '',
|
|
271
|
-
order:
|
|
292
|
+
order: 8
|
|
272
293
|
},
|
|
273
294
|
{
|
|
274
295
|
name: 'CONNECT_EXPRESS_PREPARING_DATA_STEP',
|
|
275
296
|
next: 'CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP',
|
|
276
297
|
prev: '',
|
|
277
|
-
order:
|
|
298
|
+
order: 9
|
|
278
299
|
},
|
|
279
300
|
{
|
|
280
301
|
name: 'CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP',
|
|
281
302
|
next: '',
|
|
282
303
|
prev: '',
|
|
283
|
-
order:
|
|
304
|
+
order: 10
|
|
284
305
|
},
|
|
285
306
|
{
|
|
286
307
|
name: 'CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP',
|
|
287
308
|
next: '',
|
|
288
309
|
prev: '',
|
|
289
|
-
order:
|
|
310
|
+
order: 11
|
|
290
311
|
}
|
|
291
312
|
];
|
|
292
313
|
export var AUTH_SCREENS_NAVIGATION = [
|
|
@@ -310,13 +331,13 @@ export var AUTH_SCREENS_NAVIGATION = [
|
|
|
310
331
|
},
|
|
311
332
|
{
|
|
312
333
|
name: 'AUTH_MOBILE_STEP',
|
|
313
|
-
next: 'AUTH_OTP_STEP',
|
|
334
|
+
next: ['AUTH_OTP_STEP', 'AUTH_PASSCODE_STEP'],
|
|
314
335
|
prev: 'AUTH_SWITCH_STEP',
|
|
315
336
|
order: 1
|
|
316
337
|
},
|
|
317
338
|
{
|
|
318
339
|
name: 'AUTH_EMAIL_STEP',
|
|
319
|
-
next: ['AUTH_PASSWORD_STEP', 'AUTH_RESET_PASSWORD_MESSAGE_STEP', 'AUTH_OTP_STEP'],
|
|
340
|
+
next: ['AUTH_PASSWORD_STEP', 'AUTH_RESET_PASSWORD_MESSAGE_STEP', 'AUTH_OTP_STEP', 'AUTH_PASSCODE_STEP'],
|
|
320
341
|
prev: 'AUTH_SWITCH_STEP',
|
|
321
342
|
order: 1
|
|
322
343
|
},
|
|
@@ -334,10 +355,16 @@ export var AUTH_SCREENS_NAVIGATION = [
|
|
|
334
355
|
},
|
|
335
356
|
{
|
|
336
357
|
name: 'AUTH_OTP_STEP',
|
|
337
|
-
next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_EMAIL_SENT_STEP', 'AUTH_MIGRATING_DATA_STEP'],
|
|
358
|
+
next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_EMAIL_SENT_STEP', 'AUTH_MIGRATING_DATA_STEP', 'AUTH_PASSCODE_STEP'],
|
|
338
359
|
prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP', 'AUTH_EMAIL_STEP', 'AUTH_PASSWORD_STEP'],
|
|
339
360
|
order: 2
|
|
340
361
|
},
|
|
362
|
+
{
|
|
363
|
+
name: 'AUTH_PASSCODE_STEP',
|
|
364
|
+
next: ['AUTH_OTP_STEP', 'AUTH_PREPARING_DATA_STEP', 'AUTH_MIGRATING_DATA_STEP'],
|
|
365
|
+
prev: ['AUTH_MOBILE_STEP', 'AUTH_EMAIL_STEP'],
|
|
366
|
+
order: 2
|
|
367
|
+
},
|
|
341
368
|
{
|
|
342
369
|
name: 'AUTH_NAFATH_VERIFY_STEP',
|
|
343
370
|
next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_DOB_STEP'],
|
|
@@ -1021,7 +1048,8 @@ export var AUTH_STEP_NAMES = {
|
|
|
1021
1048
|
VERIFY_AUTH_EMAIL: 'auth_verify_auth_email',
|
|
1022
1049
|
CREATE_AUTH_NID: 'auth_create_auth_nid',
|
|
1023
1050
|
VERIFY_AUTH_NID: 'auth_verify_auth_nid',
|
|
1024
|
-
UPDATE_DOB_INFO: 'auth_update_dob_info'
|
|
1051
|
+
UPDATE_DOB_INFO: 'auth_update_dob_info',
|
|
1052
|
+
CREATE_AUTH_PASSCODE: 'auth_create_auth_passcode'
|
|
1025
1053
|
};
|
|
1026
1054
|
export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
1027
1055
|
CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
|
|
@@ -1040,7 +1068,8 @@ export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
|
1040
1068
|
VERIFY_AUTH_PASSWORD: 'connect_express_verify_auth_password',
|
|
1041
1069
|
CONNECT_EXPRESS_SUCCESS: 'connect_express_completed',
|
|
1042
1070
|
COLLECT_MOBILE_OWNERSHIP: 'collect_owner_phone',
|
|
1043
|
-
COLLECT_MOBILE_OWNERSHIP_SKIPPED: 'collect_owner_phone_skipped'
|
|
1071
|
+
COLLECT_MOBILE_OWNERSHIP_SKIPPED: 'collect_owner_phone_skipped',
|
|
1072
|
+
VERIFY_AUTH_MOBILE_OTP: 'connect_express_auth_mobile'
|
|
1044
1073
|
};
|
|
1045
1074
|
export var SignIn_STEP_NAMES = {
|
|
1046
1075
|
CREATE_AUTH_MOBILE: 'signIn_create_auth_mobile',
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare const ICONS_BASE_URL = "https://dash.b-cdn.net";
|
|
2
2
|
export declare const ICONS_PATH = "/icons/menu";
|
|
3
|
+
export declare const ASSETS_BASE_URL = "https://tap-assets.b-cdn.net";
|
|
4
|
+
export declare const ASSETS_PATH = "/icons/connect";
|
|
3
5
|
export declare const ICONS_EXTENSION = ".svg";
|
|
4
6
|
export declare const ICONS_FULL_PATH: string;
|
|
7
|
+
export declare const ASSETS_FULL_PATH: string;
|
|
5
8
|
export declare const ICONS_NAMES: {
|
|
6
9
|
SIDE_MENU_CLOSE_ICON: string;
|
|
7
10
|
SIDE_MENU_CLOSE_ICON_DARK: string;
|
|
@@ -44,6 +47,7 @@ export declare const ICONS_NAMES: {
|
|
|
44
47
|
NAFATH_LOGO: string;
|
|
45
48
|
NAFATH_VERIFY_ICON: string;
|
|
46
49
|
EXPRESS_ERROR_ICON: string;
|
|
50
|
+
TAP_LOGO: string;
|
|
47
51
|
TAP_EN: string;
|
|
48
52
|
TAP_AR: string;
|
|
49
53
|
ID_IMAGE: string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { ThemeMode } from '../@types';
|
|
1
2
|
export var ICONS_BASE_URL = 'https://dash.b-cdn.net';
|
|
2
3
|
export var ICONS_PATH = '/icons/menu';
|
|
4
|
+
export var ASSETS_BASE_URL = 'https://tap-assets.b-cdn.net';
|
|
5
|
+
export var ASSETS_PATH = '/icons/connect';
|
|
3
6
|
export var ICONS_EXTENSION = '.svg';
|
|
4
7
|
export var ICONS_FULL_PATH = ICONS_BASE_URL + ICONS_PATH;
|
|
8
|
+
export var ASSETS_FULL_PATH = ASSETS_BASE_URL + ASSETS_PATH;
|
|
9
|
+
var generateAssetPath = function (name, theme) { return "".concat(ASSETS_BASE_URL).concat(ASSETS_PATH, "/").concat(theme, "/").concat(name).concat(ICONS_EXTENSION); };
|
|
10
|
+
var generateLightAssetPath = function (name) { return generateAssetPath(name, ThemeMode.LIGHT); };
|
|
5
11
|
export var ICONS_NAMES = {
|
|
6
12
|
SIDE_MENU_CLOSE_ICON: ICONS_FULL_PATH + '/side-menu-close' + ICONS_EXTENSION,
|
|
7
13
|
SIDE_MENU_CLOSE_ICON_DARK: ICONS_FULL_PATH + '/side-menu-close-dark' + ICONS_EXTENSION,
|
|
@@ -41,9 +47,10 @@ export var ICONS_NAMES = {
|
|
|
41
47
|
TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' + ICONS_EXTENSION,
|
|
42
48
|
TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' + ICONS_EXTENSION,
|
|
43
49
|
PACI_VERIFY_ICON: ICONS_FULL_PATH + '/PACI_verify_icon' + '.png',
|
|
44
|
-
NAFATH_LOGO: '
|
|
45
|
-
NAFATH_VERIFY_ICON: '
|
|
50
|
+
NAFATH_LOGO: generateLightAssetPath('nafath_button_logo'),
|
|
51
|
+
NAFATH_VERIFY_ICON: generateLightAssetPath('nafath_logo'),
|
|
46
52
|
EXPRESS_ERROR_ICON: ICONS_FULL_PATH + '/EXPRESS_error_icon' + '.svg',
|
|
53
|
+
TAP_LOGO: generateLightAssetPath('tap-logo'),
|
|
47
54
|
TAP_EN: 'https://tap-connecet.b-cdn.net/imgs/tapEN' + ICONS_EXTENSION,
|
|
48
55
|
TAP_AR: 'https://tap-connecet.b-cdn.net/imgs/tapAR' + ICONS_EXTENSION,
|
|
49
56
|
ID_IMAGE: 'https://villageofwarwick.org/wp-content/uploads/2020/02/ICON99-512-1.png',
|