@tap-payments/auth-jsconnect 2.8.58-development → 2.8.59-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/build/@types/app.d.ts +0 -1
  2. package/build/@types/form.d.ts +0 -1
  3. package/build/@types/redux.d.ts +0 -1
  4. package/build/api/entity.d.ts +2 -2
  5. package/build/api/entity.js +4 -12
  6. package/build/api/index.d.ts +2 -2
  7. package/build/constants/api.d.ts +1 -0
  8. package/build/constants/api.js +2 -0
  9. package/build/constants/app.d.ts +2 -0
  10. package/build/constants/app.js +2 -0
  11. package/build/features/app/bank/bankStore.d.ts +18 -13
  12. package/build/features/app/bank/bankStore.js +165 -184
  13. package/build/features/app/board/boardStore.js +30 -52
  14. package/build/features/app/brand/brandStore.d.ts +33 -16
  15. package/build/features/app/brand/brandStore.js +242 -239
  16. package/build/features/app/business/businessStore.d.ts +5 -0
  17. package/build/features/app/business/businessStore.js +87 -76
  18. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -15
  19. package/build/features/app/connectExpress/connectExpressStore.js +52 -110
  20. package/build/features/app/entity/entityStore.d.ts +36 -20
  21. package/build/features/app/entity/entityStore.js +246 -196
  22. package/build/features/app/individual/individualStore.d.ts +38 -22
  23. package/build/features/app/individual/individualStore.js +266 -263
  24. package/build/features/app/password/passwordStore.d.ts +23 -40
  25. package/build/features/app/password/passwordStore.js +233 -226
  26. package/build/features/app/tax/taxStore.d.ts +7 -13
  27. package/build/features/app/tax/taxStore.js +147 -168
  28. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +1 -13
  29. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +26 -4
  30. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -7
  31. package/build/features/bank/Bank.d.ts +0 -1
  32. package/build/features/bank/Bank.js +4 -7
  33. package/build/features/bank/screens/BankDetails/BankDetails.js +5 -18
  34. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  35. package/build/features/bank/screens/Verify/Verify.js +5 -5
  36. package/build/features/board/Board.js +4 -8
  37. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -3
  38. package/build/features/brand/Brand.d.ts +0 -1
  39. package/build/features/brand/Brand.js +4 -7
  40. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +35 -8
  41. package/build/features/brand/screens/BrandActivities/BrandActivities.js +12 -49
  42. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  43. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -6
  44. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +18 -5
  45. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  46. package/build/features/brand/screens/BrandActivities/TAC.d.ts +7 -2
  47. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  48. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  49. package/build/features/brand/screens/BrandInfo/BrandInfo.js +5 -23
  50. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +7 -23
  51. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  52. package/build/features/brand/screens/Verify/Verify.js +1 -1
  53. package/build/features/business/Business.js +4 -9
  54. package/build/features/business/screens/Activities/Activities.js +3 -12
  55. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  56. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  57. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  58. package/build/features/business/screens/BusinessType/BusinessType.js +2 -10
  59. package/build/features/business/screens/BusinessType/LicenseType.d.ts +26 -4
  60. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  61. package/build/features/business/screens/Customers/CustomerLocations.d.ts +36 -9
  62. package/build/features/business/screens/Customers/Customers.js +3 -12
  63. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -6
  64. package/build/features/business/screens/Customers/RefundPolicy.d.ts +18 -5
  65. package/build/features/business/screens/IDBOD/IDBOD.js +2 -10
  66. package/build/features/business/screens/OTP/OTP.js +1 -1
  67. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -13
  68. package/build/features/business/screens/Verify/Verify.js +3 -13
  69. package/build/features/connect/Connect.js +2 -3
  70. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  71. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +2 -9
  72. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  73. package/build/features/connect/screens/Individual/Email.js +1 -3
  74. package/build/features/connect/screens/Individual/Individual.js +1 -1
  75. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  76. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  77. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  78. package/build/features/connect/screens/Mobile/Mobile.js +8 -11
  79. package/build/features/connect/screens/NID/NID.js +1 -1
  80. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  81. package/build/features/connectExpress/ConnectExpress.js +1 -2
  82. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +2 -5
  83. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +1 -6
  84. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +0 -3
  85. package/build/features/connectExpress/screens/AuthenticationList/validation.js +0 -10
  86. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -7
  87. package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
  88. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  89. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
  90. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +26 -4
  91. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +7 -2
  92. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
  93. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  94. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +24 -14
  95. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -9
  96. package/build/features/connectExpress/screens/NID/NID.js +1 -1
  97. package/build/features/connectExpress/screens/NID/TAC.d.ts +7 -2
  98. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  99. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  100. package/build/features/entity/Entity.d.ts +0 -1
  101. package/build/features/entity/Entity.js +4 -7
  102. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  103. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +4 -8
  104. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +4 -8
  105. package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -34
  106. package/build/features/entity/screens/EntityName/EntityName.js +15 -32
  107. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +35 -8
  108. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  109. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  110. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  111. package/build/features/entity/screens/Verify/Verify.js +1 -1
  112. package/build/features/featuresScreens.js +7 -67
  113. package/build/features/individual/Individual.d.ts +0 -1
  114. package/build/features/individual/Individual.js +4 -7
  115. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  116. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -54
  117. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +2 -5
  118. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +26 -4
  119. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  120. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -4
  121. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -3
  122. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  123. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  124. package/build/features/individual/screens/IndividualList/IndividualList.js +5 -18
  125. package/build/features/individual/screens/IndividualList/UserList.js +9 -13
  126. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  127. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +26 -4
  128. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  129. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -76
  130. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  131. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  132. package/build/features/individual/screens/Verify/Verify.js +1 -1
  133. package/build/features/password/Password.d.ts +0 -1
  134. package/build/features/password/Password.js +28 -75
  135. package/build/features/password/screens/CreatePassword/CreatePassword.js +4 -8
  136. package/build/features/password/screens/OTP/OTP.js +1 -1
  137. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  138. package/build/features/password/screens/Verify/Verify.js +5 -5
  139. package/build/features/shared/Address/CountryList.d.ts +23 -7
  140. package/build/features/shared/Address/InputSelect.d.ts +23 -7
  141. package/build/features/shared/Button/FlowsButtons.js +3 -13
  142. package/build/features/shared/Containers/FeatureContainer.d.ts +0 -1
  143. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  144. package/build/features/shared/Input/Input.d.ts +2 -2
  145. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -5
  146. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
  147. package/build/features/shared/UploadFile/FileUpload.d.ts +7 -2
  148. package/build/features/shared/UploadFile/UploadFile.d.ts +7 -2
  149. package/build/features/shared/UploadFile/UploadWrapper.d.ts +7 -2
  150. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +7 -2
  151. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +7 -2
  152. package/build/features/signIn/SignIn.js +3 -12
  153. package/build/features/tax/Tax.d.ts +0 -1
  154. package/build/features/tax/Tax.js +4 -7
  155. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  156. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
  157. package/build/features/tax/screens/Verify/Verify.js +5 -5
  158. package/build/hooks/index.d.ts +0 -1
  159. package/build/hooks/index.js +0 -1
  160. package/build/hooks/useVerifyToken.d.ts +2 -5
  161. package/build/hooks/useVerifyToken.js +5 -10
  162. package/build/utils/common.js +4 -4
  163. package/build/utils/locale.js +1 -2
  164. package/build/utils/string.d.ts +2 -5
  165. package/build/utils/string.js +5 -34
  166. package/package.json +2 -2
  167. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +0 -5
  168. package/build/features/bank/screens/OperatorError/OperatorError.js +0 -9
  169. package/build/features/bank/screens/OperatorError/index.d.ts +0 -3
  170. package/build/features/bank/screens/OperatorError/index.js +0 -2
  171. package/build/features/board/screens/OperatorError/OperatorError.d.ts +0 -5
  172. package/build/features/board/screens/OperatorError/OperatorError.js +0 -9
  173. package/build/features/board/screens/OperatorError/index.d.ts +0 -3
  174. package/build/features/board/screens/OperatorError/index.js +0 -2
  175. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +0 -5
  176. package/build/features/brand/screens/OperatorError/OperatorError.js +0 -9
  177. package/build/features/brand/screens/OperatorError/index.d.ts +0 -3
  178. package/build/features/brand/screens/OperatorError/index.js +0 -2
  179. package/build/features/business/screens/OperatorError/OperatorError.d.ts +0 -5
  180. package/build/features/business/screens/OperatorError/OperatorError.js +0 -9
  181. package/build/features/business/screens/OperatorError/index.d.ts +0 -3
  182. package/build/features/business/screens/OperatorError/index.js +0 -2
  183. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +0 -9
  184. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +0 -90
  185. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +0 -5
  186. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +0 -9
  187. package/build/features/connectExpress/screens/OperatorError/index.d.ts +0 -3
  188. package/build/features/connectExpress/screens/OperatorError/index.js +0 -2
  189. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -5
  190. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +0 -34
  191. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +0 -2
  192. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +0 -2
  193. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +0 -5
  194. package/build/features/entity/screens/OperatorError/OperatorError.js +0 -9
  195. package/build/features/entity/screens/OperatorError/index.d.ts +0 -3
  196. package/build/features/entity/screens/OperatorError/index.js +0 -2
  197. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +0 -14
  198. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +0 -76
  199. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +0 -5
  200. package/build/features/individual/screens/OperatorError/OperatorError.js +0 -9
  201. package/build/features/individual/screens/OperatorError/index.d.ts +0 -3
  202. package/build/features/individual/screens/OperatorError/index.js +0 -2
  203. package/build/features/password/screens/OperatorError/OperatorError.d.ts +0 -5
  204. package/build/features/password/screens/OperatorError/OperatorError.js +0 -9
  205. package/build/features/password/screens/OperatorError/index.d.ts +0 -3
  206. package/build/features/password/screens/OperatorError/index.js +0 -2
  207. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
  208. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
  209. package/build/features/password/screens/PrepareDataLoading/index.d.ts +0 -2
  210. package/build/features/password/screens/PrepareDataLoading/index.js +0 -2
  211. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +0 -5
  212. package/build/features/signIn/screens/OperatorError/OperatorError.js +0 -9
  213. package/build/features/signIn/screens/OperatorError/index.d.ts +0 -3
  214. package/build/features/signIn/screens/OperatorError/index.js +0 -2
  215. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +0 -5
  216. package/build/features/tax/screens/OperatorError/OperatorError.js +0 -9
  217. package/build/features/tax/screens/OperatorError/index.d.ts +0 -3
  218. package/build/features/tax/screens/OperatorError/index.js +0 -2
  219. package/build/hooks/useFormDirtyCheck.d.ts +0 -10
  220. package/build/hooks/useFormDirtyCheck.js +0 -66
