@tap-payments/auth-jsconnect 2.8.59-beta → 2.8.59-sandbox

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 (221) hide show
  1. package/build/@types/app.d.ts +1 -0
  2. package/build/@types/form.d.ts +1 -0
  3. package/build/@types/redux.d.ts +1 -0
  4. package/build/api/entity.d.ts +2 -2
  5. package/build/api/entity.js +12 -4
  6. package/build/api/index.d.ts +2 -2
  7. package/build/components/Tooltip/Tooltip.js +1 -1
  8. package/build/constants/api.d.ts +0 -1
  9. package/build/constants/api.js +0 -2
  10. package/build/constants/app.d.ts +0 -1
  11. package/build/constants/app.js +0 -1
  12. package/build/features/app/bank/bankStore.d.ts +13 -18
  13. package/build/features/app/bank/bankStore.js +184 -165
  14. package/build/features/app/board/boardStore.js +52 -30
  15. package/build/features/app/brand/brandStore.d.ts +16 -33
  16. package/build/features/app/brand/brandStore.js +239 -242
  17. package/build/features/app/business/businessStore.d.ts +0 -5
  18. package/build/features/app/business/businessStore.js +76 -87
  19. package/build/features/app/connectExpress/connectExpressStore.d.ts +15 -6
  20. package/build/features/app/connectExpress/connectExpressStore.js +111 -52
  21. package/build/features/app/entity/entityStore.d.ts +20 -36
  22. package/build/features/app/entity/entityStore.js +196 -246
  23. package/build/features/app/individual/individualStore.d.ts +22 -38
  24. package/build/features/app/individual/individualStore.js +263 -266
  25. package/build/features/app/password/passwordStore.d.ts +40 -23
  26. package/build/features/app/password/passwordStore.js +226 -233
  27. package/build/features/app/tax/taxStore.d.ts +13 -7
  28. package/build/features/app/tax/taxStore.js +168 -147
  29. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +13 -1
  30. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  31. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +7 -1
  32. package/build/features/bank/Bank.d.ts +1 -0
  33. package/build/features/bank/Bank.js +7 -4
  34. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  35. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  36. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  37. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  38. package/build/features/bank/screens/OperatorError/index.js +2 -0
  39. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  40. package/build/features/bank/screens/Verify/Verify.js +5 -5
  41. package/build/features/board/Board.js +8 -4
  42. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  43. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  44. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  45. package/build/features/board/screens/OperatorError/index.js +2 -0
  46. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  47. package/build/features/brand/Brand.d.ts +1 -0
  48. package/build/features/brand/Brand.js +7 -4
  49. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +8 -35
  50. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  51. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  52. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  53. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -18
  54. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  55. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
  56. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  57. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  58. package/build/features/brand/screens/BrandInfo/BrandInfo.js +23 -5
  59. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  60. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  61. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  62. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  63. package/build/features/brand/screens/OperatorError/index.js +2 -0
  64. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  65. package/build/features/brand/screens/Verify/Verify.js +1 -1
  66. package/build/features/business/Business.js +9 -4
  67. package/build/features/business/screens/Activities/Activities.js +12 -3
  68. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  69. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  70. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  71. package/build/features/business/screens/BusinessType/BusinessType.js +10 -2
  72. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
  73. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  74. package/build/features/business/screens/Customers/CustomerLocations.d.ts +9 -36
  75. package/build/features/business/screens/Customers/Customers.js +12 -3
  76. package/build/features/business/screens/Customers/ExpectedSalesRange.js +6 -3
  77. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -18
  78. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  79. package/build/features/business/screens/OTP/OTP.js +1 -1
  80. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  81. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  82. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  83. package/build/features/business/screens/OperatorError/index.js +2 -0
  84. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -2
  85. package/build/features/business/screens/Verify/Verify.js +13 -3
  86. package/build/features/connect/Connect.js +3 -2
  87. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  88. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +9 -2
  89. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  90. package/build/features/connect/screens/Individual/Email.js +3 -1
  91. package/build/features/connect/screens/Individual/Individual.js +1 -1
  92. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  93. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  94. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  95. package/build/features/connect/screens/Mobile/Mobile.js +11 -8
  96. package/build/features/connect/screens/NID/NID.js +1 -1
  97. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  98. package/build/features/connectExpress/ConnectExpress.js +2 -1
  99. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
  100. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
  101. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  102. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +6 -1
  103. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +3 -0
  104. package/build/features/connectExpress/screens/AuthenticationList/validation.js +10 -0
  105. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  106. package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
  107. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  108. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
  109. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
  110. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
  111. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
  112. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -1
  113. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  114. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -2
  115. package/build/features/connectExpress/screens/NID/NID.js +1 -1
  116. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
  117. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  118. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  119. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  120. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  121. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  122. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  123. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  124. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  125. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  126. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  127. package/build/features/entity/Entity.d.ts +1 -0
  128. package/build/features/entity/Entity.js +7 -4
  129. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  130. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  131. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  132. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  133. package/build/features/entity/screens/EntityName/EntityName.js +32 -15
  134. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -35
  135. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  136. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  137. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  138. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  139. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  140. package/build/features/entity/screens/OperatorError/index.js +2 -0
  141. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  142. package/build/features/entity/screens/Verify/Verify.js +1 -1
  143. package/build/features/featuresScreens.js +67 -7
  144. package/build/features/individual/Individual.d.ts +1 -0
  145. package/build/features/individual/Individual.js +7 -4
  146. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  147. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +54 -14
  148. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +14 -0
  149. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  150. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  151. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
  152. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  153. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  154. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +3 -2
  155. package/build/features/individual/screens/IndividualList/Email.js +3 -2
  156. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  157. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  158. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  159. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -2
  160. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
  161. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  162. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  163. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  164. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  165. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  166. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  167. package/build/features/individual/screens/OperatorError/index.js +2 -0
  168. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  169. package/build/features/individual/screens/Verify/Verify.js +1 -1
  170. package/build/features/password/Password.d.ts +1 -0
  171. package/build/features/password/Password.js +75 -28
  172. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  173. package/build/features/password/screens/OTP/OTP.js +1 -1
  174. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  175. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  176. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  177. package/build/features/password/screens/OperatorError/index.js +2 -0
  178. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  179. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  180. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  181. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  182. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  183. package/build/features/password/screens/Verify/Verify.js +5 -5
  184. package/build/features/shared/Address/CountryList.d.ts +7 -23
  185. package/build/features/shared/Address/InputSelect.d.ts +7 -23
  186. package/build/features/shared/Button/FlowsButtons.js +13 -3
  187. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -0
  188. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  189. package/build/features/shared/Input/Input.d.ts +2 -2
  190. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +5 -1
  191. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
  192. package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
  193. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
  194. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
  195. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
  196. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
  197. package/build/features/signIn/SignIn.js +12 -3
  198. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  199. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  200. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  201. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  202. package/build/features/tax/Tax.d.ts +1 -0
  203. package/build/features/tax/Tax.js +7 -4
  204. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  205. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  206. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  207. package/build/features/tax/screens/OperatorError/index.js +2 -0
  208. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  209. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  210. package/build/features/tax/screens/Verify/Verify.js +5 -5
  211. package/build/hooks/index.d.ts +1 -0
  212. package/build/hooks/index.js +1 -0
  213. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  214. package/build/hooks/useFormDirtyCheck.js +66 -0
  215. package/build/hooks/useVerifyToken.d.ts +5 -2
  216. package/build/hooks/useVerifyToken.js +10 -5
  217. package/build/utils/common.js +3 -3
  218. package/build/utils/locale.js +2 -1
  219. package/build/utils/string.d.ts +5 -2
  220. package/build/utils/string.js +34 -5
  221. package/package.json +2 -2
