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

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 (105) 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 +7 -2
  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 +47 -25
  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/connect/connectStore.d.ts +6 -5
  38. package/build/features/app/connect/connectStore.js +23 -10
  39. package/build/features/app/connectExpress/connectExpressStore.d.ts +20 -8
  40. package/build/features/app/connectExpress/connectExpressStore.js +221 -44
  41. package/build/features/app/individual/individualStore.js +4 -3
  42. package/build/features/app/tax/taxStore.js +1 -1
  43. package/build/features/auth/Auth.d.ts +1 -1
  44. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  45. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  46. package/build/features/auth/screens/OTP/OTP.js +15 -3
  47. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  48. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  49. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  50. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  51. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  52. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  53. package/build/features/auth/screens/Passcode/index.js +2 -0
  54. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  55. package/build/features/auth/screens/Passcode/validation.js +4 -0
  56. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  57. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  58. package/build/features/business/screens/BusinessType/BusinessType.js +13 -2
  59. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  60. package/build/features/business/screens/BusinessType/LicenseList.js +15 -7
  61. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  62. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  63. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  64. package/build/features/business/screens/BusinessType/validation.js +31 -10
  65. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  66. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  67. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  68. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  69. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +23 -7
  70. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  71. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  72. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  73. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  74. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  75. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  76. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
  77. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
  78. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  79. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
  80. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  81. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  82. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
  83. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
  84. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
  85. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  86. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  87. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  88. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  89. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  90. package/build/features/entity/screens/EntityName/validation.js +100 -85
  91. package/build/features/featuresScreens.js +10 -5
  92. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  93. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  94. package/build/features/shared/Background/LogoBackground.js +5 -17
  95. package/build/features/shared/Button/Button.js +1 -2
  96. package/build/features/shared/Input/Input.d.ts +1 -1
  97. package/build/hooks/useAppConfig.js +1 -1
  98. package/build/utils/common.d.ts +1 -1
  99. package/build/utils/common.js +14 -8
  100. package/build/utils/error.d.ts +1 -0
  101. package/build/utils/error.js +3 -0
  102. package/build/utils/string.d.ts +3 -2
  103. package/build/utils/string.js +4 -1
  104. package/build/utils/validation.js +1 -1
  105. package/package.json +3 -3
@@ -1,88 +1,90 @@
1
1
  import * as yup from 'yup';
2
- export declare const EntityNameValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
2
+ declare type NonEditableMap = Record<string, boolean>;
3
+ export declare const EntityNameValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
4
5
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
8
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
10
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
10
11
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
11
12
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
13
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
13
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
14
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
14
15
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
15
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
18
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
18
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
20
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
20
21
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
21
22
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
23
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
23
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
24
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
24
25
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
26
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
26
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
28
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
29
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
29
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
31
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
31
32
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
33
  }>>>;
33
- export declare const EntityNameKWValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
34
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
34
+ export declare const EntityNameKWValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
35
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
35
36
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
37
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
38
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
39
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
37
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
38
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
39
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
41
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
41
42
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
42
43
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
43
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
44
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
44
45
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
46
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
47
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
48
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
46
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
47
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
48
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
49
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
49
50
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
50
51
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
51
52
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
52
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
53
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
54
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
55
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
56
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
57
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
55
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
56
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
59
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
59
60
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
60
61
  }>>>;
61
- export declare const EntityNameOtherCountryValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
62
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
62
+ export declare const EntityNameOtherCountryValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
63
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
63
64
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
64
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
65
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
66
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
67
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
65
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
66
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
67
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
69
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
69
70
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
70
71
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
71
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
72
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
72
73
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
73
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
74
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
75
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
76
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
74
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
75
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
76
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
77
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
77
78
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
78
79
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
79
80
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
80
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
81
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
81
82
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
82
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
83
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
84
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
85
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
83
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
84
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
85
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
86
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
86
87
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
87
88
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
88
89
  }>>>;
