@tap-payments/auth-jsconnect 1.0.5 → 1.0.8

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 (242) hide show
  1. package/build/@types/app.d.ts +61 -3
  2. package/build/@types/app.js +5 -0
  3. package/build/app/settings.d.ts +3 -3
  4. package/build/app/settings.js +26 -11
  5. package/build/assets/locales/ar.json +51 -3
  6. package/build/assets/locales/en.json +50 -2
  7. package/build/components/AnimationFlow/BottomSheet.js +1 -1
  8. package/build/components/AnimationFlow/Dialog.js +7 -22
  9. package/build/components/Footer/Footer.js +1 -1
  10. package/build/components/Loader/Loader.js +12 -11
  11. package/build/components/OTPField/OTPField.js +3 -23
  12. package/build/components/OTPTimer/OTPTimer.d.ts +4 -3
  13. package/build/components/OTPTimer/OTPTimer.js +19 -6
  14. package/build/components/Providers/ThemeProvider.js +3 -2
  15. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  16. package/build/components/SimpleList/SimpleList.js +2 -5
  17. package/build/components/Warning/Warning.js +2 -18
  18. package/build/constants/app.d.ts +9 -0
  19. package/build/constants/app.js +112 -2
  20. package/build/constants/assets.d.ts +4 -0
  21. package/build/constants/assets.js +4 -0
  22. package/build/constants/dummy.d.ts +103 -0
  23. package/build/constants/dummy.js +219 -0
  24. package/build/constants/validation.d.ts +4 -0
  25. package/build/constants/validation.js +4 -0
  26. package/build/features/bank/Bank.d.ts +6 -0
  27. package/build/features/bank/Bank.js +48 -0
  28. package/build/features/bank/index.d.ts +1 -0
  29. package/build/features/bank/index.js +1 -0
  30. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
  31. package/build/features/bank/screens/BankDetails/BankDetails.js +57 -0
  32. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
  33. package/build/features/bank/screens/BankDetails/BankName.js +27 -0
  34. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
  35. package/build/features/bank/screens/BankDetails/Beneficiary.js +34 -0
  36. package/build/features/bank/screens/BankDetails/IBAN.d.ts +5 -0
  37. package/build/features/bank/screens/BankDetails/IBAN.js +35 -0
  38. package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
  39. package/build/features/bank/screens/BankDetails/index.js +2 -0
  40. package/build/features/bank/screens/BankDetails/validation.d.ts +14 -0
  41. package/build/features/bank/screens/BankDetails/validation.js +9 -0
  42. package/build/features/business/Business.d.ts +6 -0
  43. package/build/features/business/Business.js +61 -0
  44. package/build/features/business/index.d.ts +1 -0
  45. package/build/features/business/index.js +1 -1
  46. package/build/features/business/screens/Activities/Activities.d.ts +5 -0
  47. package/build/features/business/screens/Activities/Activities.js +83 -0
  48. package/build/features/business/screens/Activities/ActivitiesList.d.ts +70 -0
  49. package/build/features/business/screens/Activities/ActivitiesList.js +136 -0
  50. package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -0
  51. package/build/features/business/screens/Activities/SalesChannels.js +107 -0
  52. package/build/features/business/screens/Activities/index.d.ts +3 -0
  53. package/build/features/business/screens/Activities/index.js +2 -0
  54. package/build/features/business/screens/Activities/validation.d.ts +119 -0
  55. package/build/features/business/screens/Activities/validation.js +17 -0
  56. package/build/features/business/screens/BusinessType/BusinessType.d.ts +12 -0
  57. package/build/features/business/screens/BusinessType/BusinessType.js +85 -0
  58. package/build/features/business/screens/BusinessType/CRNumber.d.ts +6 -0
  59. package/build/features/business/screens/BusinessType/CRNumber.js +40 -0
  60. package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +11 -0
  61. package/build/features/business/screens/BusinessType/CompanyLicense.js +109 -0
  62. package/build/features/business/screens/BusinessType/FLNumber.d.ts +6 -0
  63. package/build/features/business/screens/BusinessType/FLNumber.js +40 -0
  64. package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +11 -0
  65. package/build/features/business/screens/BusinessType/FreelanceLicense.js +112 -0
  66. package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
  67. package/build/features/business/screens/BusinessType/SelectType.js +106 -0
  68. package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
  69. package/build/features/business/screens/BusinessType/Switch.js +35 -0
  70. package/build/features/business/screens/BusinessType/index.d.ts +3 -0
  71. package/build/features/business/screens/BusinessType/index.js +2 -0
  72. package/build/features/business/screens/BusinessType/validation.d.ts +15 -0
  73. package/build/features/business/screens/BusinessType/validation.js +14 -0
  74. package/build/features/business/screens/Confirm/Confirm.d.ts +5 -0
  75. package/build/features/business/screens/Confirm/Confirm.js +53 -0
  76. package/build/features/business/screens/Confirm/index.d.ts +3 -0
  77. package/build/features/business/screens/Confirm/index.js +2 -0
  78. package/build/features/business/screens/Customers/CustomerLocations.d.ts +92 -0
  79. package/build/features/business/screens/Customers/CustomerLocations.js +122 -0
  80. package/build/features/business/screens/Customers/Customers.d.ts +5 -0
  81. package/build/features/business/screens/Customers/Customers.js +92 -0
  82. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +7 -0
  83. package/build/features/business/screens/Customers/ExpectedCustomers.js +78 -0
  84. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +7 -0
  85. package/build/features/business/screens/Customers/ExpectedSalesRange.js +74 -0
  86. package/build/features/business/screens/Customers/RefundPolicy.d.ts +44 -0
  87. package/build/features/business/screens/Customers/RefundPolicy.js +86 -0
  88. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
  89. package/build/features/business/screens/Customers/TransactionPolicy.js +37 -0
  90. package/build/features/business/screens/Customers/index.d.ts +3 -0
  91. package/build/features/business/screens/Customers/index.js +2 -0
  92. package/build/features/business/screens/Customers/validation.d.ts +20 -0
  93. package/build/features/business/screens/Customers/validation.js +8 -0
  94. package/build/features/business/screens/IDBOD/DOB.js +8 -8
  95. package/build/features/business/screens/IDBOD/ID.js +8 -7
  96. package/build/features/business/screens/IDBOD/IDBOD.js +5 -6
  97. package/build/features/business/screens/OTP/OTP.d.ts +11 -0
  98. package/build/features/business/screens/OTP/OTP.js +112 -0
  99. package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
  100. package/build/features/business/screens/OTP/OTPInput.js +51 -0
  101. package/build/features/{connect → business}/screens/OTP/OTPTimer.d.ts +0 -0
  102. package/build/features/business/screens/OTP/OTPTimer.js +20 -0
  103. package/build/features/business/screens/OTP/index.d.ts +3 -0
  104. package/build/features/business/screens/OTP/index.js +2 -0
  105. package/build/features/business/screens/OTP/validation.d.ts +8 -0
  106. package/build/features/business/screens/OTP/validation.js +4 -0
  107. package/build/features/business/screens/Success/Success.d.ts +5 -0
  108. package/build/features/business/screens/Success/Success.js +15 -0
  109. package/build/features/business/screens/Success/index.d.ts +3 -0
  110. package/build/features/business/screens/Success/index.js +2 -0
  111. package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +6 -0
  112. package/build/features/business/screens/VerifyNumber/OTPInput.js +68 -0
  113. package/build/features/business/screens/VerifyNumber/OTPTimer.d.ts +5 -0
  114. package/build/features/business/screens/VerifyNumber/OTPTimer.js +20 -0
  115. package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +13 -0
  116. package/build/features/business/screens/VerifyNumber/VerifyNumber.js +119 -0
  117. package/build/features/business/screens/VerifyNumber/index.d.ts +3 -0
  118. package/build/features/business/screens/VerifyNumber/index.js +2 -0
  119. package/build/features/business/screens/VerifyNumber/validation.d.ts +8 -0
  120. package/build/features/business/screens/VerifyNumber/validation.js +4 -0
  121. package/build/features/connect/Connect.js +6 -18
  122. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  123. package/build/features/connect/screens/Individual/Email.js +6 -31
  124. package/build/features/connect/screens/Individual/Individual.js +7 -16
  125. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  126. package/build/features/connect/screens/Individual/Name.js +7 -34
  127. package/build/features/connect/screens/MID/BusinessCountry.js +5 -40
  128. package/build/features/connect/screens/MID/IDNumber.js +13 -28
  129. package/build/features/connect/screens/MID/MID.js +6 -43
  130. package/build/features/connect/screens/MID/MobileNumber.js +22 -41
  131. package/build/features/connect/screens/Merchant/BrandName.js +5 -31
  132. package/build/features/connect/screens/Merchant/Merchant.js +6 -50
  133. package/build/features/connect/screens/Merchant/SocialMedia.js +3 -11
  134. package/build/features/connect/screens/Merchant/TAC.js +4 -13
  135. package/build/features/connect/screens/OTP/OTP.js +17 -61
  136. package/build/features/connect/screens/OTP/OTPInput.js +8 -21
  137. package/build/features/connect/screens/Password/Password.js +12 -49
  138. package/build/features/connect/screens/Password/PasswordInput.js +16 -51
  139. package/build/features/connect/screens/ThankYou/ThankYou.js +4 -65
  140. package/build/features/featuresScreens.d.ts +5 -0
  141. package/build/features/featuresScreens.js +78 -7
  142. package/build/features/owner/Owner.d.ts +6 -0
  143. package/build/features/owner/Owner.js +50 -0
  144. package/build/features/owner/index.d.ts +1 -0
  145. package/build/features/owner/index.js +1 -0
  146. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +19 -0
  147. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +52 -0
  148. package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +3 -0
  149. package/build/features/owner/screens/ShowOwnerInfo/index.js +2 -0
  150. package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +7 -0
  151. package/build/features/owner/screens/ShowOwnerInfo/info.js +28 -0
  152. package/build/features/password/Password.d.ts +6 -0
  153. package/build/features/password/Password.js +50 -0
  154. package/build/features/password/index.d.ts +1 -0
  155. package/build/features/password/index.js +1 -0
  156. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
  157. package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
  158. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +5 -0
  159. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +27 -0
  160. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
  161. package/build/features/password/screens/CreatePassword/CreatePassword.js +51 -0
  162. package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
  163. package/build/features/password/screens/CreatePassword/Password.js +75 -0
  164. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
  165. package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
  166. package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
  167. package/build/features/password/screens/CreatePassword/index.js +2 -0
  168. package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
  169. package/build/features/password/screens/CreatePassword/validation.js +8 -0
  170. package/build/features/shared/Button/Button.d.ts +8 -0
  171. package/build/features/shared/Button/Button.js +47 -0
  172. package/build/features/shared/Button/index.d.ts +2 -0
  173. package/build/features/shared/Button/index.js +2 -0
  174. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
  175. package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
  176. package/build/features/shared/CheckIcon/index.d.ts +2 -0
  177. package/build/features/shared/CheckIcon/index.js +2 -0
  178. package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
  179. package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
  180. package/build/features/shared/ClearIcon/index.d.ts +2 -0
  181. package/build/features/shared/ClearIcon/index.js +2 -0
  182. package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
  183. package/build/features/shared/Containers/FeatureContainer.js +33 -0
  184. package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
  185. package/build/features/shared/Containers/ScreenContainer.js +28 -0
  186. package/build/features/shared/Containers/index.d.ts +3 -0
  187. package/build/features/shared/Containers/index.js +3 -0
  188. package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +7 -0
  189. package/build/features/shared/ExpandIcon/ExpandIcon.js +24 -0
  190. package/build/features/shared/ExpandIcon/index.d.ts +2 -0
  191. package/build/features/shared/ExpandIcon/index.js +2 -0
  192. package/build/features/shared/Footer/Footer.d.ts +2 -0
  193. package/build/features/shared/Footer/Footer.js +16 -0
  194. package/build/features/shared/Footer/index.d.ts +2 -0
  195. package/build/features/shared/Footer/index.js +2 -0
  196. package/build/features/shared/Input/Input.d.ts +27 -0
  197. package/build/features/shared/Input/Input.js +59 -0
  198. package/build/features/shared/Input/index.d.ts +2 -0
  199. package/build/features/shared/Input/index.js +2 -0
  200. package/build/features/shared/OTP/OTP.d.ts +9 -0
  201. package/build/features/shared/OTP/OTP.js +85 -0
  202. package/build/features/shared/OTP/index.d.ts +2 -0
  203. package/build/features/shared/OTP/index.js +2 -0
  204. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
  205. package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
  206. package/build/features/shared/PasswordIcon/index.d.ts +2 -0
  207. package/build/features/shared/PasswordIcon/index.js +2 -0
  208. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +7 -0
  209. package/build/features/shared/SuccessScreen/SuccessScreen.js +54 -0
  210. package/build/features/shared/SuccessScreen/index.d.ts +2 -0
  211. package/build/features/shared/SuccessScreen/index.js +2 -0
  212. package/build/features/tax/Tax.d.ts +6 -0
  213. package/build/features/tax/Tax.js +50 -0
  214. package/build/features/tax/index.d.ts +1 -0
  215. package/build/features/tax/index.js +1 -0
  216. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
  217. package/build/features/tax/screens/TaxDetails/TaxDetails.js +45 -0
  218. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
  219. package/build/features/tax/screens/TaxDetails/VATId.js +27 -0
  220. package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
  221. package/build/features/tax/screens/TaxDetails/index.js +2 -0
  222. package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -0
  223. package/build/features/tax/screens/TaxDetails/validation.js +4 -0
  224. package/build/hooks/index.d.ts +1 -0
  225. package/build/hooks/index.js +1 -0
  226. package/build/hooks/useContainerDimensions.d.ts +4 -0
  227. package/build/hooks/useContainerDimensions.js +21 -0
  228. package/build/index.css +1 -1
  229. package/build/index.d.ts +7 -2
  230. package/build/index.js +17 -2
  231. package/build/theme/palette.js +10 -4
  232. package/build/theme/typography.js +2 -2
  233. package/build/utils/array.d.ts +3 -1
  234. package/build/utils/array.js +7 -3
  235. package/build/utils/string.d.ts +2 -0
  236. package/build/utils/string.js +11 -0
  237. package/build/utils/validation.d.ts +6 -0
  238. package/build/utils/validation.js +19 -1
  239. package/package.json +1 -1
  240. package/build/features/connect/Footer.d.ts +0 -4
  241. package/build/features/connect/Footer.js +0 -16
  242. package/build/features/connect/screens/OTP/OTPTimer.js +0 -35
