@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
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export declare const RoleTextStyled: 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
7
  export interface AdditionalIndividualInfoProps {
@@ -17,9 +17,9 @@ import { useTranslation } from 'react-i18next';
17
17
  import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
18
18
  import Box from '@mui/material/Box';
19
19
  import { alpha, styled } from '@mui/material/styles';
20
- import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useLanguage, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
20
+ import { useAppDispatch, useAppSelector, useSetFromDefaultValues, useLanguage, useFormReadOnly, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
21
21
  import { DocumentPurpose, IndividualType } from '../../../../@types';
22
- import { deepCopy, getIndividualType, isKW, isKWOrSA, sendCustomEventToGTM } from '../../../../utils';
22
+ import { deepCopy, getIndividualType, isKW } from '../../../../utils';
23
23
  import Form from '../../../../components/Form';
24
24
  import Collapse from '../../../../components/Collapse';
25
25
  import Text from '../../../../components/Text';
@@ -37,7 +37,6 @@ import SignatureFile from './SignatureFile';
37
37
  import ShareCount from './ShareCount';
38
38
  import ShareValue from './ShareValue';
39
39
  import { getFileDetailsFromDocument } from '../../../../utils';
40
- import IsAuthorizedSwitch from './IsAuthorizedSwitch';
41
40
  var TextBoxStyled = styled(Box)(function (_a) {
42
41
  var theme = _a.theme;
43
42
  return (__assign(__assign({ display: 'flex', justifyContent: 'center', flexDirection: 'row', padding: theme.spacing(1.8, 2.5, 1.8, 2.5) }, theme.typography.body1), { lineHeight: theme.spacing(2.5), color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium }));
@@ -53,21 +52,19 @@ var ListType;
53
52
  ListType["OccupationList"] = "OccupationList";
54
53
  })(ListType || (ListType = {}));
55
54
  var AdditionalIndividualInfo = function (_a) {
56
- var _b, _c, _d, _e;
55
+ var _b;
57
56
  var t = useTranslation().t;
58
57
  var isAr = useLanguage().isAr;
59
58
  var dispatch = useAppDispatch();
60
- var _f = useAppSelector(individualSelector), data = _f.data, loading = _f.loading, error = _f.error;
59
+ var _c = useAppSelector(individualSelector), data = _c.data, loading = _c.loading, error = _c.error;
61
60
  var settingsData = useAppSelector(settingsSelector).data;
62
61
  var verify = data.verify;
63
62
  var user = (verify.responseBody || {}).user;
64
- var _g = data.individualData, occupation = _g.occupation, sourceIncome = _g.sourceIncome, monthlyIncome = _g.monthlyIncome, employerName = _g.employerName, isPEP = _g.isPEP, isInfluencer = _g.isInfluencer, civilID = _g.civilID, signatureFileId = _g.signatureFileId, civilIDUploading = _g.civilIDUploading, signatureFileUploading = _g.signatureFileUploading, shareCount = _g.shareCount, shareValue = _g.shareValue, isAuthorized = _g.isAuthorized;
65
- var _h = user || {}, documents = _h.documents, is_authorized = _h.is_authorized, data_status = _h.data_status, data_verification = _h.data_verification, names = _h.names, role = _h.role, occupationRes = _h.occupation, source_income = _h.source_income, monthly_income = _h.monthly_income, shares = _h.shares, is_relative_PEP = _h.is_relative_PEP, is_influencer = _h.is_influencer, objects = _h.objects;
63
+ var _d = data.individualData, occupation = _d.occupation, sourceIncome = _d.sourceIncome, monthlyIncome = _d.monthlyIncome, employerName = _d.employerName, isPEP = _d.isPEP, isInfluencer = _d.isInfluencer, civilID = _d.civilID, signatureFileId = _d.signatureFileId, civilIDUploading = _d.civilIDUploading, signatureFileUploading = _d.signatureFileUploading, shareCount = _d.shareCount, shareValue = _d.shareValue;
64
+ var _e = user || {}, documents = _e.documents, is_authorized = _e.is_authorized, data_status = _e.data_status, data_verification = _e.data_verification, names = _e.names, role = _e.role, occupationRes = _e.occupation, is_relative_PEP = _e.is_relative_PEP, is_influencer = _e.is_influencer, objects = _e.objects;
66
65
  var isKWCountry = React.useMemo(function () { return isKW(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
67
- var isOtherThanKWAndSa = React.useMemo(function () { return !isKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
68
- var showIsAuthorized = isOtherThanKWAndSa;
69
66
  var methods = useForm({
70
- resolver: yupResolver(IndividualInfoValidationSchema(objects, isKWCountry, showIsAuthorized)),
67
+ resolver: yupResolver(IndividualInfoValidationSchema(objects, isKWCountry)),
71
68
  defaultValues: {
72
69
  occupation: occupation,
73
70
  sourceIncome: sourceIncome,
@@ -80,8 +77,7 @@ var AdditionalIndividualInfo = function (_a) {
80
77
  civilIDUploading: civilIDUploading,
81
78
  signatureFileUploading: signatureFileUploading,
82
79
  shareCount: shareCount,
83
- shareValue: shareValue,
84
- isAuthorized: isAuthorized
80
+ shareValue: shareValue
85
81
  },
86
82
  mode: 'onChange'
87
83
  });
@@ -95,57 +91,22 @@ var AdditionalIndividualInfo = function (_a) {
95
91
  civilID: defaultCivilIdFiles,
96
92
  signatureFileId: defaultSignatureFiles
97
93
  });
98
- var isDirty = useFormDirtyCheck(methods, {
99
- occupation: ((_b = occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.chapter) === null || _b === void 0 ? void 0 : _b.id) && { id: occupationRes.chapter.id },
100
- sourceIncome: source_income === null || source_income === void 0 ? void 0 : source_income[0],
101
- monthlyIncome: monthly_income,
102
- employerName: '',
103
- isPEP: is_relative_PEP,
104
- isInfluencer: is_influencer,
105
- shareCount: (_c = shares === null || shares === void 0 ? void 0 : shares.count) === null || _c === void 0 ? void 0 : _c.toString(),
106
- shareValue: (_d = shares === null || shares === void 0 ? void 0 : shares.value) === null || _d === void 0 ? void 0 : _d.toString(),
107
- isAuthorized: is_authorized
108
- }, [
109
- {
110
- name: 'occupation',
111
- keys: ['id']
112
- },
113
- {
114
- name: 'sourceIncome',
115
- keys: ['id']
116
- },
117
- {
118
- name: 'monthlyIncome',
119
- keys: ['id']
120
- }
121
- ]).isDirty;
122
94
  var noneEditable = useDataNoneEditable(data_status, [
123
95
  'occupation',
124
96
  'source_of_income',
125
97
  'monthly_income',
126
98
  'is_relative_PEP',
127
- 'is_influencer',
128
- 'is_authorized'
99
+ 'is_influencer'
129
100
  ]);
130
101
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
131
102
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
132
103
  var dataVerified = useDataVerified(data_verification, ['occupation', 'is_relative_PEP', 'is_influencer']);
133
- var isOccupationVerified = dataVerified['occupation'] && (occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.id) === ((_e = watch('occupation')) === null || _e === void 0 ? void 0 : _e.id);
104
+ var isOccupationVerified = dataVerified['occupation'] && (occupationRes === null || occupationRes === void 0 ? void 0 : occupationRes.id) === ((_b = watch('occupation')) === null || _b === void 0 ? void 0 : _b.id);
134
105
  var isPEPSwitchVerified = dataVerified['is_relative_PEP'] && is_relative_PEP === watch('isPEP');
135
106
  var isInfluencerSwitchVerified = dataVerified['is_influencer'] && is_influencer === watch('isInfluencer');
136
- var isAuthorizedSwitchVerified = dataVerified['is_authorized'] && is_authorized === watch('isAuthorized');
137
- var _j = React.useState(), listActive = _j[0], setListActive = _j[1];
138
- React.useEffect(function () {
139
- sendCustomEventToGTM({
140
- event: 'Send Event',
141
- event_category: 'Board Flows - Individual',
142
- event_action: 'Income Details Page',
143
- event_label: settingsData.businessCountry.iso2
144
- });
145
- }, []);
107
+ var _f = React.useState(), listActive = _f[0], setListActive = _f[1];
146
108
  var onSubmit = function (data) {
147
- var formData = __assign(__assign({}, deepCopy(getFelids(__assign(__assign({}, data), { signatureFileUploading: signatureFileUploading, civilIDUploading: civilIDUploading })))), { isDirty: isDirty });
148
- dispatch(updateIndividualInfo(formData));
109
+ dispatch(updateIndividualInfo(deepCopy(getFelids(data))));
149
110
  };
150
111
  var onBack = function () {
151
112
  dispatch(handleCurrentActiveScreen('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP'));
@@ -170,10 +131,9 @@ var AdditionalIndividualInfo = function (_a) {
170
131
  return t('type_board_member');
171
132
  return t('type_user');
172
133
  };
173
- var _k = React.useMemo(function () { return getIndividualType(objects); }, [objects]), isUser = _k.isUser, isShareholder = _k.isShareholder, isBoardMember = _k.isBoardMember, isBuyer = _k.isBuyer;
134
+ var _g = React.useMemo(function () { return getIndividualType(objects); }, [objects]), isUser = _g.isUser, isShareholder = _g.isShareholder, isBoardMember = _g.isBoardMember, isBuyer = _g.isBuyer;
174
135
  var isUserORBuyerType = isUser || isBuyer;
175
136
  var isUserORBoardMemberType = isUser || isBoardMember;
176
- var isAuthorizedValue = watch('isAuthorized');
177
137
  var showSignatureFile = isUserORBuyerType;
178
138
  var showOccupationFile = isUserORBuyerType;
179
139
  var showSourceOfIncome = isUserORBuyerType;
@@ -184,7 +144,7 @@ var AdditionalIndividualInfo = function (_a) {
184
144
  var isMonthlyIncomeListActive = listActive === ListType.MonthlyIncomeList;
185
145
  var isOccupationListActive = listActive === ListType.OccupationList;
186
146
  var disabled = !methods.formState.isValid || civilIDUploading || signatureFileUploading;
187
- return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !listActive && !!is_authorized, timeout: 500 }, { children: _jsxs(TextBoxStyled, { children: [getUserName() || '', _jsx(RoleTextStyled, { children: getUserRole() || '' })] }) })), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Occupation, { isVerified: isOccupationVerified, readOnly: readOnly['occupation'] || noneEditable['occupation'], onListOpen: function () { return handleMenuClick(ListType.OccupationList); }, onListClose: function () { return handleMenuClick(); }, show: showOccupationFile && !isMonthlyIncomeListActive && !isSourceOfIncomeListActive }), _jsx(SourceOfIncome, { readOnly: readOnly['sourceIncome'] || noneEditable['source_of_income'], onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: showSourceOfIncome && !isMonthlyIncomeListActive && !isOccupationListActive }), _jsx(MonthlyIncome, { readOnly: readOnly['monthlyIncome'] || noneEditable['monthly_income'], show: showSourceOfIncome && !isSourceOfIncomeListActive && !isOccupationListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ShareCount, { show: !listActive && showShares, readOnly: readOnly['shareCount'] }), _jsx(ShareValue, { show: !listActive && showShares, readOnly: readOnly['shareValue'] }), _jsx(IsAuthorizedSwitch, { show: !listActive && showIsAuthorized, readOnly: readOnly['isAuthorized'] || noneEditable['is_authorized'], isVerified: isAuthorizedSwitchVerified }), _jsxs(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: [_jsx(CivilIDFile, { show: isKWCountry, readOnly: readOnly['civilID'], defaultFiles: defaultCivilIdFiles }), _jsx(SignatureFile, { show: isAuthorizedValue && showSignatureFile, readOnly: readOnly['signatureFileId'], defaultFiles: defaultSignatureFiles })] })), _jsx(PEPSwitch, { show: showIsPEP && !listActive, readOnly: readOnly['isPEP'] || noneEditable['is_relative_PEP'], isVerified: isPEPSwitchVerified }), _jsx(InfluencerSwitch, { show: showIsInfluencer && isKWCountry && !listActive, readOnly: readOnly['isInfluencer'] || noneEditable['is_influencer'], isVerified: isInfluencerSwitchVerified })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) }))] }));
147
+ return (_jsxs(ScreenContainer, { children: [_jsx(Collapse, __assign({ in: !listActive && !!is_authorized, timeout: 500 }, { children: _jsx(TextBoxStyled, { children: getUserName() || '' }) })), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Occupation, { isVerified: isOccupationVerified, readOnly: readOnly['occupation'] || noneEditable['occupation'], onListOpen: function () { return handleMenuClick(ListType.OccupationList); }, onListClose: function () { return handleMenuClick(); }, show: showOccupationFile && !isMonthlyIncomeListActive && !isSourceOfIncomeListActive }), _jsx(SourceOfIncome, { readOnly: readOnly['sourceIncome'] || noneEditable['source_of_income'], onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: showSourceOfIncome && !isMonthlyIncomeListActive && !isOccupationListActive }), _jsx(MonthlyIncome, { readOnly: readOnly['monthlyIncome'] || noneEditable['monthly_income'], show: showSourceOfIncome && !isSourceOfIncomeListActive && !isOccupationListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(ShareCount, { show: !listActive && showShares, readOnly: readOnly['shareCount'] }), _jsx(ShareValue, { show: !listActive && showShares, readOnly: readOnly['shareValue'] }), _jsxs(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: [_jsx(CivilIDFile, { show: isKWCountry, readOnly: readOnly['civilID'], defaultFiles: defaultCivilIdFiles }), _jsx(SignatureFile, { show: is_authorized && showSignatureFile, readOnly: readOnly['signatureFileId'], defaultFiles: defaultSignatureFiles })] })), _jsx(PEPSwitch, { show: showIsPEP && !listActive, readOnly: readOnly['isPEP'] || noneEditable['is_relative_PEP'], isVerified: isPEPSwitchVerified }), _jsx(InfluencerSwitch, { show: showIsInfluencer && isKWCountry && !listActive, readOnly: readOnly['isInfluencer'] || noneEditable['is_influencer'], isVerified: isInfluencerSwitchVerified })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) }))] }));
188
148
  };
