@adyen/kyc-components 3.71.3 → 3.73.0-beta.0

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 (189) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
  2. package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
  3. package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-D10LCgSY.js} +199 -98
  4. package/dist/BusinessFinancingPage-CVRFAPxm.js +35 -0
  5. package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-DK4PY3_p.js} +47 -40
  6. package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-DyO75Uac.js} +3 -3
  7. package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BiMYdvQq.js} +265 -1227
  8. package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
  9. package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-BqyayBTP.js} +4 -3
  10. package/dist/{DebugModal-B_DAGmya.js → DebugModal-CO_clhiW.js} +12 -11
  11. package/dist/DecisionMakerDetailsPage-C0wmo475.js +80 -0
  12. package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-B2rmqsfW.js} +6 -5
  13. package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-BmWcyurq.js} +1015 -1407
  14. package/dist/FormNavigation-W4SYacAX.js +205 -0
  15. package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-Cj_9-H1H.js} +2 -2
  16. package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-CCkDLYPH.js} +3 -3
  17. package/dist/{Introduction-C16zT64A.js → Introduction-DlsETOX7.js} +14 -6
  18. package/dist/LegalRepresentativeDetailsPage-Dbp83K05.js +55 -0
  19. package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
  20. package/dist/Modal-6j0jkYFX.js +135 -0
  21. package/dist/PayoutDetailsPage-CWAOATOb.js +57 -0
  22. package/dist/{Review-BbsJ9Iv_.js → Review-B0v_A189.js} +4 -3
  23. package/dist/RootBusinessDetailsPage-D_3xc6YN.js +43 -0
  24. package/dist/RootIndividualDetailsPage-CT-rsvpD.js +71 -0
  25. package/dist/{EmbedShell-DpZpuM-4.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
  26. package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DB5BHBy1.js} +2 -2
  27. package/dist/SoleProprietorshipPage-CFZ3F57F.js +45 -0
  28. package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
  29. package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-Tde0WbSG.js} +44 -20
  30. package/dist/Tag-DdkVScyr.js +41 -0
  31. package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-DqNACVFe.js} +4 -32
  32. package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
  33. package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-BGkbFLaG.js} +20 -29
  34. package/dist/TrustMemberCompanyPage-CQi1xGDz.js +55 -0
  35. package/dist/TrustMemberIndividualPage-BI_XyXhS.js +60 -0
  36. package/dist/UnincorporatedPartnershipIndividualPage-B6gLv55I.js +60 -0
  37. package/dist/UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js +58 -0
  38. package/dist/adyen-individual.js +41 -0
  39. package/dist/adyen-kyc-components.js +3 -6
  40. package/dist/adyen-manage-individual.js +41 -0
  41. package/dist/adyen-terms-of-service.js +47 -0
  42. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
  43. package/dist/adyen-transfer-instrument.js +59 -0
  44. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
  45. package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
  46. package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
  47. package/dist/{css-CypmaTn8.js → css-CFY1scQ9.js} +2 -2
  48. package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
  49. package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
  50. package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
  51. package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
  52. package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
  53. package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
  54. package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
  55. package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
  56. package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
  57. package/dist/{core-BsRrVyKB.js → index-D6YGuPb5.js} +810 -1908
  58. package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
  59. package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
  60. package/dist/{json-DDReVYSW.js → json-RoVXbcQq.js} +2 -2
  61. package/dist/localizeDateString-DtxuKMqB.js +27 -0
  62. package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
  63. package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
  64. package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
  65. package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
  66. package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
  67. package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
  68. package/dist/{plaintext-Cjcgjaqv.js → plaintext-DpBLPLCO.js} +2 -2
  69. package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
  70. package/dist/{individual-react.js → preact/adyen-manage-individual.js} +4 -4
  71. package/dist/{terms-of-service-react.js → preact/adyen-terms-of-service.js} +5 -4
  72. package/dist/preact/adyen-transfer-instrument.js +16 -0
  73. package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
  74. package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
  75. package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
  76. package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
  77. package/dist/style.css +1942 -1990
  78. package/dist/styles-CLV89_hH.js +1942 -1990
  79. package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
  80. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
  81. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
  82. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
  83. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
  84. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
  85. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  86. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
  87. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
  88. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  89. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
  90. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
  91. package/dist/types/components/Business/forms/rules.d.ts +0 -1
  92. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
  93. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
  94. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
  95. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
  96. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
  97. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
  98. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  99. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
  100. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
  101. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
  102. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
  103. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
  104. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
  105. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
  106. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
  107. package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
  108. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  109. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  110. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
  111. package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
  112. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
  113. package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
  114. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
  115. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
  116. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
  117. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
  118. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
  119. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
  120. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
  121. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
  122. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
  123. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
  124. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
  125. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
  126. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
  127. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
  128. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
  129. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
  130. package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
  131. package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
  132. package/dist/types/context/ExperimentContext/types.d.ts +6 -6
  133. package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
  134. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
  135. package/dist/types/core/models/api/document.d.ts +1 -1
  136. package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
  137. package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
  138. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
  139. package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
  140. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
  141. package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
  142. package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
  143. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
  144. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
  145. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
  146. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
  147. package/dist/types/hooks/useDataConflicts.d.ts +1 -5
  148. package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
  149. package/dist/types/utils/country.d.ts +3 -2
  150. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  151. package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
  152. package/dist/useToastContext-DiQ_PGrE.js +33 -0
  153. package/dist/{utils-Fkk087z-.js → utils-Bl8l2XY4.js} +4 -4
  154. package/dist/vue/adyen-individual.js +43 -0
  155. package/dist/vue/adyen-manage-individual.js +46 -0
  156. package/dist/vue/adyen-terms-of-service.js +26 -0
  157. package/dist/vue/adyen-transfer-instrument.js +28 -0
  158. package/dist/{yaml-GnQQmt7i.js → yaml-DEzkYiMR.js} +2 -2
  159. package/package.json +28 -61
  160. package/dist/adyenConfig.js +0 -34
  161. package/dist/individual-preact.js +0 -15
  162. package/dist/individual-vue.js +0 -35
  163. package/dist/individual.js +0 -58
  164. package/dist/listToRecord-CO3M1Q74.js +0 -19
  165. package/dist/terms-of-service.js +0 -58
  166. package/dist/transfer-instrument-preact.js +0 -32
  167. package/dist/transfer-instrument-react.js +0 -32
  168. package/dist/transfer-instrument-vue.js +0 -41
  169. package/dist/transfer-instrument.js +0 -38
  170. package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
  171. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
  172. package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
  173. package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
  174. package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
  175. package/dist/types/embeds/adyenConfig.d.ts +0 -22
  176. package/dist/types/embeds/individual/individual.types.d.ts +0 -12
  177. package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
  178. package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
  179. package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
  180. package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
  181. package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
  182. package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
  183. package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
  184. package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
  185. package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
  186. package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
  187. package/dist/types/embeds/types.d.ts +0 -19
  188. package/dist/types/embeds/utils.d.ts +0 -7
  189. package/dist/utils-Du6OO4ZK.js +0 -27