90
+ export {};
@@ -1,67 +1,56 @@
1
1
  import * as yup from 'yup';
2
2
  import { BusinessType } from '../../../../@types';
3
- import { KW_MIN_LICENSE_LENGTH, CR_MIN_LICENSE_LENGTH, FL_MIN_LICENSE_LENGTH } from '../../../../constants';
4
- export var EntityNameValidationSchema = function () {
3
+ import { KW_MIN_LICENSE_LENGTH, UNIFIED_NUMBER_MIN_LENGTH } from '../../../../constants';
4
+ export var EntityNameValidationSchema = function (noneEditable) {
5
5
  return yup.object().shape({
6
- legalName: yup
7
- .string()
8
- .required('')
9
- .test({
10
- test: function (value) {
11
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
12
- if (length === 0)
13
- return true;
14
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
15
- }
16
- }),
6
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
7
+ ? yup.string().optional()
8
+ : yup
9
+ .string()
10
+ .required('')
11
+ .test({
12
+ test: function (value) {
13
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
14
+ if (length === 0)
15
+ return true;
16
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
17
+ }
18
+ }),
17
19
  licenseType: yup.string().optional(),
18
- entityType: yup.string().required('entity_type_required'),
19
- licenseNumber: yup
20
- .string()
21
- .test({
22
- test: function (value) {
23
- var type = this.parent.licenseType;
24
- var isCR = type === BusinessType.CR;
25
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
26
- if (length === 0)
27
- return true;
28
- if (isCR) {
29
- return length >= CR_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_max_length' });
20
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
21
+ licenseNumber: yup.string().optional(),
22
+ unifiedNumber: noneEditable['license.additional_info']
23
+ ? yup.string().optional()
24
+ : yup.string().when('licenseType', function (licenseType) {
25
+ var isCR = licenseType === BusinessType.CR;
26
+ if (!isCR) {
27
+ return yup.string().optional();
30
28
  }
31
- return length >= FL_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'fl_max_length' });
32
- }
33
- })
34
- .required(''),
35
- unifiedNumber: yup.string().optional(),
36
- issuingDate: yup.string().required('choose_any_issuing_date'),
37
- expiryDate: yup.string().required('choose_any_expiry_date'),
29
+ return yup
30
+ .string()
31
+ .required('')
32
+ .test({
33
+ test: function (value) {
34
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
35
+ if (length >= UNIFIED_NUMBER_MIN_LENGTH)
36
+ return true;
37
+ if (length === 0)
38
+ return this.createError({ message: '' });
39
+ return this.createError({ message: 'unified_number_required' });
40
+ }
41
+ });
42
+ }),
43
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
44
+ expiryDate: yup.string().optional(),
38
45
  certificateId: yup.array().optional(),
39
46
  articleId: yup.string().optional()
40
47
  });
41
48
  };
42
- export var EntityNameKWValidationSchema = function () {
49
+ export var EntityNameKWValidationSchema = function (noneEditable) {
43
50
  return yup.object().shape({
44
- legalName: yup
45
- .string()
46
- .required('')
47
- .test({
48
- test: function (value) {
49
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
50
- if (length === 0)
51
- return true;
52
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
53
- }
54
- }),
55
- licenseType: yup.string().optional(),
56
- entityType: yup.string().required('entity_type_required'),
57
- licenseNumber: yup
58
- .string()
59
- .when('licenseType', function (licenseType) {
60
- var isCR = licenseType === BusinessType.CR;
61
- if (!isCR) {
62
- return yup.string().optional();
63
- }
64
- return yup
51
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
52
+ ? yup.string().optional()
53
+ : yup
65
54
  .string()
66
55
  .required('')
67
56
  .test({
@@ -69,37 +58,44 @@ export var EntityNameKWValidationSchema = function () {
69
58
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
70
59
  if (length === 0)
71
60
  return true;
72
- return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_kw_max_length' });
61
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
62
+ }
63
+ }),
64
+ licenseType: yup.string().optional(),
65
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
66
+ licenseNumber: noneEditable['license.number']
67
+ ? yup.string().optional()
68
+ : yup
69
+ .string()
70
+ .when('licenseType', function (licenseType) {
71
+ var isCR = licenseType === BusinessType.CR;
72
+ if (!isCR) {
73
+ return yup.string().optional();
73
74
  }
74
- });
75
- })
76
- .required(''),
77
- issuingDate: yup.string().required('choose_any_issuing_date'),
78
- expiryDate: yup.string().required('choose_any_expiry_date'),
75
+ return yup
76
+ .string()
77
+ .required('')
78
+ .test({
79
+ test: function (value) {
80
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
81
+ if (length === 0)
82
+ return true;
83
+ return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_kw_max_length' });
84
+ }
85
+ });
86
+ })
87
+ .required(''),
88
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
89
+ expiryDate: noneEditable['license.expiry_date'] ? yup.string().optional() : yup.string().required('choose_any_expiry_date'),
79
90
  certificateId: yup.array().optional(),
80
91
  articleId: yup.string().optional()
81
92
  });
