@adyen/kyc-components 4.22.0-beta.0 → 4.22.0-beta.2
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-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-BOf_52TF.js} +4 -4
- package/dist/{Accordion-DEivLTcw.js → Accordion-Sjyj7C_t.js} +1 -1
- package/dist/{AccountSetupRejected-pcQcFAhQ.js → AccountSetupRejected-DoYH7MuS.js} +1 -1
- package/dist/{AdaptiveWorkflow-C0EsaW8F.js → AdaptiveWorkflow-ychw-YVL.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-DFnkomSo.js} +3 -3
- package/dist/{AddressFields-3kqeRdC_.js → AddressFields-CFf-ECTn.js} +10 -10
- package/dist/{Avatar-DHyXCNwV.js → Avatar-Zp1T9qAL.js} +1 -1
- package/dist/{BusinessFinancingDropin-BOECqGNd.js → BusinessFinancingDropin-Dr9GOZI2.js} +31 -31
- package/dist/{BusinessFinancingPage-DSy5an97.js → BusinessFinancingPage-DIHz906_.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-DHccXqsX.js → BusinessRegistrationNumberField-BGZrKxCP.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-2e9GKH-i.js → BusinessRegistrationNumberFieldGroup-D4289xzf.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-BraXRUrg.js → BusinessTypeSelectionPage-D7mTXytS.js} +85 -67
- package/dist/{Button-nDbNtBn3.js → Button-DfRmINzF.js} +1 -1
- package/dist/{Checkbox-BiKnP2fS.js → Checkbox-DTQ5Y6L-.js} +2 -2
- package/dist/{ComponentGroup-Due-N8Yz.js → ComponentGroup-DysWDI71.js} +3 -3
- package/dist/{ConstitutionalDocument-CtRHXMb9.js → ConstitutionalDocument-o1_xv4zy.js} +15 -15
- package/dist/{ContactDetails-Syyy5BfB.js → ContactDetails-BUZAvP2T.js} +5 -5
- package/dist/{ContextGuidance-D8leB0D6.js → ContextGuidance-fy9mkvE5.js} +3 -3
- package/dist/{Currency-CFsMnSP0.js → Currency-CfDw1FVZ.js} +5 -5
- package/dist/{CustomerSupport-DqayB3BM.js → CustomerSupport-BRTzBxJt.js} +25 -15
- package/dist/{DataConflictsModal-Bz2SYyi5.js → DataConflictsModal-s-Ss3HdC.js} +7 -7
- package/dist/{DebugModal-fH0uKl1E.js → DebugModal-CbilZSFv.js} +10 -10
- package/dist/{DecisionMakerDetails-7IPREpy1.js → DecisionMakerDetails-CWZUSV8G.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-Bs9q7sxc.js → DecisionMakerDetailsPage-Rtsv9ICS.js} +7 -7
- package/dist/{DecisionMakers-Dw66GRhZ.js → DecisionMakers-BmUjP2RH.js} +13 -13
- package/dist/{Dropzone-CjLSK2UN.js → Dropzone-dnfMEv2T.js} +7 -7
- package/dist/{EmbeddedStatus-BIVFBjzu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
- package/dist/{EndStateLayout-D2CSEwEn.js → EndStateLayout-BK1Hh02g.js} +2 -2
- package/dist/{EntityAssociation-LF_5ihhI.js → EntityAssociation-CH9G3mlZ.js} +6 -6
- package/dist/{ErrorPanel-tLtZnFnX.js → ErrorPanel-B5suXapM.js} +2 -2
- package/dist/{GlobalEntryModal-CY-t1fGQ.js → GlobalEntryModal-DwhX1CJz.js} +237 -51
- package/dist/{GlobalEntryPage-xX4ruKnx.js → GlobalEntryPage-DPYM9_FS.js} +11 -8
- package/dist/{Icon-BcaP-f1D.js → Icon-C3S5_kkS.js} +1 -1
- package/dist/{IdentityNumber-4ky6SOcb.js → IdentityNumber-BJymypwh.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-BKKmSfLG.js → IdentityNumberFieldGroup-DPfXsI_n.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-ZVSOyRqF.js} +12 -12
- package/dist/{IndividualDropin-DrQiG_Vy.js → IndividualDropin-B3UfxIu8.js} +269 -45
- package/dist/{IndustryCodeFieldGroup-jm8KFccr.js → IndustryCodeFieldGroup-D5U1t1F-.js} +4 -4
- package/dist/{InputDate-C14J5Af2.js → InputDate-CncTgJYS.js} +3 -3
- package/dist/{InputText-Dr-Wg0uc.js → InputText-Bniyaz3w.js} +3 -3
- package/dist/{Introduction-DXAxkrDG.js → Introduction-BOz_2500.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CPMIUjiE.js → InvitedDecisionMakerComponent-DgIv6IG9.js} +9 -9
- package/dist/{JpAddressFields-olKUlhpt.js → JpAddressFields-nEKx7nU_.js} +8 -8
- package/dist/{LegalCompanyNameField-BrdI-awc.js → LegalCompanyNameField-BFm2LIw2.js} +5 -5
- package/dist/{LegalName-CWoSqy0V.js → LegalName-DBvf_laS.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-Ca3FLoSd.js → LegalRepresentativeDetailsPage-BVr_AhP6.js} +3 -3
- package/dist/{Link-opuU6bLF.js → Link-c2jAgGgc.js} +1 -1
- package/dist/{ListItem-CbjOa0L_.js → ListItem-C35r8558.js} +3 -3
- package/dist/{Modal-BDNS-0rS.js → Modal-5uXk2vE6.js} +2 -2
- package/dist/{Name-CxlxPgUR.js → Name-CbdY9G9k.js} +4 -4
- package/dist/{NewSummary-mLsovGX8.js → NewSummary-lUp_hg6V.js} +6 -6
- package/dist/{PatriotActDisclosure-kOnDnF8P.js → PatriotActDisclosure-i6txl8sg.js} +9 -9
- package/dist/{PayoutDetailsDropin-CZ77wefd.js → PayoutDetailsDropin-BnDericg.js} +25 -25
- package/dist/{PayoutDetailsPage-Cyy-fDbK.js → PayoutDetailsPage-zLj-XA7a.js} +4 -4
- package/dist/{RadioGroup-C0mNADXE.js → RadioGroup-BcRkK03K.js} +11 -11
- package/dist/{Review-CDtJh9j3.js → Review--lh7xBZJ.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CnVWFx0H.js → RootBusinessDetailsPage-CsOt68pH.js} +3 -3
- package/dist/{RootBusinessLinesPage-Dtx9X-mD.js → RootBusinessLinesPage-CsPTRJHI.js} +20 -20
- package/dist/{RootIndividualDetailsPage-q8PZ0Khk.js → RootIndividualDetailsPage-CROUaWsK.js} +4 -4
- package/dist/{Select-UO37dd_q.js → Select-CAYO1vj-.js} +6 -6
- package/dist/{SignPCIComponent-D21OqVWo.js → SignPCIComponent-iFFWNqDL.js} +13 -13
- package/dist/{SingpassSelection-CRYphIRT.js → SingpassSelection-BKRSs-Xf.js} +4 -4
- package/dist/{SoleProprietorshipPage-BKB0sRiP.js → SoleProprietorshipPage-UvZsbICO.js} +3 -3
- package/dist/{SourceOfFundsPage-C2ZEp0lT.js → SourceOfFundsPage-B5E9w3tI.js} +25 -28
- package/dist/{SourceOfFundsWorkflow-Cy12c7ou.js → SourceOfFundsWorkflow-DgUkjcYh.js} +4 -4
- package/dist/{StateField-CWS8eXex.js → StateField-DB4_kWP5.js} +46 -5
- package/dist/{Step-CYG94mSp.js → Step-CoGy1zas.js} +4 -4
- package/dist/{Task-D6xuGucd.js → Task-DdRNdhJY.js} +7 -7
- package/dist/{TaskGroup-C4ND30dB.js → TaskGroup-yVbg_WHM.js} +3 -3
- package/dist/{TaskListItem-Dc6n6llv.js → TaskListItem-BritELso.js} +10 -10
- package/dist/{TaskStepperContextProvider-CvChF1W5.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
- package/dist/{TaskVerificationStatus-pjPK5vVN.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
- package/dist/{TaxInformationFieldGroup-BACQgHQ7.js → TaxInformationFieldGroup-CYcqRgQt.js} +9 -9
- package/dist/{TaxReportingDropin-DmOclyYQ.js → TaxReportingDropin-Dxt-K1Td.js} +14 -14
- package/dist/{TaxReportingWorkflow-CBEB7oAn.js → TaxReportingWorkflow-xeJVSZxl.js} +4 -4
- package/dist/{TermsOfServiceManagement-No_9QGjv.js → TermsOfServiceManagement-BiqqRcsM.js} +12 -12
- package/dist/{TextArea-BzY5efza.js → TextArea-mN6mmyt0.js} +4 -4
- package/dist/{TrustDetailsPage-BHjbebZX.js → TrustDetailsPage-OuITcLjL.js} +23 -25
- package/dist/{TrustMemberCompanyPage-BSe-Pn1O.js → TrustMemberCompanyPage-BSr2h39m.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DxlZQF6W.js → TrustMemberIndividualPage-D1oTjw8X.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-AtlXyfKk.js → TrustMemberRoleAndTypePage-qnLRC07p.js} +15 -16
- package/dist/{TrustMembersOverview-DpmUv4Vj.js → TrustMembersOverview-BhtPLg82.js} +11 -11
- package/dist/{UboTaskItem-ESC2Ze3o.js → UboTaskItem-dmz_L8pF.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-BVpz27KZ.js → UnincorporatedPartnershipIndividualPage-BGuseNDd.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js → UnincorporatedPartnershipMemberCompanyPage-DfWEeKVA.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js → UnincorporatedPartnershipMemberRoleAndTypePage-CNrub8wj.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js → UnincorporatedPartnershipMembersOverview-BISsH8Wm.js} +6 -6
- package/dist/{VerificationErrorAlert-BCEhkhpr.js → VerificationErrorAlert-DAg5VgBd.js} +3 -3
- package/dist/{Workflow-CzSGihyD.js → Workflow-CVwXYQQE.js} +6 -6
- package/dist/{accountHolderUtils-3WiED1-j.js → accountHolderUtils-Dt7JmWab.js} +1 -1
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +43 -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 +10 -10
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-h8n1IbJ9.js → bafinUtils-B8teCz7U.js} +160 -1053
- package/dist/businessRegistrationNumberPatterns-DwjKFSlu.js +981 -0
- package/dist/{constants-B9iXz9xK.js → constants-CSVEfRuk.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-CHFF8jLc.js → error-DhPmKdY4.js} +3 -3
- package/dist/{form-rules-CKwx5XtT.js → form-rules-yTwukXew.js} +6 -6
- package/dist/{formatValidationError-DZ1CxHdw.js → formatValidationError-ChBRk626.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-6m6DEmW8.js → getDefaultRegistrationNumberType-DPidx6iz.js} +59 -59
- package/dist/{getTrustedDecisionMakers-qs2frwk2.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
- package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
- package/dist/mapAddressLocalizationToJpAddressSchema-DEOqm_oJ.js +26 -0
- package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js → mapJpAddressSchemaToAddressLocalizations-BcW9wSjn.js} +3 -4
- package/dist/{mapLegalEntityToIndividualSchema-ChE9qTUB.js → mapLegalEntityToIndividualSchema-Ksy4YlcJ.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js → mapTransferInstrumentToPayoutAccount-BoZaPCSn.js} +2 -2
- package/dist/{processValidationErrors-CRWq2tu-.js → processValidationErrors-BJNiG_SS.js} +3 -3
- package/dist/{resolveEnvironment-D2iMH7UD.js → resolveEnvironment-6rOnOa58.js} +11 -11
- 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/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +27 -3
- 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/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- 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/router/routeConfig.d.ts +1 -1
- 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-Bdfu7HN6.js → types-wRlt8bxb.js} +1 -1
- package/dist/{useBusinessDetailsData-DZQuIMNw.js → useBusinessDetailsData-D5WMRXf8.js} +88 -111
- package/dist/{useCanSeeIntroduction-BGYdkMIE.js → useCanSeeIntroduction-47a29qGT.js} +3 -3
- package/dist/{useForm-BJq32Ve1.js → useForm-C8X8Nh_A.js} +3 -3
- package/dist/{useHideTaskStepper-CcCmW80A.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
- package/dist/{useId-BMocIuPK.js → useId-CcjYxxnm.js} +1 -1
- package/dist/{useNavigate-D4ypqPBN.js → useNavigate-ZoEeUtrK.js} +33 -33
- package/dist/{useSalesChannels-BCzs8Xya.js → useSalesChannels-K1tuVs25.js} +3 -3
- package/dist/{useTaskLandedEvent-Cf1fN_gV.js → useTaskLandedEvent-DcX3urqZ.js} +2 -2
- package/dist/{useTrustMembers-DqpnYNNj.js → useTrustMembers-DoRWdimd.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-w3dG_nyc.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
- package/dist/{StructuredList-CqZM_5X9.js → utils-CXLiV88a.js} +94 -5
- package/dist/{utils-BMhvbUV1.js → utils-Dm0eoyQ6.js} +8 -17
- package/dist/{validate-BqIbVY0E.js → validate-09Jy2SgA.js} +8 -8
- package/dist/{validate-DiEa5w30.js → validate-BcUs5K_M.js} +46 -6
- package/dist/{validate-RLWN-I5L.js → validate-DnnWVNv6.js} +2 -2
- package/dist/{validate-Dfw99Sal.js → validate-tS-cwVuY.js} +3 -3
- package/dist/{validateExtractionResult-DueyX5oY.js → validateExtractionResult-dH4TewHf.js} +2 -2
- package/dist/{validationError-BhICjGiF.js → validationError-D4d622D3.js} +2 -2
- package/package.json +1 -1
- package/dist/Individual.rules-PKwY3D-0.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/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useUpdateLegalEntity-CvACAgDP.js +0 -29
- package/dist/utils-Br7Ah3uy.js +0 -46
- package/dist/utils-DdHbAadK.js +0 -80
package/dist/{AcceptTermsOfServiceWorkflow-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-BOf_52TF.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-BiqqRcsM.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-6rOnOa58.js";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/Shared/AccountSetupRejected/AccountSetupRejected.tsx
|
|
9
9
|
function AccountSetupRejected() {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
import { r as resolveComponentProps } from "./utils-P67T6pKI.js";
|
|
@@ -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-CVwXYQQE.js")).Workflow);
|
|
21
|
+
var TaskGroup = lazy(async () => (await import("./TaskGroup-yVbg_WHM.js")).TaskGroup);
|
|
22
|
+
var Task = lazy(async () => (await import("./Task-DdRNdhJY.js")).Task);
|
|
23
|
+
var Step = lazy(async () => (await import("./Step-CoGy1zas.js")).Step);
|
|
24
|
+
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-DysWDI71.js")).ComponentGroup);
|
|
25
|
+
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-dmz_L8pF.js")).UboTaskItem);
|
|
26
|
+
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-DgUkjcYh.js")).SourceOfFundsWorkflow);
|
|
27
|
+
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-xeJVSZxl.js")).TaxReportingWorkflow);
|
|
28
|
+
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-BOf_52TF.js")).AcceptTermsOfServiceWorkflow);
|
|
29
|
+
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-ZVSOyRqF.js")).IdentityScreeningWorkflow);
|
|
30
|
+
var LegalName = lazy(async () => (await import("./LegalName-DBvf_laS.js")).LegalName);
|
|
31
|
+
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-CYcqRgQt.js")).TaxInformationFieldGroup);
|
|
32
|
+
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-D4289xzf.js")).BusinessRegistrationNumberFieldGroup);
|
|
33
|
+
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-D5U1t1F-.js")).IndustryCodeFieldGroup);
|
|
34
|
+
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-DPfXsI_n.js")).IdentityNumberFieldGroup);
|
|
35
35
|
var LAYOUT_COMPONENT_MAP = {
|
|
36
36
|
layout: Workflow,
|
|
37
37
|
taskGroup: TaskGroup,
|
package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-DFnkomSo.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-6rOnOa58.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-ychw-YVL.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-6rOnOa58.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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { r as countrySpecificFormatters } from "./InputDate-
|
|
9
|
+
import { i as useAnalyticsContext } from "./Modal-5uXk2vE6.js";
|
|
10
|
+
import { t as InputText } from "./InputText-Bniyaz3w.js";
|
|
11
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-CAYO1vj-.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-DB4_kWP5.js";
|
|
13
|
+
import { k as createFormUtils, u as CountryField } from "./RadioGroup-BcRkK03K.js";
|
|
14
|
+
import { r as useDebouncedCallback } from "./Checkbox-DTQ5Y6L-.js";
|
|
15
|
+
import { r as countrySpecificFormatters } from "./InputDate-CncTgJYS.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,44 +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-6rOnOa58.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
13
|
import { y as reverseMapping } from "./processCapabilities-BfskhjUw.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-5uXk2vE6.js";
|
|
17
|
+
import { a as SettingNames, t as InputText } from "./InputText-Bniyaz3w.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 {
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
30
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CRWq2tu-.js";
|
|
31
|
-
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
19
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-CcjYxxnm.js";
|
|
20
|
+
import { t as EndStateLayout } from "./EndStateLayout-BK1Hh02g.js";
|
|
21
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-CAYO1vj-.js";
|
|
22
|
+
import { r as formatObject } from "./utils-CXLiV88a.js";
|
|
23
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-DB4_kWP5.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-BcRkK03K.js";
|
|
25
|
+
import { t as ErrorPanel } from "./ErrorPanel-B5suXapM.js";
|
|
26
|
+
import { t as Checkbox } from "./Checkbox-DTQ5Y6L-.js";
|
|
27
|
+
import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-CFf-ECTn.js";
|
|
28
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DcX3urqZ.js";
|
|
29
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-BJNiG_SS.js";
|
|
32
30
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
33
|
-
import { a as isValidationError } from "./validationError-
|
|
34
|
-
import { t as InputDate } from "./InputDate-
|
|
31
|
+
import { a as isValidationError } from "./validationError-D4d622D3.js";
|
|
32
|
+
import { t as InputDate } from "./InputDate-CncTgJYS.js";
|
|
35
33
|
import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
36
|
-
import { t as Link } from "./Link-
|
|
37
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
38
|
-
import { t as currencyByCountry } from "./types-
|
|
39
|
-
import { t as NewSummary } from "./NewSummary-
|
|
40
|
-
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-
|
|
41
|
-
import { t as businessFinancingMultiformRules } from "./validate-
|
|
34
|
+
import { t as Link } from "./Link-c2jAgGgc.js";
|
|
35
|
+
import { t as formatValidationError } from "./formatValidationError-ChBRk626.js";
|
|
36
|
+
import { t as currencyByCountry } from "./types-wRlt8bxb.js";
|
|
37
|
+
import { t as NewSummary } from "./NewSummary-lUp_hg6V.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-CfDw1FVZ.js";
|
|
39
|
+
import { t as businessFinancingMultiformRules } from "./validate-DnnWVNv6.js";
|
|
42
40
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
43
41
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
44
42
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -271,8 +269,9 @@ var prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLega
|
|
|
271
269
|
businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
|
|
272
270
|
}
|
|
273
271
|
if (!isEeaCountry(businessFinancingCountry)) businessFinancingDetails.organization.financialReports = void 0;
|
|
274
|
-
|
|
275
|
-
if (
|
|
272
|
+
const formStatusOfLegalProceeding = businessFinancingData.legalInformationInsolvency;
|
|
273
|
+
if (formStatusOfLegalProceeding === "iDontKnow") businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
274
|
+
if (formStatusOfLegalProceeding === "iDontKnow" || formStatusOfLegalProceeding === "noLegalActionsTaken") businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
276
275
|
if (companyData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) businessFinancingDetails.organization.registeredAddress = { ...rootLegalEntity.organization.registeredAddress };
|
|
277
276
|
if (companyData.isThisAddressTheMainHeadquarters) businessFinancingDetails.organization.principalPlaceOfBusiness = { ...businessFinancingDetails.organization.registeredAddress };
|
|
278
277
|
if (companyData.doesYourCompanyHaveLEI !== "Yes") delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
|
|
@@ -440,6 +439,7 @@ var getFormattedAmount = (value, currency) => {
|
|
|
440
439
|
var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddress) => {
|
|
441
440
|
const summaryData = cloneObject(data) || {};
|
|
442
441
|
const { company, parentCompany, ultimateParentCompany, soleProprietor } = summaryData;
|
|
442
|
+
const rootLeAddressCountry = rootLeAddress?.country;
|
|
443
443
|
if (soleProprietor) {
|
|
444
444
|
soleProprietor.naceCode = soleProprietor.naceCodeLabel;
|
|
445
445
|
soleProprietor.countryOfBirth = soleProprietor.countryOfBirth ? datasetUtils.getCountryName(soleProprietor.countryOfBirth) ?? void 0 : void 0;
|
|
@@ -490,7 +490,7 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
|
|
|
490
490
|
...parentCompany,
|
|
491
491
|
registrationAddress: {
|
|
492
492
|
...rootLeAddress,
|
|
493
|
-
country: datasetUtils.getCountryName(
|
|
493
|
+
country: datasetUtils.getCountryName(rootLeAddressCountry)
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -528,7 +528,7 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
|
|
|
528
528
|
...ultimateParentCompany,
|
|
529
529
|
registrationAddress: {
|
|
530
530
|
...rootLeAddress,
|
|
531
|
-
country: datasetUtils.getCountryName(
|
|
531
|
+
country: datasetUtils.getCountryName(rootLeAddressCountry)
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
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-6rOnOa58.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-Dr9GOZI2.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-yTwukXew.js";
|
|
7
|
+
import { f as translateTranslatable, r as Field } from "./Select-CAYO1vj-.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-DTQ5Y6L-.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-DPidx6iz.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-yTwukXew.js";
|
|
7
|
+
import { f as translateTranslatable, r as Field } from "./Select-CAYO1vj-.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-DTQ5Y6L-.js";
|
|
9
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-DPidx6iz.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-BraXRUrg.js → BusinessTypeSelectionPage-D7mTXytS.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-6rOnOa58.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
14
|
import { t as getCapabilities } from "./processCapabilities-BfskhjUw.js";
|
|
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-
|
|
15
|
+
import { i as useAnalyticsContext } from "./Modal-5uXk2vE6.js";
|
|
16
|
+
import { r as useToastContext } from "./useId-CcjYxxnm.js";
|
|
17
|
+
import { p as LoaderWrapper, r as Field } from "./Select-CAYO1vj-.js";
|
|
18
|
+
import { p as useUpdateLegalEntity } from "./StateField-DB4_kWP5.js";
|
|
19
|
+
import { c as TileGroup } from "./bafinUtils-B8teCz7U.js";
|
|
20
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DcX3urqZ.js";
|
|
21
|
+
import { t as useForm } from "./useForm-C8X8Nh_A.js";
|
|
22
|
+
import { t as formatValidationError } from "./formatValidationError-ChBRk626.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-Dm0eoyQ6.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-5uXk2vE6.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-ychw-YVL.js";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
9
9
|
//#region src/adaptiveWorkflow/components/Layout/ComponentGroup/contextMap.ts
|
|
10
10
|
var contextMap = {};
|