@@ -2,18 +2,22 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7a4cbe84-6486-4ff1-b8be-0d73d8c56638", e._sentryDebugIdIdentifier = "sentry-dbid-7a4cbe84-6486-4ff1-b8be-0d73d8c56638");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "29d6b51d-2f15-4588-b3c9-0cddbbd40e70", e._sentryDebugIdIdentifier = "sentry-dbid-29d6b51d-2f15-4588-b3c9-0cddbbd40e70");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { useState, useCallback, useRef, useEffect, useMemo } from "preact/hooks";
12
- import { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, dl as MemoizedDocumentUpload, dv as List, ac as CountryCodes, aG as CompanyTypesValue, K as useGlobalData, dw as getForms, ae as TaskTypes, dx as BasicInformation, $ as getFormProps, dy as CompanyStructure, dz as AdditionalInformation, dA as MemoizedConstitutionalDocument, i as LegalEntityType, dB as FinancialInformation, dC as StateCodesUS, o as objectsDeepEqual, au as createLogger, e as entriesOf, b_ as businessDetailsComponentsKeyMapping, dD as solePropBusinessDetailsKeyMapping, dE as operationalAddressIsSameIds, dF as COUNTRIES_USING_COMPANY_SEARCH, dG as FIELDS_NEEDED_FOR_COMPANY_SEARCH, aa as keysOf, bv as isUndefinedOrNull, ab as summaryItem, dH as solePropBusinessDetailsApiKeyMapping, bO as businessDetailsApiKeyMapping, d6 as isEmpty, dI as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, V as datasetUtilities, cH as mapAddressLabels, dJ as companyTypeMetadata, k as isEmpty$1, cG as filterOutUnwantedAssociationsIfRootLE, dK as documentFormsIds, a_ as resolveFieldMetadata, dL as defaultFieldMetadata, dM as inferCompanyRegistrationNumberType, dN as getCompanyRegistrationNumberOptions, dO as defaultFieldConfig, cm as defaultFieldMetadata$1, dP as countryToTaxInfoTypeMap, cn as defaultFieldConfig$1, dQ as getKeyForField, h as drop, bd as getOwnEntityAssociations, cM as doArraysMatch, aH as useAccountHolder, W as useToastContext, a as useAnalyticsContext, b as useExperimentsContext, Y as useSettingsContext, X as useStateContext, Z as SettingNames, dR as setIsBankAccountRequestedForOrganization, _ as getAssociatedLeAnalyticsPayload, ag as getCapabilityProblems, dS as rules, at as Confirm, dT as solePropBusinessDetailsDocumentMapping, dU as businessDetailsDocumentMapping } from "./EventEmitter-DTdpTyY7.js";
13
- import { f as formatObject, n as getDocument, o as mapExistingFile, q as getPageName, r as createDocumentRequest, B as augmentWithCountryConfigs, j as composePerScenarioFormConfigurations, g as getProp, l as isValidationError, p as processValidationErrors, m as isMaintenanceModeError, D as getFileExtention, v as documentApiUtils, c as useScenarioConfiguration, d as getPropsFromConfigurations, M as getFieldsWithExistingData, e as getRequiredForms, h as addValidityToForms, u as useCreateLegalEntity, a as useUpdateLegalEntity, i as useFormComposer, t as trackNavigation } from "./CreateIndividualComponent-C3uFsTUT.js";
14
- import { m as mapFinancialReportsToFinancialInformation, d as mapFinancialInformationToFinancialReport, h as hasDataChanged, F as FormWrapper } from "./core-BsRrVyKB.js";
15
- import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Fkk087z-.js";
11
+ import { useState, useEffect, useCallback, useRef, useMemo } from "preact/hooks";
12
+ import { u as useApiContext, V as useMutation, U as httpPost, b as useI18nContext, cY as MemoizedDocumentUpload, O as Button, T as Typography, aD as CountryCodes, ad as CompanyTypesValue, s as useGlobalData, dm as getForms, ah as TaskTypes, dn as BasicInformation, K as getFormProps, dp as CompanyStructure, dq as AdditionalInformation, dr as MemoizedConstitutionalDocument, L as LegalEntityType, ds as FinancialInformation, dt as StateCodesUS, o as objectsDeepEqual, a1 as createLogger, e as entriesOf, bz as businessDetailsComponentsKeyMapping, du as solePropBusinessDetailsKeyMapping, dv as operationalAddressIsSameIds, dw as COUNTRIES_USING_COMPANY_SEARCH, dx as FIELDS_NEEDED_FOR_COMPANY_SEARCH, cI as keysOf, bb as isUndefinedOrNull, aU as summaryItem, dy as solePropBusinessDetailsApiKeyMapping, d3 as businessDetailsApiKeyMapping, cJ as isEmpty, dz as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, B as datasetUtilities, ce as mapAddressLabels, dA as companyTypeMetadata, i as isEmpty$1, cd as filterOutUnwantedAssociationsIfRootLE, dB as documentFormsIds, aF as resolveFieldMetadata, dC as defaultFieldMetadata, dD as inferCompanyRegistrationNumberType, dE as getCompanyRegistrationNumberOptions, dF as defaultFieldConfig, bU as defaultFieldMetadata$1, dG as countryToTaxInfoTypeMap, bV as defaultFieldConfig$1, dH as getKeyForField, d as drop, aC as getOwnEntityAssociations, cl as doArraysMatch, ae as useAccountHolder, x as useAnalyticsContext, al as useExperimentsContext, G as useSettingsContext, D as useStateContext, H as SettingNames, dI as setIsBankAccountRequestedForOrganization, J as getAssociatedLeAnalyticsPayload, Y as getCapabilityProblems, dJ as rules, dK as solePropBusinessDetailsDocumentMapping, dL as businessDetailsDocumentMapping } from "./EventEmitter-BmWcyurq.js";
13
+ import { l as getFieldsWithExistingData, u as useCreateLegalEntity, a as useUpdateLegalEntity, C as Confirm } from "./CreateIndividualComponent-BiMYdvQq.js";
14
+ import { m as mapFinancialReportsToFinancialInformation, e as mapFinancialInformationToFinancialReport, h as hasDataChanged } from "./index-D6YGuPb5.js";
15
+ import { u as useToastContext } from "./useToastContext-DiQ_PGrE.js";
16
+ import { f as formatObject, k as getDocument, m as mapExistingFile, l as getPageName, o as createDocumentRequest, y as augmentWithCountryConfigs, e as composePerScenarioFormConfigurations, g as getProp, i as isValidationError, p as processValidationErrors, h as isMaintenanceModeError, w as getFileExtention, q as documentApiUtils, u as useScenarioConfiguration, a as getPropsFromConfigurations, b as getRequiredForms, c as addValidityToForms, d as useFormComposer, t as trackNavigation } from "./mapExistingFile-CwT8TZ5D.js";
17
+ import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Bl8l2XY4.js";
18
+ import { F as FormWrapper } from "./CreateTransferInstrumentComponent-CaBD_3yr.js";
16
19
  import cx from "classnames";