189
149
  export default React.memo(AdditionalIndividualInfo);
190
150
  AdditionalIndividualInfo.defaultProps = {};
@@ -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';
@@ -52,9 +52,6 @@ var MonthlyIncome = function (props) {
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);
@@ -84,7 +81,7 @@ var MonthlyIncome = function (props) {
84
81
  var income = monthlyIncomeControl.field.value;
85
82
  var error = (_a = monthlyIncomeControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
86
83
  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
84
+ currency: t(data.currency)
88
85
  }), 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
86
  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
87
  } }) }))] })) })));
@@ -1,10 +1,32 @@
1
1
  import * as React from 'react';
2
- export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
2
+ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
+ children?: React.ReactNode;
4
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
+ htmlColor?: string | undefined;
8
+ inheritViewBox?: boolean | undefined;
9
+ shapeRendering?: string | undefined;
10
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
+ titleAccess?: string | undefined;
12
+ viewBox?: string | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
3
14
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
- export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
15
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
+ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
+ children?: React.ReactNode;
18
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
+ htmlColor?: string | undefined;
22
+ inheritViewBox?: boolean | undefined;
23
+ shapeRendering?: string | undefined;
24
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
+ titleAccess?: string | undefined;
26
+ viewBox?: string | undefined;
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
6
28
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
7
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
29
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
30
  export interface PEPSwitchProps {
9
31
  show: boolean;
10
32
  readOnly?: boolean;
@@ -14,9 +14,8 @@ 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
- import { settingsSelector } from '../../../../app/settings';
20
19
  import { ScreenContainer } from '../../../shared/Containers';
21
20
  import Input from '../../../shared/Input';
22
21
  import { individualSelector, clearError } from '../../../app/individual/individualStore';
@@ -25,11 +24,10 @@ var ShareValue = function (_a) {
25
24
  var _b;
26
25
  var show = _a.show, readOnly = _a.readOnly;
27
26
  var t = useTranslation().t;
28
- var settingsData = useAppSelector(settingsSelector).data;
27
+ var data = useAppSelector(individualSelector).data;
29
28
  var control = useFormContext().control;
30
29
  var bckError = useAppSelector(individualSelector).error;
31
30
  var dispatch = useAppDispatch();
32
- var countryCode = settingsData.businessCountry;
33
31
  var handleChange = function (_a) {
34
32
  var target = _a.target;
35
33
  if (bckError)
@@ -37,14 +35,11 @@ var ShareValue = function (_a) {
37
35
  var value = formatNumberAsCurrency(removeAllCharsFromNumber(target.value));
38
36
  shareValueControl.field.onChange(value);
39
37
  };
40
- var getCurrency = React.useMemo(function () {
41
- return t(getCurrencyByCountryIso2(countryCode.iso2));
42
- }, [countryCode.iso2]);
43
38
  var shareValueControl = useController({ control: control, name: 'shareValue' });
44
39
  var shareValue = shareValueControl.field.value;
45
40
  var error = (_b = shareValueControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
46
41
  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
42
+ currency: t(data.currency)
48
43
  }), 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,6 +1,6 @@
1
1
  import * as yup from 'yup';
2
2
  import { IndividualType } from '../../../../@types';
3
- export declare const IndividualInfoValidationSchema: (objects: Array<IndividualType>, isKWCountry: boolean, hasAuthorizedField: boolean) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ export declare const IndividualInfoValidationSchema: (objects: Array<IndividualType>, isKWCountry: boolean) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
4
  occupation: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
5
5
  sourceIncome: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
6
6
  monthlyIncome: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
@@ -10,7 +10,6 @@ export declare const IndividualInfoValidationSchema: (objects: Array<IndividualT
10
10
  isInfluencer: yup.BooleanSchema<boolean | null | undefined, import("yup/lib/types").AnyObject, boolean | null | undefined>;
11
11
  shareCount: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
12
  shareValue: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
13
- isAuthorized: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, boolean | undefined>;
14
13
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
15
14
  occupation: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
16
15
  sourceIncome: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
@@ -21,7 +20,6 @@ export declare const IndividualInfoValidationSchema: (objects: Array<IndividualT
21
20
  isInfluencer: yup.BooleanSchema<boolean | null | undefined, import("yup/lib/types").AnyObject, boolean | null | undefined>;
22
21
  shareCount: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
23
22
  shareValue: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
24
- isAuthorized: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, boolean | undefined>;
25
23
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
26
24
  occupation: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
27
25
  sourceIncome: import("yup/lib/object").OptionalObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
@@ -32,5 +30,4 @@ export declare const IndividualInfoValidationSchema: (objects: Array<IndividualT
32
30
  isInfluencer: yup.BooleanSchema<boolean | null | undefined, import("yup/lib/types").AnyObject, boolean | null | undefined>;
33
31
  shareCount: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
34
32
  shareValue: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
35
- isAuthorized: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, boolean | undefined>;
36
33
  }>>>;
@@ -1,6 +1,6 @@
1
1
  import * as yup from 'yup';
2
2
  import { getIndividualType } from '../../../../utils';
3
- export var IndividualInfoValidationSchema = function (objects, isKWCountry, hasAuthorizedField) {
3
+ export var IndividualInfoValidationSchema = function (objects, isKWCountry) {
4
4
  var isUserType = getIndividualType(objects).isUser;
5
5
  return yup.object().shape({
6
6
  occupation: isUserType ? yup.object().required('alert_choose_occupation') : yup.object().optional(),
@@ -11,7 +11,6 @@ export var IndividualInfoValidationSchema = function (objects, isKWCountry, hasA
11
11
  isPEP: isUserType ? yup.boolean().required('please_choose_relative_pep') : yup.boolean().optional().nullable(),
12
12
  isInfluencer: isUserType && isKWCountry ? yup.boolean().required('please_choose_are_you_influncer') : yup.boolean().optional().nullable(),
13
13
  shareCount: yup.string().optional(),
14
- shareValue: yup.string().optional(),
15
- isAuthorized: hasAuthorizedField ? yup.boolean().required('please_choose_is_authorized') : yup.boolean().optional()
14
+ shareValue: yup.string().optional()
16
15
  });
17
16
  };
@@ -54,7 +54,7 @@ import { useController, useFormContext } from 'react-hook-form';
54
54
  import { styled } from '@mui/material/styles';
55
55
  import CircularProgress from '@mui/material/CircularProgress';
56
56
  import { useAppDispatch } from '../../../../hooks';
57
- import { isValidEmail, removeAllOtherThanCharsNumbersAtAndDot } from '../../../../utils';
57
+ import { isValidEmail } from '../../../../utils';
58
58
  import Collapse from '../../../../components/Collapse';
59
59
  import { ScreenContainer } from '../../../shared/Containers';
60
60
  import Input from '../../../shared/Input';
@@ -103,8 +103,7 @@ var Email = function (_a) {
103
103
  }
104
104
  }, [emailValue, error]);
105
105
  var handleEmailChange = function (event) {
106
- var value = removeAllOtherThanCharsNumbersAtAndDot(event.target.value);
107
- emailControl.field.onChange(value);
106
+ emailControl.field.onChange(event.target.value);
108
107
  };
109
108
  var clearEmail = function () {
110
109
  emailControl.field.onChange('');
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  export declare const TitleStyled: 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
7
  export declare const SubTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
9
- }, "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"> & {
9
+ }, "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"> & {
10
10
  component?: React.ElementType<any> | undefined;
11
11
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
12
  export interface IndividualListProps {
@@ -16,13 +16,11 @@ import Box from '@mui/material/Box';
16
16
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
17
17
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
18
18
  import Text from '../../../../components/Text';
19
+ import Button from '../../../../components/Button';
19
20
  import Collapse from '../../../../components/Collapse';
20
21
  import Warning from '../../../../components/Warning';
21
- import Button from '../../../../components/Button';
22
- import Loader from '../../../../components/Loader';
23
- import { sendCustomEventToGTM } from '../../../../utils';
24
22
  import { ScreenContainer } from '../../../shared/Containers';
25
- import { individualSelector, retrieveBoardStatus } from '../../../app/individual/individualStore';
23
+ import { individualSelector } from '../../../app/individual/individualStore';
26
24
  import UserList from './UserList';
27
25
  var BoxStyled = styled(Box)(function (_a) {
28
26
  var theme = _a.theme;
@@ -51,23 +49,12 @@ export var SubTitleStyled = styled(Text)(function (_a) {
51
49
  var IndividualList = function () {
52
50
  var dispatch = useAppDispatch();
53
51
  var t = useTranslation().t;
54
- var _a = useAppSelector(individualSelector), error = _a.error, data = _a.data, loading = _a.loading;
52
+ var error = useAppSelector(individualSelector).error;
55
53
  var settingsData = useAppSelector(settingsSelector).data;
56
- var flows = (data.verify.responseBody || {}).flows;
57
54
  var onBack = function () {
58
- sendCustomEventToGTM({
59
- event: 'Send Event',
60
- event_category: 'Board Flows - Individual',
61
- event_action: 'Individual Details Back Button',
62
- event_label: settingsData.businessCountry.iso2
63
- });
64
- if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
65
- dispatch(handlePrevScreenStep());
66
- return;
67
- }
68
- dispatch(retrieveBoardStatus());
55
+ dispatch(handlePrevScreenStep());
69
56
  };
70
57
  var hideBack = settingsData.appConfig.mode === 'content';
71
- return (_jsxs(ScreenContainer, { children: [_jsxs(BoxStyled, { children: [_jsxs(ContentStyled, { children: [_jsx(TitleStyled, { children: t('company_individuals') }), _jsx(SubTitleStyled, { children: t('company_individuals_add_or_request_details') })] }), _jsx(UserList, {})] }), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: 'error' }, { children: t(error || '') })) })), !hideBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return onBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') })))] }));
58
+ return (_jsxs(ScreenContainer, { children: [_jsxs(BoxStyled, { children: [_jsxs(ContentStyled, { children: [_jsx(TitleStyled, { children: t('company_individuals') }), _jsx(SubTitleStyled, { children: t('company_individuals_add_or_request_details') })] }), _jsx(UserList, {})] }), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: 'error' }, { children: t(error || '') })) })), !hideBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return onBack(); }, variant: 'text' }, { children: t('back') })))] }));
72
59
  };