@@ -15,11 +15,11 @@ import { FormProvider, useForm } from 'react-hook-form';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import Collapse from '@mui/material/Collapse';
18
- import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
19
- import { deepCopy, formatNumberAsCurrency, removeAllCharsFromNumber, sendCustomEventToGTM } from '../../../../utils';
18
+ import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
19
+ import { deepCopy, removeAllCharsFromNumber } from '../../../../utils';
20
20
  import { clearError, entitySelector, updateEntityCapital } from '../../../app/entity/entityStore';
21
21
  import { yupResolver } from '@hookform/resolvers/yup';
22
- import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
22
+ import { handlePrevScreenStep } from '../../../../app/settings';
23
23
  import { ScreenContainer } from '../../../shared/Containers';
24
24
  import Form from '../../../../components/Form';
25
25
  import Button from '../../../shared/Button';
@@ -39,36 +39,21 @@ var EntityCapital = function (_a) {
39
39
  var isAr = useLanguage().isAr;
40
40
  var t = useTranslation().t;
41
41
  var dispatch = useAppDispatch();
42
- var settingsData = useAppSelector(settingsSelector).data;
43
42
  var _k = data.entityCapitalData, responseBody = _k.responseBody, capitalPaid = _k.capitalPaid, capitalShareCount = _k.capitalShareCount, capitalShareValue = _k.capitalShareValue, activities = _k.activities;
44
43
  var entity = (data.verify.responseBody || {}).entity;
45
- var _l = entity || {}, data_verification = _l.data_verification, capital = _l.capital, resActivities = _l.activities;
46
- var resCapitalPaidValue = (_b = capital === null || capital === void 0 ? void 0 : capital.paid) === null || _b === void 0 ? void 0 : _b.toString();
47
- var resCapitalShareCount = (_d = (_c = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _c === void 0 ? void 0 : _c.count) === null || _d === void 0 ? void 0 : _d.toString();
48
- var resCapitalShareValue = (_f = (_e = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _e === void 0 ? void 0 : _e.value) === null || _f === void 0 ? void 0 : _f.toString();
44
+ var _l = entity || {}, data_verification = _l.data_verification, capital = _l.capital;
49
45
  var methods = useForm({
50
46
  resolver: yupResolver(EntityCapitalValidationSchema()),
51
47
  defaultValues: {
52
48
  activities: activities,
53
49
  capitalPaid: capitalPaid,
54
- capitalShareCount: capitalShareCount === null || capitalShareCount === void 0 ? void 0 : capitalShareCount.toString(),
50
+ capitalShareCount: capitalShareCount,
55
51
  capitalShareValue: capitalShareValue
56
52
  },
57
53
  mode: 'onChange'
58
54
  });
59
55
  useSetFromDefaultValues(methods, data.entityCapitalData, true);
60
56
  var watch = methods.watch;
61
- var isDirty = useFormDirtyCheck(methods, {
62
- activities: resActivities,
63
- capitalPaid: resCapitalPaidValue && formatNumberAsCurrency(resCapitalPaidValue),
64
- capitalShareCount: resCapitalShareCount,
65
- capitalShareValue: resCapitalShareValue && formatNumberAsCurrency(resCapitalShareValue)
66
- }, [
67
- {
68
- name: 'activities',
69
- keys: ['id']
70
- }
71
- ]).isDirty;
72
57
  var originalReadOnly = useFormReadOnly(methods);
73
58
  var noneEditable = useDataNoneEditable(entity === null || entity === void 0 ? void 0 : entity.data_status, [
74
59
  'activities',
@@ -79,20 +64,11 @@ var EntityCapital = function (_a) {
79
64
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
80
65
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
81
66
  var dataVerified = useDataVerified(data_verification, ['capital.paid', 'capital.shares.count', 'capital.shares.value']);
82
- var isCapitalPaidVerified = dataVerified['capital.paid'] && resCapitalPaidValue === removeAllCharsFromNumber(watch('capitalPaid'));
83
- var isCapitalShareCountVerified = dataVerified['capital.shares.count'] && resCapitalShareCount === ((_g = watch('capitalShareCount')) === null || _g === void 0 ? void 0 : _g.toString());
84
- var isCapitalShareValueVerified = dataVerified['capital.shares.value'] && resCapitalShareValue === removeAllCharsFromNumber(watch('capitalShareValue'));
85
- React.useEffect(function () {
86
- sendCustomEventToGTM({
87
- event: 'Send Event',
88
- event_category: 'Board Flows - Entity',
89
- event_action: 'Entity Activities and Capital Details Page',
90
- event_label: settingsData.businessCountry.iso2
91
- });
92
- }, []);
67
+ var isCapitalPaidVerified = dataVerified['capital.paid'] && ((_b = capital === null || capital === void 0 ? void 0 : capital.paid) === null || _b === void 0 ? void 0 : _b.toString()) === removeAllCharsFromNumber(watch('capitalPaid'));
68
+ var isCapitalShareCountVerified = dataVerified['capital.shares.count'] && ((_d = (_c = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _c === void 0 ? void 0 : _c.count) === null || _d === void 0 ? void 0 : _d.toString()) === ((_e = watch('capitalShareCount')) === null || _e === void 0 ? void 0 : _e.toString());
69
+ var isCapitalShareValueVerified = dataVerified['capital.shares.value'] && ((_g = (_f = capital === null || capital === void 0 ? void 0 : capital.shares) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.toString()) === removeAllCharsFromNumber(watch('capitalShareValue'));
93
70
  var onSubmit = function (data) {
94
- var formData = __assign(__assign({}, deepCopy(getFelids(data))), { isDirty: isDirty });
95
- dispatch(updateEntityCapital(formData));
71
+ dispatch(updateEntityCapital(deepCopy(getFelids(data))));
96
72
  };
97
73
  var onBack = function () {
98
74
  dispatch(handlePrevScreenStep());
@@ -104,7 +80,7 @@ var EntityCapital = function (_a) {
104
80
  var handleActivitiesOpenClose = function (flag) {
105
81
  setAnchorEl(flag);
106
82
  };
107
- var disabled = !methods.formState.isValid || uploading;
83
+ var disabled = !methods.formState.isValid || !!error || uploading;
108
84
  return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(ActivityList, { readOnly: readOnly['activities'] || noneEditable['activities'], onListOpen: function () { return handleActivitiesOpenClose(true); }, onListClose: function () { return handleActivitiesOpenClose(false); } }), _jsxs(Collapse, __assign({ in: !anchorEl }, { children: [_jsx(CapitalPaid, { readOnly: readOnly['capitalPaid'] || noneEditable['capital.paid'], isVerified: isCapitalPaidVerified }), _jsx(CapitalShareCount, { readOnly: readOnly['capitalShareCount'] || noneEditable['capital.shares.count'], isVerified: isCapitalShareCountVerified }), _jsx(CapitalShareValue, { readOnly: readOnly['capitalShareValue'] || noneEditable['capital.shares.value'], isVerified: isCapitalShareValueVerified }), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] }))] })) })) }));
