@adyen/kyc-components 4.26.1 → 4.27.0-beta.1
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-DXSq3XzA.js → AcceptTermsOfServiceWorkflow-CO6qEeAD.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-BLEWjmc8.js → AccountSetupRejected-CFvogFuo.js} +2 -2
- package/dist/{AdaptiveWorkflow-DwdMyu1A.js → AdaptiveWorkflow-CTKpyw02.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-DPv1YHos.js → AdaptiveWorkflowComponent-CvTwsWi3.js} +5 -5
- package/dist/{AddressFields-B0QVYM-e.js → AddressFields-vl2AeVHz.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-evYHYnXE.js → BusinessFinancingDropin-tSylhmJS.js} +123 -55
- package/dist/{BusinessFinancingPage-C_agz96E.js → BusinessFinancingPage-9AcfHWyP.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-DeYcZlQS.js → BusinessRegistrationNumberField-B6w6LvSZ.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-D9D0BPdp.js → BusinessRegistrationNumberFieldGroup-CICYxSyn.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-DmgeZsex.js → BusinessTypeSelectionPage-lLt_PL1z.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-BLyyDG9b.js → Checkbox-DXF-eRBj.js} +8 -8
- package/dist/{ComponentGroup-BLvYZoxp.js → ComponentGroup-DNspJrHk.js} +3 -3
- package/dist/{ConstitutionalDocument-B3o3NLMO.js → ConstitutionalDocument-Dg3dmkpH.js} +19 -26
- package/dist/{ContactDetails-7zYbKJtH.js → ContactDetails-5W0oQVYG.js} +5 -5
- package/dist/{ContextGuidance-C2AXK9Ep.js → ContextGuidance-BrbPzdaI.js} +3 -3
- package/dist/{CountryField-Bl8gp3wu.js → CountryField-DlMYQYfd.js} +4 -4
- package/dist/{Currency-Be6zg8XM.js → Currency-BCJuV60i.js} +16 -10
- package/dist/{CustomerSupport-lUVh_sWN.js → CustomerSupport-Bdg11WcM.js} +29 -16
- package/dist/{DateField-CO2CodgD.js → DateField-DfnBDOVl.js} +4 -4
- package/dist/{DebugModal-l52lDfKB.js → DebugModal-D1RMhAfR.js} +228 -10
- package/dist/{DecisionMakerDetails-9y6Fm96G.js → DecisionMakerDetails-Cv_NdD0z.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-9kRW2Zh8.js → DecisionMakerDetailsPage-dTsh8vkz.js} +9 -9
- package/dist/{DecisionMakers-CYjKftby.js → DecisionMakers-DAhjhaMS.js} +17 -18
- package/dist/{Dropzone-QRtCFpVT.js → Dropzone-rk15b_Tb.js} +7 -7
- package/dist/{EmailField-D-Ndm0JS.js → EmailField-BOX8HtRe.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-CS8XqKk-.js → EntityAssociation-B5Zq7_F6.js} +6 -6
- package/dist/{ErrorPanel-DaipnVsu.js → ErrorPanel-BLvDkiVa.js} +10 -17
- package/dist/{GlobalEntryModal-COOjZvh7.js → GlobalEntryModal-DZsHeRPL.js} +439 -298
- package/dist/{GlobalEntryPage-C9SGXXJk.js → GlobalEntryPage-RyQIoaWL.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-D_cOLEsP.js → IdentityNumber-C8CMJtgD.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CoLugvku.js → IdentityNumberFieldGroup-Cj5U1Onz.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-B_nLC0Ru.js → IdentityScreeningWorkflow-BCDn25Or.js} +12 -13
- package/dist/{IndividualDropin-CRKk-szG.js → IndividualDropin-B6dY0iN3.js} +149 -231
- package/dist/{IndustryCodeFieldGroup-0vRXN8GP.js → IndustryCodeFieldGroup-B649faYk.js} +5 -5
- package/dist/{InputDate-Cxk_f6Us.js → InputDate-3rYzWzXX.js} +8 -4
- package/dist/{InputText-CObXfKKh.js → InputText-OCbzlaaN.js} +2 -2
- package/dist/{Introduction-CmhxGGzY.js → Introduction-Duow8A7U.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-BkHurym6.js → InvitedDecisionMakerComponent-BVQ37JLZ.js} +13 -14
- package/dist/{JpAddressFields-CuvfbjX6.js → JpAddressFields-Bh7Bvw__.js} +9 -10
- package/dist/{LegalCompanyNameField-CkINYTFB.js → LegalCompanyNameField-Yj5Fa3-I.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-mlE80SrL.js → LegalRepresentativeDetailsPage-C10ojT9w.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-DnDjAzqZ.js → Modal-jjSjdW5W.js} +3 -3
- package/dist/{Name-Dhj905G8.js → Name-D-A5XBTb.js} +4 -4
- package/dist/{NumberField-BlDjTB0U.js → NumberField-D291GWYR.js} +4 -4
- package/dist/{PatriotActDisclosure-jNLKR-RM.js → PatriotActDisclosure-DMjKJEKH.js} +10 -10
- package/dist/{PayoutDetailsDropin-DO1CtLRd.js → PayoutDetailsDropin-B5MNHR3S.js} +41 -43
- package/dist/{PayoutDetailsPage-C-W1PCRf.js → PayoutDetailsPage-DMAxzS2V.js} +5 -5
- package/dist/{Review-BLcoVl6O.js → Review-BDontauk.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DNZi9Zgj.js → RootBusinessDetailsPage-INMIQvN4.js} +4 -4
- package/dist/{RootBusinessLinesPage-D2IPigk5.js → RootBusinessLinesPage-BiIb7UVU.js} +22 -23
- package/dist/{RootIndividualDetailsPage-Cfa9R28c.js → RootIndividualDetailsPage-BS5BgowF.js} +6 -6
- package/dist/{Select-C0Pp8Jeb.js → Select-BRK2a2V5.js} +92 -92
- package/dist/{SignPCIComponent-I3asF5GE.js → SignPCIComponent-B5JmN8BT.js} +14 -14
- package/dist/{SingpassSelection-C4Ptdwzb.js → SingpassSelection-B84oJmvG.js} +5 -5
- package/dist/{SoleProprietorshipPage-CiI2VKw_.js → SoleProprietorshipPage-C-jxJkmQ.js} +4 -4
- package/dist/{SourceOfFundsPage-DrJqgPMf.js → SourceOfFundsPage-C27vODL5.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-tE06S4__.js → SourceOfFundsWorkflow-DOqaH_wk.js} +4 -4
- package/dist/StateField-CRLgYS1X.js +364 -0
- package/dist/{Step-CLZTcCEQ.js → Step-BTVKO9gW.js} +5 -5
- package/dist/Summary-C9Nr0dot.js +21 -0
- package/dist/{SummarySection-v-mSwYL0.js → SummarySection-D67yguze.js} +5 -19
- package/dist/{Task-CUr-Zb5N.js → Task-BaQ6wqz5.js} +7 -7
- package/dist/{TaskGroup-BGUboNOL.js → TaskGroup-C7lBWbYp.js} +3 -3
- package/dist/{TaskListItem-DMkmZn3B.js → TaskListItem-Cu3fSvOJ.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-CraKcKMs.js → TaxInformationFieldGroup-vQoQHydJ.js} +7 -7
- package/dist/{TaxReportingDropin-B-ywMdBt.js → TaxReportingDropin-CTnL6VMm.js} +13 -15
- package/dist/{TaxReportingWorkflow-BmUdyOKl.js → TaxReportingWorkflow-5_eG0AcD.js} +4 -4
- package/dist/{TermsOfServiceManagement-D1Yv4Z5p.js → TermsOfServiceManagement-xL-xisqE.js} +46 -43
- package/dist/{TextArea-CyFcFhHo.js → TextArea-CcaUENX2.js} +4 -4
- package/dist/{TextField-D61xVlV2.js → TextField-fhhAQSKg.js} +5 -5
- package/dist/{TrustDetailsPage-D2FS-As0.js → TrustDetailsPage-DcNS-XWz.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DDcSOUi2.js → TrustMemberCompanyPage-xtxgO6d4.js} +5 -5
- package/dist/{TrustMemberIndividualPage-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.js} +43 -36
- package/dist/{TrustMembersOverview-DkrEZL6_.js → TrustMembersOverview-D-jTaw37.js} +13 -13
- package/dist/{UboTaskItem-Dc6ExVuW.js → UboTaskItem-DsoetWEU.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-D0ZYvh8k.js → UnincorporatedPartnershipIndividualPage-3sSr2dCv.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BtapkuO6.js → UnincorporatedPartnershipMemberCompanyPage-s6NiptRo.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CbdYYTQT.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cr6UEryR.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-Cs1DHVNP.js → UnincorporatedPartnershipMembersOverview-CbwWOxQs.js} +6 -6
- package/dist/{VerificationErrorAlert-D9sBE-Tj.js → VerificationErrorAlert-Bm7-u85-.js} +3 -3
- package/dist/{WebsiteField-BCoO-m_7.js → WebsiteField-DTlbxzaa.js} +5 -5
- package/dist/{Workflow-driWy_eJ.js → Workflow-DT43cTzE.js} +6 -6
- package/dist/{accountHolderUtils-BAbeRIOy.js → accountHolderUtils-D0E9se-W.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-COyCy9xG.js → bafinUtils-CvQzDDfD.js} +519 -531
- package/dist/{constants-fGRziJEH.js → constants-BOu8Hnt9.js} +6 -6
- package/dist/{dropinUtils-cIGIoJvF.js → dropinUtils-DfyQ8xFE.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-B9rHWK9Q.js → error-CUHwmdwD.js} +2 -2
- package/dist/formatDataForSummary-BMFPIUER.js +498 -0
- package/dist/{formatValidationError-BJqU7LCU.js → formatValidationError-B5GNhAeh.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-BcV1GDOs.js → getDefaultRegistrationNumberType-CyaKz1Fj.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-dcpAlebZ.js → getValidationError-B4YX_EgR.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-B9pzYF3B.js → mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-BL4eAlDH.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-Ba_L9EEB.js → mapTransferInstrumentToPayoutAccount-DhwdciyT.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-DWdgik5u.js → processValidationErrors-Dtt1FnM2.js} +4 -4
- package/dist/{resolveEnvironment-BnKqnU98.js → resolveEnvironment-CpWP_8og.js} +53 -16
- package/dist/roleMetadata-BW4HRw1l.js +57 -0
- package/dist/style.css +218 -230
- package/dist/styles-DYaAeu4q.js +218 -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/devex/DebugListener/DebugTheme.d.ts +2 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -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-CZbkNMEw.js → unincorporatedPartnership-CiU2fnqv.js} +38 -4
- package/dist/{useBusinessDetailsData-BJau7oMt.js → useBusinessDetailsData-BtEHoBoN.js} +100 -90
- package/dist/{useCanSeeIntroduction-BQuCt-eO.js → useCanSeeIntroduction-kxOGIxnh.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-VDjedfk9.js → useForm-CiHfxEX0.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-Cs-bSalH.js → useId-ChrmzN7R.js} +2 -2
- package/dist/{useNavigate-CKp2oemi.js → useNavigate-xbrKpFCu.js} +33 -33
- package/dist/{useSalesChannels-D0q-Vat7.js → useSalesChannels-C2qQmPGf.js} +1 -1
- package/dist/{useTaskLandedEvent-QBmeEeS6.js → useTaskLandedEvent-Brv74FDb.js} +1 -1
- package/dist/{useTrustMembers-COumqoMC.js → useTrustMembers-BA5fCul_.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-J6rxK5Ie.js} +2 -2
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/{utils-BiPEtEaV.js → utils-ClAXyRqf.js} +4 -5
- package/dist/{utils-B6TRzLRs.js → utils-Do6-kryk.js} +3 -3
- package/dist/utils-VV2acmQG.js +49 -0
- package/dist/{validate-Dt3Xmp_L.js → validate-BHOzYoxU.js} +26 -2
- package/dist/{validate-BN38Qq-w.js → validate-D5990ODb.js} +20 -9
- package/dist/{validate-D3JIeysp.js → validate-Dtiozjlb.js} +4 -4
- package/dist/{validate-_7WKym8c.js → validate-NJNmUaTh.js} +11 -5
- 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-BBGSo1NG.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-kHaGv8kC.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-D6qGKj-2.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-CTnL6VMm.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-CpWP_8og.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-DXF-eRBj.js";
|
|
18
|
+
import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.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-ChrmzN7R.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-BRK2a2V5.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-Brv74FDb.js";
|
|
27
|
+
import { t as useForm } from "./useForm-CiHfxEX0.js";
|
|
28
|
+
import { t as formatValidationError } from "./formatValidationError-B5GNhAeh.js";
|
|
27
29
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
28
|
-
import { t as useForm } from "./useForm-VDjedfk9.js";
|
|
29
|
-
import { t as formatValidationError } from "./formatValidationError-BJqU7LCU.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-DXF-eRBj.js";
|
|
8
|
+
import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.js";
|
|
9
|
+
import { i as convertFullToHalf } from "./unincorporatedPartnership-CiU2fnqv.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-CpWP_8og.js";
|
|
7
|
+
import { r as InputBase } from "./InputText-OCbzlaaN.js";
|
|
8
|
+
import { o as Field } from "./Select-BRK2a2V5.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-B4YX_EgR.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-CpWP_8og.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-DXF-eRBj.js";
|
|
19
|
+
import { t as InputText } from "./InputText-OCbzlaaN.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-DWdgik5u.js";
|
|
21
|
+
import { r as useToastContext } from "./useId-ChrmzN7R.js";
|
|
22
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, o as augmentWithCountryConfigs, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-CiU2fnqv.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
24
|
+
import { o as Field, t as Select } from "./Select-BRK2a2V5.js";
|
|
25
|
+
import { o as StructuredList, r as formatObject } from "./utils-Do6-kryk.js";
|
|
26
|
+
import { h as useUpdateLegalEntity, o as mapAddressLabels, s as addressFieldRule } from "./StateField-CRLgYS1X.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-DfyQ8xFE.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-CvQzDDfD.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-CyaKz1Fj.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-B6w6LvSZ.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-Brv74FDb.js";
|
|
35
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-Dtt1FnM2.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-DMjKJEKH.js";
|
|
38
|
+
import { t as ErrorPanel } from "./ErrorPanel-BLvDkiVa.js";
|
|
39
|
+
import { t as Summary } from "./Summary-C9Nr0dot.js";
|
|
40
|
+
import { t as SummarySection } from "./SummarySection-D67yguze.js";
|
|
41
|
+
import { i as nestAddressSchema } from "./utils-VV2acmQG.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-Dg3dmkpH.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-CpWP_8og.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-BA5fCul_.js";
|
|
13
|
+
import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BtEHoBoN.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-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.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-CpWP_8og.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-B6dY0iN3.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-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.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-CpWP_8og.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-DXF-eRBj.js";
|
|
16
|
+
import { r as useToastContext } from "./useId-ChrmzN7R.js";
|
|
17
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-CiU2fnqv.js";
|
|
18
|
+
import { n as SelectListItem, o as Field } from "./Select-BRK2a2V5.js";
|
|
19
|
+
import { o as StructuredList } from "./utils-Do6-kryk.js";
|
|
20
|
+
import { h as useUpdateLegalEntity } from "./StateField-CRLgYS1X.js";
|
|
21
|
+
import { U as summaryStep, l as COUNTRY_FIELD, u as CountryField, v as createFormUtils, y as mergeFieldMetadataIntoProps } from "./dropinUtils-DfyQ8xFE.js";
|
|
22
|
+
import { W as TileGroup } from "./bafinUtils-CvQzDDfD.js";
|
|
23
|
+
import { a as defaultFieldMetadata, n as LegalCompanyNameField, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Yj5Fa3-I.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-BA5fCul_.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
27
|
+
import { t as ErrorPanel } from "./ErrorPanel-BLvDkiVa.js";
|
|
28
|
+
import { t as TextArea } from "./TextArea-CcaUENX2.js";
|
|
29
|
+
import { t as useForm } from "./useForm-CiHfxEX0.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-D-A5XBTb.js";
|
|
30
32
|
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
33
|
+
import { t as Summary } from "./Summary-C9Nr0dot.js";
|
|
34
|
+
import { t as SummarySection } from "./SummarySection-D67yguze.js";
|
|
35
|
+
import { r as roleMetadata, t as getRoleName } from "./roleMetadata-BW4HRw1l.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",
|