82
93
  };
83
- export var EntityNameOtherCountryValidationSchema = function () {
94
+ export var EntityNameOtherCountryValidationSchema = function (noneEditable) {
84
95
  return yup.object().shape({
85
- legalName: yup
86
- .string()
87
- .required('')
88
- .test({
89
- test: function (value) {
90
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
91
- if (length === 0)
92
- return true;
93
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
94
- }
95
- }),
96
- licenseType: yup.string().optional(),
97
- entityType: yup.string().required('entity_type_required'),
98
- licenseNumber: yup
99
- .string()
100
- .when('licenseType', function (licenseType) {
101
- var isCR = licenseType === BusinessType.CR;
102
- return yup
96
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
97
+ ? yup.string().optional()
98
+ : yup
103
99
  .string()
104
100
  .required('')
105
101
  .test({
@@ -107,13 +103,32 @@ export var EntityNameOtherCountryValidationSchema = function () {
107
103
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
108
104
  if (length === 0)
109
105
  return true;
110
- return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: isCR ? 'cr_kw_max_length' : 'fl_max_length' });
106
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
111
107
  }
112
- });
113
- })
114
- .required(''),
115
- issuingDate: yup.string().required('choose_any_issuing_date'),
116
- expiryDate: yup.string().required('choose_any_expiry_date'),
108
+ }),
109
+ licenseType: yup.string().optional(),
110
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
111
+ licenseNumber: noneEditable['license.number']
112
+ ? yup.string().optional()
113
+ : yup
114
+ .string()
115
+ .when('licenseType', function (licenseType) {
116
+ var isCR = licenseType === BusinessType.CR;
117
+ return yup
118
+ .string()
119
+ .required('')
120
+ .test({
121
+ test: function (value) {
122
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
123
+ if (length === 0)
124
+ return true;
125
+ return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: isCR ? 'cr_kw_max_length' : 'fl_max_length' });
126
+ }
127
+ });
128
+ })
129
+ .required(''),
130
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
131
+ expiryDate: noneEditable['license.expiry_date'] ? yup.string().optional() : yup.string().required('choose_any_expiry_date'),
117
132
  certificateId: yup.array().optional(),
118
133
  articleId: yup.string().optional()
119
134
  });
@@ -27,9 +27,9 @@ import ConnectExpressIdentityVerifyNafathScreen from './connectExpress/screens/I
27
27
  import ConnectExpressCollectIndividualScreen from './connectExpress/screens/CollectIndividualInfo';
28
28
  import ConnectExpressCollectDobScreen from './connectExpress/screens/DOB';
29
29
  import ConnectExpressCollectBusinessScreen from './connectExpress/screens/CollectBusinessInfo';
30
+ import ConnectExpressVerifyAuthMobileOtpScreen from './connectExpress/screens/VerifyMobileAuthOTP';
30
31
  import ConnectExpressCreateAccountLoaderScreen from './connectExpress/screens/CreateAccountLoader';