109
85
  };
110
86
  export default EntityCapital;
@@ -15,9 +15,9 @@ import { FormProvider, useForm } from 'react-hook-form';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { yupResolver } from '@hookform/resolvers/yup';
17
17
  import { styled } from '@mui/material/styles';
18
- import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
18
+ import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
19
19
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
20
- import { convertToEnglishDateFormat, deepCopy, getFileDetailsFromDocument, isKW, isSA, sendCustomEventToGTM } from '../../../../utils';
20
+ import { convertToEnglishDateFormat, deepCopy, getFileDetailsFromDocument, isKW, isSA } from '../../../../utils';
21
21
  import { BusinessType, DocumentPurpose } from '../../../../@types';
22
22
  import Form from '../../../../components/Form';
23
23
  import Collapse from '../../../../components/Collapse';
@@ -38,22 +38,22 @@ var FormStyled = styled(Form)(function () { return ({
38
38
  flexDirection: 'column'
39
39
  }); });
40
40
  var EntityName = function (_a) {
41
- var _b, _c;
42
- var _d = React.useState(false), issueAnchorEl = _d[0], setIssueAnchorEl = _d[1];
43
- var _e = React.useState(false), expiryAnchorEl = _e[0], setExpiryAnchorEl = _e[1];
44
- var _f = React.useState(false), entityTypeAnchorEl = _f[0], setEntityTypeAnchorEl = _f[1];
45
- var _g = useAppSelector(entitySelector), data = _g.data, loading = _g.loading, error = _g.error, uploading = _g.uploading, uploadingArticle = _g.uploadingArticle;
41
+ var _b;
42
+ var _c = React.useState(false), issueAnchorEl = _c[0], setIssueAnchorEl = _c[1];
43
+ var _d = React.useState(false), expiryAnchorEl = _d[0], setExpiryAnchorEl = _d[1];
44
+ var _e = React.useState(false), entityTypeAnchorEl = _e[0], setEntityTypeAnchorEl = _e[1];
45
+ var _f = useAppSelector(entitySelector), data = _f.data, loading = _f.loading, error = _f.error, uploading = _f.uploading, uploadingArticle = _f.uploadingArticle;
46
46
  var settingsData = useAppSelector(settingsSelector).data;
47
47
  var isAr = useLanguage().isAr;
48
48
  var t = useTranslation().t;
49
49
  var dispatch = useAppDispatch();
50
- var _h = data.entityNameData, legalName = _h.legalName, licenseNumber = _h.licenseNumber, licenseType = _h.licenseType, entityType = _h.entityType, issuingDate = _h.issuingDate, expiryDate = _h.expiryDate, unifiedNumber = _h.unifiedNumber, certificateId = _h.certificateId, articleId = _h.articleId;
50
+ var _g = data.entityNameData, legalName = _g.legalName, licenseNumber = _g.licenseNumber, licenseType = _g.licenseType, entityType = _g.entityType, issuingDate = _g.issuingDate, expiryDate = _g.expiryDate, unifiedNumber = _g.unifiedNumber, certificateId = _g.certificateId, articleId = _g.articleId;
51
51
  var country_code = settingsData.businessCountry.iso2;
52
52
  var isSACountry = React.useMemo(function () { return isSA(country_code); }, [country_code]);
53
53
  var isKWCountry = React.useMemo(function () { return isKW(country_code); }, [country_code]);
54
54
  var isCR = licenseType === BusinessType.CR;
55
- var _j = data.verify.responseBody || {}, entity = _j.entity, flows = _j.flows, entityTypes = _j.entityTypes;
56
- var _k = entity || {}, AOA_file = _k.AOA_file, id = _k.id, documents = _k.documents, data_status = _k.data_status, data_verification = _k.data_verification, legal_name = _k.legal_name, type = _k.type, license = _k.license;
55
+ var _h = data.verify.responseBody || {}, entity = _h.entity, flows = _h.flows;
56
+ var _j = entity || {}, AOA_file = _j.AOA_file, id = _j.id, documents = _j.documents, data_status = _j.data_status, data_verification = _j.data_verification, legal_name = _j.legal_name, type = _j.type, license = _j.license;
57
57
  var getSchema = function () {
58
58
  if (isSACountry)
59
59
  return EntityNameValidationSchema();
@@ -80,18 +80,6 @@ var EntityName = function (_a) {
80
80
  useSetFromDefaultValues(methods, data.entityNameData, true);
81
81
  var defaultCertificateFiles = React.useMemo(function () { return getFileDetailsFromDocument(documents, DocumentPurpose.CR); }, [documents]);
82
82
  var defaultArticleFile = React.useMemo(function () { return AOA_file && __assign(__assign({}, AOA_file), { docId: id }); }, [AOA_file]);
83
- var issueDateRes = (license === null || license === void 0 ? void 0 : license.issuing_date) && convertToEnglishDateFormat(new Date(license.issuing_date));
84
- var expDateRes = (license === null || license === void 0 ? void 0 : license.expiry_date) && convertToEnglishDateFormat(new Date(license.expiry_date));
85
- var isDirty = useFormDirtyCheck(methods, {
86
- legalName: (legal_name === null || legal_name === void 0 ? void 0 : legal_name.en) || (legal_name === null || legal_name === void 0 ? void 0 : legal_name.ar),
87
- licenseNumber: license === null || license === void 0 ? void 0 : license.number,
88
- licenseType: (license === null || license === void 0 ? void 0 : license.type) === 'freelance' ? BusinessType.FL : BusinessType.CR,
89
- entityType: type || (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes[0]),
90
- issuingDate: issueDateRes,
91
- expiryDate: expDateRes,
92
- unifiedNumber: (_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number,
93
- articleId: defaultArticleFile === null || defaultArticleFile === void 0 ? void 0 : defaultArticleFile.id
94
- }).isDirty;
95
83
  var originalReadOnly = useFormReadOnly(methods, { certificateId: defaultCertificateFiles, articleId: defaultArticleFile });
96
84
  var noneEditable = useDataNoneEditable(data_status, [
97
85
  'legal_name.en',
@@ -116,16 +104,17 @@ var EntityName = function (_a) {
116
104
  'license.expiry_date',
117
105
  'AOA_file_id'
118
106
  ]);
107
+ var issueDateRes = (license === null || license === void 0 ? void 0 : license.issuing_date) && convertToEnglishDateFormat(new Date(license.issuing_date));
108
+ var expDateRes = (license === null || license === void 0 ? void 0 : license.expiry_date) && convertToEnglishDateFormat(new Date(license.expiry_date));
119
109
  var isLegalNameVerified = dataVerified['legal_name.en'] && dataVerified['legal_name.ar'] && ((legal_name === null || legal_name === void 0 ? void 0 : legal_name.en) === watch('legalName') || (legal_name === null || legal_name === void 0 ? void 0 : legal_name.ar) === watch('legalName'));
120
110
  var isEntityTypeVerified = dataVerified['type'] && type === watch('entityType');
121
111
  var isLicenseNumberVerified = dataVerified['license.number'] && (license === null || license === void 0 ? void 0 : license.number) === watch('licenseNumber');
122
- var isUnifiedNumberVerified = dataVerified['license.additional_info'] && ((_c = license === null || license === void 0 ? void 0 : license.additional_info) === null || _c === void 0 ? void 0 : _c.unified_number) === watch('unifiedNumber');
112
+ var isUnifiedNumberVerified = dataVerified['license.additional_info'] && ((_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number) === watch('unifiedNumber');
123
113
  var isIssuingDateVerified = dataVerified['license.issuing_date'] && issueDateRes === watch('issuingDate');
124
114
  var isExpiryDateVerified = dataVerified['license.expiry_date'] && expDateRes === watch('expiryDate');
125
115
  var isArticleIdVerified = dataVerified['AOA_file_id'];
126
116
  var onSubmit = function (data) {
127
- var formData = __assign(__assign({}, deepCopy(getFelids(data))), { isDirty: isDirty });
128
- dispatch(updateEntityName(formData));
117
+ dispatch(updateEntityName(deepCopy(getFelids(data))));
129
118
  };
130
119
  var handleIssueDateOpenClose = function (flag) {
131
120
  setIssueAnchorEl(flag);
@@ -137,12 +126,6 @@ var EntityName = function (_a) {
137
126
  setEntityTypeAnchorEl(flag);
138
127
  };
139
128
  var onBack = function () {
140
- sendCustomEventToGTM({
141
- event: 'Send Event',
142
- event_category: 'Board Flows - Entity',
143
- event_action: 'Entity Details Back button',
144
- event_label: settingsData.businessCountry.iso2
145
- });
146
129
  if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
147
130
  dispatch(handlePrevScreenStep());
148
131
  return;
@@ -153,7 +136,7 @@ var EntityName = function (_a) {
153
136
  if (error)
154
137
  dispatch(clearError());
155
138
  }, [methods.formState.isValid]);
156
- var disabled = !methods.formState.isValid || uploading || uploadingArticle;
139
+ var disabled = !methods.formState.isValid || !!error || uploading || uploadingArticle;
157
140
  var showLicenseNumber = isKWCountry ? isCR : true;
158
141
  var showUnifiedNumber = isSACountry ? isCR : false;
159
142
  var disableBack = settingsData.appConfig.mode === 'content';
@@ -1,21 +1,48 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
4
+ }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
5
5
  component?: React.ElementType<any> | undefined;
6
6
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
7
- export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
7
+ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
8
+ children?: React.ReactNode;
9
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
10
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
11
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
12
+ htmlColor?: string | undefined;
13
+ inheritViewBox?: boolean | undefined;
14
+ shapeRendering?: string | undefined;
15
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
16
+ titleAccess?: string | undefined;
17
+ viewBox?: string | undefined;
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
8
19
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
9
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
- export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
20
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
21
+ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
22
+ children?: React.ReactNode;
23
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
24
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
25
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
26
+ htmlColor?: string | undefined;
27
+ inheritViewBox?: boolean | undefined;
28
+ shapeRendering?: string | undefined;
29
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
30
+ titleAccess?: string | undefined;
31
+ viewBox?: string | undefined;
32
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
11
33
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
12
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
- export declare const LabelContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
35
+ export declare const LabelContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
36
+ children?: React.ReactNode;
37
+ component?: React.ElementType<any> | undefined;
38
+ ref?: React.Ref<unknown> | undefined;
39
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
40
+ } & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
41
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
15
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
42
+ }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
43
  export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
17
44
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
18
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
45
+ }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
19
46
  component?: React.ElementType<any> | undefined;
20
47
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
21
48
  isSelected: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
4
+ }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
5
5
  component?: React.ElementType<any> | undefined;
6
6
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
7
  export interface ExpiryDateProps {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
4
+ }, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
5
5
  component?: React.ElementType<any> | undefined;
6
6
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
7
  export interface IssuingDateProps {
@@ -25,6 +25,6 @@ var SuccessWithFlowButtons = function () {
25
25
  var onClose = function () {
26
26
  dispatch(onCloseCompleteEntity());
27
27
  };
28
- return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, individuals: individuals, boardInfoId: board_info_id, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined, recipient: recipient, status: board_status }));
28
+ return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, individuals: individuals, boardInfoId: board_info_id, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined, status: board_status }));
29
29
  };