73
60
  export default IndividualList;
@@ -25,7 +25,7 @@ import { useTranslation } from 'react-i18next';
25
25
  import { yupResolver } from '@hookform/resolvers/yup';
26
26
  import { alpha, styled, useTheme } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
- import { getUserName, isKWOrSA, isValidEmail } from '../../../../utils';
28
+ import { getUserName, isValidEmail } from '../../../../utils';
29
29
  import { useLanguage, useAppSelector, useAppDispatch, useSetFromDefaultValues } from '../../../../hooks';
30
30
  import { IndividualType } from '../../../../@types';
31
31
  import Collapse from '../../../../components/Collapse';
@@ -35,10 +35,9 @@ import Text from '../../../../components/Text';
35
35
  import CheckIcon from '../../../shared/CheckIcon';
36
36
  import { ScreenContainer } from '../../../shared/Containers';
37
37
  import { addDetailsAsync, individualSelector, requestDetailsByEmail, resetIndividualData } from '../../../app/individual/individualStore';
38
- import IndividualActionButtons from '../../../shared/Button/IndividualActionButtons';
38
+ import IndividualActionButtons from '../../../../features/shared/Button/IndividualActionButtons';
39
39
  import { IndividualCollectInfoValidationSchema } from './validation';
40
40
  import CollectPhoneEmail from './CollectPhoneEmail';
