@tap-payments/auth-jsconnect 2.12.9 → 2.12.10-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.
Files changed (62) hide show
  1. package/README.md +29 -0
  2. package/build/@types/app.d.ts +3 -0
  3. package/build/@types/app.js +1 -0
  4. package/build/@types/config.d.ts +2 -0
  5. package/build/@types/form.d.ts +1 -0
  6. package/build/api/document.d.ts +1 -1
  7. package/build/app/settings.d.ts +2 -1
  8. package/build/app/settings.js +8 -5
  9. package/build/assets/locales/ar.json +13 -10
  10. package/build/assets/locales/en.json +8 -7
  11. package/build/components/Slide/Slide.d.ts +1 -1
  12. package/build/constants/api.d.ts +1 -3
  13. package/build/constants/api.js +6 -4
  14. package/build/constants/app.d.ts +0 -1
  15. package/build/constants/app.js +0 -1
  16. package/build/features/app/brand/brandStore.js +5 -2
  17. package/build/features/app/connectExpress/connectExpressStore.js +21 -19
  18. package/build/features/app/entity/entityStore.js +56 -35
  19. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
  20. package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
  21. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
  22. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  23. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  24. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +2 -2
  25. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  26. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  27. package/build/features/connectExpress/ConnectExpress.js +6 -5
  28. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +9 -9
  29. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
  30. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +5 -4
  31. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
  32. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +2 -2
  33. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +8 -8
  34. package/build/features/connectExpress/screens/NIDMissed/NID.js +5 -6
  35. package/build/features/connectExpress/screens/OTP/OTP.js +7 -8
  36. package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -8
  37. package/build/features/entity/screens/EntityName/EntityDocumentUpload.d.ts +12 -0
  38. package/build/features/entity/screens/EntityName/{LicenseCertificate.js → EntityDocumentUpload.js} +10 -15
  39. package/build/features/entity/screens/EntityName/EntityName.js +10 -4
  40. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
  41. package/build/features/entity/screens/EntityName/validation.d.ts +9 -0
  42. package/build/features/entity/screens/EntityName/validation.js +3 -0
  43. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
  44. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  45. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
  46. package/build/features/shared/Address/CountryList.d.ts +2 -2
  47. package/build/features/shared/Address/InputSelect.d.ts +2 -2
  48. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  49. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  50. package/build/features/shared/Input/Input.d.ts +1 -1
  51. package/build/features/terminal/screens/shared/styles.d.ts +1 -1
  52. package/build/hooks/index.d.ts +1 -0
  53. package/build/hooks/index.js +1 -0
  54. package/build/hooks/useIsEmailAuth.d.ts +1 -0
  55. package/build/hooks/useIsEmailAuth.js +11 -0
  56. package/build/utils/array.d.ts +1 -1
  57. package/build/utils/array.js +3 -2
  58. package/build/utils/common.js +4 -5
  59. package/build/utils/string.d.ts +2 -2
  60. package/build/utils/string.js +12 -1
  61. package/package.json +2 -2
  62. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