@@ -2,6 +2,7 @@ import { LibConfig } from '../../@types';
2
2
  export interface EntityLibProps extends LibConfig {
3
3
  verifyToken?: string;
4
4
  configToken?: string;
5
+ loaderColor?: string;
5
6
  }
6
7
  export declare function EntityElement(props: EntityLibProps): import("react/jsx-runtime").JSX.Element;
7
8
  export declare function renderEntityLib(config: EntityLibProps, elementId: string): {
@@ -36,7 +36,7 @@ import { entityFeatureScreens } from '../featuresScreens';
36
36
  import { entitySelector, verifyLeadToken } from '../app/entity/entityStore';
37
37
  import Background from '../shared/Background';
38
38
  var Entity = memo(function (_a) {
39
- var configToken = _a.configToken, verifyToken = _a.verifyToken, props = __rest(_a, ["configToken", "verifyToken"]);
39
+ var configToken = _a.configToken, verifyToken = _a.verifyToken, loaderColor = _a.loaderColor, props = __rest(_a, ["configToken", "verifyToken", "loaderColor"]);
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(entitySelector), customLoading = _c.customLoading, entityError = _c.error, loading = _c.loading;
@@ -49,8 +49,11 @@ var Entity = memo(function (_a) {
49
49
  loadingScreenName: 'ENTITY_LOADING_DATA_STEP',
50
50
  navigation: featureScreensNavigation,
51
51
  open: open,
52
+ mode: props.mode,
52
53
  internalToken: verifyToken,
53
- settingLoading: settingLoading
54
+ settingLoading: settingLoading,
55
+ operatorErrorScreenName: 'ENTITY_OPERATOR_ERROR_STEP',
56
+ isValidOperator: data.isValidOperator
54
57
  });
55
58
  React.useEffect(function () {
56
59
  initializeGTM();
@@ -58,8 +61,8 @@ var Entity = memo(function (_a) {
58
61
  title: 'Entity'
59
62
  });
60
63
  }, []);
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, open: open, error: error, loading: initialLoading, 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: entityFeatureScreens.map(function (_a, index) {
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, open: open, error: error, loading: initialLoading, loaderColor: loaderColor, 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: entityFeatureScreens.map(function (_a, index) {
63
66
  var Element = _a.element, name = _a.name;
64
67
  var isActive = activeScreen.name === name;
65
68
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  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"> & {
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" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "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" | "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"> & {
5
5
  component?: React.ElementType<any> | undefined;
6
6
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
7
7
  isSelected?: boolean | undefined;
@@ -9,7 +9,7 @@ export declare const NameContainer: import("@emotion/styled").StyledComponent<im
9
9
  }, {}, {}>;
10
10
  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"> & {
11
11
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
12
- }, "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"> & {
12
+ }, "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"> & {
13
13
  component?: React.ElementType<any> | undefined;
14
14
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
15
  export declare const MandatoryStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -14,16 +14,17 @@ import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
- import { formatNumberAsCurrency, removeAllCharsFromNumber } from '../../../../utils';
17
+ import { settingsSelector } from '../../../../app/settings';
18
+ import { formatNumberAsCurrency, getCurrencyByCountryIso2, removeAllCharsFromNumber } from '../../../../utils';
18
19
  import { ScreenContainer } from '../../../shared/Containers';
19
20
  import Input from '../../../shared/Input';
20
- import { clearError, entitySelector } from '../../../app/entity/entityStore';
21
+ import { clearError } from '../../../app/entity/entityStore';
21
22
  import { EndAdornment } from '../../../shared/EndAdornment';
22
23
  var CapitalPaid = function (_a) {
23
24
  var _b;
24
25
  var readOnly = _a.readOnly, isVerified = _a.isVerified;
25
26
  var t = useTranslation().t;
26
- var data = useAppSelector(entitySelector).data;
27
+ var settingsData = useAppSelector(settingsSelector).data;
27
28
  var control = useFormContext().control;
28
29
  var dispatch = useAppDispatch();
29
30
  var handleChange = function (_a) {
@@ -33,11 +34,14 @@ var CapitalPaid = function (_a) {
33
34
  var value = formatNumberAsCurrency(removeAllCharsFromNumber(target.value));
34
35
  capitalPaidControl.field.onChange(value);
35
36
  };
37
+ var getCurrency = React.useMemo(function () {
38
+ return t(getCurrencyByCountryIso2(settingsData.businessCountry.iso2));
39
+ }, [settingsData.businessCountry.iso2]);
36
40
  var capitalPaidControl = useController({ control: control, name: 'capitalPaid' });
37
41
  var capitalPaidValue = capitalPaidControl.field.value;
38
42
  var error = (_b = capitalPaidControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
39
43
  return (_jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('capital_paid_label', {
40
- currency: t(data.currency)
44
+ currency: getCurrency
41
45
  }), required: true, onChange: handleChange, value: capitalPaidValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('capital_paid_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: capitalPaidValue, isVerified: isVerified }) }) })));
42
46
  };
43
47
  export default React.memo(CapitalPaid);
@@ -13,17 +13,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { formatNumberAsCurrency, removeAllCharsFromNumber } from '../../../../utils';
16
+ import { formatNumberAsCurrency, getCurrencyByCountryIso2, removeAllCharsFromNumber } from '../../../../utils';
17
17
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
18
+ import { settingsSelector } from '../../../../app/settings';
18
19
  import { ScreenContainer } from '../../../shared/Containers';
19
20
  import Input from '../../../shared/Input';
20
- import { clearError, entitySelector } from '../../../app/entity/entityStore';
21
+ import { clearError } from '../../../app/entity/entityStore';
21
22
  import { EndAdornment } from '../../../shared/EndAdornment';
22
23
  var CapitalShareValue = function (_a) {
23
24
  var _b;
24
25
  var readOnly = _a.readOnly, isVerified = _a.isVerified;
25
26
  var t = useTranslation().t;
26
- var data = useAppSelector(entitySelector).data;
27
+ var settingsData = useAppSelector(settingsSelector).data;
27
28
  var control = useFormContext().control;
28
29
  var dispatch = useAppDispatch();
29
30
  var handleChange = function (_a) {
@@ -33,11 +34,14 @@ var CapitalShareValue = function (_a) {
33
34
  var value = formatNumberAsCurrency(removeAllCharsFromNumber(target.value));
34
35
  capitalShareValueControl.field.onChange(value);
35
36
  };
37
+ var getCurrency = React.useMemo(function () {
38
+ return t(getCurrencyByCountryIso2(settingsData.businessCountry.iso2));
39
+ }, [settingsData.businessCountry.iso2]);
36
40
  var capitalShareValueControl = useController({ control: control, name: 'capitalShareValue' });
37
41
  var capitalShareValueValue = capitalShareValueControl.field.value;
38
42
  var error = (_b = capitalShareValueControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
39
43
  return (_jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('capital_share_value_label', {
40
- currency: t(data.currency)
44
+ currency: getCurrency
41
45
  }), required: true, onChange: handleChange, value: capitalShareValueValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('capital_share_value_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: capitalShareValueValue, isVerified: isVerified }) }) })));
42
46
  };
43
47
  export default React.memo(CapitalShareValue);
@@ -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 } from '../../../../hooks';
19
- import { deepCopy, removeAllCharsFromNumber } from '../../../../utils';
18
+ import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
19
+ import { deepCopy, formatNumberAsCurrency, removeAllCharsFromNumber, sendCustomEventToGTM } from '../../../../utils';
20
20
  import { clearError, entitySelector, updateEntityCapital } from '../../../app/entity/entityStore';
21
21
  import { yupResolver } from '@hookform/resolvers/yup';
22
- import { handlePrevScreenStep } from '../../../../app/settings';
22
+ import { handlePrevScreenStep, settingsSelector } 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,21 +39,36 @@ 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;
42
43
  var _k = data.entityCapitalData, responseBody = _k.responseBody, capitalPaid = _k.capitalPaid, capitalShareCount = _k.capitalShareCount, capitalShareValue = _k.capitalShareValue, activities = _k.activities;
43
44
  var entity = (data.verify.responseBody || {}).entity;
44
- var _l = entity || {}, data_verification = _l.data_verification, capital = _l.capital;
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();
45
49
  var methods = useForm({
46
50
  resolver: yupResolver(EntityCapitalValidationSchema()),
47
51
  defaultValues: {
48
52
  activities: activities,
49
53
  capitalPaid: capitalPaid,
50
- capitalShareCount: capitalShareCount,
54
+ capitalShareCount: capitalShareCount === null || capitalShareCount === void 0 ? void 0 : capitalShareCount.toString(),
51
55
  capitalShareValue: capitalShareValue
52
56
  },
53
57
  mode: 'onChange'
54
58
  });
55
59
  useSetFromDefaultValues(methods, data.entityCapitalData, true);
56
60
  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;
57
72
  var originalReadOnly = useFormReadOnly(methods);
58
73
  var noneEditable = useDataNoneEditable(entity === null || entity === void 0 ? void 0 : entity.data_status, [
59
74
  'activities',
@@ -64,11 +79,20 @@ var EntityCapital = function (_a) {
64
79
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
65
80
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
66
81
  var dataVerified = useDataVerified(data_verification, ['capital.paid', 'capital.shares.count', 'capital.shares.value']);
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'));
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
+ }, []);
70
93
  var onSubmit = function (data) {
71
- dispatch(updateEntityCapital(deepCopy(getFelids(data))));
94
+ var formData = __assign(__assign({}, deepCopy(getFelids(data))), { isDirty: isDirty });
95
+ dispatch(updateEntityCapital(formData));
72
96
  };
73
97
  var onBack = function () {
74
98
  dispatch(handlePrevScreenStep());
@@ -80,7 +104,7 @@ var EntityCapital = function (_a) {
80
104
  var handleActivitiesOpenClose = function (flag) {
81
105
  setAnchorEl(flag);
82
106
  };
83
- var disabled = !methods.formState.isValid || !!error || uploading;
107
+ var disabled = !methods.formState.isValid || uploading;
84
108
  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') }))] }))] })) })) }));
85
109
  };
86
110
  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 } from '../../../../hooks';
18
+ import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified, useFormDirtyCheck } from '../../../../hooks';
19
19
  import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
20
- import { convertToEnglishDateFormat, deepCopy, getFileDetailsFromDocument, isKW, isSA } from '../../../../utils';
20
+ import { convertToEnglishDateFormat, deepCopy, getFileDetailsFromDocument, isKW, isSA, sendCustomEventToGTM } 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;
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;
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;
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 _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;
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;
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 _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;
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;
57
57
  var getSchema = function () {
58
58
  if (isSACountry)
59
59
  return EntityNameValidationSchema();
@@ -80,6 +80,18 @@ 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;
83
95
  var originalReadOnly = useFormReadOnly(methods, { certificateId: defaultCertificateFiles, articleId: defaultArticleFile });
84
96
  var noneEditable = useDataNoneEditable(data_status, [
85
97
  'legal_name.en',
@@ -104,17 +116,16 @@ var EntityName = function (_a) {
104
116
  'license.expiry_date',
105
117
  'AOA_file_id'
106
118
  ]);
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));
109
119
  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'));
110
120
  var isEntityTypeVerified = dataVerified['type'] && type === watch('entityType');
111
121
  var isLicenseNumberVerified = dataVerified['license.number'] && (license === null || license === void 0 ? void 0 : license.number) === watch('licenseNumber');
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');
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');
113
123
  var isIssuingDateVerified = dataVerified['license.issuing_date'] && issueDateRes === watch('issuingDate');
114
124
  var isExpiryDateVerified = dataVerified['license.expiry_date'] && expDateRes === watch('expiryDate');
115
125
  var isArticleIdVerified = dataVerified['AOA_file_id'];
116
126
  var onSubmit = function (data) {
117
- dispatch(updateEntityName(deepCopy(getFelids(data))));
127
+ var formData = __assign(__assign({}, deepCopy(getFelids(data))), { isDirty: isDirty });
128
+ dispatch(updateEntityName(formData));
118
129
  };
119
130
  var handleIssueDateOpenClose = function (flag) {
120
131
  setIssueAnchorEl(flag);
@@ -126,6 +137,12 @@ var EntityName = function (_a) {
126
137
  setEntityTypeAnchorEl(flag);
127
138
  };
128
139
  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
+ });
129
146
  if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0) {
130
147
  dispatch(handlePrevScreenStep());
131
148
  return;
@@ -136,7 +153,7 @@ var EntityName = function (_a) {
136
153
  if (error)
137
154
  dispatch(clearError());
138
155
  }, [methods.formState.isValid]);
139
- var disabled = !methods.formState.isValid || !!error || uploading || uploadingArticle;
156
+ var disabled = !methods.formState.isValid || uploading || uploadingArticle;
140
157
  var showLicenseNumber = isKWCountry ? isCR : true;
141
158
  var showUnifiedNumber = isSACountry ? isCR : false;
142
159
  var disableBack = settingsData.appConfig.mode === 'content';
@@ -1,48 +1,21 @@
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" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "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" | "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"> & {
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<{
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"> & {
7
+ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
19
8
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
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"> & {
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"> & {
33
11
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
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"> & {
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"> & {
41
14
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
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>, {}, {}>;
15
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
43
16
  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"> & {
44
17
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
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"> & {
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"> & {
46
19
  component?: React.ElementType<any> | undefined;
47
20
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
48
21
  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" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "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" | "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"> & {
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" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "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" | "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"> & {
5
5
  component?: React.ElementType<any> | undefined;
6
6
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
7
  export interface IssuingDateProps {
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OperatorErrorProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OperatorErrorProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import GenericError from '../../../shared/GenericError';
5
+ var OperatorError = function (_a) {
6
+ var t = useTranslation().t;
7
+ return _jsx(GenericError, { error: t('operator_is_invalid'), errorTitle: t('oops') });
8
+ };
9
+ export default React.memo(OperatorError);
@@ -0,0 +1,3 @@
1
+ import OperatorError, { OperatorErrorProps } from './OperatorError';
2
+ export type { OperatorErrorProps };
3
+ export default OperatorError;
@@ -0,0 +1,2 @@
1
+ import OperatorError from './OperatorError';
2
+ export default OperatorError;
@@ -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, 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, recipient: recipient, 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 || !!error || !phone || resendLoading;
75
+ var disabled = !methods.formState.isValid || !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);