20
+ import { M as Modal, b as ModalContent } from "./Modal-6j0jkYFX.js";
17
21
  import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
18
22
  const clearCompanyData = async (legalEntityId, baseUrl) => {
19
23
  return httpPost({
@@ -164,25 +168,19 @@ const useVerifyTin = (options) => {
164
168
  const stripWhitespace = (str) => str.replace(/\s/g, "");
165
169
  const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
166
170
  const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
167
- const documentTypes$1 = [
171
+ const documentTypes$2 = [
168
172
  { id: "Internal company document", name: "internalCompanyDocument" },
169
173
  { id: "Business registry statement", name: "businessRegistryStatement" }
170
174
  ];
171
- const GuidanceContent$3 = () => {
175
+ const GuidanceContent$4 = () => {
172
176
  const { i18n } = useI18nContext();
173
177
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
174
178
  /* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
175
- /* @__PURE__ */ jsx(
176
- List,
177
- {
178
- className: "adyen-kyc-u-margin-left-8",
179
- items: [
180
- i18n.get("includesTheDirectorsFullName"),
181
- i18n.get("includesEvidenceOfTheIndividualsRole"),
182
- i18n.get("issuedOrSignedByALegalRepresentative")
183
- ]
184
- }
185
- )
179
+ /* @__PURE__ */ jsxs("ul", { children: [
180
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesTheDirectorsFullName") }),
181
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRole") }),
182
+ /* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
183
+ ] })
186
184
  ] }) });
187
185
  };
188
186
  function ProofOfDirectorDocument({
@@ -193,7 +191,7 @@ function ProofOfDirectorDocument({
193
191
  ...props
194
192
  }) {
195
193
  const { i18n } = useI18nContext();
196
- const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
194
+ const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$2[0].id);
197
195
  return /* @__PURE__ */ jsx(
198
196
  MemoizedDocumentUpload,
199
197
  {
@@ -203,13 +201,125 @@ function ProofOfDirectorDocument({
203
201
  description: i18n.get(description),
204
202
  documentField: "proofOfDirector",
205
203
  documentType: "proofOfDirector",
206
- guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$3, {}),
204
+ guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$4, {}),
207
205
  country,
208
206
  documentTypeSelect: {
209
207
  selectedType: selectedDocumentName,
210
208
  setSelectedType: setSelectedDocumentName,
211
- options: documentTypes$1
209
+ options: documentTypes$2
210
+ }
211
+ }
212
+ );
213
+ }
214
+ const DOC_TYPE_FOR_MULTI_UPLOAD = "Organizational chart and supporting document";
215
+ const documentTypes$1 = [
216
+ { id: "Certified Organizational chart", name: "certifiedOrganizationalChart" },
217
+ {
218
+ id: "Organizational chart and supporting document",
219
+ name: "organizationalChartAndSupportingDocument"
220
+ }
221
+ ];
222
+ const GuidanceContent$3 = ({ selectedDocumentName }) => {
223
+ const { i18n } = useI18nContext();
224
+ const [showGuidanceModal, setShowGuidanceModal] = useState(false);
225
+ return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
226
+ /* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
227
+ selectedDocumentName === "Certified Organizational chart" ? /* @__PURE__ */ jsxs("ul", { children: [
228
+ /* @__PURE__ */ jsx("li", { children: i18n.get("showsOwnershipAndControllingRelations") }),
229
+ /* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
230
+ /* @__PURE__ */ jsx("li", { children: i18n.get("signedByALawyerAccountantAuditorWithinTheLast6Months") })
231
+ ] }) : /* @__PURE__ */ jsxs("ul", { children: [
232
+ /* @__PURE__ */ jsx("li", { children: i18n.get("oneOrganizationalChartShowingOwnershipAndControllingRelations") }),
233
+ /* @__PURE__ */ jsxs("ul", { children: [
234
+ /* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
235
+ /* @__PURE__ */ jsxs("li", { children: [
236
+ /* @__PURE__ */ jsxs("span", { children: [
237
+ i18n.get("one"),
238
+ " "
239
+ ] }),
240
+ /* @__PURE__ */ jsx(Button, { onClick: () => setShowGuidanceModal(true), variant: "link", children: i18n.get("supportingDocument") }),
241
+ /* @__PURE__ */ jsxs("span", { children: [
242
+ " ",
243
+ i18n.get("describingTheOrganizationAndItsUBOSignedWithinTheLast6Months")
244
+ ] })
245
+ ] })
246
+ ] })
247
+ ] }),
248
+ showGuidanceModal && /* @__PURE__ */ jsx(
249
+ Modal,
250
+ {
251
+ size: "small",
252
+ onClose: () => setShowGuidanceModal(false),
253
+ ariaLabel: i18n.get("whichDocumentsQualifyToProveOwnership"),
254
+ children: /* @__PURE__ */ jsxs(ModalContent, { children: [
255
+ /* @__PURE__ */ jsx(
256
+ Typography,
257
+ {
258
+ el: "h1",
259
+ variant: "title-l",
260
+ className: "adyen-kyc-u-margin-bottom-32 adyen-kyc-u-margin-top-32",
261
+ children: i18n.get("whichDocumentsQualifyToProveOwnership")
262
+ }
263
+ ),
264
+ /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("theDocumentsWeCanAcceptToProveOwnershipAre") }),
265
+ /* @__PURE__ */ jsxs("ul", { children: [
266
+ /* @__PURE__ */ jsx("li", { children: i18n.get("securitiesRegister") }),
267
+ /* @__PURE__ */ jsx("li", { children: i18n.get("shareholderRegister") }),
268
+ /* @__PURE__ */ jsx("li", { children: i18n.get("ultimateBeneficialOwnerRegister") }),
269
+ /* @__PURE__ */ jsx("li", { children: i18n.get("articlesOfIncorporation") }),
270
+ /* @__PURE__ */ jsx("li", { children: i18n.get("annualReports") }),
271
+ /* @__PURE__ */ jsx("li", { children: i18n.get("annualReturns") }),
272
+ /* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfCorporateStatus") }),
273
+ /* @__PURE__ */ jsx("li", { children: i18n.get("shareholderAgreements") }),
274
+ /* @__PURE__ */ jsx("li", { children: i18n.get("assignmentAgreements") }),
275
+ /* @__PURE__ */ jsx("li", { children: i18n.get("partnershipAgreements") }),
276
+ /* @__PURE__ */ jsx("li", { children: i18n.get("boardOfDirectorsMeetingRecords") }),
277
+ /* @__PURE__ */ jsx("li", { children: i18n.get("registrationDocument") }),
278
+ /* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfIncumbency") })
279
+ ] })
280
+ ] })
212
281
  }
282
+ )
283
+ ] }) });
284
+ };
285
+ function ProofOfOwnershipDocument({
286
+ id,
287
+ country,
288
+ heading = "uploadYourOrganizationProofOfOwnership",
289
+ description = "weNeedAnOfficialDocumentForOwnership",
290
+ ...props
291
+ }) {
292
+ var _a;
293
+ const { i18n } = useI18nContext();
294
+ const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
295
+ const supportsMultiple = selectedDocumentName === DOC_TYPE_FOR_MULTI_UPLOAD;
296
+ useEffect(() => {
297
+ var _a2, _b;
298
+ if (((_b = (_a2 = props.data) == null ? void 0 : _a2.proofOfOwnership) == null ? void 0 : _b.length) === 2) {
299
+ setSelectedDocumentName(DOC_TYPE_FOR_MULTI_UPLOAD);
300
+ }
301
+ }, [(_a = props.data) == null ? void 0 : _a.proofOfOwnership]);
302
+ return /* @__PURE__ */ jsx(
303
+ MemoizedDocumentUpload,
304
+ {
305
+ ...props,
306
+ id,
307
+ heading: i18n.get(heading),
308
+ description: i18n.get(description),
309
+ documentField: "proofOfOwnership",
310
+ documentType: "proofOfOwnership",
311
+ guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$3, { selectedDocumentName }),
312
+ country,
313
+ label: i18n.get("uploadYourDocuments"),
314
+ documentTypeSelect: {
315
+ selectedType: selectedDocumentName,
316
+ setSelectedType: setSelectedDocumentName,
317
+ options: documentTypes$1
318
+ },
319
+ hidePageCount: true,
320
+ supportsMultipleUploads: supportsMultiple,
321
+ maxNumberOfFiles: supportsMultiple ? 2 : 1,
322
+ extraDropzoneDescription: supportsMultiple ? i18n.get("oneOrganizationalChartAndOneSupportingDocument") : void 0
213
323
  }
214
324
  );
215
325
  }
@@ -221,17 +331,11 @@ const GuidanceContent$2 = () => {
221
331
  const { i18n } = useI18nContext();
222
332
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
223
333
  /* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
224
- /* @__PURE__ */ jsx(
225
- List,
226
- {
227
- className: "adyen-kyc-u-margin-left-8",
228
- items: [
229
- i18n.get("includesTheSignatorysFullName"),
230
- i18n.get("includesEvidenceOfTheIndividualsRoleSignatory"),
231
- i18n.get("issuedOrSignedByALegalRepresentative")
232
- ]
233
- }
234
- )
334
+ /* @__PURE__ */ jsxs("ul", { children: [
335
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesTheSignatorysFullName") }),
336
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRoleSignatory") }),
337
+ /* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
338
+ ] })
235
339
  ] }) });
236
340
  };
237
341
  function ProofOfSignatoryDocument({
@@ -341,36 +445,18 @@ const GuidanceContent$1 = ({
341
445
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
342
446
  acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
343
447
  /* @__PURE__ */ jsx("strong", { children: i18n.get(acceptedDocGuidance.header) }),
344
- /* @__PURE__ */ jsx(
345
- List,
346
- {
347
- className: "adyen-kyc-u-margin-left-8",
348
- items: acceptedDocGuidance.documents.map((document) => i18n.get(document))
349
- }
350
- )
448
+ /* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
351
449
  ] }),
352
450
  /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
353
451
  /* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
354
- /* @__PURE__ */ jsx(
355
- List,
356
- {
357
- className: "adyen-kyc-u-margin-left-8",
358
- items: [i18n.get("includesLegalCompanyName")]
359
- }
360
- )
452
+ /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }) })
361
453
  ] })
362
454
  ] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
363
455
  /* @__PURE__ */ jsxs("strong", { children: [
364
456
  " ",
365
457
  i18n.get("documentRequirements")
366
458
  ] }),
367
- /* @__PURE__ */ jsx(
368
- List,
369
- {
370
- className: "adyen-kyc-upload-field__requirements",
371
- items: [i18n.get("documentIssuedByGovernmentAuthority")]
372
- }
373
- )
459
+ /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("documentIssuedByGovernmentAuthority") }) })
374
460
  ] }) });
375
461
  };