30
30
  export default memo(SuccessWithFlowButtons);
@@ -72,7 +72,7 @@ var VerifyNumber = function (_a) {
72
72
  var onSubmit = function (formData) {
73
73
  dispatch(verifyEntityLeadOTP(deepCopy(formData)));
74
74
  };
75
- var disabled = !methods.formState.isValid || !phone || resendLoading;
75
+ var disabled = !methods.formState.isValid || !!error || !phone || resendLoading;
76
76
  return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
77
77
  };
78
78
  export default React.memo(VerifyNumber);
@@ -22,13 +22,11 @@ import ConnectExpressIdentityVerifyOTPScreen from './connectExpress/screens/Iden
22
22
  import ConnectExpressCollectIndividualScreen from './connectExpress/screens/CollectIndividualInfo';
23
23
  import ConnectExpressCollectBusinessScreen from './connectExpress/screens/CollectBusinessInfo';
24
24
  import ConnectExpressCreateAccountLoaderScreen from './connectExpress/screens/CreateAccountLoader';
25
- import ConnectExpressPreparingDataLoaderScreen from './connectExpress/screens/PrepareDataLoading';
26
25
  import ConnectExpressSuccessFlowButtonsScreen from './connectExpress/screens/SuccessWithFlowButtons';
27
26
  import ConnectExpressAccountAlreadyCreatedScreen from './connectExpress/screens/AccountAlreadyCreated';