@@ -27,12 +27,12 @@ export interface CountryCode {
27
27
  }
28
28
  export interface ScreenStepNavigation {
29
29
  name: string;
30
- next: string;
31
- prev: string;
30
+ next: string | string[];
31
+ prev: string | string[];
32
32
  order: number;
33
33
  }
34
34
  export interface FeatureScreenStep {
35
- element: React.LazyExoticComponent<any>;
35
+ element: React.MemoExoticComponent<any> | React.ComponentType<any>;
36
36
  name: string;
37
37
  }
38
38
  export declare enum SocialMediaTypes {
@@ -40,3 +40,61 @@ export declare enum SocialMediaTypes {
40
40
  INSTAGRAM = "instagram",
41
41
  TWITTER = "twitter"
42
42
  }
43
+ export interface CustomerLocation {
44
+ id: number;
45
+ name: string;
46
+ nameAR: string;
47
+ }
48
+ export interface ExpectedCustomer extends CustomerLocation {
49
+ }
50
+ export interface ExpectedSaleRange extends CustomerLocation {
51
+ }
52
+ export declare enum BusinessType {
53
+ CR = "company",
54
+ FL = "freelancer"
55
+ }
56
+ export interface FLLicense {
57
+ number: string;
58
+ status: string;
59
+ canceled_at: string;
60
+ license_specialities: Array<LicenseSpecialties>;
61
+ }
62
+ interface LicenseSpecialties {
63
+ speciality: LicenseSpecialty;
64
+ }
65
+ interface LicenseSpecialty {
66
+ id: string;
67
+ name: string;
68
+ name_en: string;
69
+ category: LicenseCategory;
70
+ }
71
+ interface LicenseCategory {
72
+ id: string;
73
+ name: string;
74
+ name_en: string;
75
+ }
76
+ export interface CRLicense {
77
+ crName: string;
78
+ crNumber: string;
79
+ crEntityNumber: string;
80
+ isMain: string;
81
+ businessType: {
82
+ id: number;
83
+ name: string;
84
+ };
85
+ relation: {
86
+ id: number;
87
+ name: string;
88
+ };
89
+ }
90
+ export interface Activity {
91
+ id: number;
92
+ name: string;
93
+ nameEn: string;
94
+ }
95
+ export interface SalesChannel {
96
+ id: number;
97
+ name: string;
98
+ nameEn: string;
99
+ }
100
+ export {};
@@ -4,3 +4,8 @@ export var SocialMediaTypes;
4
4
  SocialMediaTypes["INSTAGRAM"] = "instagram";
5
5
  SocialMediaTypes["TWITTER"] = "twitter";
6
6
  })(SocialMediaTypes || (SocialMediaTypes = {}));