376
462
  function RegistrationDocument({
@@ -454,37 +540,22 @@ const GuidanceContent = ({
454
540
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
455
541
  acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
456
542
  /* @__PURE__ */ jsx("strong", { children: i18n.get(acceptedDocGuidance.header) }),
457
- /* @__PURE__ */ jsx(
458
- List,
459
- {
460
- className: "adyen-kyc-u-margin-left-8",
461
- items: acceptedDocGuidance.documents.map((document) => i18n.get(document))
462
- }
463
- )
543
+ /* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
464
544
  ] }),
465
545
  /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
466
546
  /* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
467
- /* @__PURE__ */ jsx(
468
- List,
469
- {
470
- className: "adyen-kyc-u-margin-left-8",
471
- items: [i18n.get("includesLegalCompanyName"), i18n.get("includesEIN")]
472
- }
473
- )
547
+ /* @__PURE__ */ jsxs("ul", { children: [
548
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }),
549
+ /* @__PURE__ */ jsx("li", { children: i18n.get("includesEIN") })
550
+ ] })
474
551
  ] })
475
552
  ] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
476
553
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__subtitle", children: i18n.get("documentRequirements") }),
477
- /* @__PURE__ */ jsx(
478
- List,
479
- {
480
- className: "adyen-kyc-upload-field__requirements",
481
- items: [
482
- i18n.get("containsNameOfCompany"),
483
- i18n.get("documentShowsTaxIdOfCompany"),
484
- i18n.get("issuedByTheTaxAuthority")
485
- ]
486
- }
487
- )
554
+ /* @__PURE__ */ jsxs("ul", { children: [
555
+ /* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
556
+ /* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
557
+ /* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
558
+ ] })
488
559
  ] }) });
489
560
  };
490
561
  function TaxDocument({
@@ -634,17 +705,11 @@ function BusinessDetails(props) {
634
705
  " ",
635
706
  i18n.get("requirements")
636
707
  ] }),
637
- /* @__PURE__ */ jsx(
638
- List,
639
- {
640
- className: "adyen-kyc-upload-field__requirements",
641
- items: [
642
- i18n.get("containsNameOfCompany"),
643
- i18n.get("documentShowsTaxIdOfCompany"),
644
- i18n.get("issuedByTheTaxAuthority")
645
- ]
646
- }
647
- )
708
+ /* @__PURE__ */ jsxs("ul", { children: [
709
+ /* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
710
+ /* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
711
+ /* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
712
+ ] })
648
713
  ] })
649
714
  }
650
715
  ) }),
@@ -668,6 +733,16 @@ function BusinessDetails(props) {
668
733
  country
669
734
  }
670
735
  ) }),
736
+ /* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyProofOfOwnershipDocument.formId), children: /* @__PURE__ */ jsx(
737
+ ProofOfOwnershipDocument,
738
+ {
739
+ ...getFormProps(props, forms.companyProofOfOwnershipDocument.formId),
740
+ id: forms.companyProofOfOwnershipDocument.formId,
741
+ heading: forms.companyProofOfOwnershipDocument.formHeading,
742
+ description: forms.companyProofOfOwnershipDocument.formDescription,
743
+ country
744
+ }
745
+ ) }),
671
746
  /* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyConstitutionalDocument.formId), children: /* @__PURE__ */ jsx(
672
747
  MemoizedConstitutionalDocument,
673
748
  {
@@ -929,12 +1004,14 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
929
1004
  const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo") ?? null;
930
1005
  const proofOfDirector = getDocument(entityId, "proofOfDirector") ?? null;
931
1006
  const proofOfSignatory = getDocument(entityId, "proofOfSignatory") ?? null;
1007
+ const proofOfOwnership = getDocument(entityId, "proofOfOwnership") ?? null;
932
1008
  const constitutionalDocument = getDocument(entityId, "constitutionalDocument") ?? null;
933
1009
  return {
934
1010
  companyRegistrationDocument: registrationDocument ? { registrationDocument: [mapExistingFile(getPageName(registrationDocument))] } : void 0,
935
1011
  companyTaxDocument: taxDocument ? { taxDocument: [mapExistingFile(getPageName(taxDocument))] } : void 0,
936
1012
  companyProofOfDirectorDocument: proofOfDirector ? { proofOfDirector: [mapExistingFile(getPageName(proofOfDirector))] } : void 0,
937
1013
  companyProofOfSignatoryDocument: proofOfSignatory ? { proofOfSignatory: [mapExistingFile(getPageName(proofOfSignatory))] } : void 0,
1014
+ companyProofOfOwnershipDocument: proofOfOwnership ? { proofOfOwnership: [mapExistingFile(getPageName(proofOfOwnership))] } : void 0,
938
1015
  companyConstitutionalDocument: constitutionalDocument ? {
939
1016
  constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))]
940
1017
  } : void 0
@@ -1016,6 +1093,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
1016
1093
  companyTaxDocument,
1017
1094
  companyProofOfDirectorDocument,
1018
1095
  companyProofOfSignatoryDocument,
1096
+ companyProofOfOwnershipDocument,
1019
1097
  companyConstitutionalDocument
1020
1098
  } = mapApiDocumentToBusinessDetailsDocuments(legalEntity.id);
1021
1099
  const buildSolePropSchema = () => {
@@ -1040,6 +1118,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
1040
1118
  companyTaxDocument,
1041
1119
  companyProofOfDirectorDocument,
1042
1120
  companyProofOfSignatoryDocument,
1121
+ companyProofOfOwnershipDocument,
1043
1122
  companyFinancialInformation: {}
1044
1123
  };
1045
1124
  const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
@@ -1090,6 +1169,12 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
1090
1169
  [key]: businessDetailsSchema[key]
1091
1170
  };
1092
1171
  }
1172
+ case "companyProofOfOwnershipDocument": {
1173
+ return {
1174
+ ...componentData,
1175
+ [key]: businessDetailsSchema[key]
1176
+ };
1177
+ }
1093
1178
  case "companyConstitutionalDocument": {
1094
1179
  return {
1095
1180
  ...componentData,
@@ -1152,13 +1237,14 @@ const formatFinancialInformationSummary = (data, i18n, country) => {
1152
1237
  return summary;
1153
1238
  };
1154
1239
  const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
1155
- var _a, _b, _c, _d, _e, _f;
1240
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1156
1241
  const {
1157
1242
  companyRegistrationDocument,
1158
1243
  companyTaxDocument,
1159
1244
  companyProofOfDirectorDocument,
1160
1245
  companyConstitutionalDocument,
1161
- companyProofOfSignatoryDocument
1246
+ companyProofOfSignatoryDocument,
1247
+ companyProofOfOwnershipDocument
1162
1248
  } = data;
1163
1249
  const taxDocumentType = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(
1164
1250
  (_a = data.basicInformation) == null ? void 0 : _a.country
@@ -1193,6 +1279,13 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
1193
1279
  entityType: "legalEntity",
1194
1280
  documentType: "proofOfSignatory",
1195
1281
  page1: (_f = companyProofOfSignatoryDocument == null ? void 0 : companyProofOfSignatoryDocument.proofOfSignatory) == null ? void 0 : _f[0]
1282
+ }),
1283
+ createDocumentRequest({
1284
+ entityId,
1285
+ entityType: "legalEntity",
1286
+ documentType: "proofOfOwnership",
1287
+ page1: (_g = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _g[0],
1288
+ page2: (_h = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _h[1]
1196
1289
  })
1197
1290
  ]);
1198
1291
  return documents.filter(Boolean);
@@ -1299,9 +1392,7 @@ const businessDetailsFieldsPerScenario = {
1299
1392
  },
1300
1393
  L1: {
1301
1394
  ...businessDetailsBase,
1302
- ...financialInformationBase,
1303
- /* Temporary override for TSD-43260 */
1304
- taxInformation: { rule: "canadaOverrideTaxInfo" }
1395
+ ...financialInformationBase
1305
1396
  },
1306
1397
  L: {
1307
1398
  ...businessDetailsBase,
@@ -1465,7 +1556,7 @@ const formatAdditionalInformation = (data, labels, country, companyType, i18n) =
1465
1556
  const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) => {
1466
1557
  const datasetUtils = datasetUtilities(i18n.locale);
1467
1558
  return entriesOf(data).reduce((summaryData, [form]) => {
1468
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
1559
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
1469
1560
  if (!form || !data[form]) return summaryData;
1470
1561
  const isCountryOfGoverningLawEnabled = isExperimentEnabled(
1471
1562
  "EnableCountryOfGoverningLawForUKCompanies"
@@ -1547,13 +1638,23 @@ const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) =>
1547
1638
  }
1548
1639
  }
1549
1640
  };
1641
+ case "companyProofOfOwnershipDocument":
1642
+ if (!isDocumentsRequired(forms)) return summaryData;
1643
+ return {
1644
+ ...summaryData,
1645
+ [form]: {
1646
+ companyProofOfOwnershipDocument: {
1647
+ fileName: (_n = data[form].proofOfOwnership) == null ? void 0 : _n.map((doc) => doc.name).join("\n")
1648
+ }
1649
+ }
1650
+ };
1550
1651
  case "companyFinancialInformation":
1551
1652
  return {
1552
1653
  ...summaryData,
1553
1654
  [form]: formatFinancialInformationSummary(
1554
1655
  data[form],
1555
1656
  i18n,
1556
- (_n = data == null ? void 0 : data.basicInformation) == null ? void 0 : _n.country
1657
+ (_o = data == null ? void 0 : data.basicInformation) == null ? void 0 : _o.country
1557
1658
  )
1558
1659
  };
1559
1660
  default:
@@ -2407,5 +2508,5 @@ function BusinessDetailsDropin({
2407
2508
  );
2408
2509
  }
2409
2510
  export {
2410
- BusinessDetailsDropin
2511
+ BusinessDetailsDropin as B
2411
2512
  };
@@ -0,0 +1,35 @@
1
+ ;
2
+ {
3
+ try {
4
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce45f16c-d32f-4703-bca0-082fabd33f14", e._sentryDebugIdIdentifier = "sentry-dbid-ce45f16c-d32f-4703-bca0-082fabd33f14");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { b as useI18nContext, P as useLegalEntity, aq as ROOT_LE, M as Loader, Q as getLegalEntityCountry } from "./EventEmitter-BmWcyurq.js";
12
+ import { B as BusinessFinancingDropin } from "./index-D6YGuPb5.js";
13
+ const BusinessFinancingPage = ({
14
+ onSubmit,
15
+ handleHomeClick
16
+ }) => {
17
+ const { i18n } = useI18nContext();
18
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
19
+ if (!rootLe) {
20
+ return /* @__PURE__ */ jsx(Loader, {});
21
+ }
22
+ return /* @__PURE__ */ jsx(
23
+ BusinessFinancingDropin,
24
+ {
25
+ country: getLegalEntityCountry(rootLe),
26
+ rootLegalEntity: rootLe,
27
+ externalOnSubmit: onSubmit,
28
+ handleHomeClick,
29
+ externalOnSubmitLabel: i18n.get("backToTaskList")
30
+ }
31
+ );
32
+ };
33
+ export {
34
+ BusinessFinancingPage
35
+ };