@tap-payments/auth-jsconnect 2.15.9-beta → 2.15.11-beta

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 (54) hide show
  1. package/README.md +29 -0
  2. package/build/@types/app.d.ts +3 -1
  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 -6
  11. package/build/components/Slide/Slide.d.ts +1 -1
  12. package/build/constants/api.d.ts +1 -2
  13. package/build/constants/api.js +6 -2
  14. package/build/features/app/brand/brandStore.js +5 -2
  15. package/build/features/app/connectExpress/connectExpressStore.js +21 -22
  16. package/build/features/app/entity/entityStore.js +56 -35
  17. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
  18. package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
  19. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
  20. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  21. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  22. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +2 -2
  23. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  24. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  25. package/build/features/connectExpress/ConnectExpress.js +6 -5
  26. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
  27. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +9 -9
  28. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
  29. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +2 -2
  30. package/build/features/entity/screens/EntityName/EntityDocumentUpload.d.ts +12 -0
  31. package/build/features/entity/screens/EntityName/{LicenseCertificate.js → EntityDocumentUpload.js} +10 -15
  32. package/build/features/entity/screens/EntityName/EntityName.js +10 -4
  33. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
  34. package/build/features/entity/screens/EntityName/validation.d.ts +9 -0
  35. package/build/features/entity/screens/EntityName/validation.js +3 -0
  36. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
  37. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  38. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
  39. package/build/features/shared/Address/CountryList.d.ts +2 -2
  40. package/build/features/shared/Address/InputSelect.d.ts +2 -2
  41. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  42. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  43. package/build/features/shared/Input/Input.d.ts +1 -1
  44. package/build/features/terminal/screens/shared/styles.d.ts +1 -1
  45. package/build/hooks/useAppConfig.js +1 -1
  46. package/build/hooks/useIsEmailAuth.d.ts +1 -1
  47. package/build/hooks/useIsEmailAuth.js +5 -5
  48. package/build/utils/array.d.ts +1 -1
  49. package/build/utils/array.js +3 -2
  50. package/build/utils/common.js +4 -5
  51. package/build/utils/string.d.ts +2 -3
  52. package/build/utils/string.js +11 -3
  53. package/package.json +1 -1
  54. 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
 
@@ -236,7 +236,6 @@ export interface LibConfig extends LibCallbacks {
236
236
  closeButton?: boolean;
237
237
  disableNafath?: boolean;
238
238
  disablePaci?: boolean;
239
- emailAuth?: boolean;
240
239
  dialogStartTransition?: 'left' | 'right' | 'up' | 'down';
241
240
  dialogEndTransition?: 'left' | 'right' | 'up' | 'down';
242
241
  };
@@ -344,6 +343,8 @@ export declare enum FlowsTypes {
344
343
  kyc = "kyc",
345
344
  TERMINAL = "terminal"
346
345
  }
