@tap-payments/auth-jsconnect 2.8.98-development → 2.9.0

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 (218) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +13 -4
  3. package/build/@types/app.js +8 -0
  4. package/build/@types/config.d.ts +4 -0
  5. package/build/@types/form.d.ts +7 -0
  6. package/build/api/account.d.ts +3 -1
  7. package/build/api/account.js +7 -0
  8. package/build/api/auth.d.ts +20 -1
  9. package/build/api/index.d.ts +8 -4
  10. package/build/api/lead.d.ts +2 -0
  11. package/build/api/lead.js +16 -0
  12. package/build/api/user.d.ts +7 -0
  13. package/build/api/user.js +9 -1
  14. package/build/app/rootReducer.d.ts +1 -0
  15. package/build/app/rootReducer.js +3 -1
  16. package/build/app/settings.d.ts +1 -0
  17. package/build/app/settings.js +14 -8
  18. package/build/app/store.d.ts +2 -0
  19. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  20. package/build/assets/currencies/AEDSymbol.js +28 -0
  21. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  22. package/build/assets/currencies/SARSymbol.js +28 -0
  23. package/build/assets/currencies/index.d.ts +2 -0
  24. package/build/assets/currencies/index.js +2 -0
  25. package/build/assets/currencies/utils.d.ts +4 -0
  26. package/build/assets/currencies/utils.js +6 -0
  27. package/build/assets/locales/ar.json +40 -12
  28. package/build/assets/locales/en.json +63 -9
  29. package/build/components/AnimationFlow/BottomSheet.js +16 -12
  30. package/build/components/AnimationFlow/Dialog.js +3 -1
  31. package/build/components/Input/Input.js +1 -1
  32. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  33. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  34. package/build/components/TextWithCurrency/index.d.ts +2 -0
  35. package/build/components/TextWithCurrency/index.js +2 -0
  36. package/build/components/Tooltip/Tooltip.js +1 -1
  37. package/build/constants/api.d.ts +2 -0
  38. package/build/constants/api.js +4 -0
  39. package/build/constants/app.d.ts +27 -0
  40. package/build/constants/app.js +151 -17
  41. package/build/constants/assets.d.ts +12 -3
  42. package/build/constants/assets.js +123 -105
  43. package/build/constants/dummy.js +27 -20
  44. package/build/constants/flows.d.ts +26 -0
  45. package/build/constants/flows.js +27 -0
  46. package/build/constants/index.d.ts +1 -0
  47. package/build/constants/index.js +1 -0
  48. package/build/constants/validation.d.ts +1 -0
  49. package/build/constants/validation.js +1 -0
  50. package/build/features/app/auth/authStore.d.ts +24 -5
  51. package/build/features/app/auth/authStore.js +197 -95
  52. package/build/features/app/board/boardStore.d.ts +5 -1
  53. package/build/features/app/board/boardStore.js +40 -35
  54. package/build/features/app/business/businessStore.d.ts +10 -1
  55. package/build/features/app/business/businessStore.js +164 -35
  56. package/build/features/app/connect/connectStore.d.ts +8 -1
  57. package/build/features/app/connect/connectStore.js +181 -68
  58. package/build/features/app/connectExpress/connectExpressStore.d.ts +21 -3
  59. package/build/features/app/connectExpress/connectExpressStore.js +448 -117
  60. package/build/features/app/individual/individualStore.d.ts +1 -1
  61. package/build/features/app/individual/individualStore.js +40 -33
  62. package/build/features/app/kyc/kycStore.d.ts +67 -0
  63. package/build/features/app/kyc/kycStore.js +432 -0
  64. package/build/features/app/signIn/signInStore.js +19 -15
  65. package/build/features/auth/Auth.d.ts +1 -1
  66. package/build/features/auth/screens/Mobile/MobileNumber.js +5 -7
  67. package/build/features/auth/screens/Mobile/validation.js +5 -2
  68. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  69. package/build/features/auth/screens/OTP/OTP.js +15 -3
  70. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  71. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  72. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  73. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  74. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  75. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  76. package/build/features/auth/screens/Passcode/index.js +2 -0
  77. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  78. package/build/features/auth/screens/Passcode/validation.js +4 -0
  79. package/build/features/bank/Bank.d.ts +5 -1
  80. package/build/features/bank/Bank.js +15 -7
  81. package/build/features/board/Board.js +1 -1
  82. package/build/features/brand/Brand.d.ts +5 -1
  83. package/build/features/brand/Brand.js +15 -7
  84. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  85. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  86. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  87. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  88. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  89. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  90. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  91. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  92. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  93. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  94. package/build/features/connect/Connect.js +1 -1
  95. package/build/features/connect/screens/Individual/MobileNumber.js +5 -7
  96. package/build/features/connect/screens/Individual/validation.js +5 -2
  97. package/build/features/connect/screens/Mobile/MobileNumber.js +5 -7
  98. package/build/features/connect/screens/Mobile/validation.js +5 -2
  99. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  100. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  101. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  102. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  103. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  104. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  105. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  106. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  107. package/build/features/connectExpress/ConnectExpress.js +1 -1
  108. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +5 -7
  109. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +5 -2
  110. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +3 -0
  111. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
  112. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
  113. package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
  114. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +5 -7
  115. package/build/features/connectExpress/screens/Mobile/validation.js +9 -4
  116. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  117. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  118. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  119. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  120. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  121. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  122. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  123. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  124. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
  125. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
  126. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  127. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
  128. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  129. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  130. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
  131. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
  132. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
  133. package/build/features/entity/Entity.d.ts +4 -1
  134. package/build/features/entity/Entity.js +15 -7
  135. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  136. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  137. package/build/features/featuresScreens.d.ts +1 -0
  138. package/build/features/featuresScreens.js +73 -0
  139. package/build/features/individual/Individual.d.ts +4 -1
  140. package/build/features/individual/Individual.js +15 -7
  141. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  142. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  143. package/build/features/individual/screens/IndividualList/MobileNumber.js +5 -10
  144. package/build/features/individual/screens/IndividualList/validation.js +5 -3
  145. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +3 -5
  146. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +5 -2
  147. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +5 -10
  148. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +5 -2
  149. package/build/features/kyc/KYC.d.ts +11 -0
  150. package/build/features/kyc/KYC.js +99 -0
  151. package/build/features/kyc/index.d.ts +1 -0
  152. package/build/features/kyc/index.js +1 -0
  153. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  154. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  155. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  156. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  157. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  158. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  159. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  160. package/build/features/kyc/screens/Loading/index.js +2 -0
  161. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  162. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  163. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  164. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  165. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  166. package/build/features/kyc/screens/Success/Success.js +32 -0
  167. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  168. package/build/features/kyc/screens/Success/index.js +2 -0
  169. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  170. package/build/features/kyc/screens/Terms/Header.js +36 -0
  171. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  172. package/build/features/kyc/screens/Terms/Terms.js +87 -0
  173. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  174. package/build/features/kyc/screens/Terms/index.js +2 -0
  175. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  176. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  177. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  178. package/build/features/kyc/screens/TokenError/index.js +2 -0
  179. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  180. package/build/features/kyc/screens/Users/Users.js +76 -0
  181. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  182. package/build/features/kyc/screens/Users/index.js +2 -0
  183. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  184. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  185. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  186. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  187. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  188. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  189. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  190. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  191. package/build/features/password/Password.d.ts +4 -1
  192. package/build/features/password/Password.js +13 -6
  193. package/build/features/shared/Background/LogoBackground.js +5 -17
  194. package/build/features/shared/Button/Button.js +1 -2
  195. package/build/features/shared/Button/FlowsButtons.js +5 -2
  196. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  197. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  198. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  199. package/build/features/shared/Input/Input.d.ts +1 -1
  200. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  201. package/build/features/signIn/screens/Mobile/MobileNumber.js +5 -7
  202. package/build/features/signIn/screens/Mobile/validation.js +5 -2
  203. package/build/features/tax/Tax.d.ts +4 -1
  204. package/build/features/tax/Tax.js +15 -7
  205. package/build/hooks/useAppConfig.js +1 -1
  206. package/build/hooks/useAppDispatch.d.ts +1 -0
  207. package/build/hooks/useSanitizedTranslation.d.ts +2 -1
  208. package/build/hooks/useSanitizedTranslation.js +2 -2
  209. package/build/index.d.ts +3 -2
  210. package/build/index.js +4 -2
  211. package/build/theme/shadows.js +1 -1
  212. package/build/utils/common.d.ts +1 -1
  213. package/build/utils/common.js +6 -5
  214. package/build/utils/error.d.ts +1 -0
  215. package/build/utils/error.js +3 -0
  216. package/build/utils/string.d.ts +5 -2
  217. package/build/utils/string.js +16 -2
  218. package/package.json +3 -4
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>
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PaymentProvider, SettingAsyncData } from './config';
2
+ import { PaymentProvider, SDKNotification, SettingAsyncData } from './config';
3
3
  import { LanguageMode, DialogEdgeFormat } from './theme';