41
- import { settingsSelector } from '../../../../app/settings';
42
41
  var ScreenContainerStyled = styled(ScreenContainer)(function (_a) {
43
42
  var theme = _a.theme;
44
43
  return ({
@@ -85,12 +84,11 @@ var UserList = function (_a) {
85
84
  var dispatch = useAppDispatch();
86
85
  var _j = React.useState(false), emailChecking = _j[0], setEmailChecking = _j[1];
87
86
  var theme = useTheme();
88
- var _k = useAppSelector(individualSelector), data = _k.data, addOrRequestDetailLoading = _k.addOrRequestDetailLoading, error = _k.error;
89
- var settingsData = useAppSelector(settingsSelector).data;
87
+ var _k = useAppSelector(individualSelector), data = _k.data, loading = _k.loading, error = _k.error;
90
88
  var _l = data.individualCollectData, email = _l.email, mobile = _l.mobile, responseBody = _l.responseBody;
91
89
  var is_available = (responseBody || {}).is_available;
92
90
  var verify = data.verify;
93
- var _m = verify.responseBody || {}, userList = _m.userList, recipient = _m.recipient, userRes = _m.user;
91
+ var _m = verify.responseBody || {}, userList = _m.userList, notification = _m.notification;
94
92
  var methods = useForm({
95
93
  resolver: yupResolver(IndividualCollectInfoValidationSchema(activeUser)),
96
94
  defaultValues: {
@@ -159,10 +157,8 @@ var UserList = function (_a) {
159
157
  return (activeUser === null || activeUser === void 0 ? void 0 : activeUser.id) === user.id;
160
158
  };
161
159
  var isSameUserRequestedBefore = function (user) {
162
- var _a;
163
- if (!(userRes === null || userRes === void 0 ? void 0 : userRes.is_authorized) && !isKWOrSA(settingsData.businessCountry.iso2))
164
- return false;
165
- return (_a = user === null || user === void 0 ? void 0 : user.ids) === null || _a === void 0 ? void 0 : _a.includes(recipient === null || recipient === void 0 ? void 0 : recipient.id);
160
+ var _a, _b;
161
+ return (_a = user === null || user === void 0 ? void 0 : user.ids) === null || _a === void 0 ? void 0 : _a.includes((_b = notification === null || notification === void 0 ? void 0 : notification.recipient) === null || _b === void 0 ? void 0 : _b.id);
166
162
  };
167
163
  var getUserStatus = function (user) {
168
164
  return user === null || user === void 0 ? void 0 : user.individual_data_state;
@@ -192,11 +188,11 @@ var UserList = function (_a) {
192
188
  return (_jsx(ScreenContainerStyled, { children: usersMenuList.map(function (user, index) {
193
189
  return (_jsxs(Box, __assign({ sx: index !== usersMenuList.length - 1 ? { borderBottom: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) } : {} }, { children: [_jsxs(TextBoxStyled, __assign({ sx: {
194
190
  cursor: emailChecking ? 'default' : 'pointer'
195
- }, onClick: !!anchorEl && isActiveUser(user) ? function () { return onCloseUserAction(); } : function (e) { return onClickUser(user, e); } }, { children: [_jsxs(TextStyled, { children: [_jsx("span", { children: getName(user) || '' }), _jsx(RoleTextStyled, { children: getUserRole(user) || '' })] }), (user === null || user === void 0 ? void 0 : user.isRequestedEmail) ? _jsx(CheckIcon, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl && isActiveUser(user) })] })), _jsx(Collapse, __assign({ in: !!anchorEl && isActiveUser(user), timeout: 300 }, { children: _jsx(IndividualActionButtons, { isAr: isAr, addDetails: {
191
+ }, onClick: !!anchorEl && isActiveUser(user) ? function () { return onCloseUserAction(); } : function (e) { return onClickUser(user, e); } }, { children: [_jsx(TextStyled, { children: _jsx("span", { children: getName(user) || '' }) }), (user === null || user === void 0 ? void 0 : user.isRequestedEmail) ? _jsx(CheckIcon, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl && isActiveUser(user) })] })), _jsx(Collapse, __assign({ in: !!anchorEl && isActiveUser(user), timeout: 300 }, { children: _jsx(IndividualActionButtons, { isAr: isAr, addDetails: {
196
192
  status: getUserStatus(user),
197
193
  title: t('add_details'),
198
194
  onClick: onAddDetails,
199
- loading: isActiveUser(user) && !!addOrRequestDetailLoading && type === IndividualRequestType.ADD
195
+ loading: isActiveUser(user) && loading && type === IndividualRequestType.ADD
200
196
  }, requestEmail: {
201
197
  children: getCollectForm(user),
202
198
  title: t('request_details_by_email'),
@@ -204,7 +200,7 @@ var UserList = function (_a) {
204
200
  disabled: showCollectForm ? disabled : false,
205
201
  onClick: onRequestEmail,
206
202
  show: !isSameUserRequestedBefore(user),
207
- loading: isActiveUser(user) && !!addOrRequestDetailLoading && type === IndividualRequestType.REQUEST_EMAIL
203
+ loading: isActiveUser(user) && loading && type === IndividualRequestType.REQUEST_EMAIL
208
204
  } }) }))] }), index));
209
205
  }) }));
210
206
  };
@@ -15,10 +15,9 @@ import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import Collapse from '../../../../components/Collapse';
18
- import { removeAllOtherThanCharsNumbersAtAndDot } from '../../../../utils';
19
18
  import { ScreenContainer } from '../../../shared/Containers';
20
19
  import Input from '../../../shared/Input';
21
- import { EndAdornment } from '../../../shared/EndAdornment';
20
+ import { EndAdornment } from '../../../../features/shared/EndAdornment';
22
21
  var InputStyled = styled(Input)(function () { return ({
23
22
  input: {
24
23
  textTransform: 'lowercase'
@@ -33,8 +32,7 @@ var Email = function (_a) {
33
32
  var emailValue = emailControl.field.value;
34
33
  var error = (_b = emailControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
35
34
  var handleEmailChange = function (event) {
36
- var value = removeAllOtherThanCharsNumbersAtAndDot(event.target.value);
37
- emailControl.field.onChange(value);
35
+ emailControl.field.onChange(event.target.value);
38
36
  };
39
37
  var clearNumber = function () {
40
38
  emailControl.field.onChange('');
@@ -1,10 +1,32 @@
1
1
  import * as React from 'react';
2
- export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
2
+ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
+ children?: React.ReactNode;
4
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
+ htmlColor?: string | undefined;
8
+ inheritViewBox?: boolean | undefined;
9
+ shapeRendering?: string | undefined;
10
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
+ titleAccess?: string | undefined;
12
+ viewBox?: string | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
3
14
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
4
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
- export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
15
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
+ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
+ children?: React.ReactNode;
18
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
+ htmlColor?: string | undefined;
22
+ inheritViewBox?: boolean | undefined;
23
+ shapeRendering?: string | undefined;
24
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
+ titleAccess?: string | undefined;
26
+ viewBox?: string | undefined;
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
6
28
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
7
- }, "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
29
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
30
  type GenderProps = {
9
31
  show: boolean;
10
32
  readOnly?: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export declare const RoleTextStyled: 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
7
  export interface IndividualPersonalInfoProps {