28
27
  import ConnectExpressAuthenticationListScreen from './connectExpress/screens/AuthenticationList';
29
28
  import ConnectExpressAuthMerchantScreen from './connectExpress/screens/AuthMerchant';
30
29
  import ConnectExpressAuthAccountCreatedLoaderScreen from './connectExpress/screens/AccountCreatedLoader';
31
- import ConnectExpressOperatorError from './connectExpress/screens/OperatorError';
32
30
  import AuthBusinessCountry from './auth/screens/BusinessCountry/BusinessCountry';
33
31
  import AuthSwitchScreen from './auth/screens/AuthSwitch';
34
32
  import AuthMobileScreen from './auth/screens/Mobile';
@@ -59,15 +57,12 @@ import ResetPasswordSuccessPage from './business/screens/ResetPasswordSuccess';
59
57
  import BusCivilIDscreen from './business/screens/CivilID';
60
58
  import BusVerifyPACIScreen from './business/screens/VerifyPACI';
61
59
  import BrandVerifyScreen from './business/screens/BrandDetails';
62
- import BusinessOperatorError from './business/screens/OperatorError';
63
60
  import PasswordVerifyPage from './password/screens/Verify';
64
61
  import CreatePasswordPage from './password/screens/CreatePassword';
65
- import PasswordDataLoadingPage from './password/screens/PrepareDataLoading';
66
62
  import PasswordOTPPage from './password/screens/OTP';