4
4
  export interface CountryCode {
5
5
  created: number;
@@ -210,7 +210,7 @@ interface LibCallbacks {
210
210
  onBoardButtonClick?: (data: Record<string, any>) => void;
211
211
  onCreated?: (res: Record<string, any>) => void;
212
212
  onBoardCompleted?: () => void;
213
- onMaturityChanged?: (maturity: 'full' | 'express') => void;
213
+ onMaturityChanged?: (maturity: 'full' | 'express') => Promise<void>;
214
214
  onSwitchToBoard?: (boardId: string, authId: string) => void;
215
215
  }
216
216
  export interface LibConfig extends LibCallbacks {
@@ -242,8 +242,10 @@ export interface LibConfig extends LibCallbacks {
242
242
  redirectUrl?: string;
243
243
  data?: Array<string>;
244
244
  mode?: 'popup' | 'page' | 'content';
245
+ notification?: SDKNotification;
245
246
  boardMaturity?: boolean;
246
247
  settingData?: SettingAsyncData;
248
+ region?: string;
247
249
  }
248
250
  export interface OSDetails {
249
251
  name: string;
@@ -336,7 +338,8 @@ export declare enum FlowsTypes {
336
338
  ENTITY = "entity",
337
339
  OTP = "otp",
338
340
  BRAND = "brand",
339
- BOARD = "board"
341
+ BOARD = "board",
342
+ kyc = "kyc"
340
343
  }
341
344
  export declare type FlowInfo = {
342
345
  name: string;
@@ -349,12 +352,18 @@ export declare enum AuthForType {
349
352
  NATIONAL_ID = "national_id",
350
353
  NATIONAL_ID_MISSED = "national_id_missed"
351
354
  }
355
+ export declare enum AuthForScreen {
356
+ INDIVIDUAL = "individual",
357
+ DOB = "dob",
358
+ MOBILE_OWNERSHIP = "mobile_ownership"
359
+ }
352
360
  export declare enum AuthTypeNumber {
353
361
  EMAIL_OTP = 5,
354
362
  MOBILE_OTP = 2,
355
363
  PASSWORD = 1,
356
364
  MIGRATION = 10,
357
- RESET_PASSWORD = 7
365
+ RESET_PASSWORD = 7,
366
+ PASSCODE = 11
358
367
  }
359
368
  export declare enum MigrationStatus {
360
369
  IN_PROGRESS = "IN_PROGRESS",
@@ -34,6 +34,7 @@ export var FlowsTypes;
34
34
  FlowsTypes["OTP"] = "otp";
35
35
  FlowsTypes["BRAND"] = "brand";
36
36
  FlowsTypes["BOARD"] = "board";
37
+ FlowsTypes["kyc"] = "kyc";
37
38
  })(FlowsTypes || (FlowsTypes = {}));
38
39
  export var AuthForType;
39
40
  (function (AuthForType) {
@@ -42,6 +43,12 @@ export var AuthForType;
42
43
  AuthForType["NATIONAL_ID"] = "national_id";
43
44
  AuthForType["NATIONAL_ID_MISSED"] = "national_id_missed";
44
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 = {}));
45
52
  export var AuthTypeNumber;
46
53
  (function (AuthTypeNumber) {
47
54
  AuthTypeNumber[AuthTypeNumber["EMAIL_OTP"] = 5] = "EMAIL_OTP";
@@ -49,6 +56,7 @@ export var AuthTypeNumber;
49
56
  AuthTypeNumber[AuthTypeNumber["PASSWORD"] = 1] = "PASSWORD";
50
57
  AuthTypeNumber[AuthTypeNumber["MIGRATION"] = 10] = "MIGRATION";
51
58
  AuthTypeNumber[AuthTypeNumber["RESET_PASSWORD"] = 7] = "RESET_PASSWORD";
59
+ AuthTypeNumber[AuthTypeNumber["PASSCODE"] = 11] = "PASSCODE";
52
60
  })(AuthTypeNumber || (AuthTypeNumber = {}));
53
61
  export var MigrationStatus;
54
62
  (function (MigrationStatus) {
@@ -18,6 +18,10 @@ export interface PaymentProvider {
18
18
  interface Redirect {
19
19
  url: string;
20
20
  }
21
+ export interface SDKNotification {
22
+ email: boolean;
23
+ mobile?: boolean;
24
+ }
21
25
  interface Interface {
22
26
  locale?: 'dynamic' | 'ar' | 'en';
23
27
  edges?: 'straight' | 'curved';
@@ -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
  };
@@ -160,3 +163,7 @@ export declare type AuthenticationListFormValues = {
160
163
  export declare type AuthMerchantFormValues = {
161
164
  merchantInfo?: AuthMerchantInfo;
162
165
  };
166
+ export declare type MobileOwnershipFormValues = {
167
+ mobile: string;
168
+ countryCode: CountryCode;
169
+ };
@@ -1,4 +1,4 @@
1
- import { PaymentProvider } from '../@types';
1
+ import { PaymentProvider, SDKNotification } from '../@types';
2
2
  export declare type CreateAccountBody = {
3
3
  lead_id: string;
4
4
  notify: {
@@ -14,11 +14,13 @@ export declare type ExpressCreateAccountBody = {
14
14
  lead_id: string;
15
15
  platforms?: string[];
16
16
  payment_provider?: PaymentProvider;
17
+ notification?: SDKNotification;
17
18
  };
18
19
  declare const accountService: {
19
20
  createAccount: (data: CreateAccountBody) => Promise<any>;
20
21
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
21
22
  checkAccountAvailability: (individualId: string) => Promise<any>;
23
+ checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
22
24
  checkMigrationStatus: (jobId: string) => Promise<any>;
23
25
  };
24
26
  export { accountService };
@@ -20,6 +20,12 @@ var checkAccountAvailability = function (individualId) {
20
20
  url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
21
21
  });
22
22
  };
23
+ var checkAccountAvailabilityStatus = function (individualId) {
24
+ return httpClient({
25
+ method: 'get',
26
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status")
27
+ });
28
+ };
23
29
  var checkMigrationStatus = function (jobId) {
24
30
  return httpClient({
25
31
  method: 'get',
@@ -30,6 +36,7 @@ var accountService = {
30
36
  createAccount: createAccount,
31
37
  expressCreateAccount: expressCreateAccount,
32
38
  checkAccountAvailability: checkAccountAvailability,
39
+ checkAccountAvailabilityStatus: checkAccountAvailabilityStatus,
33
40
  checkMigrationStatus: checkMigrationStatus
34
41
  };
35
42
  export { accountService };
@@ -29,6 +29,9 @@ export declare type CreateAuthBody = {
29
29
  encryption_contract: Array<string>;
30
30
  lang?: LanguageMode;
31
31
  lead_id?: string;
32
+ board_id?: string;
33
+ user_id?: string;
34
+ login?: boolean;
32
35
  };
33
36
  export declare type CreateNafathAuthBody = {
34
37
  country: string;
@@ -42,6 +45,22 @@ export declare type CreateNafathAuthBody = {
42
45
  encryption_contract: Array<string>;
43
46
  lang?: LanguageMode;
44
47
  lead_id?: string;
48
+ board_id?: string;
49
+ user_id?: string;
50
+ };
51
+ export declare type CreateKYCAuthBody = {
52
+ country: string;
53
+ scope: string;
54
+ auth_type?: number;
55
+ email_url?: string;
56
+ sign_in?: boolean;
57
+ is_lead?: boolean;
58
+ step_name?: string;
59
+ encryption_contract: Array<string>;
60
+ lang?: LanguageMode;
61
+ lead_id?: string;
62
+ board_id?: string;
63
+ user_id?: string;
45
64
  };
46
65
  export declare type VerifyAuthBody = {
47
66
  auth_token: string;
@@ -100,7 +119,7 @@ export declare type getExpressTokenVerifyParams = {
100
119
  };
101
120
  export declare type ConfigBody = Pick<ConfigInfo, 'scope' | 'data' | 'lead' | 'board' | 'interface' | 'redirect' | 'post'>;
102
121
  declare const authService: {
103
- createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<any>;
122
+ createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: AxiosRequestConfig) => Promise<any>;
104
123
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
105
124
  createPassword: (data: CreatePasswordBody) => Promise<any>;
106
125
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
@@ -1,6 +1,6 @@
1
1
  import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
2
2
  import { ValidateOperatorBody, ConfirmBody } from './operator';
3
- import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody, CreateNafathAuthBody } from './auth';
3
+ import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody, CreateNafathAuthBody, CreateKYCAuthBody } from './auth';
4
4
  import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
6
  import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity, MerchantListBody, CreateEntityBody } from './entity';
@@ -8,7 +8,7 @@ import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
9
  import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody } from './individual';
10
10
  import { UpdateBoardBody, RequestEmailBody } from './board';
11
- import { GetUserListBody } from './user';
11
+ import { GetUserListBody, GetUserListSegmentBody } from './user';
12
12
  import { RemoveBrandActivity } from './brand';
13
13
  import { UploadFileBody } from './file';
14
14
  import { DocumentUpdateBody, DocumentInfo, DocumentBody } from './document';
@@ -30,7 +30,7 @@ declare const API: {
30
30
  getCurrency: (countryCode: string) => Promise<any>;
31
31
  };
32
32
  authService: {
33
- createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
33
+ createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
34
34
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
35
35
  createPassword: (data: CreatePasswordBody) => Promise<any>;
36
36
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
@@ -50,7 +50,9 @@ declare const API: {
50
50
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
51
51
  getLeadById: (leadId: string) => Promise<any>;
52
52
  verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
53
+ verifyToken: (data: LeadVerifyBody) => Promise<any>;
53
54
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
55
+ verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
54
56
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
55
57
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
56
58
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
@@ -89,6 +91,7 @@ declare const API: {
89
91
  createAccount: (data: CreateAccountBody) => Promise<any>;
90
92
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
91
93
  checkAccountAvailability: (individualId: string) => Promise<any>;
94
+ checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
92
95
  checkMigrationStatus: (jobId: string) => Promise<any>;
93
96
  };
94
97
  dataService: {
@@ -138,6 +141,7 @@ declare const API: {
138
141
  userService: {
139
142
  retrieveUserInfo: (userId: string) => Promise<any>;
140
143
  getUserList: (data: GetUserListBody) => Promise<any>;
144
+ getUserListUsingSegmentId: (data: GetUserListSegmentBody) => Promise<any>;
141
145
  };
142
146
  brandService: {
143
147
  retrieveBrand: (id: string) => Promise<any>;
@@ -161,6 +165,6 @@ declare const API: {
161
165
  getInitialData: (body: InitBody) => Promise<any>;
162
166
  };
163
167
  };
164
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody };
168
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody };
165
169
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
166
170
  export default API;
@@ -121,7 +121,9 @@ declare const leadService: {
121
121
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
122
122
  getLeadById: (leadId: string) => Promise<any>;
123
123
  verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
124
+ verifyToken: (data: LeadVerifyBody) => Promise<any>;
124
125
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
126
+ verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
125
127
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
126
128
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
127
129
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
package/build/api/lead.js CHANGED
@@ -78,6 +78,13 @@ var getLeadById = function (leadId) {
78
78
  var verifyLeadToken = function (data, config) {
79
79
  return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
80
80
  };
81
+ var verifyToken = function (data) {
82
+ return httpClient({
83
+ method: 'put',
84
+ url: "".concat(ENDPOINT_PATHS.TOKEN_VERIFY),
85
+ data: data
86
+ });
87
+ };
81
88
  var verifyExpressLeadToken = function (data) {
82
89
  return httpClient({
83
90
  method: 'put',
@@ -88,6 +95,13 @@ var verifyExpressLeadToken = function (data) {
88
95
  var verifyLeadOTP = function (data, config) {
89
96
  return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
90
97
  };
98
+ var verifyTokenOTP = function (data) {
99
+ return httpClient({
100
+ method: 'put',
101
+ url: "".concat(ENDPOINT_PATHS.TOKEN_VERIFY),
102
+ data: data
103
+ });
104
+ };
91
105
  var retrieveEntityList = function (leadId) {
92
106
  return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_ENTITY_LIST, "/").concat(leadId));
93
107
  };
@@ -112,7 +126,9 @@ var leadService = {
112
126
  retrieveLead: retrieveLead,
113
127
  getLeadById: getLeadById,
114
128
  verifyLeadToken: verifyLeadToken,
129
+ verifyToken: verifyToken,
115
130
  verifyLeadOTP: verifyLeadOTP,
131
+ verifyTokenOTP: verifyTokenOTP,
116
132
  retrieveEntityList: retrieveEntityList,
117
133
  retrieveLeadIdentity: retrieveLeadIdentity,
118
134
  updateLeadExpress: updateLeadExpress,
@@ -7,8 +7,15 @@ export declare type GetUserListBody = {
7
7
  limit: number;
8
8
  business_id: string;
9
9
  };
10
+ export declare type GetUserListSegmentBody = {
11
+ page: number;
12
+ limit: number;
13
+ is_authorized: boolean;
14
+ segment_ids: string[];
15
+ };
10
16
  declare const userService: {
11
17
  retrieveUserInfo: (userId: string) => Promise<any>;
12
18
  getUserList: (data: GetUserListBody) => Promise<any>;
19
+ getUserListUsingSegmentId: (data: GetUserListSegmentBody) => Promise<any>;
13
20
  };
14
21
  export { userService };
package/build/api/user.js CHANGED
@@ -13,8 +13,16 @@ var getUserList = function (data) {
13
13
  data: data
14
14
  });
15
15
  };
16
+ var getUserListUsingSegmentId = function (data) {
17
+ return httpClient({
18
+ method: 'post',
19
+ url: "".concat(ENDPOINT_PATHS.RETRIEVE_USER_INFO, "/list"),
20
+ data: data
21
+ });
22
+ };
16
23
  var userService = {
17
24
  retrieveUserInfo: retrieveUserInfo,
18
- getUserList: getUserList
25
+ getUserList: getUserList,
26
+ getUserListUsingSegmentId: getUserListUsingSegmentId
19
27
  };
20
28
  export { userService };
@@ -12,5 +12,6 @@ declare const rootReducer: {
12
12
  connectExpress: import("redux").Reducer<import("../features/app/connectExpress/connectExpressStore").ConnectExpressState, import("redux").AnyAction>;
13
13
  auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
14
14
  board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
15
+ kyc: import("redux").Reducer<import("../features/app/kyc/kycStore").KYCDataState, import("redux").AnyAction>;
15
16
  };
16
17
  export default rootReducer;
@@ -11,6 +11,7 @@ import brand from '../features/app/brand/brandStore';
11
11
  import connectExpress from '../features/app/connectExpress/connectExpressStore';
12
12
  import board from '../features/app/board/boardStore';
13
13
  import auth from '../features/app/auth/authStore';
14
+ import kyc from '../features/app/kyc/kycStore';
14
15
  var rootReducer = {
15
16
  settings: settings,
16
17
  connect: connect,
@@ -24,6 +25,7 @@ var rootReducer = {
24
25
  brand: brand,
25
26
  connectExpress: connectExpress,
26
27
  auth: auth,
27
- board: board
28
+ board: board,
29
+ kyc: kyc
28
30
  };
29
31
  export default rootReducer;
@@ -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,16 +112,13 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
112
112
  thunkApi.dispatch(handleLanguage(lang));
113
113
  if (configInfo.publicKey) {
114
114
  if (configToken) {
115
- setBaseUrl(configInfo.publicKey);
115
+ setBaseUrl(configInfo.publicKey, appConfig.region);
116
116
  }
117
117
  thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
118
118
  }
119
119
  if (typeof (board === null || board === void 0 ? void 0 : board.editable) === 'boolean')
120
120
  thunkApi.dispatch(handelBoardMaturity(board.editable));
121
121
  onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
122
- if (matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function') {
123
- configInfo.onMaturityChanged(matureData);
124
- }
125
122
  }
126
123
  deviceInfo = {
127
124
  app: {
@@ -172,12 +169,17 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
172
169
  operator: operator,
173
170
  locale: locale
174
171
  });
175
- return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (merchant && { merchant: merchant }))];
172
+ if (!(matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function')) return [3, 7];
173
+ return [4, configInfo.onMaturityChanged(matureData)];
174
+ case 6:
175
+ _k.sent();
176
+ _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 }))];
176
178
  }
177
179
  });
178
180
  }); });
179
181
  export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
180
- 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;
181
183
  var _b, _c;
182
184
  return __generator(this, function (_d) {
183
185
  switch (_d.label) {
@@ -186,7 +188,7 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
186
188
  _a = settings.data, appConfig = _a.appConfig, authId = _a.authId;
187
189
  postURL = appConfig.postURL, redirectUrl = appConfig.redirectUrl;
188
190
  bi = settings.data.deviceInfo.browser.browser_id;
189
- merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId;
191
+ merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId, nextScreen = params.nextScreen;
190
192
  if (!authId) return [3, 2];
191
193
  body = {
192
194
  post_url: postURL || '',
@@ -201,6 +203,10 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
201
203
  case 1:
202
204
  data = _d.sent();
203
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
+ }
204
210
  if (settings.data.appConfig.mode === 'popup') {
205
211
  settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
206
212
  thunkApi.dispatch(handleOpen(false));
@@ -13,6 +13,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
13
13
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
14
14
  auth: import("../features/app/auth/authStore").AuthState;
15
15
  board: import("../features/app/board/boardStore").BoardState;
16
+ kyc: import("../features/app/kyc/kycStore").KYCDataState;
16
17
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
17
18
  settings: import("./settings").SettingsState;
18
19
  connect: import("../features/app/connect/connectStore").ConnectState;
@@ -27,6 +28,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
27
28
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
28
29
  auth: import("../features/app/auth/authStore").AuthState;
29
30
  board: import("../features/app/board/boardStore").BoardState;
31
+ kyc: import("../features/app/kyc/kycStore").KYCDataState;
30
32
  }, import("redux").AnyAction, undefined>]>>;
31
33
  export declare type AppDispatch = typeof store.dispatch;
32
34
  export declare type RootState = ReturnType<typeof store.getState>;
@@ -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' }, 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' }, 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
+ };