31
32
  import ConnectExpressPreparingDataLoaderScreen from './connectExpress/screens/PrepareDataLoading';
32
- import ConnectExpressGenericPreparingDataLoaderScreen from './connectExpress/screens/GenericPrepareDataLoading';
33
33
  import ConnectExpressSuccessFlowButtonsScreen from './connectExpress/screens/SuccessWithFlowButtons';
34
34
  import ConnectExpressAccountAlreadyCreatedScreen from './connectExpress/screens/AccountAlreadyCreated';
35
35
  import ConnectExpressAuthenticationListScreen from './connectExpress/screens/AuthenticationList';
@@ -57,6 +57,7 @@ import AuthAccountCreatedLoaderScreen from './auth/screens/AccountCreatedLoader'
57
57
  import AuthEmailSentScreen from './auth/screens/EmailSent';
58
58
  import AuthMigratingDataScreen from './auth/screens/MigratingData';
59
59
  import AuthOperatorError from './auth/screens/OperatorError';
60
+ import AuthPasscodeScreen from './auth/screens/Passcode';
60
61
  import CustomersPage from './business/screens/Customers';
61
62
  import IDBODPage from './business/screens/IDBOD';
62
63
  import BusinessVerifyPage from './business/screens/Verify';
@@ -263,6 +264,10 @@ export var connectExpressFeatureScreens = [
263
264
  name: 'CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP',
264
265
  element: ConnectExpressCollectBusinessScreen
265
266
  },
267
+ {
268
+ name: 'CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP',
269
+ element: ConnectExpressVerifyAuthMobileOtpScreen
270
+ },
266
271
  {
267
272
  name: 'CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP',
268
273
  element: ConnectExpressAccountAlreadyCreatedScreen
@@ -290,10 +295,6 @@ export var connectExpressFeatureScreens = [
290
295
  {
291
296
  name: 'COLLECT_MOBILE_OWNERSHIP',
292
297
  element: ConnectExpressCollectMobileOwnership
293
- },
294
- {
295
- name: 'CONNECT_EXPRESS_GENERIC_PREPARING_DATA_STEP',
296
- element: ConnectExpressGenericPreparingDataLoaderScreen
297
298
  }
298
299
  ];
299
300
  export var authFeatureScreens = [
@@ -325,6 +326,10 @@ export var authFeatureScreens = [
325
326
  name: 'AUTH_OTP_STEP',
326
327
  element: AuthOTPScreen
327
328
  },
329
+ {
330
+ name: 'AUTH_PASSCODE_STEP',
331
+ element: AuthPasscodeScreen
332
+ },
328
333
  {
329
334
  name: 'AUTH_PASSWORD_STEP',
330
335
  element: AuthPasswordScreen
@@ -16,7 +16,7 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import { settingsSelector } from '../../../../app/settings';
19
- import { getCurrencyByCountryIso2, hasVerifiedValue } from '../../../../utils';
19
+ import { hasVerifiedValue } from '../../../../utils';
20
20
  import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
21
21
  import Collapse from '../../../../components/Collapse';
22
22
  import Text from '../../../../components/Text';
@@ -26,6 +26,7 @@ import InputSelect from '../../../shared/InputSelect';
26
26
  import CheckIcon from '../../../shared/CheckIcon';
27
27
  import { ScreenContainer } from '../../../shared/Containers';
28
28
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
29
+ import TextWithCurrency from '../../../../components/TextWithCurrency';
29
30
  var Container = styled(Box)(function () { return ({
30
31
  display: 'flex'
31
32
  }); });
@@ -45,16 +46,12 @@ var MonthlyIncome = function (props) {
45
46
  var settingsData = useAppSelector(settingsSelector).data;
46
47
  var monthlyIncomeList = (data.individualData.responseBody || {}).monthlyIncomeList;
47
48
  var monthlyIncomeControl = useController({ control: control, name: 'monthlyIncome' });
48
- var countryCode = settingsData.businessCountry;
49
49
  var user = (data.verify.responseBody || {}).user;
50
50
  var isMonthlyIncomeVerified = function (item) {
51
51
  if (!(item === null || item === void 0 ? void 0 : item.id))
52
52
  return false;
53
53
  return hasVerifiedValue(user === null || user === void 0 ? void 0 : user.data_verification, "monthly_income.".concat(item.id));
54
54
  };
55
- var getCurrency = React.useMemo(function () {
56
- return t(getCurrencyByCountryIso2(countryCode.iso2));
57
- }, [countryCode.iso2]);
58
55
  React.useEffect(function () {
59
56
  if ((monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.length) > 0) {
60
57
  setIncomeList(monthlyIncomeList);
@@ -83,9 +80,7 @@ var MonthlyIncome = function (props) {
83
80
  };
84
81
  var income = monthlyIncomeControl.field.value;
85
82
  var error = (_a = monthlyIncomeControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
86
- return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(InputSelect, { label: t('please_enter_actual_income', {
87
- currency: getCurrency
88
- }), required: true, readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
83
+ return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(InputSelect, { label: _jsx(TextWithCurrency, { text: t('monthly_income'), countryCode: settingsData.businessCountry.iso2 }), required: true, readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
89
84
  return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (income === null || income === void 0 ? void 0 : income.id) }, { children: isAr ? item.range.ar : item === null || item === void 0 ? void 0 : item.range.en })) }), item.id === (income === null || income === void 0 ? void 0 : income.id) && _jsx(CheckIcon, { isVerified: isMonthlyIncomeVerified(item) })] }));
90
85
  } }) }))] })) })));