346
+ export declare type FlowStartType = 'phone' | 'email' | 'id';
347
+ export declare type FlowStart = Record<string, FlowStartType>;
347
348
  export declare type FlowInfo = {
348
349
  name: string;
349
350
  status: string;
@@ -421,6 +422,7 @@ export declare enum IndividualType {
421
422
  }
422
423
  export declare enum DocumentPurpose {
423
424
  CR = "commercial_registration",
425
+ COMMERCIAL_REGISTRATION_EXTRACT = "commercial_registration_extract",
424
426
  ARTICLE_ASSOCIATION = "article_of_association",
425
427
  BANK_STATEMENT = "bank_statement",
426
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",
@@ -551,6 +553,8 @@
551
553
  "select_terminal_label": "Terminal",
552
554
  "select_terminal_placeholder": "Please select a terminal",
553
555
  "selected_activities": "Selected Activities",
556
+ "session_expired_otp": "Session expired. Please verify your phone number to continue.",
557
+ "session_invalid": "Session Invalid",
554
558
  "share_count_hint": "0",
555
559
  "share_count_label": "Share Count",
556
560
  "share_value_hint": "0000",
@@ -667,6 +671,7 @@
667
671
  "title_bank_statement": "Bank IBAN certificate",
668
672
  "title_brand_logo": "Brand Logo",
669
673
  "title_civil_id": "Civil ID Attachment",
674
+ "title_commercial_registration_extract": "Commercial registration extract",
670
675
  "title_connect_flow": "Connect Tap",
671
676
  "title_license_certificate": "License Certificate",
672
677
  "title_signature_file": "Signature Attachment",
@@ -707,8 +712,5 @@
707
712
  "website_label": "Website",
708
713
  "year": "Year",
709
714
  "yes": "Yes",
710
- "your_brand_details": "Your brand details",
711
- "session_expired_otp": "Session expired. Please verify your phone number to continue.",
712
- "code_sent_to": "Code sent to ",
713
- "session_invalid": "Session Invalid"
715
+ "your_brand_details": "Your brand details"
714
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,8 +11,6 @@ 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
15
  BETA_BASE_URL: string;
18
16
  BUSINESS_COUNTRIES: string;
@@ -60,3 +58,4 @@ export declare const ENDPOINT_PATHS: {
60
58
  CURRENCY: string;
61
59
  SEGMENT_LIST: string;
62
60
  };
61
+ export declare const REGION_BASE_URLS: Record<string, string>;
@@ -2,6 +2,7 @@ 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
7
  var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
7
8
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
@@ -71,8 +72,6 @@ export var ENDPOINT_PATHS = {
71
72
  MIGRATION_STATUS: MIGRATION_STATUS,
72
73
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
73
74
  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
75
  DEV_BASE_URL: DEV_BASE_URL,
77
76
  BETA_BASE_URL: BETA_BASE_URL,
78
77
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
@@ -120,3 +119,8 @@ export var ENDPOINT_PATHS = {
120
119
  CURRENCY: CURRENCY_PATH,
121
120
  SEGMENT_LIST: SEGMENT_LIST
122
121
  };
122
+ export var REGION_BASE_URLS = {
123
+ sa: PRODUCTION_BASE_URL_SA,
124
+ 'sa-dr': PRODUCTION_BASE_URL_SA_DR,
125
+ sahu: PRODUCTION_BASE_URL_SA_HU
126
+ };
@@ -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, isEmailAuthEnabled, 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, emailAuth, isRegistered, screen_1, screen_2, _b, boardInfo, boardData, error_1;
85
- var _c, _d, _e, _f, _g, _h, _j;
86
- return __generator(this, function (_k) {
87
- switch (_k.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 = _k.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,24 +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
- emailAuth = (_d = settings.data.appConfig.features) === null || _d === void 0 ? void 0 : _d.emailAuth;
106
+ flowStart = settings.data.flowStart;
107
107
  isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
108
108
  if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
109
- screen_1 = isEmailAuthEnabled(emailAuth, country_code || ((_e = settings.data.businessCountry) === null || _e === void 0 ? void 0 : _e.iso2))
110
- ? 'CONNECT_EXPRESS_EMAIL_STEP'
111
- : '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';
112
111
  thunkApi.dispatch(handleCurrentActiveScreen(screen_1));
113
112
  return [2, { data: data, countryCode: countryCode }];
114
113
  }
115
114
  if (!isRegistered && country_code) {
116
- screen_2 = 'CONNECT_EXPRESS_NID_STEP';
117
- if (!isSA(data.country_code))
118
- screen_2 = isEmailAuthEnabled(emailAuth, 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;
119
117
  thunkApi.dispatch(handleCurrentActiveScreen(screen_2));
120
118
  return [2, { data: data, countryCode: countryCode }];
121
119
  }
122
- if (!isRegistered && isEmailAuthEnabled(emailAuth, settings.data.businessCountry.iso2)) {
123
- thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_EMAIL_STEP'));
120
+ flowScreen = getFlowStartScreen(flowStart, settings.data.businessCountry.iso2);
121
+ if (!isRegistered && flowScreen) {
122
+ thunkApi.dispatch(handleCurrentActiveScreen(flowScreen));
124
123
  return [2, { data: data, countryCode: countryCode }];
125
124
  }
126
125
  if (!isRegistered && !isSA(settings.data.businessCountry.iso2)) {
@@ -131,11 +130,11 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
131
130
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_NID_STEP'));
132
131
  return [2, { data: data, countryCode: countryCode }];
133
132
  }
134
- if ((_f = data === null || data === void 0 ? void 0 : data.identification) === null || _f === void 0 ? void 0 : _f.authentication_id) {
135
- thunkApi.dispatch(storeAuthId((_g = data === null || data === void 0 ? void 0 : data.identification) === null || _g === void 0 ? void 0 : _g.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));
136
135
  }
137
136
  if (isRegistered && !showBoard) {
138
- (_j = (_h = settings.data.appConfig).onFlowCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, data);
137
+ (_k = (_j = settings.data.appConfig).onFlowCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, data);
139
138
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
140
139
  return [2, { data: data, countryCode: countryCode }];
141
140
  }
@@ -144,19 +143,19 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
144
143
  return [2, { data: data, countryCode: countryCode }];
145
144
  }
146
145
  if (!(isRegistered && board_id && board_info_id)) return [3, 5];
147
- _k.label = 2;
146
+ _l.label = 2;
148
147
  case 2:
149
- _k.trys.push([2, 4, , 5]);
148
+ _l.trys.push([2, 4, , 5]);
150
149
  return [4, Promise.all([
151
150
  API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
152
151
  API.boardService.retrieveBoardDetails(board_id)
153
152
  ])];
154
153
  case 3:
155
- _b = _k.sent(), boardInfo = _b[0], boardData = _b[1];
154
+ _b = _l.sent(), boardInfo = _b[0], boardData = _b[1];
156
155
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
157
156
  return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
158
157
  case 4:
159
- error_1 = _k.sent();
158
+ error_1 = _l.sent();
160
159
  thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
161
160
  return [2, { data: data, countryCode: countryCode }];
162
161
  case 5: return [2, { data: data, countryCode: countryCode }];