package/README.md CHANGED
@@ -202,6 +202,35 @@ const App = () => {
202
202
  | onStepError `required` - `function` | callback function will call in case if any error happened in the screen |
203
203
  | onStepCompleted `optional` - `function` | callback function will call after completing each step |
204
204
  | onStepStarted `required` - `function` | callback function will call in the beginning of each step |
205
+ | region `optional` - `string` | selects the production API (middleware) region, see [Regions](#regions) |
206
+
207
+ ## Regions
208
+
209
+ The library decides which backend (middleware) URL to call from the `publicKey` and the optional `region` prop.
210
+
211
+ - A `pk_test_*` key always uses the **development** URL. `region` is ignored.
212
+ - A `pk_live_*` key uses the production URL that matches `region`. If `region` is empty or not in the table, it falls back to the **global production** URL.
213
+
214
+ | `region` value | Meaning | Base URL |
215
+ | -------------- | ----------------------- | ----------------------------------------------- |
216
+ | _(empty)_ | Global production | `https://connect-mw.tap.company/middleware` |
217
+ | `sa` | Saudi production | `https://connect-mw.tap.com.sa/middleware` |
218
+ | `sa-dr` | Saudi disaster recovery | `https://connect-mw-tmp.tap.com.sa/middleware` |
219
+ | `sahu` | Saudi Huawei cloud | `https://connect-mw-temp.tap.com.sa/middleware` |
220
+
221
+ Notes:
222
+
223
+ - `region` is matched as a whole value and is case-insensitive (`SA` and `sa` are the same).
224
+ - Matching is exact. A value such as `sa-xyz` is **not** treated as Saudi and falls back to global production. Use one of the values above.
225
+ - To support a new region, add its URL and map it in `REGION_BASE_URLS` in `src/constants/api.ts`.
226
+
227
+ ```js
228
+ <ConnectLib
229
+ publicKey={'pk_live_xxxxxx'}
230
+ region='sahu' // Saudi Huawei cloud
231
+ ...
232
+ />
233
+ ```
205
234
 
206
235
  ## Branch Information
207
236
 
@@ -343,6 +343,8 @@ export declare enum FlowsTypes {
343
343
  kyc = "kyc",
344
344
  TERMINAL = "terminal"
345
345
  }
346
+ export declare type FlowStartType = 'phone' | 'email' | 'id';
347
+ export declare type FlowStart = Record<string, FlowStartType>;
346
348
  export declare type FlowInfo = {
347
349
  name: string;
348
350
  status: string;
@@ -420,6 +422,7 @@ export declare enum IndividualType {
420
422
  }
421
423
  export declare enum DocumentPurpose {
422
424
  CR = "commercial_registration",
425
+ COMMERCIAL_REGISTRATION_EXTRACT = "commercial_registration_extract",
423
426
  ARTICLE_ASSOCIATION = "article_of_association",
424
427
  BANK_STATEMENT = "bank_statement",
425
428
  BANK_CERTIFICATE = "bank_certificate",
@@ -92,6 +92,7 @@ export var IndividualType;
92
92
  export var DocumentPurpose;
93
93
  (function (DocumentPurpose) {
94
94
  DocumentPurpose["CR"] = "commercial_registration";
95
+ DocumentPurpose["COMMERCIAL_REGISTRATION_EXTRACT"] = "commercial_registration_extract";
95
96
  DocumentPurpose["ARTICLE_ASSOCIATION"] = "article_of_association";
96
97
  DocumentPurpose["BANK_STATEMENT"] = "bank_statement";
97
98
  DocumentPurpose["BANK_CERTIFICATE"] = "bank_certificate";
@@ -1,3 +1,4 @@
1
+ import type { FlowStart } from './app';
1
2
  export interface ConfigInfo {
2
3
  operator: Operator;
3
4
  scope: string;
@@ -45,5 +46,6 @@ export interface SettingAsyncData {
45
46
  merchant: RecordType;
46
47
  operator: RecordType;
47
48
  config: RecordType;
49
+ flow_start?: FlowStart;
48
50
  }
49
51
  export {};
@@ -140,6 +140,7 @@ export declare type EntityNameFormValues = {
140
140
  expiryDate: string;
141
141
  unifiedNumber: string;
142
142
  certificateId?: Array<string>;
143
+ commercialRegistrationExtractId?: Array<string>;
143
144
  articleId?: string;
144
145
  };
145
146
  export declare type EntityCapitalFormValues = {
@@ -7,7 +7,7 @@ export declare type DocumentInfo = {
7
7
  images: Array<string>;
8
8
  };
9
9
  export declare type DocumentUpdateBody = {
10
- entity_id?: boolean;
10
+ entity_id?: string;
11
11
  individual_type_id?: number;
12
12
  country?: string;
13
13
  documents: Array<DocumentInfo>;
@@ -1,5 +1,5 @@
1
1
  import { RootState } from './store';
2
- import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, BusinessCountryInfo, ConfigInfo, LocalProps, SettingAsyncData } from '../@types';
2
+ import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, BusinessCountryInfo, ConfigInfo, LocalProps, SettingAsyncData, FlowStart } from '../@types';
3
3
  interface SettingParams {
4
4
  disableCountries?: boolean;
5
5
  disableLocale?: boolean;
@@ -36,6 +36,7 @@ export interface SettingsData {
36
36
  ipCountry: CountryCode;
37
37
  businessCountries: Array<BusinessCountryInfo>;
38
38
  locale?: LocalProps;
39
+ flowStart?: FlowStart;
39
40
  }
40
41
  export interface SettingsState extends SharedState<SettingsData> {
41
42
  }
@@ -62,7 +62,7 @@ import i18n from '../i18n';
62
62
  import { updateLocale } from '../utils/locale';
63
63
  import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
64
64
  export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
- var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, _d, configInfo, matureData, lang, initPayload, _e, country_list, ip_info, merchant, operator, config, _f, list, _g, ip, latitude, longitude, country_code, countries, _h, operator_1, scope, data, lead, board, interfaceData, redirect, post, platforms, payment_provider, _j, locale_1, edges, deviceInfo, isValidOperator, countryCode, businessCountry, ipCountry;
65
+ var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, _d, configInfo, matureData, lang, initPayload, _e, country_list, ip_info, merchant, operator, config, flow_start, _f, list, _g, ip, latitude, longitude, country_code, countries, _h, operator_1, scope, data, lead, board, interfaceData, redirect, post, platforms, payment_provider, _j, locale_1, edges, deviceInfo, isValidOperator, countryCode, businessCountry, ipCountry;
66
66
  return __generator(this, function (_k) {
67
67
  switch (_k.label) {
68
68
  case 0:
@@ -97,7 +97,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
97
97
  _f = (_k.sent());
98
98
  _k.label = 5;
99
99
  case 5:
100
- _e = _f, country_list = _e.country_list, ip_info = _e.ip_info, merchant = _e.merchant, operator = _e.operator, config = _e.config;
100
+ _e = _f, country_list = _e.country_list, ip_info = _e.ip_info, merchant = _e.merchant, operator = _e.operator, config = _e.config, flow_start = _e.flow_start;
101
101
  list = __spreadArray([], ((country_list === null || country_list === void 0 ? void 0 : country_list.list) || []), true);
102
102
  _g = ip_info || {}, ip = _g.ip, latitude = _g.latitude, longitude = _g.longitude, country_code = _g.country_code;
103
103
  countries = sortCountries(list.filter(function (c) { return c.idd_prefix; }));
@@ -167,14 +167,15 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
167
167
  ip_info: ip_info,
168
168
  merchant: merchant,
169
169
  operator: operator,
170
- locale: locale
170
+ locale: locale,
171
+ flow_start: flow_start
171
172
  });
172
173
  if (!(matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function')) return [3, 7];
173
174
  return [4, configInfo.onMaturityChanged(matureData)];
174
175
  case 6:
175
176
  _k.sent();
176
177
  _k.label = 7;
177
- case 7: return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (merchant && { merchant: merchant }))];
178
+ case 7: return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (flow_start && { flowStart: flow_start })), (merchant && { merchant: merchant }))];
178
179
  }
179
180
  });
180
181
  }); });