67
63
  import SuccessPasswordPage from './password/screens/Success';
68
64
  import PasswordSuccessWithFlowPage from './password/screens/SuccessWithFlowButtons';
69
65
  import PasswordResetPasswordSuccessPage from './password/screens/ResetPasswordSuccess';
70
- import PasswordOperatorError from './password/screens/OperatorError';
71
66
  import IndividualVerifyPage from './individual/screens/Verify';
72
67
  import IndividualPhoneInfoPage from './individual/screens/IndividualPhoneInfo';
73
68
  import IndividualListPage from './individual/screens/IndividualList';
@@ -77,26 +72,22 @@ import SuccessOwnerPage from './individual/screens/Success';
77
72
  import IndividualSuccessWithFlowPage from './individual/screens/SuccessWithFlowButtons';
78
73
  import IndividualResetPasswordSuccessPage from './individual/screens/ResetPasswordSuccess';
79
74
  import IndividualDataLoadingPage from './individual/screens/PrepareDataLoading';
80
- import IndividualOperatorError from './individual/screens/OperatorError';
81
75
  import BankVerifyPage from './bank/screens/Verify';
82
76
  import BankDetailsPage from './bank/screens/BankDetails';
83
77
  import BankSuccessPage from './bank/screens/Success';
84
78
  import BankSuccessWithFlowPage from './bank/screens/SuccessWithFlowButtons';
85
79
  import BankResetPasswordSuccessPage from './bank/screens/ResetPasswordSuccess';
86
80
  import BankDataLoadingPage from './bank/screens/PrepareDataLoading';
87
- import BankOperatorError from './bank/screens/OperatorError';
88
81
  import TaxVerifyPage from './tax/screens/Verify';
89
82
  import TaxDetailsPage from './tax/screens/TaxDetails';
90
83
  import TaxSuccessPage from './tax/screens/Success';
91
84
  import TaxSuccessWithFlowPage from './tax/screens/SuccessWithFlowButtons';
92
85
  import TaxResetPasswordSuccessPage from './tax/screens/ResetPasswordSuccess';
93
86
  import TaxDataLoadingPage from './tax/screens/PrepareDataLoading';
94
- import TaxOperatorError from './tax/screens/OperatorError';
95
87
  import SignInMobilePage from './signIn/screens/Mobile';
96
88
  import SignInEmailPage from './signIn/screens/Email';
97
89
  import SignInOTPPage from './signIn/screens/OTP';
98
90
  import SignInPasswordPage from './signIn/screens/Password';
99
- import SignInOperatorError from './signIn/screens/OperatorError';
100
91
  import EntityVerifyPage from './entity/screens/Verify';
101
92
  import EntityNamePage from './entity/screens/EntityName';
102
93
  import EntityCapitalPage from './entity/screens/EntityCapital';
@@ -104,7 +95,6 @@ import EntitySuccessPage from './entity/screens/Success';
104
95
  import EntitySuccessWithFlowPage from './entity/screens/SuccessWithFlowButtons';
