@tap-payments/auth-jsconnect 2.10.7-beta → 2.10.7

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 (104) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +8 -1
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/form.d.ts +5 -0
  5. package/build/api/auth.d.ts +1 -0
  6. package/build/api/axios.d.ts +1 -1
  7. package/build/api/entity.d.ts +3 -0
  8. package/build/api/lead.d.ts +1 -0
  9. package/build/app/settings.d.ts +1 -0
  10. package/build/app/settings.js +8 -5
  11. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  12. package/build/assets/currencies/AEDSymbol.js +28 -0
  13. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  14. package/build/assets/currencies/SARSymbol.js +28 -0
  15. package/build/assets/currencies/index.d.ts +2 -0
  16. package/build/assets/currencies/index.js +2 -0
  17. package/build/assets/currencies/utils.d.ts +4 -0
  18. package/build/assets/currencies/utils.js +6 -0
  19. package/build/assets/locales/ar.json +52 -7
  20. package/build/assets/locales/en.json +55 -9
  21. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  22. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  23. package/build/components/TextWithCurrency/index.d.ts +2 -0
  24. package/build/components/TextWithCurrency/index.js +2 -0
  25. package/build/constants/api.d.ts +1 -0
  26. package/build/constants/api.js +2 -0
  27. package/build/constants/app.d.ts +12 -0
  28. package/build/constants/app.js +48 -15
  29. package/build/constants/assets.d.ts +12 -3
  30. package/build/constants/assets.js +123 -105
  31. package/build/constants/dummy.js +27 -20
  32. package/build/constants/validation.d.ts +1 -0
  33. package/build/constants/validation.js +1 -0
  34. package/build/features/app/auth/authStore.d.ts +24 -5
  35. package/build/features/app/auth/authStore.js +136 -71
  36. package/build/features/app/business/businessStore.js +15 -10
  37. package/build/features/app/connectExpress/connectExpressStore.d.ts +14 -3
  38. package/build/features/app/connectExpress/connectExpressStore.js +212 -53
  39. package/build/features/app/tax/taxStore.js +1 -1
  40. package/build/features/auth/Auth.d.ts +1 -1
  41. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  42. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  43. package/build/features/auth/screens/OTP/OTP.js +15 -3
  44. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  45. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  46. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  47. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  48. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  49. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  50. package/build/features/auth/screens/Passcode/index.js +2 -0
  51. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  52. package/build/features/auth/screens/Passcode/validation.js +4 -0
  53. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  54. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  55. package/build/features/business/screens/BusinessType/BusinessType.js +13 -2
  56. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  57. package/build/features/business/screens/BusinessType/LicenseList.js +15 -7
  58. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  59. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  60. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  61. package/build/features/business/screens/BusinessType/validation.js +31 -10
  62. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  63. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  64. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  65. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  66. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +23 -7
  67. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  68. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  69. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  70. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  71. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  72. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  73. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
  74. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
  75. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
  76. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
  77. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
  78. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
  79. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  80. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
  81. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  82. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  83. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
  84. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
  85. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
  86. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  87. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  88. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  89. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  90. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  91. package/build/features/entity/screens/EntityName/validation.js +100 -85
  92. package/build/features/featuresScreens.js +10 -0
  93. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  94. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  95. package/build/features/shared/Background/LogoBackground.js +5 -17
  96. package/build/features/shared/Button/Button.js +1 -2
  97. package/build/features/shared/Input/Input.d.ts +1 -1
  98. package/build/hooks/useAppConfig.js +1 -1
  99. package/build/utils/common.d.ts +1 -1
  100. package/build/utils/common.js +18 -8
  101. package/build/utils/string.d.ts +3 -2
  102. package/build/utils/string.js +4 -1
  103. package/build/utils/validation.js +1 -1
  104. package/package.json +4 -5