7
+ export var BusinessType;
8
+ (function (BusinessType) {
9
+ BusinessType["CR"] = "company";
10
+ BusinessType["FL"] = "freelancer";
11
+ })(BusinessType || (BusinessType = {}));
@@ -11,11 +11,11 @@ export interface SettingsState extends SharedState<SettingsData> {
11
11
  export declare const settingsSlice: import("@reduxjs/toolkit").Slice<SettingsState, {
12
12
  handleSkin: (state: SettingsState, action: ActionState<ThemeMode>) => void;
13
13
  handleLanguage: (state: SettingsState, action: ActionState<LanguageMode>) => void;
14
- handleNextScreenStep: (state: SettingsState, action: ActionState<ScreenStepNavigation>) => void;
15
- handlePrevScreenStep: (state: SettingsState, action: ActionState<ScreenStepNavigation>) => void;
14
+ handleNextScreenStep: (state: SettingsState, action: ActionState<string | undefined>) => void;
15
+ handlePrevScreenStep: (state: SettingsState) => void;
16
16
  handleActiveFlowScreens: (state: SettingsState, action: ActionState<Array<ScreenStepNavigation>>) => void;
17
17
  }, "settings">;
18
- export declare const handleSkin: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeMode, string>, handleLanguage: import("@reduxjs/toolkit").ActionCreatorWithPayload<LanguageMode, string>, handleActiveFlowScreens: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScreenStepNavigation[], string>, handleNextScreenStep: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScreenStepNavigation, string>, handlePrevScreenStep: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScreenStepNavigation, string>;
18
+ export declare const handleSkin: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeMode, string>, handleLanguage: import("@reduxjs/toolkit").ActionCreatorWithPayload<LanguageMode, string>, handleActiveFlowScreens: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScreenStepNavigation[], string>, handleNextScreenStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, string>, handlePrevScreenStep: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
19
19
  declare const _default: import("redux").Reducer<SettingsState, import("redux").AnyAction>;
20
20
  export default _default;
21
21
  export declare const settingsSelector: (state: RootState) => SettingsState;
@@ -1,15 +1,16 @@
1
1
  var _a;
2
2
  import { createSlice } from '@reduxjs/toolkit';
3
- import { getStoredData, storeData } from '../utils/storage';
4
- import { LOCAL_STORAGE_KEYS, CONNECT_SCREENS_NAVIGATION } from '../constants';
3
+ import { getStoredData, storeData, isArray, findItem } from '../utils';
4
+ import { LOCAL_STORAGE_KEYS } from '../constants';
5
+ import i18n from '../i18n';
5
6
  var initialState = {
6
7
  error: null,
7
8
  loading: false,
8
9
  data: {
9
10
  skin: getStoredData(LOCAL_STORAGE_KEYS.themeMode) || 'light',
10
11
  language: getStoredData(LOCAL_STORAGE_KEYS.languageMode) || 'en',
11
- activeScreen: CONNECT_SCREENS_NAVIGATION[0],
12
- featureScreensNavigation: CONNECT_SCREENS_NAVIGATION
12
+ featureScreensNavigation: [],
13
+ activeScreen: {}
13
14
  }
14
15
  };
15
16
  export var settingsSlice = createSlice({
@@ -22,22 +23,36 @@ export var settingsSlice = createSlice({
22
23
  },
23
24
  handleLanguage: function (state, action) {
24
25
  state.data.language = action.payload;
26
+ i18n.changeLanguage(action.payload);
25
27
  storeData(LOCAL_STORAGE_KEYS.languageMode, action.payload);
26
28
  },
27
29
  handleNextScreenStep: function (state, action) {
28
- var next = state.data.featureScreensNavigation.find(function (item) { return item.name === action.payload.next; });
29
- if (!next)
30
+ var next = state.data.activeScreen.next;
31
+ if (isArray(next)) {
32
+ if (!action.payload)
33
+ return alert('next screen is an array, but no payload was provided');
34
+ var nextName_1 = findItem(next, action.payload);
35
+ var nextScreen_1 = state.data.featureScreensNavigation.find(function (item) { return item.name === nextName_1; });
36
+ if (!nextScreen_1)
37
+ return alert('Next screen step not found');
38
+ state.data.activeScreen = nextScreen_1;
39
+ return;
40
+ }
41
+ var nextScreen = state.data.featureScreensNavigation.find(function (item) { return item.name === next; });
42
+ if (!nextScreen)
30
43
  return alert('Next screen step not found');
31
- state.data.activeScreen = next;
44
+ state.data.activeScreen = nextScreen;
32
45
  },
33
- handlePrevScreenStep: function (state, action) {
34
- var prev = state.data.featureScreensNavigation.find(function (item) { return item.name === action.payload.prev; });
35
- if (!prev)
46
+ handlePrevScreenStep: function (state) {
47
+ var prev = state.data.activeScreen.prev;
48
+ var prevScreen = state.data.featureScreensNavigation.find(function (item) { return item.name === prev; });
49
+ if (!prevScreen)
36
50
  return alert('Prev screen step not found');
37
- state.data.activeScreen = prev;
51
+ state.data.activeScreen = prevScreen;
38
52
  },
39
53
  handleActiveFlowScreens: function (state, action) {
40
54
  state.data.featureScreensNavigation = action.payload;
55
+ state.data.activeScreen = action.payload[0];
41
56
  }
42
57
  },
43
58
  extraReducers: function () { }
@@ -28,7 +28,55 @@
28
28
  "read_agree_terms_and_conditions_message": "I have read and agreed to the",
29
29
  "terms_and_conditions_link_title": " terms and conditions",
30
30
  "thankyou_message": "شكرا لاختيارك تاب للمدفوعات الالكترونية. سوف يتم التواصل معكم في أقرب وقت.",
31
- "password_label": "Password",
32
- "password_placeholder": "Your Password",
33
- "password_is_required": "Password is required"
31
+ "select_customer_locations": "قاعدة العملاء",
32
+ "password_label": "كلمة السر",
33
+ "password_placeholder": "كلمة السر الخاصة بك",
34
+ "password_is_required": "كلمة السر مطلوبة",
35
+ "expected_customers_to_serve": "العملاء المتوقع خدمتهم بالشهر",
36
+ "service_otp_send_title": "تم إرسال الرمز المؤقت إلى",
37
+ "select_your_business_type": "Select Your Business Type",
38
+ "freelancer_reg": "Freelancer",
39
+ "commercial_reg": "Commercial Entity",
40
+ "opt_nid_sent_title": "الرجاء إدخال الكود المرسل عن طريق أبشر إلى الهوية",
41
+ "expected_sales_range": "المبيعات المتوقعة سنويا (ريال سعودي)",
42
+ "agree_on_refund_policy": "لقد قرأت ووافقت على ",
43
+ "refund_policy_compliance": "الإلتزام بسياسة الاسترداد",
44
+ "agree_on_transaction_policy": "لقد قرأت ووافقت على ",
45
+ "transaction_policy": "سياسة حل نزاعات العمليات",
46
+ "fl_number_label": "Freelance Registration",
47
+ "cr_number_label": "Commercial Registration",
48
+ "freelance_license_label": "Freelance License",
49
+ "freelance_license_placeholder": "Choose License",
50
+ "company_license_label": "Commercial Registration",
51
+ "company_license_placeholder": "Choose License",
52
+ "activities": "الانشطة",
53
+ "activities_selected": "انشطة مختارة",
54
+ "category": "الفئة",
55
+ "channel_of_service": "قنوات الخدمة",
56
+ "vat_id_label": "الرقم الضريبي",
57
+ "success_message": "تم إنشاء حسابك بنجاح! ",
58
+ "iban": "ايبان",
59
+ "iban_error": "الرجاء إدخال ايبان صحيح",
60
+ "beneficiary_name_label": "اسم المستفيد",
61
+ "beneficiary_name_placeholder": "اسم المستفيد",
62
+ "beneficiary_error": "اسم المستفيد يجب أن يكون اسم ثلاثي",
63
+ "other": "Other",
64
+ "citizenship": "مواطن",
65
+ "national_address": "العنوان الوطني ",
66
+ "birth_date": "تاريخ الولادة",
67
+ "place_of_birth": "مكان الولادة",
68
+ "marital_status": "الحالة الزوجية",
69
+ "confirm_business_cr_label": "رقم السجل التجاري",
70
+ "confirm_business_fl_label": "رقم الرخصة",
71
+ "confirm_legal_name_label": "الاسم القانوني",
72
+ "confirm_brand_name_label": "الاسم التجاري",
73
+ "confirm_password_placeholder": "Confirm Password",
74
+ "new_password_label": "كلمة السر",
75
+ "new_password_placeholder": "Your Password",
76
+ "password_length": "كلمة السر يجب ان تكون اكثر من او 8 ارقام.",
77
+ "password_upper": "يجب ان يحتوي على الاقل حرف واحد كبير.",
78
+ "password_lower": "يجب ان يحتوي على الاقل حرف واحد صغير.",
79
+ "password_special": "يجب على الاقل ان يحتوي على رمز مميز.",
80
+ "notify_strong_password": "رائع لديك كلمة سر قوية!",
81
+ "bank_name_label": "اسم البنك"
34
82
  }
@@ -8,7 +8,7 @@
8
8
  "switch_to_mobile": "Switch to mobile number",
9
9
  "mobile_id_title": "Welcome to Tap Payments",
10
10
  "mobile_id_description": "Help us to get your information to start collecting online payments",
11
- "mobile_number_label": "Mobile number",
11
+ "mobile_number_label": "Mobile Number",
12
12
  "switch_to_id": "Switch to ID number",
13
13
  "date_of_birth": "Date of Birth",
14
14
  "ide_opt_sent_title": "OTP has been sent to ",
@@ -28,7 +28,55 @@
28
28
  "read_agree_terms_and_conditions_message": "I have read and agreed to the",
29
29
  "terms_and_conditions_link_title": " terms and conditions",
30
30
  "thankyou_message": "Thank you for your interest in Tap. we will contact you shortly.",
31
+ "select_customer_locations": "Customer Base",
31
32
  "password_label": "Password",
32
33
  "password_placeholder": "Your Password",
33
- "password_is_required": "Password is required"
34
+ "password_is_required": "Password is required",
35
+ "expected_customers_to_serve": "Expected Customers to be Serviced Monthly",
36
+ "select_your_business_type": "Select Your Business Type",
37
+ "freelancer_reg": "Freelancer",
38
+ "commercial_reg": "Commercial Entity",
39
+ "opt_nid_sent_title": "Please enter OTP sent from Absher to ID Number: ",
40
+ "expected_sales_range": "Choose expected sales yearly",
41
+ "service_otp_send_title": "OTP has been sent to",
42
+ "agree_on_refund_policy": "I have agree to the ",
43
+ "refund_policy_compliance": "Refund Policy Compliance",
44
+ "agree_on_transaction_policy": "I have agree to the ",
45
+ "transaction_policy": "Transaction Dispute Policy",
46
+ "fl_number_label": "Freelance Registration",
47
+ "cr_number_label": "Commercial Registration",
48
+ "freelance_license_label": "Freelance License",
49
+ "freelance_license_placeholder": "Choose License",
50
+ "company_license_label": "Commercial Registration",
51
+ "company_license_placeholder": "Choose License",
52
+ "activities": "Activities",
53
+ "activities_selected": "Activities selected",
54
+ "category": "category",
55
+ "channel_of_service": "Channel of Service",
56
+ "vat_id_label": "Tax Identification Number (TIN)",
57
+ "success_message": "Your account has been created successfully! ",
58
+ "iban": "Please Enter the IBAN",
59
+ "iban_error": "Please Enter valid IBAN",
60
+ "beneficiary_name_label": "Beneficiary Name",
61
+ "beneficiary_name_placeholder": "Beneficiary Name",
62
+ "beneficiary_error": "Beneficiary name should be at least three names",
63
+ "other": "Other",
64
+ "citizenship": "Citizenship",
65
+ "national_address": "National Address",
66
+ "birth_date": "Birth Date",
67
+ "place_of_birth": "Place Of Birth",
68
+ "marital_status": "Marital Status",
69
+ "confirm_business_cr_label": "Commercial Registration ",
70
+ "confirm_business_fl_label": "Freelance Registration",
71
+ "confirm_legal_name_label": "Legal Name",
72
+ "confirm_brand_name_label": "Brand Name",
73
+ "confirm_password_placeholder": "Confirm Password",
74
+ "new_password_label": "Password",
75
+ "new_password_placeholder": "Your Password",
76
+ "password_length": "Needs to be more than 8 characters.",
77
+ "password_upper": "Includes at least 1 uppercase character.",
78
+ "password_lower": "Includes at least 1 lowercase character.",
79
+ "password_special": "Includes at least 1 special character. (!@#%)",
80
+ "notify_strong_password": "Awesome! You have a secure password.",
81
+ "bank_name_label": "Bank Name"
34
82
  }
@@ -53,7 +53,7 @@ var BottomSheetComponent = function (_a) {
53
53
  var open = _a.open, children = _a.children, rest = __rest(_a, ["open", "children"]);
54
54
  return (_jsx(BottomSheetStyled, __assign({ open: open, snapPoints: function (_a) {
55
55
  var maxHeight = _a.maxHeight;
56
- return [maxHeight / 3, maxHeight * 0.9];
56
+ return [maxHeight * 0.9];
57
57
  } }, rest, { children: children })));
58
58
  };
59
59
  export default React.memo(BottomSheetComponent);
@@ -43,32 +43,17 @@ var PaperStyled = styled(Paper)(function (_a) {
43
43
  backgroundColor: theme.palette.background.paper,
44
44
  color: theme.palette.text.primary,
45
45
  margin: "".concat(theme.spacing(5, 4, 4, 5), " !important"),
46
- maxHeight: "calc(100vh - ".concat(theme.spacing(10), ") !important")
46
+ maxHeight: "calc(100% - ".concat(theme.spacing(10), ") !important"),
47
+ width: theme.spacing(46.875),
48
+ maxWidth: theme.spacing(46.875)
47
49
  });
48
50
  });
