@adyen/kyc-components 4.22.0-beta.1 → 4.22.0-beta.3
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.
- package/dist/{AcceptTermsOfServiceWorkflow-CLA1JNzc.js → AcceptTermsOfServiceWorkflow-B08EtlmQ.js} +4 -4
- package/dist/{Accordion-Cwp-Xc7e.js → Accordion-Sjyj7C_t.js} +1 -1
- package/dist/{AccountSetupRejected-B2h3LRDZ.js → AccountSetupRejected-B3G1SHsJ.js} +1 -1
- package/dist/{AdaptiveWorkflow-BHooRzh_.js → AdaptiveWorkflow-V_qigf7-.js} +17 -17
- package/dist/{AdaptiveWorkflowComponent-D1EALddI.js → AdaptiveWorkflowComponent-336EyYCA.js} +3 -3
- package/dist/{AddressFields-CU23S3JV.js → AddressFields-D0wU-i1V.js} +10 -10
- package/dist/{Avatar-BbOb0bui.js → Avatar-Zp1T9qAL.js} +1 -1
- package/dist/{BusinessFinancingDropin-Cc0oB8ka.js → BusinessFinancingDropin-yvRFdCze.js} +32 -30
- package/dist/{BusinessFinancingPage-D0EmBl9D.js → BusinessFinancingPage-4Q_bb1wK.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-c8mvmS4m.js → BusinessRegistrationNumberField-pxmfE7l9.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-DNZALTo_.js → BusinessRegistrationNumberFieldGroup-O1rcBs-z.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-CYjrUqoM.js → BusinessTypeSelectionPage-HqNPKUyC.js} +86 -68
- package/dist/{Button-oqvTDztg.js → Button-DfRmINzF.js} +1 -1
- package/dist/{Checkbox-2Rp9bWYN.js → Checkbox-BHTcJbZA.js} +2 -2
- package/dist/{ComponentGroup-DbWo8fnI.js → ComponentGroup-BuJDKQb8.js} +3 -3
- package/dist/{ConstitutionalDocument-64rqHz7d.js → ConstitutionalDocument-C8lpvZeC.js} +15 -15
- package/dist/{ContactDetails-ucx3UuP8.js → ContactDetails-4aG5xslV.js} +5 -5
- package/dist/{ContextGuidance-CIwiyrm9.js → ContextGuidance-BgefGbGn.js} +3 -3
- package/dist/{Currency-fvQfdQ2i.js → Currency-B310gzYN.js} +5 -5
- package/dist/{CustomerSupport-CHHRYNTG.js → CustomerSupport-zMIH7Ddr.js} +27 -17
- package/dist/{DataConflictsModal-BJHJVW3V.js → DataConflictsModal-BYoWqMXs.js} +7 -7
- package/dist/{DebugModal-CptS2b87.js → DebugModal-CGTlGnVW.js} +10 -10
- package/dist/{DecisionMakerDetails-a_G8S1S9.js → DecisionMakerDetails-DMQwH65p.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-BsiheWPy.js → DecisionMakerDetailsPage-dOUQMqvP.js} +9 -9
- package/dist/{DecisionMakers-DC3r2UzN.js → DecisionMakers-CAiLyM0e.js} +16 -16
- package/dist/{Dropzone-CTdbCPiL.js → Dropzone-fOwOvw2A.js} +7 -7
- package/dist/{EmbeddedStatus-DqanSUWu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
- package/dist/{EndStateLayout-CRNRpDeu.js → EndStateLayout-BK1Hh02g.js} +2 -2
- package/dist/{EntityAssociation-DqTOqixv.js → EntityAssociation-CRUoaEzO.js} +6 -6
- package/dist/{ErrorPanel-jcVYNW8o.js → ErrorPanel-GYU4QnH3.js} +3 -3
- package/dist/{GlobalEntryModal-Bwy0lfz2.js → GlobalEntryModal-CgeUc1JW.js} +54 -30
- package/dist/{GlobalEntryPage-DPKND7LX.js → GlobalEntryPage-C7RMDhhD.js} +6 -6
- package/dist/{Icon-BblJeZYj.js → Icon-C3S5_kkS.js} +1 -1
- package/dist/{IdentityNumber-D9t0xamT.js → IdentityNumber-D345V6Z3.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-0Ll_77LW.js → IdentityNumberFieldGroup-LTpHCBY-.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DESXjfuC.js → IdentityScreeningWorkflow-D9Q5vK2G.js} +12 -12
- package/dist/{IndividualDropin-CMejkT3R.js → IndividualDropin-CrJP-yiU.js} +270 -43
- package/dist/{IndustryCodeFieldGroup-xFrcCogG.js → IndustryCodeFieldGroup-CtYtXzok.js} +4 -4
- package/dist/{InputDate-DMcomeFj.js → InputDate-7IWoLbdp.js} +3 -3
- package/dist/{InputText-BqeL5dXt.js → InputText-NwDnv5UV.js} +3 -3
- package/dist/{Introduction-6WPMkIpx.js → Introduction-CoVkhWlU.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-w0xQxDgC.js → InvitedDecisionMakerComponent-DhjUTF-b.js} +10 -10
- package/dist/{JpAddressFields-Cic1nSNI.js → JpAddressFields-C7A_dZnm.js} +8 -8
- package/dist/{LegalCompanyNameField-Dl60xD84.js → LegalCompanyNameField-B15ekO3h.js} +5 -5
- package/dist/{LegalName-DDKN6L93.js → LegalName-B66u40b_.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-B2ubp7Rb.js → LegalRepresentativeDetailsPage-McOA9vxv.js} +5 -5
- package/dist/{Link-Bb1XDrs1.js → Link-c2jAgGgc.js} +1 -1
- package/dist/{ListItem-CI4fqIkg.js → ListItem-C35r8558.js} +3 -3
- package/dist/{Modal-By_wpf9o.js → Modal-DmzJdNRm.js} +2 -2
- package/dist/{Name-BpKVUmoY.js → Name-DkheYSF1.js} +4 -4
- package/dist/{NewSummary-Bmi54FYk.js → NewSummary-P9wU7zdi.js} +6 -6
- package/dist/{PatriotActDisclosure-DsZX3cb-.js → PatriotActDisclosure-Ck9wmVxw.js} +9 -9
- package/dist/{PayoutDetailsDropin-BkzjalFb.js → PayoutDetailsDropin-BxcaUSng.js} +25 -25
- package/dist/{PayoutDetailsPage-BLbHUm0I.js → PayoutDetailsPage-Dx4d9sdi.js} +6 -6
- package/dist/{RadioGroup-e6Ty_ggj.js → RadioGroup-8J8cYf9v.js} +9 -9
- package/dist/{Review-BG_iSaAN.js → Review-xAXBT3NE.js} +6 -6
- package/dist/{RootBusinessDetailsPage-D6ZEfFr4.js → RootBusinessDetailsPage-q8nZnOMw.js} +5 -5
- package/dist/{RootBusinessLinesPage-B6Swhdyx.js → RootBusinessLinesPage-DT6mJ6NP.js} +22 -22
- package/dist/{RootIndividualDetailsPage-2Bu7fbyB.js → RootIndividualDetailsPage-igHdkLEG.js} +6 -6
- package/dist/{Select-CrcaoG0i.js → Select-OTcSv--b.js} +6 -6
- package/dist/{SignPCIComponent-B4Iz8PXX.js → SignPCIComponent-BIqRMJW7.js} +13 -13
- package/dist/{SingpassSelection-D2NSiGzi.js → SingpassSelection-DYoas7CN.js} +4 -4
- package/dist/{SoleProprietorshipPage-bJ6oea6W.js → SoleProprietorshipPage-CB13cWDG.js} +5 -5
- package/dist/{SourceOfFundsPage-Bu9e93PV.js → SourceOfFundsPage-CWbdtoFA.js} +27 -28
- package/dist/{SourceOfFundsWorkflow-CW7McbuG.js → SourceOfFundsWorkflow-CdnXWyIQ.js} +4 -4
- package/dist/{StateField-BnyUQjAj.js → StateField-C_BPqrJu.js} +5 -5
- package/dist/{Step-CZq7qzCe.js → Step-BLmW1Gkf.js} +5 -5
- package/dist/{Task-Jhx4xFyF.js → Task-Bcst0XKv.js} +7 -7
- package/dist/{TaskGroup-CHPDt1lw.js → TaskGroup-BhHJQqW4.js} +3 -3
- package/dist/{TaskListItem-BAHYod3y.js → TaskListItem-9AbXbDql.js} +10 -10
- package/dist/{TaskStepperContextProvider-BtpYUg5S.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
- package/dist/{TaskVerificationStatus-onOyOzoM.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
- package/dist/{TaxInformationFieldGroup-D4bSgrDG.js → TaxInformationFieldGroup-D9D9dylh.js} +9 -9
- package/dist/{TaxReportingDropin-BD-WaKf5.js → TaxReportingDropin-Clq8CW6g.js} +14 -14
- package/dist/{TaxReportingWorkflow-UVCd2CGW.js → TaxReportingWorkflow-cQqU3aXL.js} +4 -4
- package/dist/{TermsOfServiceManagement-Czlvu-_X.js → TermsOfServiceManagement-H4OciUQk.js} +12 -12
- package/dist/{TextArea-Doiwq6Fz.js → TextArea-8hBKDuUz.js} +4 -4
- package/dist/{TrustDetailsPage-Do_Pgp5e.js → TrustDetailsPage-CifQSuLz.js} +25 -25
- package/dist/{TrustMemberCompanyPage-COKJWVwj.js → TrustMemberCompanyPage-DsuFi1h7.js} +6 -6
- package/dist/{TrustMemberIndividualPage-BTzYVATe.js → TrustMemberIndividualPage-CnYa_Ce0.js} +5 -5
- package/dist/{TrustMemberRoleAndTypePage-CvT2NyPL.js → TrustMemberRoleAndTypePage-DiROV17N.js} +15 -15
- package/dist/{TrustMembersOverview-Dx2d70H1.js → TrustMembersOverview-C2UuC9t5.js} +11 -11
- package/dist/{UboTaskItem-DItfn-Pd.js → UboTaskItem-CqUwvBCa.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-CLBFd1-S.js → UnincorporatedPartnershipIndividualPage-Btv0z73W.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-5RlKVr20.js → UnincorporatedPartnershipMemberCompanyPage-BWjnuikG.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D3j7kPUH.js → UnincorporatedPartnershipMemberRoleAndTypePage-CrpY2YBo.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-BrypfDgd.js → UnincorporatedPartnershipMembersOverview-BwWOUKHW.js} +6 -6
- package/dist/{VerificationErrorAlert-Dg0EN5Gg.js → VerificationErrorAlert-M7ywK2-M.js} +3 -3
- package/dist/{Workflow-BbFLvLAf.js → Workflow-RvSRNIdQ.js} +6 -6
- package/dist/{accountHolderUtils-BnH2f3aW.js → accountHolderUtils-oPHUe6-U.js} +1 -1
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +5 -5
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +34 -34
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +11 -11
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-F8i4raV6.js → bafinUtils-zINYd-QL.js} +160 -1053
- package/dist/businessRegistrationNumberPatterns-DeLB_HZ4.js +981 -0
- package/dist/{constants-C1GRcz1y.js → constants-Dp-FBOPm.js} +4 -4
- package/dist/{country-DkgapJ4w.js → country-zZC2TAQB.js} +1 -1
- package/dist/{decisionMaker-M0Tm92JR.js → decisionMakerRoles-APTR-Ah_.js} +41 -2
- package/dist/{error-3d6yiTPF.js → error-DDqmmQ4a.js} +3 -3
- package/dist/{form-rules-BhIs9ilj.js → form-rules-WhDvAYOL.js} +7 -7
- package/dist/{formatValidationError-DdKr3rgo.js → formatValidationError-CdyACUip.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-CfU1YUaz.js → getDefaultRegistrationNumberType-CBt2xgFB.js} +59 -59
- package/dist/{getProblemsForEntity-CfzojTAS.js → getProblemsForEntity-Bh9nSdOW.js} +1 -1
- package/dist/{getTrustedDecisionMakers-Brlr-pKL.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
- package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
- package/dist/mapAddressLocalizationToJpAddressSchema-xGmp-RP6.js +26 -0
- package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CWb68lJV.js → mapJpAddressSchemaToAddressLocalizations-DJx0cGCc.js} +3 -4
- package/dist/{mapLegalEntityToIndividualSchema-B3XhBnaa.js → mapLegalEntityToIndividualSchema-BP_k3lew.js} +8 -8
- package/dist/{mapTransferInstrumentToPayoutAccount-n4ffPJ2c.js → mapTransferInstrumentToPayoutAccount-Do0UOu4V.js} +3 -3
- package/dist/{processCapabilities-BfskhjUw.js → processCapabilities-DRD0Aq2i.js} +3 -2
- package/dist/{processValidationErrors-BfqJR1rP.js → processValidationErrors-B2bMDRz6.js} +4 -4
- package/dist/{resolveEnvironment-Bp-RuIhz.js → resolveEnvironment-NL5RPEmW.js} +12 -12
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -3
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +3 -3
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +9 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +7 -7
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +2 -2
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +2 -2
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +4 -4
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +2 -2
- package/dist/types/components/Business/utils/utils.d.ts +3 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +96 -102
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +5 -6
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -2
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +5 -2
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -4
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -4
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -4
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +4 -4
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +2 -3
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -7
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +13 -0
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +3 -3
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapCustomerSupportSchemaToCustomerSupportType.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapDtoToCustomerSupportSchema.d.ts +3 -0
- package/dist/types/core/models/api/individual.d.ts +5 -6
- package/dist/types/core/models/api/legal-arrangement.d.ts +6 -6
- package/dist/types/core/models/api/legal-entity.d.ts +2 -2
- package/dist/types/core/user-events.d.ts +2 -2
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +3 -3
- package/dist/types/hooks/useDataConflicts.d.ts +2 -2
- package/dist/types/types/businessEntityType.d.ts +7 -0
- package/dist/types/utils/addressToString.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +18 -7
- package/dist/types/utils/customerSupportUtils.d.ts +2 -2
- package/dist/types/utils/legalArrangementUtils.d.ts +1 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/{types-C6GnB9nH.js → types-wRlt8bxb.js} +1 -1
- package/dist/{useBusinessDetailsData-UyUhXzON.js → useBusinessDetailsData-BLsxNRYY.js} +89 -109
- package/dist/{useCanSeeIntroduction-C6qXZZe8.js → useCanSeeIntroduction-CJtk3sbc.js} +3 -3
- package/dist/{useDataMissingRemediations-D-NZOgal.js → useDataMissingRemediations-msU1AJvo.js} +1 -1
- package/dist/{useForm-BhfuVkAR.js → useForm-ugD-3r75.js} +3 -3
- package/dist/{useHideTaskStepper-Dlzsx-RK.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
- package/dist/{useId-DqpXTon5.js → useId-BLqna7ut.js} +1 -1
- package/dist/{useNavigate-Xc0HARgb.js → useNavigate-Bl4i4ROG.js} +33 -33
- package/dist/{useSalesChannels-gzi6QOI7.js → useSalesChannels-DeMYvord.js} +3 -3
- package/dist/{useTaskLandedEvent-BXv-wuAJ.js → useTaskLandedEvent-RGsfipqC.js} +2 -2
- package/dist/{useTrustMembers-wjNlRtOm.js → useTrustMembers-FeQlraZJ.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-CfpBIS06.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
- package/dist/{utils-P67T6pKI.js → utils-2tir5QtF.js} +1 -1
- package/dist/{utils-DyriwmGv.js → utils-81t38d1p.js} +4 -4
- package/dist/{utils-DebuaWe9.js → utils-Cz7Up17-.js} +9 -18
- package/dist/{validate-DzNLLQoR.js → validate-BDbpNubW.js} +2 -2
- package/dist/{validate-DruWE6jY.js → validate-CZ935egZ.js} +1 -1
- package/dist/{validate-MsZ6MiUq.js → validate-CiLi9-v6.js} +8 -8
- package/dist/{validate-C2fajdCR.js → validate-i-52SWZE.js} +46 -6
- package/dist/{validateExtractionResult-BfwUJj1D.js → validateExtractionResult-dH4TewHf.js} +2 -2
- package/dist/{validationError-DudGlB6v.js → validationError-tamTArFR.js} +2 -2
- package/package.json +1 -1
- package/dist/Individual.rules-4BHmKpNa.js +0 -293
- package/dist/decisionMakerRoles-DbKnutwk.js +0 -46
- package/dist/isEmpty-DD8Insy0.js +0 -14
- package/dist/mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js +0 -66
- package/dist/types/core/models/api/address.d.ts +0 -14
- package/dist/types/core/models/api/branchAllocation.d.ts +0 -5
- package/dist/types/core/models/api/company-types-value.d.ts +0 -15
- package/dist/types/core/models/api/customerSupport.d.ts +0 -12
- package/dist/types/core/models/api/financialReport.d.ts +0 -15
- package/dist/types/core/models/api/organization.d.ts +0 -60
- package/dist/utils-Br7Ah3uy.js +0 -46
package/dist/{AcceptTermsOfServiceWorkflow-CLA1JNzc.js → AcceptTermsOfServiceWorkflow-B08EtlmQ.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e454044e-769c-4153-9c2e-f724a88ee71b", e._sentryDebugIdIdentifier = "sentry-dbid-e454044e-769c-4153-9c2e-f724a88ee71b");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
6
|
-
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-
|
|
5
|
+
import { t as EndStateLayout } from "./EndStateLayout-BK1Hh02g.js";
|
|
6
|
+
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-H4OciUQk.js";
|
|
7
7
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
8
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
8
|
+
import { t as useHideTaskStepper } from "./useHideTaskStepper-CbMcV9mk.js";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
10
10
|
//#region src/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.tsx
|
|
11
11
|
var AcceptTermsOfServiceWorkflow = ({ node }) => {
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "541be778-75da-4af1-99de-b330812d6a66", e._sentryDebugIdIdentifier = "sentry-dbid-541be778-75da-4af1-99de-b330812d6a66");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as Icon } from "./Icon-
|
|
5
|
+
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
6
6
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "75680866-bf49-4206-bbb9-89f3eb636db8", e._sentryDebugIdIdentifier = "sentry-dbid-75680866-bf49-4206-bbb9-89f3eb636db8");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { S as AlertIcon, k as Header } from "./resolveEnvironment-
|
|
6
|
+
import { S as AlertIcon, k as Header } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/Shared/AccountSetupRejected/AccountSetupRejected.tsx
|
|
9
9
|
function AccountSetupRejected() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "98d86a43-ebe1-4da0-8f03-ee71f7643ef4", e._sentryDebugIdIdentifier = "sentry-dbid-98d86a43-ebe1-4da0-8f03-ee71f7643ef4");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
6
|
-
import { r as resolveComponentProps } from "./utils-
|
|
6
|
+
import { r as resolveComponentProps } from "./utils-2tir5QtF.js";
|
|
7
7
|
import { Suspense, lazy } from "preact/compat";
|
|
8
8
|
import { useContext as useContext$1, useEffect as useEffect$1 } from "preact/hooks";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -17,21 +17,21 @@ function useWorkflowContext() {
|
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/adaptiveWorkflow/component-registry.ts
|
|
20
|
-
var Workflow = lazy(async () => (await import("./Workflow-
|
|
21
|
-
var TaskGroup = lazy(async () => (await import("./TaskGroup-
|
|
22
|
-
var Task = lazy(async () => (await import("./Task-
|
|
23
|
-
var Step = lazy(async () => (await import("./Step-
|
|
24
|
-
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-
|
|
25
|
-
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-
|
|
26
|
-
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-
|
|
27
|
-
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-
|
|
28
|
-
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-
|
|
29
|
-
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-
|
|
30
|
-
var LegalName = lazy(async () => (await import("./LegalName-
|
|
31
|
-
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-
|
|
32
|
-
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-
|
|
33
|
-
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-
|
|
34
|
-
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-
|
|
20
|
+
var Workflow = lazy(async () => (await import("./Workflow-RvSRNIdQ.js")).Workflow);
|
|
21
|
+
var TaskGroup = lazy(async () => (await import("./TaskGroup-BhHJQqW4.js")).TaskGroup);
|
|
22
|
+
var Task = lazy(async () => (await import("./Task-Bcst0XKv.js")).Task);
|
|
23
|
+
var Step = lazy(async () => (await import("./Step-BLmW1Gkf.js")).Step);
|
|
24
|
+
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-BuJDKQb8.js")).ComponentGroup);
|
|
25
|
+
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-CqUwvBCa.js")).UboTaskItem);
|
|
26
|
+
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-CdnXWyIQ.js")).SourceOfFundsWorkflow);
|
|
27
|
+
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-cQqU3aXL.js")).TaxReportingWorkflow);
|
|
28
|
+
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-B08EtlmQ.js")).AcceptTermsOfServiceWorkflow);
|
|
29
|
+
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-D9Q5vK2G.js")).IdentityScreeningWorkflow);
|
|
30
|
+
var LegalName = lazy(async () => (await import("./LegalName-B66u40b_.js")).LegalName);
|
|
31
|
+
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-D9D9dylh.js")).TaxInformationFieldGroup);
|
|
32
|
+
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-O1rcBs-z.js")).BusinessRegistrationNumberFieldGroup);
|
|
33
|
+
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-CtYtXzok.js")).IndustryCodeFieldGroup);
|
|
34
|
+
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-LTpHCBY-.js")).IdentityNumberFieldGroup);
|
|
35
35
|
var LAYOUT_COMPONENT_MAP = {
|
|
36
36
|
layout: Workflow,
|
|
37
37
|
taskGroup: TaskGroup,
|
package/dist/{AdaptiveWorkflowComponent-D1EALddI.js → AdaptiveWorkflowComponent-336EyYCA.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fed46c99-b9c3-4eb6-a919-715ad63d9227", e._sentryDebugIdIdentifier = "sentry-dbid-fed46c99-b9c3-4eb6-a919-715ad63d9227");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
-
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-
|
|
8
|
+
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-V_qigf7-.js";
|
|
9
9
|
import { t as useAdaptiveWorkflow } from "./useAdaptiveWorkflow-DsQESk9f.js";
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f23fded1-a651-42a0-a62d-fc8436b48989", e._sentryDebugIdIdentifier = "sentry-dbid-f23fded1-a651-42a0-a62d-fc8436b48989");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { X as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-
|
|
7
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { X as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
|
+
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
8
8
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
|
|
9
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
10
|
-
import { t as InputText } from "./InputText-
|
|
11
|
-
import { f as translateTranslatable, r as Field, t as Select } from "./Select-
|
|
12
|
-
import { a as getAddressSchemaLabelsByCountry, f as addressFields, i as getAddressSchemaForCountry, l as CONDENSED_ADDRESS_FIELDS, n as StateField, o as getKeyForField, u as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./StateField-
|
|
13
|
-
import { k as createFormUtils, u as CountryField } from "./RadioGroup-
|
|
14
|
-
import { r as useDebouncedCallback } from "./Checkbox-
|
|
15
|
-
import { r as countrySpecificFormatters } from "./InputDate-
|
|
9
|
+
import { i as useAnalyticsContext } from "./Modal-DmzJdNRm.js";
|
|
10
|
+
import { t as InputText } from "./InputText-NwDnv5UV.js";
|
|
11
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-OTcSv--b.js";
|
|
12
|
+
import { a as getAddressSchemaLabelsByCountry, f as addressFields, i as getAddressSchemaForCountry, l as CONDENSED_ADDRESS_FIELDS, n as StateField, o as getKeyForField, u as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./StateField-C_BPqrJu.js";
|
|
13
|
+
import { k as createFormUtils, u as CountryField } from "./RadioGroup-8J8cYf9v.js";
|
|
14
|
+
import { r as useDebouncedCallback } from "./Checkbox-BHTcJbZA.js";
|
|
15
|
+
import { r as countrySpecificFormatters } from "./InputDate-7IWoLbdp.js";
|
|
16
16
|
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "26c5e8e0-33d0-4147-97fd-df15ae6931b9", e._sentryDebugIdIdentifier = "sentry-dbid-26c5e8e0-33d0-4147-97fd-df15ae6931b9");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as Icon } from "./Icon-
|
|
5
|
+
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
8
|
var Avatar_module_default = {
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d3e487ed-fa44-46be-bae8-488f8b2c6cff", e._sentryDebugIdIdentifier = "sentry-dbid-d3e487ed-fa44-46be-bae8-488f8b2c6cff");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { T as datasetUtilities, ft as useSettingsContext, j as useToggleContext, k as Header } from "./resolveEnvironment-
|
|
6
|
+
import { T as datasetUtilities, ft as useSettingsContext, j as useToggleContext, k as Header } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-DfRmINzF.js";
|
|
10
10
|
import { n as httpGet, s as useApiContext } from "./http-DsJtugN1.js";
|
|
11
11
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
12
12
|
import { t as cloneObject } from "./genUtils-Ce61IJs8.js";
|
|
13
|
-
import { y as reverseMapping } from "./processCapabilities-
|
|
13
|
+
import { y as reverseMapping } from "./processCapabilities-DRD0Aq2i.js";
|
|
14
14
|
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
|
|
15
|
-
import { t as isEeaCountry } from "./country-
|
|
16
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
17
|
-
import { a as SettingNames, t as InputText } from "./InputText-
|
|
15
|
+
import { t as isEeaCountry } from "./country-zZC2TAQB.js";
|
|
16
|
+
import { i as useAnalyticsContext } from "./Modal-DmzJdNRm.js";
|
|
17
|
+
import { a as SettingNames, t as InputText } from "./InputText-NwDnv5UV.js";
|
|
18
18
|
import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
|
|
19
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
20
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
21
|
-
import { f as translateTranslatable, r as Field, t as Select } from "./Select-
|
|
22
|
-
import { r as formatObject } from "./utils-
|
|
23
|
-
import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-
|
|
24
|
-
import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, m as FormFlow, p as getRequiredForms, t as RadioGroup, u as CountryField, y as useFormComposer } from "./RadioGroup-
|
|
25
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
26
|
-
import { t as Checkbox } from "./Checkbox-
|
|
27
|
-
import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-
|
|
28
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
29
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
19
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-BLqna7ut.js";
|
|
20
|
+
import { t as EndStateLayout } from "./EndStateLayout-BK1Hh02g.js";
|
|
21
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-OTcSv--b.js";
|
|
22
|
+
import { r as formatObject } from "./utils-81t38d1p.js";
|
|
23
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-C_BPqrJu.js";
|
|
24
|
+
import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, m as FormFlow, p as getRequiredForms, t as RadioGroup, u as CountryField, y as useFormComposer } from "./RadioGroup-8J8cYf9v.js";
|
|
25
|
+
import { t as ErrorPanel } from "./ErrorPanel-GYU4QnH3.js";
|
|
26
|
+
import { t as Checkbox } from "./Checkbox-BHTcJbZA.js";
|
|
27
|
+
import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-D0wU-i1V.js";
|
|
28
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-RGsfipqC.js";
|
|
29
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-B2bMDRz6.js";
|
|
30
30
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
31
|
-
import { a as isValidationError } from "./validationError-
|
|
32
|
-
import { t as InputDate } from "./InputDate-
|
|
31
|
+
import { a as isValidationError } from "./validationError-tamTArFR.js";
|
|
32
|
+
import { t as InputDate } from "./InputDate-7IWoLbdp.js";
|
|
33
33
|
import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
34
|
-
import { t as Link } from "./Link-
|
|
35
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
36
|
-
import { t as currencyByCountry } from "./types-
|
|
37
|
-
import { t as NewSummary } from "./NewSummary-
|
|
38
|
-
import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-
|
|
39
|
-
import { t as businessFinancingMultiformRules } from "./validate-
|
|
34
|
+
import { t as Link } from "./Link-c2jAgGgc.js";
|
|
35
|
+
import { t as formatValidationError } from "./formatValidationError-CdyACUip.js";
|
|
36
|
+
import { t as currencyByCountry } from "./types-wRlt8bxb.js";
|
|
37
|
+
import { t as NewSummary } from "./NewSummary-P9wU7zdi.js";
|
|
38
|
+
import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-B310gzYN.js";
|
|
39
|
+
import { t as businessFinancingMultiformRules } from "./validate-CZ935egZ.js";
|
|
40
40
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
41
41
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
42
42
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -269,8 +269,9 @@ var prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLega
|
|
|
269
269
|
businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
|
|
270
270
|
}
|
|
271
271
|
if (!isEeaCountry(businessFinancingCountry)) businessFinancingDetails.organization.financialReports = void 0;
|
|
272
|
-
|
|
273
|
-
if (
|
|
272
|
+
const formStatusOfLegalProceeding = businessFinancingData.legalInformationInsolvency;
|
|
273
|
+
if (formStatusOfLegalProceeding === "iDontKnow") businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
274
|
+
if (formStatusOfLegalProceeding === "iDontKnow" || formStatusOfLegalProceeding === "noLegalActionsTaken") businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
274
275
|
if (companyData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) businessFinancingDetails.organization.registeredAddress = { ...rootLegalEntity.organization.registeredAddress };
|
|
275
276
|
if (companyData.isThisAddressTheMainHeadquarters) businessFinancingDetails.organization.principalPlaceOfBusiness = { ...businessFinancingDetails.organization.registeredAddress };
|
|
276
277
|
if (companyData.doesYourCompanyHaveLEI !== "Yes") delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
|
|
@@ -438,6 +439,7 @@ var getFormattedAmount = (value, currency) => {
|
|
|
438
439
|
var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddress) => {
|
|
439
440
|
const summaryData = cloneObject(data) || {};
|
|
440
441
|
const { company, parentCompany, ultimateParentCompany, soleProprietor } = summaryData;
|
|
442
|
+
const rootLeAddressCountry = rootLeAddress?.country;
|
|
441
443
|
if (soleProprietor) {
|
|
442
444
|
soleProprietor.naceCode = soleProprietor.naceCodeLabel;
|
|
443
445
|
soleProprietor.countryOfBirth = soleProprietor.countryOfBirth ? datasetUtils.getCountryName(soleProprietor.countryOfBirth) ?? void 0 : void 0;
|
|
@@ -488,7 +490,7 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
|
|
|
488
490
|
...parentCompany,
|
|
489
491
|
registrationAddress: {
|
|
490
492
|
...rootLeAddress,
|
|
491
|
-
country: datasetUtils.getCountryName(
|
|
493
|
+
country: datasetUtils.getCountryName(rootLeAddressCountry)
|
|
492
494
|
}
|
|
493
495
|
};
|
|
494
496
|
}
|
|
@@ -526,7 +528,7 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
|
|
|
526
528
|
...ultimateParentCompany,
|
|
527
529
|
registrationAddress: {
|
|
528
530
|
...rootLeAddress,
|
|
529
|
-
country: datasetUtils.getCountryName(
|
|
531
|
+
country: datasetUtils.getCountryName(rootLeAddressCountry)
|
|
530
532
|
}
|
|
531
533
|
};
|
|
532
534
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d8ae923-6b84-4a91-ab7e-e879e685e814", e._sentryDebugIdIdentifier = "sentry-dbid-6d8ae923-6b84-4a91-ab7e-e879e685e814");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
8
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
10
|
-
import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
10
|
+
import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-yvRFdCze.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/components/EFP/pages/BusinessFinancingPage.tsx
|
|
13
13
|
var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3d7d6ed8-0262-49e5-bd70-6b8988ba2f39", e._sentryDebugIdIdentifier = "sentry-dbid-3d7d6ed8-0262-49e5-bd70-6b8988ba2f39");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-
|
|
7
|
-
import { f as translateTranslatable, r as Field } from "./Select-
|
|
8
|
-
import { t as Checkbox } from "./Checkbox-
|
|
9
|
-
import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
6
|
+
import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-WhDvAYOL.js";
|
|
7
|
+
import { f as translateTranslatable, r as Field } from "./Select-OTcSv--b.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-BHTcJbZA.js";
|
|
9
|
+
import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CBt2xgFB.js";
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
//#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
|
|
12
12
|
var BUSINESS_REGISTRATION_NUMBER_FIELD = [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cc698f38-46d0-4460-9b31-e0b8edbf43d1", e._sentryDebugIdIdentifier = "sentry-dbid-cc698f38-46d0-4460-9b31-e0b8edbf43d1");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-
|
|
7
|
-
import { f as translateTranslatable, r as Field } from "./Select-
|
|
8
|
-
import { t as Checkbox } from "./Checkbox-
|
|
9
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
6
|
+
import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-WhDvAYOL.js";
|
|
7
|
+
import { f as translateTranslatable, r as Field } from "./Select-OTcSv--b.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-BHTcJbZA.js";
|
|
9
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CBt2xgFB.js";
|
|
10
10
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
11
11
|
import { useCallback } from "preact/hooks";
|
|
12
12
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
package/dist/{BusinessTypeSelectionPage-CYjrUqoM.js → BusinessTypeSelectionPage-HqNPKUyC.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b154dd8a-cc28-4ef4-a6f5-9d40e08f5d69", e._sentryDebugIdIdentifier = "sentry-dbid-b154dd8a-cc28-4ef4-a6f5-9d40e08f5d69");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { pt as useAccountHolder } from "./resolveEnvironment-
|
|
6
|
+
import { pt as useAccountHolder } from "./resolveEnvironment-NL5RPEmW.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
10
|
+
import { t as Button } from "./Button-DfRmINzF.js";
|
|
11
11
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
12
12
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
13
13
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
14
|
-
import { t as getCapabilities } from "./processCapabilities-
|
|
15
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
16
|
-
import { r as useToastContext } from "./useId-
|
|
17
|
-
import {
|
|
18
|
-
import { p as
|
|
19
|
-
import {
|
|
20
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
21
|
-
import { t as useForm } from "./useForm-
|
|
22
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
14
|
+
import { t as getCapabilities } from "./processCapabilities-DRD0Aq2i.js";
|
|
15
|
+
import { i as useAnalyticsContext } from "./Modal-DmzJdNRm.js";
|
|
16
|
+
import { r as useToastContext } from "./useId-BLqna7ut.js";
|
|
17
|
+
import { p as LoaderWrapper, r as Field } from "./Select-OTcSv--b.js";
|
|
18
|
+
import { p as useUpdateLegalEntity } from "./StateField-C_BPqrJu.js";
|
|
19
|
+
import { c as TileGroup } from "./bafinUtils-zINYd-QL.js";
|
|
20
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-RGsfipqC.js";
|
|
21
|
+
import { t as useForm } from "./useForm-ugD-3r75.js";
|
|
22
|
+
import { t as formatValidationError } from "./formatValidationError-CdyACUip.js";
|
|
23
23
|
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
24
|
-
import { a as getTargetLegalEntityType, c as useSelectionOptions, i as getDefaultLegalArrangementOrSuborganizationType, n as determineOrganizationTypeToUpdate, o as legalArrangementMetadata, r as getBusinessType, t as businessTypeIcons } from "./utils-
|
|
25
|
-
import { useEffect, useState } from "preact/hooks";
|
|
24
|
+
import { a as getTargetLegalEntityType, c as useSelectionOptions, i as getDefaultLegalArrangementOrSuborganizationType, n as determineOrganizationTypeToUpdate, o as legalArrangementMetadata, r as getBusinessType, t as businessTypeIcons } from "./utils-Cz7Up17-.js";
|
|
25
|
+
import { useCallback, useEffect, useState } from "preact/hooks";
|
|
26
26
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
27
27
|
//#region src/datasets/generators/getBusinessTypeExamplesForCountry.ts
|
|
28
28
|
var businessTypeExamples = /* @__PURE__ */ Object.assign({
|
|
@@ -123,6 +123,66 @@ var useLegalArrangementTypeExamples = (country) => {
|
|
|
123
123
|
return examples;
|
|
124
124
|
};
|
|
125
125
|
//#endregion
|
|
126
|
+
//#region src/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.ts
|
|
127
|
+
var trackingPayload = { actionType: "submit" };
|
|
128
|
+
function useUpdateLegalEntityAndSelectAccountHolder({ rootLegalEntity, targetLegalEntityType, targetLegalArrangement, newAccountHolder, setLoadingStatus, onComplete }) {
|
|
129
|
+
const { t } = useTranslation("common");
|
|
130
|
+
const userEvents = useAnalyticsContext();
|
|
131
|
+
const { accountHolder } = useAccountHolder();
|
|
132
|
+
const { showToast } = useToastContext();
|
|
133
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
134
|
+
const currentLegalEntityType = rootLegalEntity.type;
|
|
135
|
+
const currentOrganizationType = rootLegalEntity.organization?.type;
|
|
136
|
+
const isLegalArrangement = accountHolder === "mySoleProprietorName" || accountHolder === "aTrust" || accountHolder === "anUnincorporatedPartnership";
|
|
137
|
+
const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
|
|
138
|
+
const isAccountHolderChanging = accountHolder !== newAccountHolder;
|
|
139
|
+
return useCallback(async () => {
|
|
140
|
+
try {
|
|
141
|
+
if (isLegalEntityTypeChanging) {
|
|
142
|
+
setLoadingStatus("loading");
|
|
143
|
+
await updateLegalEntity({
|
|
144
|
+
id: rootLegalEntity.id,
|
|
145
|
+
type: targetLegalEntityType
|
|
146
|
+
});
|
|
147
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
148
|
+
}
|
|
149
|
+
const targetOrganizationType = determineOrganizationTypeToUpdate(targetLegalArrangement, currentOrganizationType);
|
|
150
|
+
const updatePayload = {
|
|
151
|
+
id: rootLegalEntity.id,
|
|
152
|
+
...isLegalArrangement && isAccountHolderChanging ? { entityAssociations: [] } : {},
|
|
153
|
+
...targetOrganizationType !== void 0 ? { organization: { type: targetOrganizationType } } : {}
|
|
154
|
+
};
|
|
155
|
+
if (Object.keys(updatePayload).length > 1) {
|
|
156
|
+
await updateLegalEntity(updatePayload);
|
|
157
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
158
|
+
}
|
|
159
|
+
} catch {
|
|
160
|
+
showToast({
|
|
161
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
162
|
+
variant: "error"
|
|
163
|
+
});
|
|
164
|
+
} finally {
|
|
165
|
+
setLoadingStatus("success");
|
|
166
|
+
onComplete(newAccountHolder);
|
|
167
|
+
}
|
|
168
|
+
}, [
|
|
169
|
+
currentOrganizationType,
|
|
170
|
+
isAccountHolderChanging,
|
|
171
|
+
isLegalArrangement,
|
|
172
|
+
isLegalEntityTypeChanging,
|
|
173
|
+
newAccountHolder,
|
|
174
|
+
onComplete,
|
|
175
|
+
rootLegalEntity.id,
|
|
176
|
+
setLoadingStatus,
|
|
177
|
+
showToast,
|
|
178
|
+
t,
|
|
179
|
+
targetLegalArrangement,
|
|
180
|
+
targetLegalEntityType,
|
|
181
|
+
updateLegalEntity,
|
|
182
|
+
userEvents
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
126
186
|
//#region src/components/Shared/forms/BusinessTypeSelection/types.ts
|
|
127
187
|
var trusteeTypes = ["individual", "company"];
|
|
128
188
|
//#endregion
|
|
@@ -175,16 +235,14 @@ var businessTypeSelectionStepTitles = {
|
|
|
175
235
|
var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
176
236
|
const { t } = useTranslation("common");
|
|
177
237
|
const userEvents = useAnalyticsContext();
|
|
178
|
-
const { showToast } = useToastContext();
|
|
179
238
|
const { accountHolder } = useAccountHolder();
|
|
180
239
|
const [loadingStatus, setLoadingStatus] = useState();
|
|
181
240
|
const [currentStep, setCurrentStep] = useState(BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION);
|
|
182
241
|
const [formSchema, setFormSchema] = useState(["businessType"]);
|
|
183
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
184
242
|
const hasBackButton = currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION || currentStep === BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT || currentStep === BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION && Boolean(onBack);
|
|
185
243
|
const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(rootLegalEntity);
|
|
186
244
|
const currentLegalEntityType = rootLegalEntity.type;
|
|
187
|
-
const
|
|
245
|
+
const currentOrganizationType = rootLegalEntity.organization?.type;
|
|
188
246
|
const capabilities = getCapabilities(rootLegalEntity);
|
|
189
247
|
const country = getLegalEntityCountry(rootLegalEntity);
|
|
190
248
|
const defaultBusinessType = getBusinessType(businessTypeMetadata, country, accountHolder, rootLegalEntity.type, rootLegalEntity.organization?.type, capabilities);
|
|
@@ -204,9 +262,9 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
204
262
|
const isTrust = targetLegalArrangement === "aTrust";
|
|
205
263
|
const isUnincorporatedPartnership = targetLegalArrangement === "partnershipUnincorporated";
|
|
206
264
|
const trustOrUnincorporatedPartnership = isTrust || isUnincorporatedPartnership;
|
|
207
|
-
const targetLegalEntityType = getTargetLegalEntityType(data.businessType?.id, data.legalArrangement?.id, data.trusteeType?.id,
|
|
265
|
+
const targetLegalEntityType = getTargetLegalEntityType(data.businessType?.id, data.legalArrangement?.id, data.trusteeType?.id, currentLegalEntityType);
|
|
208
266
|
const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
|
|
209
|
-
const
|
|
267
|
+
const isAccountHolderChanging = newAccountHolder !== accountHolder;
|
|
210
268
|
useEffect(() => {
|
|
211
269
|
setFormSchema(getFormSchema(data.businessType?.id === "legalArrangement" && !!data.legalArrangement || currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION, trustOrUnincorporatedPartnership));
|
|
212
270
|
}, [
|
|
@@ -219,6 +277,14 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
219
277
|
* Analytics
|
|
220
278
|
*/
|
|
221
279
|
useTaskLandedEvent("BUSINESS_TYPE_SELECTION");
|
|
280
|
+
const updateLegalEntityAndSelectAccountHolder = useUpdateLegalEntityAndSelectAccountHolder({
|
|
281
|
+
rootLegalEntity,
|
|
282
|
+
targetLegalEntityType,
|
|
283
|
+
targetLegalArrangement,
|
|
284
|
+
newAccountHolder,
|
|
285
|
+
setLoadingStatus,
|
|
286
|
+
onComplete
|
|
287
|
+
});
|
|
222
288
|
const handleNextClick = async () => {
|
|
223
289
|
if (loadingStatus === "loading") return;
|
|
224
290
|
triggerValidation();
|
|
@@ -230,61 +296,13 @@ var BusinessTypeSelection = ({ rootLegalEntity, onComplete, onBack }) => {
|
|
|
230
296
|
return;
|
|
231
297
|
}
|
|
232
298
|
}
|
|
233
|
-
if (
|
|
299
|
+
if (isLegalEntityTypeChanging || isAccountHolderChanging || currentOrganizationType !== targetLegalArrangement) {
|
|
234
300
|
if (accountHolder) {
|
|
235
301
|
setCurrentStep(BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE);
|
|
236
302
|
return;
|
|
237
303
|
}
|
|
238
304
|
await updateLegalEntityAndSelectAccountHolder();
|
|
239
305
|
} else onComplete(newAccountHolder);
|
|
240
|
-
if (isLegalArrangementChanging) await updateLegalEntityAndSelectAccountHolder();
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
const updateLegalEntityAndSelectAccountHolder = async () => {
|
|
244
|
-
const trackingPayload = { actionType: "submit" };
|
|
245
|
-
try {
|
|
246
|
-
if (isLegalEntityTypeChanging) {
|
|
247
|
-
setLoadingStatus("loading");
|
|
248
|
-
await updateLegalEntity({
|
|
249
|
-
id: rootLegalEntity.id,
|
|
250
|
-
type: targetLegalEntityType
|
|
251
|
-
});
|
|
252
|
-
userEvents.addTaskEvent("Success", trackingPayload);
|
|
253
|
-
}
|
|
254
|
-
if (targetLegalEntityType === LegalEntityTypes.INDIVIDUAL) {
|
|
255
|
-
if (rootLegalEntity.entityAssociations?.length) {
|
|
256
|
-
setLoadingStatus("loading");
|
|
257
|
-
await updateLegalEntity({
|
|
258
|
-
id: rootLegalEntity.id,
|
|
259
|
-
entityAssociations: []
|
|
260
|
-
});
|
|
261
|
-
userEvents.addTaskEvent("Success", trackingPayload);
|
|
262
|
-
}
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const targetOrganizationType = determineOrganizationTypeToUpdate(targetLegalArrangement, currentCompanyTypesValue);
|
|
266
|
-
if (targetOrganizationType !== void 0) {
|
|
267
|
-
await updateLegalEntity?.({
|
|
268
|
-
organization: { type: targetOrganizationType },
|
|
269
|
-
id: rootLegalEntity.id
|
|
270
|
-
});
|
|
271
|
-
userEvents.addTaskEvent("Success", trackingPayload);
|
|
272
|
-
}
|
|
273
|
-
if (!targetLegalArrangement && defaultLegalArrangementType) {
|
|
274
|
-
await updateLegalEntity?.({
|
|
275
|
-
entityAssociations: [],
|
|
276
|
-
id: rootLegalEntity.id
|
|
277
|
-
});
|
|
278
|
-
userEvents.addTaskEvent("Success", trackingPayload);
|
|
279
|
-
}
|
|
280
|
-
} catch {
|
|
281
|
-
showToast({
|
|
282
|
-
label: t(($) => $["failedToUpdateDetails"]),
|
|
283
|
-
variant: "error"
|
|
284
|
-
});
|
|
285
|
-
} finally {
|
|
286
|
-
setLoadingStatus("success");
|
|
287
|
-
onComplete(newAccountHolder);
|
|
288
306
|
}
|
|
289
307
|
};
|
|
290
308
|
const handleBackClick = () => {
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0c253034-3298-49b1-86b1-ccc7287c09ab", e._sentryDebugIdIdentifier = "sentry-dbid-0c253034-3298-49b1-86b1-ccc7287c09ab");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as Icon } from "./Icon-
|
|
5
|
+
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
6
6
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "910c56e9-6df2-414b-bdf1-4031cf5215eb", e._sentryDebugIdIdentifier = "sentry-dbid-910c56e9-6df2-414b-bdf1-4031cf5215eb");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
5
|
+
import { i as useAnalyticsContext } from "./Modal-DmzJdNRm.js";
|
|
6
6
|
import { useCallback, useEffect, useRef } from "preact/hooks";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5dc07f99-1982-4775-b489-8ed38bc5ded2", e._sentryDebugIdIdentifier = "sentry-dbid-5dc07f99-1982-4775-b489-8ed38bc5ded2");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { t as Accordion } from "./Accordion-
|
|
7
|
-
import { t as NodeRenderer } from "./AdaptiveWorkflow-
|
|
6
|
+
import { t as Accordion } from "./Accordion-Sjyj7C_t.js";
|
|
7
|
+
import { t as NodeRenderer } from "./AdaptiveWorkflow-V_qigf7-.js";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
9
9
|
//#region src/adaptiveWorkflow/components/Layout/ComponentGroup/contextMap.ts
|
|
10
10
|
var contextMap = {};
|