package/README.md CHANGED
@@ -77,8 +77,8 @@ const App = () => {
77
77
  <meta charset="utf-8" />
78
78
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
79
79
  <title>Auth-JsConnect</title>
80
- <script src="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.js"></script>
81
- <link href="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.css" rel="stylesheet" />
80
+ <script src="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.js"></script>
81
+ <link href="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.css" rel="stylesheet" />
82
82
  </head>
83
83
  <body>
84
84
  <div id="root"></div>
@@ -245,6 +245,7 @@ export interface LibConfig extends LibCallbacks {
245
245
  notification?: SDKNotification;
246
246
  boardMaturity?: boolean;
247
247
  settingData?: SettingAsyncData;
248
+ region?: string;
248
249
  }
249
250
  export interface OSDetails {
250
251
  name: string;
@@ -351,12 +352,18 @@ export declare enum AuthForType {
351
352
  NATIONAL_ID = "national_id",
352
353
  NATIONAL_ID_MISSED = "national_id_missed"
353
354
  }
355
+ export declare enum AuthForScreen {
356
+ INDIVIDUAL = "individual",
357
+ DOB = "dob",
358
+ MOBILE_OWNERSHIP = "mobile_ownership"
359
+ }
354
360
  export declare enum AuthTypeNumber {
355
361
  EMAIL_OTP = 5,
356
362
  MOBILE_OTP = 2,
357
363
  PASSWORD = 1,
358
364
  MIGRATION = 10,
359
- RESET_PASSWORD = 7
365
+ RESET_PASSWORD = 7,
366
+ PASSCODE = 11
360
367
  }
361
368
  export declare enum MigrationStatus {
362
369
  IN_PROGRESS = "IN_PROGRESS",
@@ -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) {
@@ -10,6 +10,9 @@ export declare type EmailFormValues = {
10
10
  export declare type OTPFormValues = {
11
11
  otp: string;
12
12
  };
13
+ export declare type PasscodeFormValues = {
14
+ passcode: string;
15
+ };
13
16
  export declare type PasswordFormValues = {
14
17
  password: string;
15
18
  };
@@ -58,6 +61,7 @@ export declare type BrandActivitiesFormValues = {
58
61
  };
59
62
  export declare type BusinessTypeFormValues = {
60
63
  licenseNumber: string;
64
+ unifiedNumber: string;
61
65
  entityLegalName?: string;
62
66
  selectedEntityLicense?: EntityLicense;
63
67
  selectedLicense?: License;
@@ -147,6 +151,7 @@ export declare type EntityCapitalFormValues = {
147
151
  export declare type BusinessDataFormValues = {
148
152
  brandName: string;
149
153
  licenseNumber: string;
154
+ unifiedNumber: string;
150
155
  selectedLicense?: License;
151
156
  termAndConditionChecked?: boolean;
152
157
  };
@@ -31,6 +31,7 @@ export declare type CreateAuthBody = {
31
31
  lead_id?: string;
32
32
  board_id?: string;
33
33
  user_id?: string;
34
+ login?: boolean;
34
35
  };
35
36
  export declare type CreateNafathAuthBody = {
36
37
  country: string;
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from 'axios';
2
2
  declare const instance: import("axios").AxiosInstance;
3
3
  export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
4
4
  export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
5
- export declare const getAxiosHeaders: () => import("axios").AxiosRequestHeaders;
5
+ export declare const getAxiosHeaders: () => Record<string, any>;
6
6
  export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
7
7
  export default instance;
@@ -133,6 +133,9 @@ export declare type CreateEntityBody = {
133
133
  license: {
134
134
  number: string;
135
135
  type: string;
136
+ additional_info?: {
137
+ unified_number: string;
138
+ };
136
139
  };
137
140
  country: string;
138
141
  is_licensed?: boolean;
@@ -49,6 +49,7 @@ export declare type UpdateLeadBody = {
49
49
  entity?: {
50
50
  id: string;
51
51
  };
52
+ unified_number?: string;
52
53
  name?: Name;
53
54
  contact?: Contact;
54
55
  send_invite?: boolean;
@@ -14,6 +14,7 @@ export declare const onCloseComplete: import("@reduxjs/toolkit").AsyncThunk<void
14
14
  merchantId: string;
15
15
  brandId: string;
16
16
  entityId: string;
17
+ nextScreen?: string | undefined;
17
18
  }, {}>;
18
19
  export interface SettingsData {
19
20
  skin: ThemeMode;
@@ -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, appConfig.businessCountryCode);
115
+ setBaseUrl(configInfo.publicKey, appConfig.region);
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,7 +362,6 @@ 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;
361
- setBaseUrl(state.data.appConfig.publicKey, country.iso2);
362
365
  }
363
366
  }
364
367
  },
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type AEDSymbolProps = React.SVGProps<SVGSVGElement> & {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ declare const AEDSymbol: ({ height, ...svgProps }: AEDSymbolProps) => JSX.Element;
7
+ export default AEDSymbol;
@@ -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 AEDSymbol = 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 344.84 299.91', style: { display: 'inline' } }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
27
+ };
28
+ export default AEDSymbol;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type SARSymbolProps = React.SVGProps<SVGSVGElement> & {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ declare const SARSymbol: ({ height, ...svgProps }: SARSymbolProps) => JSX.Element;
7
+ export default SARSymbol;
@@ -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', style: { display: 'inline' } }, 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;
@@ -0,0 +1,2 @@
1
+ import { CURRENCY_ICON } from './utils';
2
+ export { CURRENCY_ICON };
@@ -0,0 +1,2 @@
1
+ import { CURRENCY_ICON } from './utils';
2
+ export { CURRENCY_ICON };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare type CurrencyIconMap = Record<string, React.FC>;
3
+ export declare const CURRENCY_ICON: CurrencyIconMap;
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import SARSymbol from './SARSymbol';
2
+ import AEDSymbol from './AEDSymbol';
3
+ export var CURRENCY_ICON = {
4
+ SA: SARSymbol,
5
+ AE: AEDSymbol
6
+ };
@@ -135,13 +135,17 @@
135
135
  "call_center_placeholder": "رقم هاتف خدمة الإتصال",
136
136
  "cancel": "إلغاء",
137
137
  "capital_paid_hint": "00000",
138
+ "capital_paid_input_label": "رأس المال المدفوع",
138
139
  "capital_paid_label": "رأس المال المدفوع ({{currency}})",
140
+ "capital_paid_input_label": "رأس المال المدفوع",
139
141
  "capital_paid_required": "Please Enter paid amount",
140
142
  "capital_share_count_hint": "00000",
141
143
  "capital_share_count_label": "عدد اسهم رأس المال",
142
144
  "capital_share_count_required": "Please Enter share count",
143
145
  "capital_share_value_hint": "00000",
146
+ "capital_share_value_input_label": "قيمة السهم",
144
147
  "capital_share_value_label": "قيمة السهم ({{currency}})",
148
+ "capital_share_value_input_label": "قيمة السهم",
145
149
  "capital_share_value_required": "Please Enter share value",
146
150
  "category": "الفئة",
147
151
  "category_name": "اسم الفئة",
@@ -207,6 +211,7 @@
207
211
  "create_new_entity": "Create Entity",
208
212
  "creating_account_description": "هذه العملية تحتاج وقت...",
209
213
  "creating_account_title": "جارى انشاء الحساب",
214
+ "current_mobile_number": "رقم الجوال الحالي",
210
215
  "customer_base_name_hint": "اختر محليًا إذا كنت تبيع فقط في البلد الذي تقيم فيه. اختر إقليميًا إذا كنت تبيع أيضًا لدول مجلس التعاون الخليجي الأخرى. اختر عالمياً إذا كنت تبيع إلى أي دولة خارج دول مجلس التعاون الخليجي.",
211
216
  "data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
212
217
  "data_loading_title": "تحضير البيانات",
@@ -279,7 +284,9 @@
279
284
  "entity_type": "نوع الكيان",
280
285
  "entity_type_required": "Please select at least one entity type",
281
286
  "expected_customers_to_serve": "عدد العملاء شهريا",
287
+ "expected_sale_per_month": "البيع المتوقع في الشهر؟",
282
288
  "expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
289
+ "expected_sale_per_month": "البيع المتوقع في الشهر؟",
283
290
  "expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
284
291
  "expected_served_monthly": "عدد العملاء شهريا",
285
292
  "expiry_date": "تاريخ الإنتهاء",
@@ -375,7 +382,6 @@
375
382
  "kyc_terms_title": "وثائق قانونية",
376
383
  "kyc_token_invalid": "الرجاء مراجعة رابط المرسل اليك",
377
384
  "kyc_users_description": "يرجى اختيار رقم هوية الممثل المعتمد للموافقة عليه مع {{provider}}",
378
- "kyc_privacy_policy": "سياسة الخصوصية",
379
385
  "language": "English",
380
386
  "license_info": "معلومات الترخيص",
381
387
  "license_name_hint": "Enter legal name",
@@ -387,6 +393,7 @@
387
393
  "loading": "تحميل...",
388
394
  "loading_bank_statement": "تحميل.......",
389
395
  "login_to_dashboard": "تسجيل الدخول لادارة الحساب",
396
+ "login_with_passcode": "تسجيل الدخول باستخدام رمز المرور",
390
397
  "mail_btn_open_title": "افتح البريد الإلكتروني",
391
398
  "marital_status": "الحالة الزوجية",
392
399
  "masking_symbols": "•••",
@@ -400,11 +407,14 @@
400
407
  "mobile_app_label": "تطبيقات هاتف",
401
408
  "mobile_button_label": "المتابعة عن طريق رقم الجوال",
402
409
  "mobile_number_description": "ابدأ فورًا باستخدام رقم هاتفك المحمول",
410
+ "mobile_ownership_title": "يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
403
411
  "month": "الشهر",
412
+ "monthly_income": "ما هو دخلك الشهري؟ ",
404
413
  "nafath_button_label": "المتابعة عن طريق نفاذ",
405
414
  "nafath_verification_description_check": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
406
415
  "nafath_verification_description_error": "حاول مرة اخرى",
407
416
  "nafath_verification_description_wait": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
417
+ "nafath_verification_failed": "تأكد من الموافقة على الطلب المرسل عبر تطبيق نفاذ، يرجى محاولة إرسال طلب جديد.",
408
418
  "nafath_verification_redirection_message": "سيتم إعادة توجيهك الآن",
409
419
  "nafath_verification_title_check": "المصادقة مع تطبيق نفاذ",
410
420
  "nafath_verification_title_error": "لا يمكننا تأكيد المصادقة الخاصة بك",
@@ -414,6 +424,7 @@
414
424
  "national_id_placeholder": "0000000000",
415
425
  "national_id_title": "الهوية الوطنية",
416
426
  "nationality_label": "الجنسية",
427
+ "new_mobile_number": "رقم الجوال الجديد",
417
428
  "next": "التالي",
418
429
  "no": "لا",
419
430
  "no_results": "لا نتائج",
@@ -449,6 +460,8 @@
449
460
  "paci_verify_loading": "إحضار التفاصيل",
450
461
  "paci_verify_loading_desc": "الرجاء التحلي بالصبر حتى التحقق من التفاصيل",
451
462
  "paci_waiting_title": "Please wait we are verifying",
463
+ "passcode_required": "الرجاء إدخال رمز المرور المطلوب",
464
+ "passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
452
465
  "password_flow_completed": "إعادة تعيين كلمة المرور",
453
466
  "password_flow_pending": "إعداد كلمة المرور",
454
467
  "password_flow_title": "إعداد كلمة المرور",
@@ -483,6 +496,7 @@
483
496
  "please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
484
497
  "please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
485
498
  "please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
499
+ "monthly_income": "ما هو دخلك الشهري؟ ",
486
500
  "please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
487
501
  "please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
488
502
  "powered_by": "بواسطة",
@@ -522,7 +536,9 @@
522
536
  "share_count_hint": "0",
523
537
  "share_count_label": "عدد الأسهم",
524
538
  "share_value_hint": "0000",
539
+ "share_value_input_label": "قيمة السهم",
525
540
  "share_value_label": "قيمة السهم ({{currency}})",
541
+ "sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
526
542
  "sign_up": "Sign up",
527
543
  "signed_up": "تسجيل الدخول",
528
544
  "signin_email_label": "البريد الألكتروني",
@@ -595,6 +611,34 @@
595
611
  "tax_success_header_title": "اكتملت الضريبة",
596
612
  "tax_success_title": "تم تحديث المعلومات الضريبية الخاصة بعملك التجاري.",
597
613
  "team_size_title": "حجم الفريق",
614
+ "terminal_device_id": "رقم تعريف جهاز الكاشير",
615
+ "terminal_devices": "{{name}} أجهزة",
616
+ "terminal_flow_pending": "أجهزة نقاط الدفع",
617
+ "terminal_go_to_board": "الانتقال إلى اللوحة",
618
+ "terminal_id": "رقم تعريف جهاز نقطة الدفع",
619
+ "terminal_link": "ربط",
620
+ "terminal_link_terminal": "ربط جهاز نقطة الدفع",
621
+ "terminal_linked": "تمَّ الربط",
622
+ "terminal_linked_success": "تم ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
623
+ "terminal_linked_with": "مرتبط مع",
624
+ "terminal_manage_terminals": "إدارة أجهزة نقاط الدفع",
625
+ "terminal_new_request_will_send": "لتأكيد الربط تمَّ إرسال طلب ربط جديد إلى تطبيق الـ Terminal من تاب.",
626
+ "terminal_no_terminal_linked": "لا يوجد أجهزة نقاط دفع مرتبطة",
627
+ "terminal_no_terminal_linked_description": "سيتم عرض أجهزة نقاط الدفع المرتبطة هنا عند توفّرها",
628
+ "terminal_or_use_code": "أو استخدم الرمز",
629
+ "terminal_paired_with": "مقترن بـ",
630
+ "terminal_push_notification_link_new_terminal_failed": "حدث خطأ. يرجى المحاولة لاحقاً",
631
+ "terminal_qr_code_description": "افتح تطبيق تاب على جهاز نقطة الدفع، ثم اختر جهاز نقطة الدفع المرتبط من قائمة المزيد.",
632
+ "terminal_request_denied": "تمَّ رفض طلب ربط جهاز نقطة الدفع {{device }}",
633
+ "terminal_request_will_send": "لتأكيد الربط سيتم إرسال طلب إلى تطبيق الـ Terminal من تاب.",
634
+ "terminal_resend_request": "إعادة إرسال الطلب",
635
+ "terminal_select_device": "اختر جهاز نقطة الدفع",
636
+ "terminal_send_link_request": "إرسال طلب الربط",
637
+ "terminal_serial_number": "الرقم التسلسلي",
638
+ "terminal_unlink": "إلغاء الربط",
639
+ "terminal_unlinked": "غير مرتبط",
640
+ "terminal_unlinked_success": "تم إلغاء ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
641
+ "terminal_with": "مع",
598
642
  "terms_and_conditions_link_title": "الشروط والاحكام",
599
643
  "the nin format is not valid": "هل يمكنك التحقق من رقم الهوية الذي تم إدخاله.",
600
644
  "title_article": "مذكرة التأسيس",
@@ -615,7 +659,13 @@
615
659
  "unified_number_hint": "000000",
616
660
  "unified_number_label": "الرقم الموحد",
617
661
  "unified_number_required": "Unified Number Required",
662
+ "update_later": "سأقوم بالتحديث لاحقاً",
663
+ "update_mobile_number": "تحديث رقم الجوال",
618
664
  "uploaded_file": "file",
665
+ "v1_add_unified_number": "أضف الرقم الموحد",
666
+ "v1_company_unified_number_description": "يمكنك العثور على الرقم الموحد لشركتك في الزاوية العلوية اليسرى من شهادة تسجيل الشركة.",
667
+ "v1_company_unified_number_hint": "700xxxxxxx",
668
+ "v1_company_unified_number_label": "الرقم الموحد للشركة",
619
669
  "vat_id": "رقم الضريبي المميز",
620
670
  "vat_id_placeholder": "00000000",
621
671
  "verification_brand_name": "الاسم التجاري",
@@ -633,10 +683,5 @@
633
683
  "year": "السنة",
634
684
  "yes": "نعم",
635
685
  "your_brand_details": "تفاصيل علامتك التجارية",
636
- "يرجى التحقق من اسم تطبيق ابل": "",
637
- "mobile_ownership_title": "لتفعيل استلام الايداعات، يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
638
- "current_mobile_number": "رقم الجوال الحالي",
639
- "new_mobile_number": "رقم الجوال الجديد",
640
- "update_mobile_number": "تحديث رقم الجوال",
641
- "update_later": "سأقوم بالتحديث لاحقاً"
686
+ "يرجى التحقق من اسم تطبيق ابل": ""
642
687
  }
@@ -134,13 +134,17 @@
134
134
  "call_center_placeholder": "Enter your call center number",
135
135
  "cancel": "Cancel",
136
136
  "capital_paid_hint": "00000",
137
+ "capital_paid_input_label": "Capital Paid",
137
138
  "capital_paid_label": "Capital Paid ({{currency}})",
139
+ "capital_paid_input_label": "Capital Paid",
138
140
  "capital_paid_required": "Please Enter paid amount",
139
141
  "capital_share_count_hint": "00000",
140
142
  "capital_share_count_label": "Capital Share Count",
141
143
  "capital_share_count_required": "Please Enter share count",
142
144
  "capital_share_value_hint": "00000",
145
+ "capital_share_value_input_label": "Capital Share Value",
143
146
  "capital_share_value_label": "Capital Share Value ({{currency}})",
147
+ "capital_share_value_input_label": "Capital Share Value",
144
148
  "capital_share_value_required": "Please Enter share value",
145
149
  "category": "Category",
146
150
  "category_name": "Category name",
@@ -214,6 +218,7 @@
214
218
  "create_new_entity": "Create Entity",
215
219
  "creating_account_description": "This might take a moment...",
216
220
  "creating_account_title": "Creating your account",
221
+ "current_mobile_number": "Current mobile number",
217
222
  "customer_base_name_hint": "Choose local if you sell only in the country where you are based. Choose regional if you also sell to other GCC countries. Choose worldwide if you sell to any country outside the GCC.",
218
223
  "data_loading_desc": "Please wait as we are preparing data",
219
224
  "data_loading_title": "Preparing data",
@@ -256,7 +261,7 @@
256
261
  "enter_license_no": "Freelance registration",
257
262
  "enter_license_number": "Please enter license number at least 5 chars",
258
263
  "enter_national_id": "Identification number",
259
- "enter_served_monthly": "Customers server per month",
264
+ "enter_served_monthly": "Customers served per month",
260
265
  "enter_strong_password": "Please enter strong password.",
261
266
  "enter_valid_birth_date": "Please enter a valid birth date.",
262
267
  "enter_valid_brand_name": "Please enter a valid brand name.",
@@ -286,10 +291,12 @@
286
291
  "entity_success_title": "Entity Updated Successfully",
287
292
  "entity_type": "Entity Type",
288
293
  "entity_type_required": "Please select at least one entity type",
289
- "expected_customers_to_serve": "Customers server per month",
294
+ "expected_customers_to_serve": "Customers served per month",
295
+ "expected_sale_per_month": "Expected sale per month?",
290
296
  "expected_sales_monthly": "Expected sale per month? ({{currency}})",
297
+ "expected_sale_per_month": "Expected sale per month?",
291
298
  "expected_sales_yearly": "What is the expected sales for your business per month?",
292
- "expected_served_monthly": "Customers server per month",
299
+ "expected_served_monthly": "Customers served per month",
293
300
  "expiry_date": "Date of expiry",
294
301
  "express_account_already_created_close_button": "Close",
295
302
  "express_account_already_created_description": "Your Account is already created",
@@ -402,6 +409,7 @@
402
409
  "loading": "Loading...",
403
410
  "loading_bank_statement": "loading....",
404
411
  "login_to_dashboard": "Login to dashboard",
412
+ "login_with_passcode": "Login with Passcode",
405
413
  "mail_btn_open_title": "Open Mail",
406
414
  "marital_status": "Marital status",
407
415
  "masking_symbols": "•••",
@@ -415,11 +423,14 @@
415
423
  "mobile_app_label": "Mobile App",
416
424
  "mobile_button_label": "Continue with Mobile",
417
425
  "mobile_number_description": "Start instantly with your Mobile Number",
426
+ "mobile_ownership_title": "Please update your mobile number to match you national ID",
418
427
  "month": "Month",
428
+ "monthly_income": "Monthly income",
419
429
  "nafath_button_label": "Continue with Nafath",
420
430
  "nafath_verification_description_check": "Please go to your NAFATH app and enter the above request number to authenticate.",
421
431
  "nafath_verification_description_error": "Please try again",
422
432
  "nafath_verification_description_wait": "Please go to your NAFATH app and enter the above request number to authenticate.",
433
+ "nafath_verification_failed": "Make sure to approve the request sent through Nafath App, please try to send a new request.",
423
434
  "nafath_verification_redirection_message": "You will be redirected now",
424
435
  "nafath_verification_title_check": "Authenticate with NAFATH app",
425
436
  "nafath_verification_title_error": "We cannot confirm your authentication",
@@ -429,6 +440,7 @@
429
440
  "national_id_placeholder": "0000000000",
430
441
  "national_id_title": "National ID",
431
442
  "nationality_label": "Nationality",
443
+ "new_mobile_number": "New mobile number",
432
444
  "next": "Next",
433
445
  "no": "No",
434
446
  "no login credentials available": "May you please verify the entered email address. (Note - Please make sure to enter an email address associated with Tap)",
@@ -465,6 +477,8 @@
465
477
  "paci_verify_loading": "Fetching Details",
466
478
  "paci_verify_loading_desc": "Please be patient until verify details",
467
479
  "paci_waiting_title": "Please wait we are verifying",
480
+ "passcode_required": "Please enter the required Passcode",
481
+ "passcode_title": "Please enter your passcode",
468
482
  "password_flow_completed": "Reset my password",
469
483
  "password_flow_pending": "Setup my password",
470
484
  "password_flow_title": "Setup your password",
@@ -499,6 +513,7 @@
499
513
  "please_choose_is_authorized": "Please tell us if you are the authorized user",
500
514
  "please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
501
515
  "please_enter_actual_income": "Monthly income ({{currency}})",
516
+ "monthly_income": "Monthly income",
502
517
  "please_enter_employer_name": "Please enter the name of your employer",
503
518
  "please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
504
519
  "powered_by": "Powered by",
@@ -544,7 +559,9 @@
544
559
  "share_count_hint": "0",
545
560
  "share_count_label": "Share Count",
546
561
  "share_value_hint": "0000",
562
+ "share_value_input_label": "Share Value",
547
563
  "share_value_label": "Share Value ({{currency}})",
564
+ "sign_in_with_otp": "Sign in with OTP",
548
565
  "sign_up": "Sign up",
549
566
  "signed_up": "Signed up",
550
567
  "signin_email_label": "Email address",
@@ -620,6 +637,34 @@
620
637
  "tax_success_header_title": "Tax completed",
621
638
  "tax_success_title": "Your tax details are updated",
622
639
  "team_size_title": "Team Size",
640
+ "terminal_device_id": "Device ID",
641
+ "terminal_devices": "{{name}} Devices",
642
+ "terminal_flow_pending": "Terminals",
643
+ "terminal_go_to_board": "Go to Board",
644
+ "terminal_id": "Terminal ID",
645
+ "terminal_link": "Link",
646
+ "terminal_link_terminal": "Link Terminal",
647
+ "terminal_linked": "Linked",
648
+ "terminal_linked_success": "Your terminal {{device}} is linked successfully",
649
+ "terminal_linked_with": "Linked with",
650
+ "terminal_manage_terminals": "Manage Terminals",
651
+ "terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
652
+ "terminal_no_terminal_linked": "No Terminal Linked",
653
+ "terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
654
+ "terminal_or_use_code": "or use code",
655
+ "terminal_paired_with": "Paired with",
656
+ "terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
657
+ "terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
658
+ "terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
659
+ "terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
660
+ "terminal_resend_request": "Resend Request",
661
+ "terminal_select_device": "Select device",
662
+ "terminal_send_link_request": "Send linking request",
663
+ "terminal_serial_number": "Serial no",
664
+ "terminal_unlink": "Unlink",
665
+ "terminal_unlinked": "Unlinked",
666
+ "terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
667
+ "terminal_with": "with",
623
668
  "terms_and_conditions_link_title": "terms and conditions",
624
669
  "the nin format is not valid": "May you please verify the entered identification number.",
625
670
  "title_article": "Article of association",
@@ -641,9 +686,15 @@
641
686
  "unified_number_hint": "00000",
642
687
  "unified_number_label": "Unified Number",
643
688
  "unified_number_required": "Unified Number Required",
689
+ "update_later": "I'll update later",
690
+ "update_mobile_number": "Update mobile number",
644
691
  "upload_bank_statement": "Please upload the bank statement",
645
692
  "upload_file": "Select a file from your computer",
646
693
  "uploaded_file": "file",
694
+ "v1_add_unified_number": "Add a Unified Number",
695
+ "v1_company_unified_number_description": "You can find your Company Unified Number in the top-left corner of your Company Registration Certificate.",
696
+ "v1_company_unified_number_hint": "700xxxxxxx",
697
+ "v1_company_unified_number_label": "Company unified number",
647
698
  "vat_id": "Tax Identification Number (TIN)",
648
699
  "vat_id_placeholder": "000000000",
649
700
  "verification_brand_name": "Brand name",
@@ -660,10 +711,5 @@
660
711
  "website_label": "Website",
661
712
  "year": "Year",
662
713
  "yes": "Yes",
663
- "your_brand_details": "Your brand details",
664
- "mobile_ownership_title": "To enable bank payouts, please update your registered mobile number to match your national ID.",
665
- "current_mobile_number": "Current mobile number",
666
- "new_mobile_number": "New mobile number",
667
- "update_mobile_number": "Update mobile number",
668
- "update_later": "I'll update later"
714
+ "your_brand_details": "Your brand details"
669
715
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type TextWithCurrencyProps = {
3
+ text: string;
4
+ countryCode?: string;
5
+ };
6
+ declare const TextWithCurrency: ({ text, countryCode }: TextWithCurrencyProps) => JSX.Element;
7
+ export default TextWithCurrency;