49
51
  var DialogContentStyled = styled(DialogContent)(function (_a) {
50
- var _b;
51
52
  var theme = _a.theme;
52
- return (_b = {
53
- padding: theme.spacing(0),
54
- width: theme.spacing(46.875),
55
- height: '100%'
56
- },
57
- _b[theme.breakpoints.down('sm')] = {
58
- width: '100%'
59
- },
60
- _b['&::-webkit-scrollbar'] = {
61
- width: '0px'
62
- },
63
- _b['&::-webkit-scrollbar-track'] = {
64
- boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
65
- webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
66
- },
67
- _b['&::-webkit-scrollbar-thumb'] = {
68
- backgroundColor: 'rgba(0,0,0,.1)',
69
- outline: '1px solid slategrey'
70
- },
71
- _b);
53
+ return ({
54
+ padding: theme.spacing(0),
55
+ width: '100%'
56
+ });
72
57
  });
73
58
  var LogoIconBoxStyled = styled(Box)(function (_a) {
74
59
  var _b;
@@ -34,7 +34,7 @@ import Box from '@mui/material/Box';
34
34
  import { SOCIAL_MEDIA_LINKS } from '../../constants/dummy';
35
35
  var FooterStyled = styled(Box)(function (_a) {
36
36
  var theme = _a.theme;
37
- return (__assign(__assign({ display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center' }));
37
+ return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
38
38
  });
39
39
  var FollowUsStyled = styled(Text)(function (_a) {
40
40
  var theme = _a.theme;
@@ -12,22 +12,23 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import React from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
- var RootStyled = styled('div')(function (_a) {
16
- var theme = _a.theme;
17
- return ({
18
- width: '100px',
19
- height: '100px',
15
+ var RootStyled = styled('div')(function () { return ({
16
+ '&:before': {
17
+ content: '""',
20
18
  display: 'block',
21
- position: 'relative',
22
- margin: 'auto'
23
- });
24
- });
19
+ paddingTop: '100%'
20
+ },
21
+ position: 'relative',
22
+ margin: '0px auto',
23
+ width: '40px',
24
+ height: '40px'
25
+ }); });
25
26
  var LoaderBoxStyled = styled('svg')(function (_a) {
26
27
  var size = _a.size;
27
- return (__assign({ width: '100%', height: '100%', position: 'absolute', margin: '0', left: '0', right: '0' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
28
+ return (__assign({ height: '100%', transformOrigin: 'center center', width: '100%', position: 'absolute', top: 0, left: 0, margin: 'auto' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
28
29
  });
29
30
  function Loader(props) {
30
- return (_jsx(RootStyled, __assign({ className: props.className, style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ size: props.size, className: 'loader-box-container' }, { children: [_jsx("circle", __assign({ style: { stroke: props.outerColor }, cx: '50%', cy: '50%', r: '20', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ style: { stroke: props.innerColor }, cx: '50%', cy: '50%', r: '14', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
31
+ return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ className: 'circular-loader', viewBox: '25 25 50 50' }, { children: [_jsx("circle", __assign({ cx: '50', cy: '50', r: '20', fill: 'none', stroke: props.outerColor || 'black', strokeWidth: '3.6px', strokeLinecap: 'round', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ cx: '50', cy: '50', r: '14', fill: 'none', stroke: props.innerColor || 'black', strokeWidth: ' 3.6px', strokeLinecap: 'round', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
31
32
  }
32
33
  Loader.defaultProps = {
33
34
  outerColor: '#423e3c',
@@ -28,29 +28,9 @@ var OTPFieldStyled = styled(OTPInput)(function (_a) {
28
28
  var _b;
29
29
  var theme = _a.theme;
30
30
  return ({
31
- input: (_b = {
32
- borderRadius: theme.spacing(0),
33
- height: theme.spacing(4.75),
34
- color: theme.palette.text.primary,
35
- outline: 'none',
36
- border: 'none',
37
- borderLeft: theme.spacing(0),
38
- borderRight: theme.spacing(0),
39
- borderTop: theme.spacing(0),
40
- borderBottom: '1px solid ',
41
- borderColor: '#a6a6a6',
42
- textAlign: 'center',
43
- margin: '1.2%'
44
- },
45
- _b[theme.breakpoints.down('sm')] = {
46
- margin: '1%'
47
- },
48
- _b.background = 'transparent',
49
- _b.caretColor = theme.palette.primary.main,
50
- _b.marginInline = theme.spacing(0.6),
51
- _b.fontSize = theme.spacing(2.5),
52
- _b.width = theme.spacing(5),
53
- _b)
31
+ input: __assign(__assign((_b = { borderRadius: theme.spacing(0), height: theme.spacing(4.75), color: theme.palette.text.primary, outline: 'none', border: 'none', borderLeft: theme.spacing(0), borderRight: theme.spacing(0), borderTop: theme.spacing(0), borderBottom: '1px solid ', borderColor: '#a6a6a6', textAlign: 'center', margin: '1.2%' }, _b[theme.breakpoints.down('sm')] = {
32
+ margin: '1%'
33
+ }, _b.background = 'transparent', _b.caretColor = theme.palette.primary.main, _b.marginInline = theme.spacing(0.6), _b), theme.typography.h6), { width: theme.spacing(5) })
54
34
  });
55
35
  });
56
36
  var OTPFieldComponent = function (_a) {
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  export interface OTPTimerProps extends BoxProps {
4
- time?: number;
5
- resendText: string;
4
+ timeInSeconds?: number;
5
+ timeEndLabel: string;
6
+ onResetClick?: () => void;
6
7
  }
7
8
  declare const _default: React.MemoExoticComponent<{
8
- ({ time, resendText, ...rest }: OTPTimerProps): JSX.Element;
9
+ ({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
9
10
  defaultProps: {
10
11
  time: number;
11
12
  };
@@ -36,18 +36,31 @@ var OTPTimerStyled = styled(Box)(function (_a) {
36
36
  var OTPTimerTextStyled = styled(Text)(function (_a) {
37
37
  var theme = _a.theme;
38
38
  return ({
39
- width: 'fit-content',
40
39
  fontWeight: theme.typography.fontWeightBold,
41
40
  fontSize: theme.typography.fontSize,
42
41
  marginTop: theme.spacing(0.5)
43
42
  });
44
43
  });
45
44
  var OTPTimerComponent = function (_a) {
46
- var time = _a.time, resendText = _a.resendText, rest = __rest(_a, ["time", "resendText"]);
47
- var defaultTime = time || 0;
48
- return (_jsx(OTPTimerStyled, __assign({}, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
49
- cursor: defaultTime <= 0 ? 'pointer' : 'default'
50
- } }, { children: defaultTime > 0 ? (defaultTime > 9 ? "00:".concat(time) : "00:0".concat(time)) : resendText })) })));
45
+ var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
46
+ var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
47
+ React.useEffect(function () {
48
+ if (timeValue <= 0)
49
+ return;
50
+ var interval = setInterval(function () {
51
+ seTimeValue(timeValue - 1);
52
+ }, 1000);
53
+ return function () { return clearInterval(interval); };
54
+ }, [timeValue]);
55
+ var resetTimer = function () {
56
+ if (onResetClick) {
57
+ onResetClick();
58
+ seTimeValue(timeInSeconds || 60);
59
+ }
60
+ };
61
+ return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
62
+ cursor: timeValue <= 0 ? 'pointer' : 'default'
63
+ } }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
51
64
  };
52
65
  OTPTimerComponent.defaultProps = {
53
66
  time: 59
@@ -9,13 +9,14 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { Fragment } from 'react';
14
14
  import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
15
+ import CssBaseline from '@mui/material/CssBaseline';
15
16
  export default function ThemeProvider(_a) {
16
17
  var children = _a.children, theme = _a.theme;
17
18
  if (!theme) {
18
19
  return _jsx(Fragment, {});
19
20
  }
20
- return _jsx(MUIThemeProvider, __assign({ theme: theme }, { children: children }));
21
+ return (_jsxs(MUIThemeProvider, __assign({ theme: theme }, { children: [_jsx(CssBaseline, {}), children] })));
21
22
  }
@@ -5,7 +5,7 @@ export interface SimpleListProps<T> extends ListProps {
5
5
  list: Array<T>;
6
6
  listItemProps?: ListItemProps;
7
7
  onSelectItem: (item: T) => void;
8
- renderItem: (item: T) => React.ReactElement;
8
+ renderItem: (item: T, idx: number) => React.ReactElement;
9
9
  searchKeyPath?: string;
10
10
  }
11
11
  declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, ...rest }: SimpleListProps<T>): JSX.Element;
@@ -67,10 +67,7 @@ var ListItemStyled = styled(ListItem)(function (_a) {
67
67
  });
68
68
  function SimpleList(_a) {
69
69
  var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath"]);
70
- var _b = React.useState([]), items = _b[0], setItems = _b[1];
71
- React.useEffect(function () {
72
- setItems(list);
73
- }, [list]);
70
+ var _b = React.useState(list), items = _b[0], setItems = _b[1];
74
71
  var filterItems = function (arr, searchKey) {
75
72
  return arr.filter(function (item) {
76
73
  var searchValue = get(item, searchKeyPath || '') || '';
@@ -93,7 +90,7 @@ function SimpleList(_a) {
93
90
  items.map(function (item, idx) {
94
91
  return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
95
92
  onSelectItem(item);
96
- }, disableGutters: true, key: idx }), renderItem(item)));
93
+ }, disableGutters: true, key: idx }), renderItem(item, idx)));
97
94
  }) })));
98
95
  }
99
96
  SimpleList.defaultProps = {
@@ -26,27 +26,11 @@ import { styled } from '@mui/material/styles';
26
26
  import Box from '@mui/material/Box';
27
27
  var ErrorStyled = styled(Box)(function (_a) {
28
28
  var theme = _a.theme;
29
- return ({
30
- background: theme.palette.error.dark,
31
- paddingBlock: theme.spacing(1.5),
32
- paddingInlineStart: theme.spacing(2.5),
33
- border: '0.5px solid',
34
- borderColor: theme.palette.error.main,
35
- color: theme.palette.error.light,
36
- fontSize: theme.spacing(1.5)
37
- });
29
+ return (__assign({ background: theme.palette.error.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', borderColor: theme.palette.error.main, color: theme.palette.error.light }, theme.typography.caption));
38
30
  });
39
31
  var AlertStyled = styled(Box)(function (_a) {
40
32
  var theme = _a.theme;
41
- return ({
42
- background: theme.palette.warning.dark,
43
- paddingBlock: theme.spacing(1.5),
44
- paddingInlineStart: theme.spacing(2.5),
45
- border: '0.5px solid',
46
- borderColor: theme.palette.warning.main,
47
- color: theme.palette.warning.light,
48
- fontSize: theme.spacing(1.5)
49
- });
33
+ return (__assign({ background: theme.palette.warning.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', borderColor: theme.palette.warning.main, color: theme.palette.warning.light }, theme.typography.caption));
50
34
  });
51
35
  var WarningComponent = function (_a) {
52
36
  var children = _a.children, warningType = _a.warningType, rest = __rest(_a, ["children", "warningType"]);
@@ -6,5 +6,14 @@ export declare const LOCAL_STORAGE_KEYS: {
6
6
  export declare const EXTERNAL_LINKS: {
7
7
  TOS_EN: string;
8
8
  TOS_AR: string;
9
+ REFUND_EN: string;
10
+ REFUND_AR: string;
11
+ TRANSACTION_EN: string;
12
+ TRANSACTION_AR: string;
9
13
  };
10
14
  export declare const CONNECT_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
15
+ export declare const BUSINESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
16
+ export declare const OWNER_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
17
+ export declare const PASSWORD_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
18
+ export declare const BANK_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
19
+ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;