105
96
  import EntityResetPasswordSuccessPage from './entity/screens/ResetPasswordSuccess';
106
97
  import EntityDataLoadingPage from './entity/screens/PrepareDataLoading';
107
- import EntityOperatorError from './entity/screens/OperatorError';
108
98
  import BrandVerifyPage from './brand/screens/Verify';
109
99
  import BrandInfoPage from './brand/screens/BrandInfo';
110
100
  import BrandSegmentPage from './brand/screens/BrandSegmentInfo';
@@ -113,11 +103,9 @@ import BrandSuccessPage from './brand/screens/Success';
113
103
  import BrandSuccessWithFlowPage from './brand/screens/SuccessWithFlowButtons';
114
104
  import BrandResetPasswordSuccessPage from './brand/screens/ResetPasswordSuccess';
115
105
  import BrandDataLoadingPage from './brand/screens/PrepareDataLoading';
116
- import BrandOperatorError from './brand/screens/OperatorError';
117
106
  import BoardVerifyPage from './board/screens/Verify';
118
107
  import BoardSuccessWithFlowPage from './board/screens/SuccessWithFlowButtons';
119
108
  import BoardResetPasswordSuccessPage from './board/screens/ResetPasswordSuccess';
120
- import BoardOperatorError from './board/screens/OperatorError';
121
109
  export var connectFeatureScreens = [
122
110
  {
123
111
  name: 'CONNECT_BUSINESS_COUNTRY_STEP',
@@ -209,10 +197,6 @@ export var connectExpressFeatureScreens = [
209
197
  name: 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
210
198
  element: ConnectExpressCreateAccountLoaderScreen
211
199
  },
212
- {
213
- name: 'CONNECT_EXPRESS_PREPARING_DATA_STEP',
214
- element: ConnectExpressPreparingDataLoaderScreen
215
- },
216
200
  {
217
201
  name: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
218
202
  element: ConnectExpressCollectIndividualScreen
@@ -240,10 +224,6 @@ export var connectExpressFeatureScreens = [
240
224
  {
241
225
  name: 'CONNECT_EXPRESS_AUTH_ACCOUNT_CREATED_STEP',
242
226
  element: ConnectExpressAuthAccountCreatedLoaderScreen
243
- },
244
- {
245
- name: 'CONNECT_EXPRESS_OPERATOR_ERROR_STEP',
246
- element: ConnectExpressOperatorError
247
227
  }
248
228
  ];
249
229
  export var authFeatureScreens = [
@@ -356,11 +336,7 @@ export var businessFeatureScreens = [
356
336
  { name: 'BUSINESS_SUCCESS_STEP', element: SuccessPage },
357
337
  { name: 'BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP', element: SuccessWithFlowButtonsPage },
358
338
  { name: 'BUSINESS_RESET_PASSWORD_SUCCESS', element: ResetPasswordSuccessPage },
359
- { name: 'BUSINESS_VERIFY_BRAND_INFO', element: BrandVerifyScreen },
360
- {
361
- name: 'BUSINESS_OPERATOR_ERROR_STEP',
362
- element: BusinessOperatorError
363
- }
339
+ { name: 'BUSINESS_VERIFY_BRAND_INFO', element: BrandVerifyScreen }
364
340
  ];
365
341
  export var passwordFeatureScreens = [
366
342
  {
@@ -371,10 +347,6 @@ export var passwordFeatureScreens = [
371
347
  name: 'PASSWORD_CREATE_PASSWORD_STEP',
372
348
  element: CreatePasswordPage
373
349
  },
374
- {
375
- name: 'PASSWORD_LOADING_DATA_STEP',
376
- element: PasswordDataLoadingPage
377
- },
378
350
  {
379
351
  name: 'PASSWORD_RESET_PASSWORD_OTP_STEP',
380
352
  element: PasswordOTPPage
@@ -387,11 +359,7 @@ export var passwordFeatureScreens = [
387
359
  name: 'PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
388
360
  element: PasswordSuccessWithFlowPage
389
361
  },
390
- { name: 'PASSWORD_RESET_PASSWORD_SUCCESS', element: PasswordResetPasswordSuccessPage },
391
- {
392
- name: 'PASSWORD_OPERATOR_ERROR_STEP',
393
- element: PasswordOperatorError
394
- }
362
+ { name: 'PASSWORD_RESET_PASSWORD_SUCCESS', element: PasswordResetPasswordSuccessPage }
395
363
  ];
396
364
  export var individualFeatureScreens = [
397
365
  {
@@ -426,11 +394,7 @@ export var individualFeatureScreens = [
426
394
  name: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
427
395
  element: IndividualSuccessWithFlowPage
428
396
  },
429
- { name: 'INDIVIDUAL_RESET_PASSWORD_SUCCESS', element: IndividualResetPasswordSuccessPage },
430
- {
431
- name: 'INDIVIDUAL_OPERATOR_ERROR_STEP',
432
- element: IndividualOperatorError
433
- }
397
+ { name: 'INDIVIDUAL_RESET_PASSWORD_SUCCESS', element: IndividualResetPasswordSuccessPage }
434
398
  ];
435
399
  export var bankFeatureScreens = [
436
400
  {
@@ -453,11 +417,7 @@ export var bankFeatureScreens = [
453
417
  name: 'BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
454
418
  element: BankSuccessWithFlowPage
455
419
  },
456
- { name: 'BANK_RESET_PASSWORD_SUCCESS', element: BankResetPasswordSuccessPage },
457
- {
458
- name: 'BANK_OPERATOR_ERROR_STEP',
459
- element: BankOperatorError
460
- }
420
+ { name: 'BANK_RESET_PASSWORD_SUCCESS', element: BankResetPasswordSuccessPage }
461
421
  ];
462
422
  export var taxFeatureScreens = [
463
423
  {
@@ -480,11 +440,7 @@ export var taxFeatureScreens = [
480
440
  name: 'TAX_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
481
441
  element: TaxSuccessWithFlowPage
482
442
  },
483
- { name: 'TAX_RESET_PASSWORD_SUCCESS', element: TaxResetPasswordSuccessPage },
484
- {
485
- name: 'TAX_OPERATOR_ERROR_STEP',
486
- element: TaxOperatorError
487
- }
443
+ { name: 'TAX_RESET_PASSWORD_SUCCESS', element: TaxResetPasswordSuccessPage }
488
444
  ];
489
445
  export var signInFeatureScreens = [
490
446
  {
@@ -502,10 +458,6 @@ export var signInFeatureScreens = [
502
458
  {
503
459
  name: 'SIGIN_PASSWORD_STEP',
504
460
  element: SignInPasswordPage
505
- },
506
- {
507
- name: 'SIGIN_OPERATOR_ERROR_STEP',
508
- element: SignInOperatorError
509
461
  }
510
462
  ];
511
463
  export var entityFeatureScreens = [
@@ -533,11 +485,7 @@ export var entityFeatureScreens = [
533
485
  name: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
534
486
  element: EntitySuccessWithFlowPage
535
487
  },
536
- { name: 'ENTITY_RESET_PASSWORD_SUCCESS', element: EntityResetPasswordSuccessPage },
537
- {
538
- name: 'ENTITY_OPERATOR_ERROR_STEP',
539
- element: EntityOperatorError
540
- }
488
+ { name: 'ENTITY_RESET_PASSWORD_SUCCESS', element: EntityResetPasswordSuccessPage }
541
489
  ];
542
490
  export var brandFeatureScreens = [
543
491
  {
@@ -568,11 +516,7 @@ export var brandFeatureScreens = [
568
516
  name: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
569
517
  element: BrandSuccessWithFlowPage
570
518
  },
571
- { name: 'BRAND_RESET_PASSWORD_SUCCESS', element: BrandResetPasswordSuccessPage },
572
- {
573
- name: 'BRAND_OPERATOR_ERROR_STEP',
574
- element: BrandOperatorError
575
- }
519
+ { name: 'BRAND_RESET_PASSWORD_SUCCESS', element: BrandResetPasswordSuccessPage }
576
520
  ];
577
521
  export var boardFeatureScreens = [
578
522
  {
@@ -586,9 +530,5 @@ export var boardFeatureScreens = [
586
530
  {
587
531
  name: 'BOARD_SUCCESS_FLOWS_BUTTONS_STEP',
588
532
  element: BoardSuccessWithFlowPage
589
- },
590
- {
591
- name: 'BOARD_OPERATOR_ERROR_STEP',
592
- element: BoardOperatorError
593
533
  }
594
534
  ];
@@ -2,7 +2,6 @@ import { LibConfig } from '../../@types';
2
2
  export interface IndividualLibProps extends LibConfig {
3
3
  verifyToken?: string;
4
4
  configToken?: string;
5
- loaderColor?: string;
6
5
  }
7
6
  export declare function IndividualElement(props: IndividualLibProps): import("react/jsx-runtime").JSX.Element;
8
7
  export declare function renderIndividualLib(config: IndividualLibProps, elementId: string): {
@@ -36,7 +36,7 @@ import { individualFeatureScreens } from '../featuresScreens';
36
36
  import { individualSelector, verifyLeadToken } from '../app/individual/individualStore';
37
37
  import Background from '../shared/Background';
38
38
  var Individual = memo(function (_a) {
39
- var configToken = _a.configToken, verifyToken = _a.verifyToken, loaderColor = _a.loaderColor, props = __rest(_a, ["configToken", "verifyToken", "loaderColor"]);
39
+ var configToken = _a.configToken, verifyToken = _a.verifyToken, props = __rest(_a, ["configToken", "verifyToken"]);
40
40
  var theme = useAppTheme().theme;
41
41
  var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
42
42
  var _c = useAppSelector(individualSelector), customLoading = _c.customLoading, individualError = _c.error, loading = _c.loading;
@@ -49,11 +49,8 @@ var Individual = memo(function (_a) {
49
49
  loadingScreenName: 'INDIVIDUAL_LOADING_DATA_STEP',
50
50
  navigation: featureScreensNavigation,
51
51
  open: open,
52
- mode: props.mode,
53
52
  internalToken: verifyToken,
54
- settingLoading: settingLoading,
55
- operatorErrorScreenName: 'INDIVIDUAL_OPERATOR_ERROR_STEP',
56
- isValidOperator: data.isValidOperator
53
+ settingLoading: settingLoading
57
54
  });
58
55
  React.useEffect(function () {
59
56
  initializeGTM();
@@ -61,8 +58,8 @@ var Individual = memo(function (_a) {
61
58
  title: 'Individual'
62
59
  });
63
60
  }, []);
64
- var initialLoading = verifyToken && props.mode !== 'content' ? settingLoading : settingLoading || customLoading;
65
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ mode: props.mode, open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, loaderColor: loaderColor, error: error, open: open, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress, type: props.mode === 'content' ? 'CONTENT' : undefined, dialogEdgeFormat: data.appConfig.dialogEdgeFormat, features: appConfig.features }, { children: _jsx(FeatureContainer, __assign({ mode: props.mode, isMaturityExpress: isMaturityExpress }, { children: individualFeatureScreens.map(function (_a, index) {
61
+ var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
62
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, error: error, open: open, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress, type: props.mode === 'content' ? 'CONTENT' : undefined, dialogEdgeFormat: data.appConfig.dialogEdgeFormat, features: appConfig.features }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: individualFeatureScreens.map(function (_a, index) {
66
63
  var Element = _a.element, name = _a.name;
67
64
  var isActive = activeScreen.name === name;
68
65
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));