@@ -371,7 +372,7 @@ export var settingsSlice = createSlice({
371
372
  state.error = null;
372
373
  });
373
374
  builder.addCase(fetchAppSettingsSync.fulfilled, function (state, action) {
374
- var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry;
375
+ var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry, flowStart = _a.flowStart;
375
376
  state.data.countries = countries;
376
377
  if (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2)
377
378
  state.data.businessCountry = businessCountry;
@@ -381,6 +382,8 @@ export var settingsSlice = createSlice({
381
382
  state.data.isValidOperator = isValidOperator;
382
383
  if (merchant)
383
384
  state.data.merchant = merchant;
385
+ if (flowStart)
386
+ state.data.flowStart = flowStart;
384
387
  state.data.isMaturityExpress = isMaturityExpress;
385
388
  var countryIso2 = (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2) || (ipCountry === null || ipCountry === void 0 ? void 0 : ipCountry.iso2);
386
389
  if (locale && countryIso2)
@@ -67,7 +67,7 @@
67
67
  "approve_with_paci_app": "المتابعة من خلال PACI",
68
68
  "ar": "ع",
69
69
  "arabic": "اللغة العربية",
70
- "article_of_association": "PDF, JPG or PNG files up to 5mb.",
70
+ "article_of_association": "يمكنك رفع ملف بصيغة JPG ،PDF ،PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
71
71
  "auth_brand_required": "العلامة التجارية مطلوبة",
72
72
  "auth_entity_required": "المؤسسة مطلوب",
73
73
  "auth_merchant_required": "التاجر مطلوب",
@@ -178,6 +178,7 @@
178
178
  "civil_id_placeholder": "2xxxxxxxxx12",
179
179
  "civil_id_title": "البطاقة المدنية",
180
180
  "close_and_complete_later": "اغلق الان و اكمل لاحقا",
181
+ "code_sent_to": "تم إرسال الرمز إلى ",
181
182
  "commercial_reg": "منشأة تجارية",
182
183
  "commercial_reg_hint": "للمنشئات الصغيرة و المتوسطة و المنشأت الناشئة و المؤسسات برخصة مزاوة نشاط تجارى",
183
184
  "company_individuals": "الأفراد بالشركة",
@@ -214,11 +215,12 @@
214
215
  "data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
215
216
  "data_loading_title": "تحضير البيانات",
216
217
  "day": "اليوم",
217
- "desc_drag_and_drop_certificate": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
218
- "desc_drag_and_drop_civilID": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
219
- "desc_drag_and_drop_signature": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
220
- "desc_drag_and_drop_tax_document": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
221
- "description_brand_logo": "JPG or PNG files up to 4mb.",
218
+ "desc_drag_and_drop": "يرجى إرفاق الصفحة الأولى التي تظهر بيانات الحساب البنكي المطابقة. يمكنك رفع ملف بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
219
+ "desc_drag_and_drop_certificate": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
220
+ "desc_drag_and_drop_civilID": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
221
+ "desc_drag_and_drop_signature": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
222
+ "desc_drag_and_drop_tax_document": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
223
+ "description_brand_logo": "يمكنك رفع ملف بصيغة JPG أو PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
222
224
  "drag_and_drop": "قم بسحب وإدراج الكشف",
223
225
  "edit": "تعديل",
224
226
  "email_activation_description": "شكراً لاختيارك تاب للمدفوعات، لقد تم تفعيل بريدك الإلكتروني بنجاح!",
@@ -370,6 +372,7 @@
370
372
  "join_our_community": "",
371
373
  "kyc_already_submitted_title": "لقد وافقت مسبقاً على كافة الوثائق",
372
374
  "kyc_dispute_policy": "سياسة المنازعات",
375
+ "kyc_privacy_policy": "سياسة الخصوصية",
373
376
  "kyc_refund_policy": "سياسة الاسترجاع",
374
377
  "kyc_success_button": "حساب لوحة التحكم",
375
378
  "kyc_success_title": "تم تحديث حسابك بنجاح",
@@ -529,6 +532,8 @@
529
532
  "select_terminal_label": "Terminal",
530
533
  "select_terminal_placeholder": "الرجاء تحديد محطة طرفية",
531
534
  "selected_activities": "الأنشطة المختارة",
535
+ "session_expired_otp": "انتهت صلاحية العملية. يرجى إدخال رمز التحقق المرسل للمتابعة.",
536
+ "session_invalid": "رمز التحقق غير صالح",
532
537
  "share_count_hint": "0",
533
538
  "share_count_label": "عدد الأسهم",
534
539
  "share_value_hint": "0000",
@@ -642,6 +647,7 @@
642
647
  "title_bank_statement": "شهادة الايبان البنكية",
643
648
  "title_brand_logo": "لوجو العلامة التجارية",
644
649
  "title_civil_id": "صورة الهوية الوطنية",
650
+ "title_commercial_registration_extract": "مستخرج السجل التجاري",
645
651
  "title_connect_flow": "استقبل المدفوعات من تاب",
646
652
  "title_license_certificate": "السجل التجاري للمنشأة",
647
653
  "title_signature_file": "صورة من التوقيع",
@@ -680,8 +686,5 @@
680
686
  "year": "السنة",
681
687
  "yes": "نعم",
682
688
  "your_brand_details": "تفاصيل علامتك التجارية",
683
- "يرجى التحقق من اسم تطبيق ابل": "",
684
- "session_expired_otp": "انتهت صلاحية العملية. يرجى إدخال رمز التحقق المرسل للمتابعة.",
685
- "code_sent_to": "تم إرسال الرمز إلى ",
686
- "session_invalid": "رمز التحقق غير صالح"
689
+ "يرجى التحقق من اسم تطبيق ابل": ""
687
690
  }
@@ -62,7 +62,7 @@
62
62
  "approve_with_paci_app": "Continue with PACI",
63
63
  "ar": "ع",
64
64
  "arabic": "اللغة العربية",
65
- "article_of_association": "PDF, JPG or PNG files up to 5mb.",
65
+ "article_of_association": "PDF, JPG or PNG files up to 4mb.",
66
66
  "auth_brand_required": "Brand is required",
67
67
  "auth_entity_required": "Entity is required",
68
68
  "auth_merchant_required": "Merchant is required",
@@ -184,6 +184,7 @@
184
184
  "civil_id_placeholder": "2xxxxxxxxx12",
185
185
  "civil_id_title": "Civil ID",
186
186
  "close_and_complete_later": "Close and Complete Later",
187
+ "code_sent_to": "Code sent to ",
187
188
  "commercial_reg": "Commercial entity",
188
189
  "commercial_reg_hint": "Small & medium businesses, Startups and Enterprises with an authorised commercial licence.",
189
190
  "commercial_registration": "Commercial registration",
@@ -221,7 +222,7 @@
221
222
  "data_loading_desc": "Please wait as we are preparing data",
222
223
  "data_loading_title": "Preparing data",
223
224
  "day": "Day",
224
- "desc_drag_and_drop": "First page showing matching bank details. PDF, JPG or PNG files up to 5mb.",
225
+ "desc_drag_and_drop": "First page showing matching bank details. PDF, JPG or PNG files up to 4mb.",
225
226
  "desc_drag_and_drop_certificate": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
226
227
  "desc_drag_and_drop_civilID": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
227
228
  "desc_drag_and_drop_signature": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
@@ -383,6 +384,7 @@
383
384
  "join_our_community": "",
384
385
  "kyc_already_submitted_title": "You already approved all documents",
385
386
  "kyc_dispute_policy": "Dispute Policy",
387
+ "kyc_privacy_policy": "Privacy Policy",
386
388
  "kyc_refund_policy": "Refund Policy",
387
389
  "kyc_success_button": "Go to my board",
388
390
  "kyc_success_title": "All done",
@@ -393,7 +395,6 @@
393
395
  "kyc_token_invalid": "May you please verify link of which you are trying to open.",
394
396
  "kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
395
397
  "kyc_verification": "Know Your Customer (KYC)",
396
- "kyc_privacy_policy": "Privacy Policy",
397
398
  "language": "العربية",
398
399
  "license_info": "License information",
399
400
  "license_name_hint": "Enter legal name",
@@ -552,6 +553,8 @@
552
553
  "select_terminal_label": "Terminal",
553
554
  "select_terminal_placeholder": "Please select a terminal",
554
555
  "selected_activities": "Selected Activities",
556
+ "session_expired_otp": "Session expired. Please verify your phone number to continue.",
557
+ "session_invalid": "Session Invalid",
555
558
  "share_count_hint": "0",
556
559
  "share_count_label": "Share Count",
557
560
  "share_value_hint": "0000",
@@ -668,6 +671,7 @@
668
671
  "title_bank_statement": "Bank IBAN certificate",
669
672
  "title_brand_logo": "Brand Logo",
670
673
  "title_civil_id": "Civil ID Attachment",
674
+ "title_commercial_registration_extract": "Commercial registration extract",
671
675
  "title_connect_flow": "Connect Tap",
672
676
  "title_license_certificate": "License Certificate",
673
677
  "title_signature_file": "Signature Attachment",
@@ -708,8 +712,5 @@
708
712
  "website_label": "Website",
709
713
  "year": "Year",
710
714
  "yes": "Yes",
711
- "your_brand_details": "Your brand details",
712
- "session_expired_otp": "Session expired. Please verify your phone number to continue.",
713
- "code_sent_to": "Code sent to ",
714
- "session_invalid": "Session Invalid"
715
+ "your_brand_details": "Your brand details"
715
716
  }
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { SlideProps as MUISlideProps } from '@mui/material/Slide';
3
3
  export interface SlideProps extends MUISlideProps {
4
4
  }
5
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "in" | "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
5
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "id" | "in" | "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
6
6
  export default _default;
@@ -11,10 +11,7 @@ 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;
15
- PRODUCTION_BASE_URL_SA_DR: string;
16
14
  DEV_BASE_URL: string;
17
- BETA_BASE_URL: string;
18
15
  BUSINESS_COUNTRIES: string;
19
16
  COUNTRIES: string;
20
17
  IP: string;
@@ -60,3 +57,4 @@ export declare const ENDPOINT_PATHS: {
60
57
  CURRENCY: string;
61
58
  SEGMENT_LIST: string;
62
59
  };
60
+ export declare const REGION_BASE_URLS: Record<string, string>;
@@ -2,8 +2,8 @@ var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
4
4
  var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw-tmp.tap.com.sa/middleware';
5
+ var PRODUCTION_BASE_URL_SA_HU = 'https://connect-mw-temp.tap.com.sa/middleware';
5
6
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
6
- var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
7
7
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
8
8
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
9
9
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -71,10 +71,7 @@ export var ENDPOINT_PATHS = {
71
71
  MIGRATION_STATUS: MIGRATION_STATUS,
72
72
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
73
73
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
74
- PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
75
- PRODUCTION_BASE_URL_SA_DR: PRODUCTION_BASE_URL_SA_DR,
76
74
  DEV_BASE_URL: DEV_BASE_URL,
77
- BETA_BASE_URL: BETA_BASE_URL,
78
75
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
79
76
  COUNTRIES: API_COUNTRIES,
80
77
  IP: IP_PATH,
@@ -120,3 +117,8 @@ export var ENDPOINT_PATHS = {
120
117
  CURRENCY: CURRENCY_PATH,
121
118
  SEGMENT_LIST: SEGMENT_LIST
122
119
  };
120
+ export var REGION_BASE_URLS = {
121
+ sa: PRODUCTION_BASE_URL_SA,
122
+ 'sa-dr': PRODUCTION_BASE_URL_SA_DR,
123
+ sahu: PRODUCTION_BASE_URL_SA_HU
124
+ };
@@ -1,7 +1,6 @@
1
1
  import { ScreenStepNavigation, BusinessType, POSInfo, TerminalInfo } 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/";
@@ -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/';
@@ -858,7 +858,7 @@ export var brandSlice = createSlice({
858
858
  state.data.brandActivities.termAndConditionChecked = termFlag;
859
859
  state.data.brandActivities.transactionPolicy = termFlag;
860
860
  state.data.brandActivities.refundPolicy = termFlag;
861
- state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities }), (entityData && { entity: entityData })), { activitiesDefaultValues: {
861
+ state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { brand: data, activities: entity_activities }), (entityData && { entity: entityData })), { activitiesDefaultValues: {
862
862
  activities: selectedActivity,
863
863
  customerLocations: locations,
864
864
  expectedSale: sales,
@@ -880,9 +880,12 @@ export var brandSlice = createSlice({
880
880
  state.loading = true;
881
881
  state.error = null;
882
882
  })
883
- .addCase(updateBrandActivities.fulfilled, function (state) {
883
+ .addCase(updateBrandActivities.fulfilled, function (state, action) {
884
884
  state.loading = false;
885
885
  state.error = null;
886
+ var _a = action.payload, data = _a.data, formData = _a.formData;
887
+ state.data.brandActivities = __assign(__assign({}, state.data.brandActivities), formData);
888
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { brand: data, activitiesDefaultValues: formData });
886
889
  })
887
890
  .addCase(retrieveSegmentDataList.pending, function (state) {
888
891
  state.loading = true;
@@ -61,7 +61,7 @@ import { FlowsTypes, AuthForType, BusinessType, LicenseType, AuthForScreen } fro
61
61
  import API, { setAuthSessionToGlobalHeaders } from '../../../api';
62
62
  import { ADD_NEW_ENTITY, COLLECT_DOB_INFO_NAFATH, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH, SCOPE_MERCHANT } from '../../../constants';
63
63
  import { defaultCountry } from '../../../constants';
64
- import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isQA, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData, isNetworkError, isTimeoutError, isInternalServerError, isAuthenticationVerificationFailed } from '../../../utils';
64
+ import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, getFlowStartScreen, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData, isNetworkError, isTimeoutError, isInternalServerError, isAuthenticationVerificationFailed } from '../../../utils';
65
65
  export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
66
  var connectExpress, payload, data;
67
67
  return __generator(this, function (_a) {
@@ -81,17 +81,17 @@ export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateB
81
81
  });
82
82
  }); });
83
83
  export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
84
- var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, isRegistered, screen_1, screen_2, _b, boardInfo, boardData, error_1;
85
- var _c, _d, _e, _f, _g, _h;
86
- return __generator(this, function (_j) {
87
- switch (_j.label) {
84
+ var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, flowStart, isRegistered, iso2, screen_1, defaultScreen, screen_2, flowScreen, _b, boardInfo, boardData, error_1;
85
+ var _c, _d, _e, _f, _g, _h, _j, _k;
86
+ return __generator(this, function (_l) {
87
+ switch (_l.label) {
88
88
  case 0:
89
89
  settings = thunkApi.getState().settings;
90
90
  countryCode = settings.data.businessCountry;
91
91
  showBoard = settings.data.appConfig.showBoard;
92
92
  return [4, API.leadService.retrieveLeadIdentity(leadId)];
93
93
  case 1:
94
- data = _j.sent();
94
+ data = _l.sent();
95
95
  _a = data || {}, country_code = _a.country_code, contact = _a.contact;
96
96
  if (country_code)
97
97
  thunkApi.dispatch(handleSetCountryByIso2(country_code));
@@ -103,21 +103,23 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
103
103
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP'));
104
104
  return [2, { data: data, countryCode: countryCode }];
105
105
  }
106
+ flowStart = settings.data.flowStart;
106
107
  isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
107
108
  if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
108
- screen_1 = isQA(country_code || ((_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2)) ? 'CONNECT_EXPRESS_EMAIL_STEP' : 'CONNECT_EXPRESS_MOBILE_STEP';
109
+ iso2 = country_code || ((_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2);
110
+ screen_1 = (_e = getFlowStartScreen(flowStart, iso2)) !== null && _e !== void 0 ? _e : 'CONNECT_EXPRESS_MOBILE_STEP';
109
111
  thunkApi.dispatch(handleCurrentActiveScreen(screen_1));
110
112
  return [2, { data: data, countryCode: countryCode }];
111
113
  }
112
114
  if (!isRegistered && country_code) {
113
- screen_2 = 'CONNECT_EXPRESS_NID_STEP';
114
- if (!isSA(data.country_code))
115
- screen_2 = isQA(data.country_code) ? 'CONNECT_EXPRESS_EMAIL_STEP' : 'CONNECT_EXPRESS_MOBILE_STEP';
115
+ defaultScreen = isSA(data.country_code) ? 'CONNECT_EXPRESS_NID_STEP' : 'CONNECT_EXPRESS_MOBILE_STEP';
116
+ screen_2 = (_f = getFlowStartScreen(flowStart, data.country_code)) !== null && _f !== void 0 ? _f : defaultScreen;
116
117
  thunkApi.dispatch(handleCurrentActiveScreen(screen_2));
117
118
  return [2, { data: data, countryCode: countryCode }];
118
119
  }
119
- if (!isRegistered && isQA(settings.data.businessCountry.iso2)) {
120
- thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_EMAIL_STEP'));
120
+ flowScreen = getFlowStartScreen(flowStart, settings.data.businessCountry.iso2);
121
+ if (!isRegistered && flowScreen) {
122
+ thunkApi.dispatch(handleCurrentActiveScreen(flowScreen));
121
123
  return [2, { data: data, countryCode: countryCode }];
122
124
  }
123
125
  if (!isRegistered && !isSA(settings.data.businessCountry.iso2)) {
@@ -128,11 +130,11 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
128
130
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_NID_STEP'));
129
131
  return [2, { data: data, countryCode: countryCode }];
130
132
  }
131
- if ((_e = data === null || data === void 0 ? void 0 : data.identification) === null || _e === void 0 ? void 0 : _e.authentication_id) {
132
- thunkApi.dispatch(storeAuthId((_f = data === null || data === void 0 ? void 0 : data.identification) === null || _f === void 0 ? void 0 : _f.authentication_id));
133
+ if ((_g = data === null || data === void 0 ? void 0 : data.identification) === null || _g === void 0 ? void 0 : _g.authentication_id) {
134
+ thunkApi.dispatch(storeAuthId((_h = data === null || data === void 0 ? void 0 : data.identification) === null || _h === void 0 ? void 0 : _h.authentication_id));
133
135
  }
134
136
  if (isRegistered && !showBoard) {
135
- (_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, data);
137
+ (_k = (_j = settings.data.appConfig).onFlowCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, data);
136
138
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
137
139
  return [2, { data: data, countryCode: countryCode }];
138
140
  }
@@ -141,19 +143,19 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
141
143
  return [2, { data: data, countryCode: countryCode }];
142
144
  }
143
145
  if (!(isRegistered && board_id && board_info_id)) return [3, 5];
144
- _j.label = 2;
146
+ _l.label = 2;
145
147
  case 2:
146
- _j.trys.push([2, 4, , 5]);
148
+ _l.trys.push([2, 4, , 5]);
147
149
  return [4, Promise.all([
148
150
  API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
149
151
  API.boardService.retrieveBoardDetails(board_id)
150
152
  ])];
151
153
  case 3:
152
- _b = _j.sent(), boardInfo = _b[0], boardData = _b[1];
154
+ _b = _l.sent(), boardInfo = _b[0], boardData = _b[1];
153
155
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
154
156
  return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
155
157
  case 4:
156
- error_1 = _j.sent();
158
+ error_1 = _l.sent();
157
159
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
158
160
  return [2, { data: data, countryCode: countryCode }];
159
161
  case 5: return [2, { data: data, countryCode: countryCode }];