91
86
  };
@@ -14,13 +14,14 @@ import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import Collapse from '@mui/material/Collapse';
17
- import { formatNumberAsCurrency, getCurrencyByCountryIso2, removeAllCharsFromNumber } from '../../../../utils';
17
+ import { formatNumberAsCurrency, removeAllCharsFromNumber } from '../../../../utils';
18
18
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
19
19
  import { settingsSelector } from '../../../../app/settings';
20
20
  import { ScreenContainer } from '../../../shared/Containers';
21
21
  import Input from '../../../shared/Input';
22
22
  import { individualSelector, clearError } from '../../../app/individual/individualStore';
23
23
  import { EndAdornment } from '../../../shared/EndAdornment';
24
+ import TextWithCurrency from '../../../../components/TextWithCurrency';
24
25
  var ShareValue = function (_a) {
25
26
  var _b;
26
27
  var show = _a.show, readOnly = _a.readOnly;
@@ -29,7 +30,6 @@ var ShareValue = function (_a) {
29
30
  var control = useFormContext().control;
30
31
  var bckError = useAppSelector(individualSelector).error;
31
32
  var dispatch = useAppDispatch();
32
- var countryCode = settingsData.businessCountry;
33
33
  var handleChange = function (_a) {
34
34
  var target = _a.target;
35
35
  if (bckError)
@@ -37,14 +37,9 @@ var ShareValue = function (_a) {
37
37
  var value = formatNumberAsCurrency(removeAllCharsFromNumber(target.value));
38
38
  shareValueControl.field.onChange(value);
39
39
  };
40
- var getCurrency = React.useMemo(function () {
41
- return t(getCurrencyByCountryIso2(countryCode.iso2));
42
- }, [countryCode.iso2]);
43
40
  var shareValueControl = useController({ control: control, name: 'shareValue' });
44
41
  var shareValue = shareValueControl.field.value;
45
42
  var error = (_b = shareValueControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
46
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('share_value_label', {
47
- currency: getCurrency
48
- }), onChange: handleChange, value: shareValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('share_value_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: shareValue, error: error }) }) })) })));
43
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: _jsx(TextWithCurrency, { text: t('share_value_input_label'), countryCode: settingsData.businessCountry.iso2 }), onChange: handleChange, value: shareValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('share_value_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: shareValue, error: error }) }) })) })));
49
44
  };
50
45
  export default React.memo(ShareValue);
@@ -1,19 +1,16 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import Box from '@mui/material/Box';
5
5
  import Icon from '../../../components/Icon';
6
6
  import { ICONS_NAMES } from '../../../constants';
7
- import { useLanguage } from '../../../hooks';
8
7
  var BoxStyled = styled(Box)(function (_a) {
9
8
  var _b;
10
9
  var theme = _a.theme;
11
10
  return (_b = {
12
11
  display: 'flex',
13
- flexDirection: 'column',
14
12
  justifyContent: 'center',
15
- alignItems: 'center',
16
- paddingTop: theme.spacing(5)
13
+ paddingTop: theme.spacing(10)
17
14
  },
18
15
  _b[theme.breakpoints.down('sm')] = {
19
16
  paddingTop: theme.spacing(11)
@@ -23,20 +20,11 @@ var BoxStyled = styled(Box)(function (_a) {
23
20
  var LogoBadgeStyled = styled(Icon)(function (_a) {
24
21
  var theme = _a.theme;
25
22
  return ({
26
- height: theme.spacing(8.875),
27
- width: theme.spacing(8.875)
28
- });
29
- });
30
- var LogoIconStyled = styled(Icon)(function (_a) {
31
- var theme = _a.theme;
32
- return ({
33
- width: theme.spacing(5.875),
34
- height: theme.spacing(3.625),
35
- marginTop: theme.spacing(2.5)
23
+ height: theme.spacing(9.5),
24
+ width: theme.spacing(19.322)
36
25
  });
37
26
  });
38
27
  var LogoBackground = function () {
39
- var isAr = useLanguage().isAr;
40
- return (_jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' })] }));
28
+ return (_jsx(BoxStyled, { children: _jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO, alt: 'tap logo' }) }));
41
29
  };
42
30
  export default memo(LogoBackground);
@@ -53,8 +53,7 @@ var BackIconStyled = styled(Icon, { shouldForwardProp: function (prop) { return
53
53
  var ButtonBoxStyled = styled(Box)(function (_a) {
54
54
  var theme = _a.theme;
55
55
  return ({
56
- margin: theme.spacing(0, 2.5, 2.5, 2.5),
57
- marginBlockStart: theme.spacing(5),
56
+ margin: theme.spacing(5, 2.5, 2.5, 2.5),
58
57
  maxHeight: theme.spacing(5.375),
59
58
  display: 'flex',
60
59
  alignItems: 'center',
@@ -20,7 +20,7 @@ export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick
20
20
  warningType?: "alert" | "error" | "hint" | undefined;
21
21
  } & {} & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
22
22
  export interface CustomInputProps extends InputProps {
23
- label?: string;
23
+ label?: string | JSX.Element;
24
24
  required?: boolean;
25
25
  labelSx?: SxProps<Theme>;
26
26
  }
@@ -48,7 +48,7 @@ export var useAppConfig = function (_a) {
48
48
  if (!disableSettingFetching && !configToken)
49
49
  removeRequestHeaders();
50
50
  checkDomain();
51
- setBaseUrl(publicKey, rest.businessCountryCode);
51
+ setBaseUrl(publicKey, rest.region);
52
52
  setAppConfig();
53
53
  if (typeof boardMaturity === 'boolean')
54
54
  dispatch(handelBoardMaturity(boardMaturity));
@@ -1,6 +1,6 @@
1
1
  export declare const sleep: (milliseconds?: number) => Promise<unknown>;
2
2
  export declare const dangerousMessage: (message: string, callBack?: Function) => void;
3
- export declare const setBaseUrl: (publicKey: string, countryCode?: string) => void;
3
+ export declare const setBaseUrl: (publicKey: string, region?: string) => void;
4
4
  export declare const updateLocationUrlWithCountry: (countryIso2: string) => void;
5
5
  export declare const openConnect: (pk: string, countryCode?: string) => void;
6
6
  export declare function getMetaData(): Record<string, string> | undefined;