@adyen/kyc-components 4.26.0 → 4.27.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-CBSueOOP.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-CDm8QalJ.js → AccountSetupRejected-Cuu1cHgb.js} +2 -2
- package/dist/{AdaptiveWorkflow-foHLHsbM.js → AdaptiveWorkflow-Du4hN8Ry.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-B8rbDAPW.js → AdaptiveWorkflowComponent-CoOpFWm7.js} +5 -5
- package/dist/{AddressFields-Bvp46aUT.js → AddressFields-Dzoa4PU5.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-BSLyffh0.js → BusinessFinancingDropin-DP6b5D85.js} +123 -55
- package/dist/{BusinessFinancingPage-D6gMziy2.js → BusinessFinancingPage-BIGEXFdp.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-C53lsFml.js → BusinessRegistrationNumberField-B2n9ugLK.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-CneaE9tx.js → BusinessRegistrationNumberFieldGroup-BvKp9WMt.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-Dy0711dl.js → BusinessTypeSelectionPage-xRXq2lGM.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-BQIr-4_9.js → Checkbox-qFA2J_1r.js} +8 -8
- package/dist/{ComponentGroup-4nWlAgLE.js → ComponentGroup-CyykPP2r.js} +3 -3
- package/dist/{ConstitutionalDocument-RK9aBLna.js → ConstitutionalDocument-DzLLKoWV.js} +19 -26
- package/dist/{ContactDetails-DiNSGqCa.js → ContactDetails-CcWafw_y.js} +5 -5
- package/dist/{ContextGuidance-qwuLBa1O.js → ContextGuidance-gAsOnDqD.js} +3 -3
- package/dist/{CountryField-vJCcPR1M.js → CountryField-Dxuy2L9C.js} +4 -4
- package/dist/{Currency-CE-ywuDo.js → Currency-CAEcQwe6.js} +16 -10
- package/dist/{CustomerSupport-CcurAHew.js → CustomerSupport-C1nrEyEr.js} +29 -16
- package/dist/{DateField-O2Vtrn7y.js → DateField-D8GSp5fV.js} +4 -4
- package/dist/{DebugModal-CZ8JW9pA.js → DebugModal-Bwhnd1v5.js} +10 -10
- package/dist/{DecisionMakerDetails-DC2Ej2ns.js → DecisionMakerDetails-DHsxYfa3.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-Dy3bSLxg.js → DecisionMakerDetailsPage-DoisZYll.js} +9 -9
- package/dist/{DecisionMakers-CzV7Whwu.js → DecisionMakers-BD5J47Zs.js} +17 -18
- package/dist/{Dropzone-Dh1tAtrG.js → Dropzone-CTz4GiZE.js} +7 -7
- package/dist/{EmailField-BVVBcDtc.js → EmailField-DoEYalIM.js} +4 -4
- package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
- package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
- package/dist/{EntityAssociation-Cfw9pWHA.js → EntityAssociation-aB7bppFQ.js} +6 -6
- package/dist/{ErrorPanel-BlLWphde.js → ErrorPanel-CuoQueZk.js} +10 -17
- package/dist/{GlobalEntryModal-DE543xEp.js → GlobalEntryModal-ZuajLl8B.js} +439 -298
- package/dist/{GlobalEntryPage-9U3nCl7d.js → GlobalEntryPage-WrN5mVJe.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-9bSJ9MaL.js → IdentityNumber-IDvVA7_z.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CJ-4hw-M.js → IdentityNumberFieldGroup-CW8lJ6_d.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-Bha_FYLN.js → IdentityScreeningWorkflow-TfHCTDlp.js} +12 -13
- package/dist/{IndividualDropin-QrtK-WO2.js → IndividualDropin-MpaDWh9N.js} +147 -223
- package/dist/{IndustryCodeFieldGroup-uUq6Wlye.js → IndustryCodeFieldGroup-DsJF3GOE.js} +5 -5
- package/dist/{InputDate-DeCynmMZ.js → InputDate-Bmx3_p-j.js} +8 -4
- package/dist/{InputText-CimBq-8I.js → InputText-CGngUMdf.js} +2 -2
- package/dist/{Introduction-CB1vutfx.js → Introduction-Dt8pjcxt.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-C_692Uhy.js → InvitedDecisionMakerComponent-1oXTODfv.js} +13 -14
- package/dist/{JpAddressFields-CVKfCLia.js → JpAddressFields-DhzFwu0N.js} +9 -10
- package/dist/{LegalCompanyNameField-C6W0bxo-.js → LegalCompanyNameField-BsY3tJfX.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BH_ZofFb.js → LegalRepresentativeDetailsPage-C50GRV2l.js} +4 -4
- package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
- package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
- package/dist/{Modal-DyKW1wuk.js → Modal-ChWNV9yG.js} +3 -3
- package/dist/{Name-DMfnyTY6.js → Name-C8hhvQlN.js} +4 -4
- package/dist/{NumberField-BsTw6i4a.js → NumberField-C7vHy7Yz.js} +4 -4
- package/dist/{PatriotActDisclosure-CZgaYJOE.js → PatriotActDisclosure-CAvpE8su.js} +10 -10
- package/dist/{PayoutDetailsDropin-4l6--jF2.js → PayoutDetailsDropin-ILM3oK4r.js} +41 -43
- package/dist/{PayoutDetailsPage-DHLrUoda.js → PayoutDetailsPage-DfZYYplh.js} +5 -5
- package/dist/{Review-DfUNBq2-.js → Review-D_I4FUVw.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DGGRmDJr.js → RootBusinessDetailsPage-CoOUMflT.js} +4 -4
- package/dist/{RootBusinessLinesPage-0X_Pg8ZU.js → RootBusinessLinesPage-DYz9wrU_.js} +22 -23
- package/dist/{RootIndividualDetailsPage-C3g8yQkw.js → RootIndividualDetailsPage-C42YybJq.js} +6 -6
- package/dist/{Select-b8cQ38Yi.js → Select-BMGxcmZy.js} +92 -92
- package/dist/{SignPCIComponent-Cx7hmS8Z.js → SignPCIComponent-B4RkNT1l.js} +14 -14
- package/dist/{SingpassSelection-tt8yuzxX.js → SingpassSelection-Usq1Kdpp.js} +5 -5
- package/dist/{SoleProprietorshipPage-Z9PTJTCi.js → SoleProprietorshipPage-tEf2zwhT.js} +4 -4
- package/dist/{SourceOfFundsPage-DHsqkOJp.js → SourceOfFundsPage-BXG5weCA.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-6rO4Wt3d.js → SourceOfFundsWorkflow-BWWLrVaR.js} +4 -4
- package/dist/StateField-TYw5No81.js +364 -0
- package/dist/{Step-CgpBaVfH.js → Step-D8w1jd5O.js} +5 -5
- package/dist/Summary-BwvaKucT.js +21 -0
- package/dist/{SummarySection-Dtx_G11I.js → SummarySection-5L--khYg.js} +5 -19
- package/dist/{Task-BsE88vzp.js → Task-dSDYu-xr.js} +7 -7
- package/dist/{TaskGroup-C7G7V91U.js → TaskGroup-298zewpP.js} +3 -3
- package/dist/{TaskListItem-CWu40zb6.js → TaskListItem-jRIQ_fJt.js} +10 -10
- package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
- package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
- package/dist/{TaxInformationFieldGroup-B_uFZqqw.js → TaxInformationFieldGroup-BkyZwtUe.js} +7 -7
- package/dist/{TaxReportingDropin-CJ3NB9BQ.js → TaxReportingDropin-BVohPujf.js} +13 -15
- package/dist/{TaxReportingWorkflow-B43zKtsp.js → TaxReportingWorkflow-BdVibdaP.js} +4 -4
- package/dist/{TermsOfServiceManagement-B64PXaru.js → TermsOfServiceManagement-Bh0BJ4wb.js} +46 -43
- package/dist/{TextArea-sSSxe4Li.js → TextArea-BaoeEZvH.js} +4 -4
- package/dist/{TextField-Dhohtwdr.js → TextField-BWevK7LS.js} +5 -5
- package/dist/{TrustDetailsPage-BUYCMRkb.js → TrustDetailsPage-B5x1-NPO.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DIBfqWyQ.js → TrustMemberCompanyPage-Ck2UKJma.js} +5 -5
- package/dist/{TrustMemberIndividualPage-v-Yzq_IP.js → TrustMemberIndividualPage-CTUh7yn9.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-VVMP9pyy.js → TrustMemberRoleAndTypePage-D5_AZAMj.js} +43 -36
- package/dist/{TrustMembersOverview-CpYhIhrk.js → TrustMembersOverview-Dbt3KQhv.js} +13 -13
- package/dist/{UboTaskItem-CR4jrdN5.js → UboTaskItem-CV0B4ONJ.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-1hKd_Css.js → UnincorporatedPartnershipIndividualPage-g9PpNHfH.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CQ_jQfvD.js → UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-yyfNjmYl.js → UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-BOlWKeWw.js → UnincorporatedPartnershipMembersOverview-m3TgX08K.js} +6 -6
- package/dist/{VerificationErrorAlert-BrR02W5c.js → VerificationErrorAlert-yOZ8yz_8.js} +3 -3
- package/dist/{WebsiteField-BxJd5tYn.js → WebsiteField-Cn_VPhTx.js} +5 -5
- package/dist/{Workflow-lip-FQM9.js → Workflow-BUgUDsPv.js} +6 -6
- package/dist/{accountHolderUtils-DKRzOKWL.js → accountHolderUtils-DhbLva46.js} +1 -1
- package/dist/adyen-business-financing.js +7 -7
- package/dist/adyen-individual-configuration.js +6 -6
- package/dist/adyen-individual-status.js +5 -5
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +30 -30
- 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 +5 -5
- package/dist/adyen-transfer-instrument-management.js +13 -13
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-DvMDkIIg.js → bafinUtils-4C7AJpnd.js} +519 -531
- package/dist/{constants-D0Os_pjB.js → constants-dKwpavyU.js} +6 -6
- package/dist/{dropinUtils-COH_5oC3.js → dropinUtils-D7sD4BX1.js} +165 -364
- package/dist/en-US-8KLaHQaT.js +7 -0
- package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
- package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
- package/dist/en-US-DGdFfmUC.js +136 -0
- package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
- package/dist/{error-CljcfMBy.js → error-vhREufv_.js} +2 -2
- package/dist/formatDataForSummary-CNiewg8c.js +498 -0
- package/dist/{formatValidationError-DAnv_psF.js → formatValidationError-BO9k5bVJ.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-V2vtKe2c.js → getDefaultRegistrationNumberType-BWN86JDR.js} +4 -4
- package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
- package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
- package/dist/{getValidationError-BpqwVNUc.js → getValidationError--VxsluPA.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-BBdzPvJl.js → mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-D64cPTBm.js → mapTransferInstrumentToPayoutAccount-BLq2P8NF.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-DbnkpAs6.js → processValidationErrors-DKn7wWTY.js} +4 -4
- package/dist/{resolveEnvironment-NlZWcle4.js → resolveEnvironment-CrNBwIpQ.js} +53 -16
- package/dist/roleMetadata-CmxqSnzp.js +57 -0
- package/dist/style.css +166 -230
- package/dist/styles-DYaAeu4q.js +166 -230
- package/dist/trustMemberType-Ix2sf6e_.js +13 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
- package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
- package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
- package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
- package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
- package/dist/types/components/Shared/Summary/types.d.ts +3 -21
- package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
- 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/localized/jp/mapJpAddressSummary.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
- package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
- package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
- package/dist/types/types/datasets/state-code.d.ts +36 -1
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +1 -1
- package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
- package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
- package/dist/{form-rules-CRMDL7v8.js → unincorporatedPartnership-Dr3lPgDv.js} +38 -4
- package/dist/{useBusinessDetailsData-CcxnigRY.js → useBusinessDetailsData-DrN9ZzIG.js} +100 -90
- package/dist/{useCanSeeIntroduction-COjEJwSQ.js → useCanSeeIntroduction-BDarBkmx.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-B-WTDdmc.js → useForm-Cibudto5.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-DHoBdW3X.js → useId-e2xn6OME.js} +2 -2
- package/dist/{useNavigate-CQxBS2lg.js → useNavigate-DxEfo192.js} +33 -33
- package/dist/{useSalesChannels-y8Arf4LC.js → useSalesChannels-C09EqYFN.js} +1 -1
- package/dist/{useTaskLandedEvent-B4E45deF.js → useTaskLandedEvent-C-kML6lH.js} +1 -1
- package/dist/{useTrustMembers-BN5zllxF.js → useTrustMembers-CZ28rgNA.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-e3nDscEc.js} +2 -2
- package/dist/{utils-CHeUbOCF.js → utils-C3-aLHsN.js} +3 -3
- package/dist/{utils-Cfwr1ukp.js → utils-C_z60qSD.js} +4 -5
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/utils-gszwUnoh.js +49 -0
- package/dist/{validate-DTxPR5js.js → validate-BDG97Hw4.js} +4 -4
- package/dist/{validate-DxdZ3j2v.js → validate-C1VibHZH.js} +26 -2
- package/dist/{validate-cWwt79cT.js → validate-Dve-kxSi.js} +11 -5
- package/dist/{validate-BbY2FS3b.js → validate-bah41KLb.js} +20 -9
- package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
- package/package.json +6 -5
- package/dist/Image-CxnjHtP1.js +0 -33
- package/dist/List-qvNxW9lm.js +0 -72
- package/dist/StateField-fSYeyb3x.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-D5Z5Swb4.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-DhZ0rxIP.js +0 -254
- package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
- package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
|
@@ -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] = "7a469f1d-957a-4e60-a92c-76ad5b1b7f1f", e._sentryDebugIdIdentifier = "sentry-dbid-7a469f1d-957a-4e60-a92c-76ad5b1b7f1f");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
5
|
+
import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
|
|
6
6
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
7
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
8
|
-
import { TaxReportingDropin } from "./TaxReportingDropin-
|
|
7
|
+
import { t as useHideTaskStepper } from "./useHideTaskStepper-Betx9MGy.js";
|
|
8
|
+
import { TaxReportingDropin } from "./TaxReportingDropin-BVohPujf.js";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
10
10
|
//#region src/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.tsx
|
|
11
11
|
var TaxReportingWorkflow = ({ node }) => {
|
|
@@ -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] = "4c036282-7247-4f74-bc11-3fe56ce5a89b", e._sentryDebugIdIdentifier = "sentry-dbid-4c036282-7247-4f74-bc11-3fe56ce5a89b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, o as __exportAll, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as Alert, M as _rolldown_dynamic_import_helper_default, a as doesLegalEntityRequiresLegalRepresentative } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
10
10
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
11
11
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
@@ -14,22 +14,22 @@ import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
|
14
14
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
15
15
|
import { a as getLegalRepresentative } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
16
16
|
import { a as getOwnSignatories } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
17
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
18
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
17
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-qFA2J_1r.js";
|
|
18
|
+
import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
|
|
19
19
|
import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-FDpSDjco.js";
|
|
20
20
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
21
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
22
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
21
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-e2xn6OME.js";
|
|
22
|
+
import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
|
|
23
23
|
import { t as downloadFile } from "./file-1IenVoh8.js";
|
|
24
|
-
import {
|
|
24
|
+
import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-BMGxcmZy.js";
|
|
25
25
|
import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
|
|
26
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
26
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
|
|
27
|
+
import { t as useForm } from "./useForm-Cibudto5.js";
|
|
28
|
+
import { t as formatValidationError } from "./formatValidationError-BO9k5bVJ.js";
|
|
27
29
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
28
|
-
import { t as useForm } from "./useForm-B-WTDdmc.js";
|
|
29
|
-
import { t as formatValidationError } from "./formatValidationError-DAnv_psF.js";
|
|
30
30
|
import { t as ContractViewer } from "./ContractViewer-CG9UNGz1.js";
|
|
31
31
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
32
|
-
import {
|
|
32
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
33
33
|
import { skipToken, useMutation, useQuery } from "@tanstack/preact-query";
|
|
34
34
|
//#region src/api/termsOfService/useAcceptTermsOfService.ts
|
|
35
35
|
var acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
@@ -387,38 +387,41 @@ function ServiceAgreementDropin({ legalEntityResponse, handleAddSigner, handleSi
|
|
|
387
387
|
variant: "info",
|
|
388
388
|
title: contractT(($) => $["nothingNeedsToBeSigned"])
|
|
389
389
|
})]
|
|
390
|
-
}), canSign && /* @__PURE__ */ jsxs(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
className: ServiceAgreementDropin_module_default.tosSignerField,
|
|
395
|
-
errorMessage: formatValidationError(errors.signer?.errorMessage, commonT),
|
|
396
|
-
isValid: valid.signer,
|
|
397
|
-
dataTestId: "signer",
|
|
398
|
-
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
399
|
-
...childProps,
|
|
400
|
-
onChange: handleChangeFor("signer", "blur"),
|
|
390
|
+
}), canSign && /* @__PURE__ */ jsxs("div", {
|
|
391
|
+
className: "u-margin-top-16",
|
|
392
|
+
children: [
|
|
393
|
+
!!signers.length && /* @__PURE__ */ jsx(Field, {
|
|
401
394
|
name: "signer",
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
395
|
+
label: contractT(($) => $["signer"]),
|
|
396
|
+
className: ServiceAgreementDropin_module_default.tosSignerField,
|
|
397
|
+
errorMessage: formatValidationError(errors.signer?.errorMessage, commonT),
|
|
398
|
+
isValid: valid.signer,
|
|
399
|
+
dataTestId: "signer",
|
|
400
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
401
|
+
...childProps,
|
|
402
|
+
onChange: handleChangeFor("signer", "blur"),
|
|
403
|
+
name: "signer",
|
|
404
|
+
placeholder: contractT(($) => $["selectSigner"]),
|
|
405
|
+
selected: data.signer,
|
|
406
|
+
items: signers
|
|
407
|
+
})
|
|
408
|
+
}),
|
|
409
|
+
!isIndividual && addSignerAlert,
|
|
410
|
+
/* @__PURE__ */ jsx(Field, {
|
|
417
411
|
name: "acceptServiceAgreement",
|
|
418
|
-
|
|
412
|
+
className: "u-margin-top-16",
|
|
413
|
+
errorMessage: formatValidationError(errors.acceptServiceAgreement?.errorMessage, commonT),
|
|
414
|
+
isValid: valid.acceptServiceAgreement,
|
|
415
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
416
|
+
...childProps,
|
|
417
|
+
label: contractT(($) => $[acceptanceMessageKey], { ns: "contract" }),
|
|
418
|
+
checked: data.acceptServiceAgreement ?? false,
|
|
419
|
+
name: "acceptServiceAgreement",
|
|
420
|
+
onChange: handleChangeFor("acceptServiceAgreement")
|
|
421
|
+
})
|
|
419
422
|
})
|
|
420
|
-
|
|
421
|
-
|
|
423
|
+
]
|
|
424
|
+
})]
|
|
422
425
|
});
|
|
423
426
|
const currentStep = signedForms.length;
|
|
424
427
|
const totalSteps = forms.length;
|
|
@@ -489,8 +492,8 @@ function TermsOfServiceManagement({ legalEntityId, modalView = false, onClose, o
|
|
|
489
492
|
"../../../language/locales/da-DK.json": () => import("./da-DK-B-BJLcqw.js"),
|
|
490
493
|
"../../../language/locales/de-DE.json": () => import("./de-DE-BxTGFyOs.js"),
|
|
491
494
|
"../../../language/locales/el-GR.json": () => import("./el-GR-IQwyd9ws.js"),
|
|
492
|
-
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-
|
|
493
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
495
|
+
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-myDXMUbk.js"),
|
|
496
|
+
"../../../language/locales/en-US.json": () => import("./en-US-8KLaHQaT.js"),
|
|
494
497
|
"../../../language/locales/es-ES.json": () => import("./es-ES-Cg2IadcX.js"),
|
|
495
498
|
"../../../language/locales/es-LA.json": () => import("./es-LA-DvMpG4FP.js"),
|
|
496
499
|
"../../../language/locales/et-EE.json": () => import("./et-EE-eGeytyQh.js"),
|
|
@@ -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] = "aeae103a-d495-475e-95a4-4a0c64fa5db6", e._sentryDebugIdIdentifier = "sentry-dbid-aeae103a-d495-475e-95a4-4a0c64fa5db6");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
|
-
import { n as debouncedInputEvent } from "./Checkbox-
|
|
8
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
9
|
-
import {
|
|
7
|
+
import { n as debouncedInputEvent } from "./Checkbox-qFA2J_1r.js";
|
|
8
|
+
import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
|
|
9
|
+
import { i as convertFullToHalf } from "./unincorporatedPartnership-Dr3lPgDv.js";
|
|
10
10
|
import { useState } from "preact/hooks";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -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] = "686d875f-4bdf-4d90-9a65-f964a36115e9", e._sentryDebugIdIdentifier = "sentry-dbid-686d875f-4bdf-4d90-9a65-f964a36115e9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { G as
|
|
7
|
-
import { r as InputBase } from "./InputText-
|
|
8
|
-
import {
|
|
6
|
+
import { G as NO_ALPHABET_REGEX, V as EMOJI_REGEX, ct as isInvalidName, dt as matchesRegex, it as hasText, q as OTHER_ENTITIES_VALID_CHAR_REGEX, rt as hasRepeatedCharacters, ut as isValidMinLength } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
|
+
import { r as InputBase } from "./InputText-CGngUMdf.js";
|
|
8
|
+
import { o as Field } from "./Select-BMGxcmZy.js";
|
|
9
9
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
10
|
-
import { t as getValidationError } from "./getValidationError
|
|
10
|
+
import { t as getValidationError } from "./getValidationError--VxsluPA.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/adaptiveWorkflow/components/Shared/Fields/TextField/validators.ts
|
|
13
13
|
var containsText = (val) => {
|
|
@@ -1,42 +1,45 @@
|
|
|
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] = "62b9d1b6-5ab9-4d6e-8203-065512bcb51f", e._sentryDebugIdIdentifier = "sentry-dbid-62b9d1b6-5ab9-4d6e-8203-065512bcb51f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as Alert, D as datasetUtilities, G as NO_ALPHABET_REGEX, M as _rolldown_dynamic_import_helper_default, V as EMOJI_REGEX, ct as isInvalidName, dt as matchesRegex, it as hasText, j as Header, p as getCountrySpecificTrustTypeOptions, q as OTHER_ENTITIES_VALID_CHAR_REGEX, rt as hasRepeatedCharacters, ut as isValidMinLength, vt as useVersionConfiguration } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
10
10
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
11
11
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
12
|
+
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
13
|
import { a as objectsDeepEqual, r as drop } from "./genUtils-nphCwt1A.js";
|
|
13
14
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
14
|
-
import { a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-
|
|
15
|
+
import { a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
15
16
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
17
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
17
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
18
|
-
import { t as InputText } from "./InputText-
|
|
18
|
+
import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
|
|
19
|
+
import { t as InputText } from "./InputText-CGngUMdf.js";
|
|
19
20
|
import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
20
|
-
import { r as useToastContext } from "./useId-
|
|
21
|
-
import { a as
|
|
22
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
23
|
-
import {
|
|
24
|
-
import { o as StructuredList, r as formatObject } from "./utils-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { t as
|
|
35
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DbnkpAs6.js";
|
|
21
|
+
import { r as useToastContext } from "./useId-e2xn6OME.js";
|
|
22
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, o as augmentWithCountryConfigs, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-Dr3lPgDv.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
24
|
+
import { o as Field, t as Select } from "./Select-BMGxcmZy.js";
|
|
25
|
+
import { o as StructuredList, r as formatObject } from "./utils-C3-aLHsN.js";
|
|
26
|
+
import { h as useUpdateLegalEntity, o as mapAddressLabels, s as addressFieldRule } from "./StateField-TYw5No81.js";
|
|
27
|
+
import { O as validateNotEmptyOnBlur, R as useMultiForm, V as useFormComposer, W as FormContextProvider, b as useFormContext, h as isValidationError, l as COUNTRY_FIELD, n as getRequiredForms, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow, y as mergeFieldMetadataIntoProps } from "./dropinUtils-D7sD4BX1.js";
|
|
28
|
+
import { T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, U as taxIdNumberOptions, g as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-4C7AJpnd.js";
|
|
29
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-BWN86JDR.js";
|
|
30
|
+
import { c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, l as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, r as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION, s as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES, u as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
31
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-B2n9ugLK.js";
|
|
32
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
33
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CqbTLZ6i.js";
|
|
34
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
|
|
35
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DKn7wWTY.js";
|
|
36
36
|
import { n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
|
|
37
|
-
import { i as getFieldsWithExistingData, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
37
|
+
import { i as getFieldsWithExistingData, t as PatriotActDisclosure } from "./PatriotActDisclosure-CAvpE8su.js";
|
|
38
|
+
import { t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
|
|
39
|
+
import { t as Summary } from "./Summary-BwvaKucT.js";
|
|
40
|
+
import { t as SummarySection } from "./SummarySection-5L--khYg.js";
|
|
41
|
+
import { i as nestAddressSchema } from "./utils-gszwUnoh.js";
|
|
42
|
+
import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, g as dateOfIncorporationFieldConfig, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata, p as DBA_NAME_FIELD, r as VatNumberField, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-DzLLKoWV.js";
|
|
40
43
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
41
44
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
42
45
|
import { skipToken } from "@tanstack/preact-query";
|
|
@@ -63,12 +66,14 @@ var unincorporatedPartnershipBaseMapping = {
|
|
|
63
66
|
"trustRegistrationAddress.registrationAddressStateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
64
67
|
"trustRegistrationAddress.registrationAddressStreet": "unincorporatedPartnership.registeredAddress.street",
|
|
65
68
|
"trustRegistrationAddress.registrationAddressStreet2": "unincorporatedPartnership.registeredAddress.street2",
|
|
69
|
+
"trustRegistrationAddress.registrationAddressDependentLocality": "unincorporatedPartnership.registeredAddress.dependentLocality",
|
|
66
70
|
"trustRegistrationAddress.operationalAddressCity": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
67
71
|
"trustRegistrationAddress.operationalAddressCountry": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
68
72
|
"trustRegistrationAddress.operationalAddressPostalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
69
73
|
"trustRegistrationAddress.operationalAddressStateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
70
74
|
"trustRegistrationAddress.operationalAddressStreet": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
71
|
-
"trustRegistrationAddress.operationalAddressStreet2": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
75
|
+
"trustRegistrationAddress.operationalAddressStreet2": "unincorporatedPartnership.principalPlaceOfBusiness.street2",
|
|
76
|
+
"trustRegistrationAddress.operationalAddressDependentLocality": "unincorporatedPartnership.principalPlaceOfBusiness.dependentLocality"
|
|
72
77
|
};
|
|
73
78
|
var unincorporatedPartnershipComponentsKeyMapping = {
|
|
74
79
|
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
@@ -373,15 +378,8 @@ var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.f
|
|
|
373
378
|
//#endregion
|
|
374
379
|
//#region src/components/Trust/forms/Trust/rules.ts
|
|
375
380
|
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
376
|
-
var rules = ({ data, country, taskType }) => {
|
|
377
|
-
const
|
|
378
|
-
if (isOperational && data.trustRegistrationAddress?.operationalAddressIsSame) return void 0;
|
|
379
|
-
if (field === "country") return "REQUIRED";
|
|
380
|
-
if (!getAddressSchemaForCountry(country).includes(field)) return void 0;
|
|
381
|
-
if (field === "street2") return "OPTIONAL";
|
|
382
|
-
if (field === "stateOrProvince") return COUNTRIES_WITH_STATES_DATASET.includes(country) ? "REQUIRED" : void 0;
|
|
383
|
-
return "REQUIRED";
|
|
384
|
-
};
|
|
381
|
+
var rules = ({ data, country, taskType, isSettingEnabled = () => false, version }) => {
|
|
382
|
+
const addressFieldRequired = (field, isOperational = false) => addressFieldRule(field, country, isSettingEnabled, version, isOperational, data.trustRegistrationAddress?.operationalAddressIsSame);
|
|
385
383
|
return createFormRules({
|
|
386
384
|
countryUsesTaxId: () => {
|
|
387
385
|
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
@@ -421,18 +419,20 @@ var rules = ({ data, country, taskType }) => {
|
|
|
421
419
|
requireDateOfIncorporation: () => {
|
|
422
420
|
if (LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION.includes(country)) return "REQUIRED";
|
|
423
421
|
},
|
|
424
|
-
registrationAddressStreetRequired: () =>
|
|
425
|
-
registrationAddressStreet2Required: () =>
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
422
|
+
registrationAddressStreetRequired: () => addressFieldRequired("street"),
|
|
423
|
+
registrationAddressStreet2Required: () => addressFieldRequired("street2"),
|
|
424
|
+
registrationAddressDependentLocalityRequired: () => addressFieldRequired("dependentLocality"),
|
|
425
|
+
registrationAddressCityRequired: () => addressFieldRequired("city"),
|
|
426
|
+
registrationAddressPostalCodeRequired: () => addressFieldRequired("postalCode"),
|
|
427
|
+
registrationAddressStateOrProvinceRequired: () => addressFieldRequired("stateOrProvince"),
|
|
428
|
+
registrationAddressCountryRequired: () => addressFieldRequired("country"),
|
|
429
|
+
operationalAddressStreetRequired: () => addressFieldRequired("street", true),
|
|
430
|
+
operationalAddressStreet2Required: () => addressFieldRequired("street2", true),
|
|
431
|
+
operationalAddressDependentLocalityRequired: () => addressFieldRequired("dependentLocality", true),
|
|
432
|
+
operationalAddressCityRequired: () => addressFieldRequired("city", true),
|
|
433
|
+
operationalAddressPostalCodeRequired: () => addressFieldRequired("postalCode", true),
|
|
434
|
+
operationalAddressStateOrProvinceRequired: () => addressFieldRequired("stateOrProvince", true),
|
|
435
|
+
operationalAddressCountryRequired: () => addressFieldRequired("country", true)
|
|
436
436
|
});
|
|
437
437
|
};
|
|
438
438
|
var TrustRegistrationAddress_module_default = {
|
|
@@ -665,7 +665,7 @@ function formatTrustRegistrationDetails(data, datasetUtils, isUnincorporatedPart
|
|
|
665
665
|
[resolveFieldMetadata(dateOfIncorporationFieldConfig[country], {}, dateOfIncorporationFieldMetadata).label ?? "dateOfIncorporation"]: data.dateOfIncorporation
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function formatDataForSummary(data, forms, t, language, taskType) {
|
|
668
|
+
function formatDataForSummary(data, forms, t, language, taskType, isSettingEnabled) {
|
|
669
669
|
const OMITTED_FORMS = ["summary"];
|
|
670
670
|
const datasetUtils = datasetUtilities(language);
|
|
671
671
|
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
@@ -698,14 +698,14 @@ function formatDataForSummary(data, forms, t, language, taskType) {
|
|
|
698
698
|
items: summaryItems
|
|
699
699
|
});
|
|
700
700
|
if (form.formId === "trustRegistrationAddress") {
|
|
701
|
-
const registrationAddressSummaryItems = translateAndFilterMappedSummary(
|
|
701
|
+
const registrationAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabels(nestAddressSchema("registrationAddress", data.trustRegistrationAddress), datasetUtils, isSettingEnabled));
|
|
702
702
|
if (registrationAddressSummaryItems.length > 0) summarySectionData.push({
|
|
703
703
|
formId: "registrationAddress",
|
|
704
704
|
label: t(($) => $["registrationAddress"], { ns: "common" }),
|
|
705
705
|
items: registrationAddressSummaryItems
|
|
706
706
|
});
|
|
707
707
|
if (!data[form.formId]?.operationalAddressIsSame) {
|
|
708
|
-
const operationalAddressSummaryItems = translateAndFilterMappedSummary(
|
|
708
|
+
const operationalAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabels(nestAddressSchema("operationalAddress", data.trustRegistrationAddress), datasetUtils, isSettingEnabled));
|
|
709
709
|
if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
|
|
710
710
|
formId: "operationalAddress",
|
|
711
711
|
label: t(($) => $["operationalAddress"], { ns: "common" }),
|
|
@@ -846,7 +846,9 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
|
|
|
846
846
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
847
847
|
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
848
848
|
const [validationErrors, setValidationErrors] = useState();
|
|
849
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
849
850
|
const { isFeatureEnabled } = useToggleContext();
|
|
851
|
+
const { data: versionConfiguration } = useVersionConfiguration();
|
|
850
852
|
const { showToast } = useToastContext();
|
|
851
853
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
852
854
|
const [country, setCountry] = useState(countryProp);
|
|
@@ -913,11 +915,15 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
|
|
|
913
915
|
const fieldsFromCustomRules = useMemo(() => rules({
|
|
914
916
|
data: multiForm.data,
|
|
915
917
|
country,
|
|
916
|
-
taskType
|
|
918
|
+
taskType,
|
|
919
|
+
isSettingEnabled,
|
|
920
|
+
version: versionConfiguration?.version
|
|
917
921
|
}), [
|
|
918
922
|
country,
|
|
919
923
|
multiForm.data,
|
|
920
|
-
taskType
|
|
924
|
+
taskType,
|
|
925
|
+
isSettingEnabled,
|
|
926
|
+
versionConfiguration?.version
|
|
921
927
|
]);
|
|
922
928
|
useEffect(() => {
|
|
923
929
|
const props = getPropsFromConfigurations({
|
|
@@ -1051,14 +1057,15 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
|
|
|
1051
1057
|
});
|
|
1052
1058
|
const summarySections = useMemo(() => {
|
|
1053
1059
|
if (activeForm.formId !== "summary") return [];
|
|
1054
|
-
return formatDataForSummary(multiForm.data, forms, t, i18n.language, taskType);
|
|
1060
|
+
return formatDataForSummary(multiForm.data, forms, t, i18n.language, taskType, isSettingEnabled);
|
|
1055
1061
|
}, [
|
|
1056
1062
|
activeForm.formId,
|
|
1057
1063
|
multiForm.data,
|
|
1058
1064
|
forms,
|
|
1059
1065
|
t,
|
|
1060
1066
|
i18n.language,
|
|
1061
|
-
taskType
|
|
1067
|
+
taskType,
|
|
1068
|
+
isSettingEnabled
|
|
1062
1069
|
]);
|
|
1063
1070
|
const handleEditForm = (formId) => {
|
|
1064
1071
|
if (formId === "registrationAddress" || formId === "operationalAddress") {
|
|
@@ -1076,7 +1083,7 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
|
|
|
1076
1083
|
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
1077
1084
|
form: multiForm,
|
|
1078
1085
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
1079
|
-
summaryComponent: /* @__PURE__ */ jsxs(
|
|
1086
|
+
summaryComponent: /* @__PURE__ */ jsxs(Summary, { children: [/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1080
1087
|
validationErrors: allValidationErrors,
|
|
1081
1088
|
verificationErrors: allVerificationErrors,
|
|
1082
1089
|
formUtils: createFormUtils({ labels: {} }, t),
|
|
@@ -1,16 +1,16 @@
|
|
|
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] = "4144e3cd-10d0-44c6-ab0e-3712d67177dc", e._sentryDebugIdIdentifier = "sentry-dbid-4144e3cd-10d0-44c6-ab0e-3712d67177dc");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
10
10
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
11
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
12
|
-
import { t as useTrustMembers } from "./useTrustMembers-
|
|
13
|
-
import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-
|
|
11
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
12
|
+
import { t as useTrustMembers } from "./useTrustMembers-CZ28rgNA.js";
|
|
13
|
+
import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-DrN9ZzIG.js";
|
|
14
14
|
import { jsx } from "preact/jsx-runtime";
|
|
15
15
|
import { skipToken } from "@tanstack/preact-query";
|
|
16
16
|
import { useParams } from "wouter-preact";
|
package/dist/{TrustMemberIndividualPage-v-Yzq_IP.js → TrustMemberIndividualPage-CTUh7yn9.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
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] = "d4fef34d-7a09-4fa3-9f4f-78254550353b", e._sentryDebugIdIdentifier = "sentry-dbid-d4fef34d-7a09-4fa3-9f4f-78254550353b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
10
10
|
import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
11
11
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
12
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
13
|
-
import { t as IndividualDropin } from "./IndividualDropin-
|
|
12
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
13
|
+
import { t as IndividualDropin } from "./IndividualDropin-MpaDWh9N.js";
|
|
14
14
|
import { jsx } from "preact/jsx-runtime";
|
|
15
15
|
import { skipToken } from "@tanstack/preact-query";
|
|
16
16
|
import { useParams } from "wouter-preact";
|
package/dist/{TrustMemberRoleAndTypePage-VVMP9pyy.js → TrustMemberRoleAndTypePage-D5_AZAMj.js}
RENAMED
|
@@ -1,33 +1,38 @@
|
|
|
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] = "519ec536-ccac-4161-89ae-8d311335689d", e._sentryDebugIdIdentifier = "sentry-dbid-519ec536-ccac-4161-89ae-8d311335689d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default, j as Header, ot as isEmpty } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
10
10
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
11
11
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
12
12
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
13
13
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
14
|
-
import {
|
|
15
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
16
|
-
import { r as useToastContext } from "./useId-
|
|
17
|
-
import {
|
|
18
|
-
import { n as SelectListItem,
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { a as defaultFieldMetadata, n as LegalCompanyNameField, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
14
|
+
import { t as TrustMemberTypes } from "./trustMemberType-Ix2sf6e_.js";
|
|
15
|
+
import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
|
|
16
|
+
import { r as useToastContext } from "./useId-e2xn6OME.js";
|
|
17
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-Dr3lPgDv.js";
|
|
18
|
+
import { n as SelectListItem, o as Field } from "./Select-BMGxcmZy.js";
|
|
19
|
+
import { o as StructuredList } from "./utils-C3-aLHsN.js";
|
|
20
|
+
import { h as useUpdateLegalEntity } from "./StateField-TYw5No81.js";
|
|
21
|
+
import { U as summaryStep, l as COUNTRY_FIELD, u as CountryField, v as createFormUtils, y as mergeFieldMetadataIntoProps } from "./dropinUtils-D7sD4BX1.js";
|
|
22
|
+
import { W as TileGroup } from "./bafinUtils-4C7AJpnd.js";
|
|
23
|
+
import { a as defaultFieldMetadata, n as LegalCompanyNameField, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BsY3tJfX.js";
|
|
24
24
|
import { t as isNewEntity } from "./isNewEntity-vML86iIM.js";
|
|
25
|
-
import { t as useTrustMembers } from "./useTrustMembers-
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
25
|
+
import { t as useTrustMembers } from "./useTrustMembers-CZ28rgNA.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
27
|
+
import { t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
|
|
28
|
+
import { t as TextArea } from "./TextArea-BaoeEZvH.js";
|
|
29
|
+
import { t as useForm } from "./useForm-Cibudto5.js";
|
|
28
30
|
import { n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
29
|
-
import { n as nameFields, t as Name } from "./Name-
|
|
31
|
+
import { n as nameFields, t as Name } from "./Name-C8hhvQlN.js";
|
|
30
32
|
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
33
|
+
import { t as Summary } from "./Summary-BwvaKucT.js";
|
|
34
|
+
import { t as SummarySection } from "./SummarySection-5L--khYg.js";
|
|
35
|
+
import { r as roleMetadata, t as getRoleName } from "./roleMetadata-CmxqSnzp.js";
|
|
31
36
|
import { a as trustMemberLegalEntityTypes, i as settlorExemptionReasonWithNoneOfTheAbove, n as isExemptSettlor, r as isOrganizationAndSettlor, t as couldBeExemptSettlor } from "./types-qahGXhtr.js";
|
|
32
37
|
import { useEffect, useState } from "preact/hooks";
|
|
33
38
|
import cx from "classnames";
|
|
@@ -582,23 +587,24 @@ var formatSettlorExemptionReasonsForSummary = (reasons, trustT) => /* @__PURE__
|
|
|
582
587
|
var formatRoleAndEntityTypeSummary = (data, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) => {
|
|
583
588
|
const { trustMemberType, roles } = data;
|
|
584
589
|
const role = formatRolesForSummary(roles, commonT);
|
|
590
|
+
const row = (term, details) => details ? [{
|
|
591
|
+
term: commonT(($) => $[term]),
|
|
592
|
+
details
|
|
593
|
+
}] : [];
|
|
585
594
|
switch (trustMemberType) {
|
|
586
|
-
case "undefinedBeneficiary": return
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
|
|
597
|
-
settlorExemptionReason: summaryItem("otherInformation", formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT))
|
|
598
|
-
};
|
|
595
|
+
case "undefinedBeneficiary": return [...row("role", role), ...row("descriptionUndefinedBeneficiary", data.description)];
|
|
596
|
+
case "exemptSettlor": return [
|
|
597
|
+
...row("role", role),
|
|
598
|
+
...row("entityType", trustT(($) => $[data.legalEntityType])),
|
|
599
|
+
...row("firstName", data.exemptSettlorName?.firstName),
|
|
600
|
+
...row("lastName", data.exemptSettlorName?.lastName),
|
|
601
|
+
...row("country", isOrganizationSettlorWithExemptionEnabled ? data.country : void 0),
|
|
602
|
+
...row("legalCompanyName", isOrganizationSettlorWithExemptionEnabled ? data.name : void 0),
|
|
603
|
+
...row("otherInformation", formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT))
|
|
604
|
+
];
|
|
599
605
|
case "company":
|
|
600
606
|
case "rootTrustee":
|
|
601
|
-
case "regular": return
|
|
607
|
+
case "regular": return [];
|
|
602
608
|
}
|
|
603
609
|
};
|
|
604
610
|
//#endregion
|
|
@@ -799,7 +805,7 @@ function RoleAndTypeDropin({ trust, trustMemberLe, existingTrustMember, navigate
|
|
|
799
805
|
});
|
|
800
806
|
}
|
|
801
807
|
};
|
|
802
|
-
const
|
|
808
|
+
const summaryItems = trustMember === "incomplete" ? [] : formatRoleAndEntityTypeSummary(trustMember, commonT, trustT, isOrganizationSettlorWithExemptionEnabled);
|
|
803
809
|
const onNavigateToNextStep = () => {
|
|
804
810
|
if (isSummaryStep && trustMember !== "incomplete") {
|
|
805
811
|
addOrUpdateTrustMember(trustMember, existingTrustMember);
|
|
@@ -848,10 +854,11 @@ function RoleAndTypeDropin({ trust, trustMemberLe, existingTrustMember, navigate
|
|
|
848
854
|
isOrganizationSettlorWithExemptionEnabled,
|
|
849
855
|
country
|
|
850
856
|
}),
|
|
851
|
-
isSummaryStep && /* @__PURE__ */ jsx(
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
857
|
+
isSummaryStep && /* @__PURE__ */ jsx(Summary, { children: summaryItems.length > 0 && /* @__PURE__ */ jsx(SummarySection, {
|
|
858
|
+
formId: regularForms.roleAndEntityType.formId,
|
|
859
|
+
label: commonT(($) => $["roleAndEntityType"]),
|
|
860
|
+
onEdit: (formId) => gotoFormByFormIndex(forms.findIndex((form) => form.formId === formId)),
|
|
861
|
+
children: /* @__PURE__ */ jsx(StructuredList, { items: summaryItems })
|
|
855
862
|
}) }),
|
|
856
863
|
/* @__PURE__ */ jsxs("div", {
|
|
857
864
|
class: "u-display-flex u-margin-top-48 u-justify-content-space-between",
|