@adyen/kyc-components 4.21.0 → 4.22.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-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-D2mvc_PB.js} +5 -5
- package/dist/{Accordion-DC7Iuj-J.js → Accordion-DEivLTcw.js} +1 -1
- package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-pcQcFAhQ.js} +1 -1
- package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-C0EsaW8F.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-Nk2CJaU4.js} +54 -54
- package/dist/{AddressField-M0N4sAfl.js → AddressFields-3kqeRdC_.js} +108 -173
- package/dist/{Avatar-BKTdqNpO.js → Avatar-DHyXCNwV.js} +1 -1
- package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-BOECqGNd.js} +104 -197
- package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-DSy5an97.js} +30 -30
- package/dist/BusinessRegistrationNumberField-DHccXqsX.js +101 -0
- package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-2e9GKH-i.js} +5 -6
- package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-BraXRUrg.js} +13 -13
- package/dist/{Button-DSD_afG_.js → Button-nDbNtBn3.js} +1 -1
- package/dist/{Checkbox-Bc98rXHW.js → Checkbox-BiKnP2fS.js} +1 -1
- package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-Due-N8Yz.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-CtRHXMb9.js} +67 -105
- package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-Syyy5BfB.js} +5 -5
- package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-D8leB0D6.js} +2 -2
- package/dist/{Currency-BlBJnPV7.js → Currency-CFsMnSP0.js} +5 -5
- package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-DqayB3BM.js} +13 -12
- package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-Bz2SYyi5.js} +6 -6
- package/dist/{DebugModal-BAf5ZU42.js → DebugModal-fH0uKl1E.js} +10 -10
- package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-7IPREpy1.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-Bs9q7sxc.js} +34 -34
- package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-Dw66GRhZ.js} +40 -40
- package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CjLSK2UN.js} +7 -7
- package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-BIVFBjzu.js} +3 -3
- package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-D2CSEwEn.js} +2 -2
- package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-LF_5ihhI.js} +6 -6
- package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-tLtZnFnX.js} +3 -3
- package/dist/{GlobalEntryModal-DAf4bqoT.js → GlobalEntryModal-CY-t1fGQ.js} +279 -79
- package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-xX4ruKnx.js} +7 -7
- package/dist/{Icon-CurE93CX.js → Icon-BcaP-f1D.js} +1 -1
- package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-4ky6SOcb.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-BKKmSfLG.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-D0eNj4nD.js} +13 -13
- package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-PKwY3D-0.js} +4 -4
- package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-DrQiG_Vy.js} +252 -224
- package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-jm8KFccr.js} +3 -3
- package/dist/InputDate-C14J5Af2.js +211 -0
- package/dist/{InputText-BvrH0bId.js → InputText-Dr-Wg0uc.js} +2 -2
- package/dist/{Introduction-Cc1kb6ZF.js → Introduction-DXAxkrDG.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-CPMIUjiE.js} +61 -61
- package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-olKUlhpt.js} +8 -8
- package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-BrdI-awc.js} +4 -4
- package/dist/{LegalName-CeRLeIRV.js → LegalName-CWoSqy0V.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-Ca3FLoSd.js} +30 -30
- package/dist/{Link-B-gN0d8l.js → Link-opuU6bLF.js} +1 -1
- package/dist/{ListItem-BGdnopqb.js → ListItem-CbjOa0L_.js} +2 -2
- package/dist/{Modal-smcFQS1n.js → Modal-BDNS-0rS.js} +3 -3
- package/dist/{Name-CjSRwrBX.js → Name-CxlxPgUR.js} +4 -4
- package/dist/{NewSummary-BBgZk5N5.js → NewSummary-mLsovGX8.js} +6 -6
- package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-kOnDnF8P.js} +10 -113
- package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-CZ77wefd.js} +26 -26
- package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-Cyy-fDbK.js} +7 -7
- package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-C0mNADXE.js} +10 -17
- package/dist/{Review-D5P6Ac8i.js → Review-CDtJh9j3.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-CnVWFx0H.js} +30 -30
- package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-Dtx9X-mD.js} +23 -23
- package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-q8PZ0Khk.js} +31 -31
- package/dist/{Select-VeoEeZS8.js → Select-UO37dd_q.js} +5 -5
- package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-D21OqVWo.js} +38 -38
- package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-CRYphIRT.js} +4 -4
- package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-BKB0sRiP.js} +30 -30
- package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-C2ZEp0lT.js} +26 -26
- package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-Cy12c7ou.js} +4 -4
- package/dist/{StateField-Bez_WtWb.js → StateField-CWS8eXex.js} +8 -34
- package/dist/{Step-Onf402RU.js → Step-CYG94mSp.js} +9 -13
- package/dist/{StructuredList-36A9DDQa.js → StructuredList-CqZM_5X9.js} +3 -3
- package/dist/{Task-DiyDnOz9.js → Task-D6xuGucd.js} +11 -11
- package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-C4ND30dB.js} +3 -3
- package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-Dc6n6llv.js} +9 -9
- package/dist/TaskStepperContextProvider-CvChF1W5.js +26 -0
- package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-pjPK5vVN.js} +1 -1
- package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-BACQgHQ7.js} +7 -8
- package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-DmOclyYQ.js} +14 -14
- package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-CBEB7oAn.js} +4 -4
- package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-No_9QGjv.js} +37 -37
- package/dist/{TextArea-CZ6EPFIm.js → TextArea-BzY5efza.js} +3 -3
- package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-BHjbebZX.js} +79 -68
- package/dist/TrustMemberCompanyPage-BSe-Pn1O.js +109 -0
- package/dist/TrustMemberIndividualPage-DxlZQF6W.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-AtlXyfKk.js} +40 -39
- package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-DpmUv4Vj.js} +36 -36
- package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-ESC2Ze3o.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-BVpz27KZ.js} +30 -30
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js} +31 -31
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js} +7 -7
- package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-BCEhkhpr.js} +2 -2
- package/dist/{Workflow-CKPX92cv.js → Workflow-CzSGihyD.js} +6 -6
- package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-3WiED1-j.js} +1 -1
- package/dist/adyen-business-financing.js +31 -31
- package/dist/adyen-individual-configuration.js +56 -56
- package/dist/adyen-individual-status.js +29 -29
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +55 -57
- 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 +30 -30
- package/dist/adyen-transfer-instrument-management.js +38 -38
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-DkDlAHgN.js → bafinUtils-h8n1IbJ9.js} +45 -21
- package/dist/{bg-BG-D4mSRREu.js → bg-BG-BizRzO_4.js} +2 -2
- package/dist/bg-BG-BtgA44Ui.js +7 -0
- package/dist/{bg-BG-BeFIiwVZ.js → bg-BG-DFFyUYhz.js} +1 -4
- package/dist/bg-BG-DYkxVgeJ.js +7 -0
- package/dist/{constants-CpzwsYLt.js → constants-B9iXz9xK.js} +3 -3
- package/dist/cs-CZ-Ci8c58xJ.js +7 -0
- package/dist/{cs-CZ-DHfA1xjQ.js → cs-CZ-DbxpNCVt.js} +1 -4
- package/dist/cs-CZ-DcUnrLLF.js +7 -0
- package/dist/cs-CZ-lJQmuyHq.js +7 -0
- package/dist/da-DK-C1kmOHvo.js +7 -0
- package/dist/da-DK-D53M_d04.js +7 -0
- package/dist/da-DK-DxZQbdeO.js +7 -0
- package/dist/{da-DK--DlccBc0.js → da-DK-zLJRzcB1.js} +1 -4
- package/dist/{de-DE-B_iHAkLT.js → de-DE-BMfqDClD.js} +1 -4
- package/dist/de-DE-BnxQPuqK.js +7 -0
- package/dist/de-DE-qJPTCQlG.js +7 -0
- package/dist/de-DE-qSBQE-6M.js +7 -0
- package/dist/el-GR-Bx996PXx.js +7 -0
- package/dist/el-GR-CgoxpC-Q.js +7 -0
- package/dist/{el-GR-C6jyW53I.js → el-GR-Dv4ru2dp.js} +2 -2
- package/dist/{el-GR-D09thseu.js → el-GR-RfSX8m4j.js} +1 -4
- package/dist/{en-US-Del1h5SS.js → en-US-BUmtG-Wj.js} +5 -1
- package/dist/en-US-C_-DId-G.js +7 -0
- package/dist/{error-DYzwu0no.js → error-CHFF8jLc.js} +2 -2
- package/dist/{es-ES-Bpxn6XGC.js → es-ES-CYw82sbG.js} +1 -4
- package/dist/es-ES-DNhmrVEV.js +7 -0
- package/dist/es-ES-DyB2KXfT.js +7 -0
- package/dist/es-ES-U4-lDfZq.js +7 -0
- package/dist/es-LA-B5IRDCf_.js +7 -0
- package/dist/{es-LA-C8U1qPSu.js → es-LA-BctkHpgC.js} +5 -5
- package/dist/es-LA-C9A4OcR1.js +7 -0
- package/dist/{es-LA-DWAiA7Dw.js → es-LA-CG_cu1hM.js} +2 -2
- package/dist/{es-LA-CJdZb5eY.js → es-LA-CgkOJrPJ.js} +2 -2
- package/dist/es-LA-ChLRkx-r.js +7 -0
- package/dist/{es-LA-CjxlB1WZ.js → es-LA-DDXEJd1M.js} +1 -4
- package/dist/{es-LA-DBBkFhgU.js → es-LA-DcnCNM5a.js} +2 -2
- package/dist/es-LA-Oe31aP7N.js +7 -0
- package/dist/{es-LA-CE8hE_Qb.js → es-LA-s415mKU0.js} +2 -2
- package/dist/et-EE-4_ZUNt3W.js +7 -0
- package/dist/et-EE-BgBr1C0u.js +7 -0
- package/dist/{et-EE-Dtc7YYb4.js → et-EE-BlZkCwz8.js} +1 -4
- package/dist/et-EE-DSK7kb3n.js +7 -0
- package/dist/fi-FI-BSsXGaNE.js +7 -0
- package/dist/{fi-FI-DBhYlO4B.js → fi-FI-CNoPIGJP.js} +1 -4
- package/dist/fi-FI-D06EzKrW.js +7 -0
- package/dist/fi-FI-DgMsQBRO.js +7 -0
- package/dist/{form-rules-Cy_z1LiE.js → form-rules-CKwx5XtT.js} +82 -75
- package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DZ1CxHdw.js} +1 -1
- package/dist/fr-FR-BTJoQq71.js +7 -0
- package/dist/{fr-FR-Dsh0Vb20.js → fr-FR-C88I1PF4.js} +2 -2
- package/dist/{fr-FR-N8UDU_0Y.js → fr-FR-CQZLvhS1.js} +1 -4
- package/dist/fr-FR-Dl4NL-Nc.js +7 -0
- package/dist/{CompanyRegistrationNumberTypeSelector-CX4-v376.js → getDefaultRegistrationNumberType-6m6DEmW8.js} +49 -49
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-DzRO0UUx.js} +19 -2
- package/dist/{getProblemsForEntity-CTxd78-9.js → getProblemsForEntity-CfzojTAS.js} +1 -1
- package/dist/{getTrustedDecisionMakers-DWVtW7JE.js → getTrustedDecisionMakers-qs2frwk2.js} +1 -1
- package/dist/hr-HR-B11sggmG.js +7 -0
- package/dist/{hr-HR-GLRwxTIZ.js → hr-HR-C6-nBPZJ.js} +1 -4
- package/dist/hr-HR-COdiWKoq.js +7 -0
- package/dist/hr-HR-HlAOaG4N.js +7 -0
- package/dist/{hu-HU-s1MKqwI4.js → hu-HU-CKm1kMo5.js} +1 -4
- package/dist/hu-HU-DkSsL94T.js +7 -0
- package/dist/hu-HU-Dp6xOBN_.js +7 -0
- package/dist/hu-HU-s1kS1v8Y.js +7 -0
- package/dist/it-IT-BlaVymCj.js +7 -0
- package/dist/it-IT-CawjvBDX.js +7 -0
- package/dist/{it-IT-xXO07yyz.js → it-IT-DPOJ9mKi.js} +2 -2
- package/dist/{it-IT-2reNk09A.js → it-IT-DjUFw9e_.js} +1 -4
- package/dist/{ja-JP-Bf97gKqg.js → ja-JP-Ce_xNqZj.js} +1 -4
- package/dist/ja-JP-DGj167Zw.js +7 -0
- package/dist/ja-JP-Dpe9Odla.js +7 -0
- package/dist/ja-JP-h3E8hgLv.js +7 -0
- package/dist/{types-CdxNdaM6.js → legalArrangementUtils-skU_cq9L.js} +4 -3
- package/dist/lt-LT-B18sQY9g.js +7 -0
- package/dist/{lt-LT-BUgsY7cD.js → lt-LT-BQD7QWIk.js} +1 -4
- package/dist/lt-LT-CEpjHJry.js +7 -0
- package/dist/lt-LT-Fc1lOUlz.js +7 -0
- package/dist/lv-LV-COsG0cJY.js +7 -0
- package/dist/{lv-LV-BpniO6xp.js → lv-LV-DHwdYWGZ.js} +1 -4
- package/dist/lv-LV-DctYQmfH.js +7 -0
- package/dist/lv-LV-adiXoKhv.js +7 -0
- package/dist/{mapExistingFile-R6-FnjjY.js → mapExistingFile-CDahgHsP.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-C-kAGmiq.js → mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-ChE9qTUB.js} +6 -6
- package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js} +2 -2
- package/dist/nl-NL-9sJ9sG_Q.js +7 -0
- package/dist/nl-NL-BIpptPn4.js +7 -0
- package/dist/{nl-NL-_B3Ey_x1.js → nl-NL-Cdmgljzx.js} +1 -4
- package/dist/nl-NL-DOB0b0m4.js +7 -0
- package/dist/no-NO-BG1sYkpp.js +7 -0
- package/dist/no-NO-DnsCTUl4.js +7 -0
- package/dist/{no-NO-CytzrDfA.js → no-NO-MhaaDGft.js} +1 -4
- package/dist/no-NO-P5tRWhV9.js +7 -0
- package/dist/{pl-PL-DLBeIbY5.js → pl-PL-B0tX08_r.js} +1 -4
- package/dist/pl-PL-BX9Xsn_R.js +7 -0
- package/dist/pl-PL-J9S3_lCf.js +7 -0
- package/dist/pl-PL-_KG-ZD1N.js +7 -0
- package/dist/{processCapabilities-uXoRmB5x.js → processCapabilities-BfskhjUw.js} +2 -1
- package/dist/{processValidationErrors-CxYdVSIk.js → processValidationErrors-CRWq2tu-.js} +3 -3
- package/dist/pt-BR-BYbyk6xS.js +7 -0
- package/dist/{pt-BR-Cf5Jif3w.js → pt-BR-CExpeuK1.js} +1 -4
- package/dist/pt-BR-D23HWCOv2.js +7 -0
- package/dist/pt-BR-fKlNUybd.js +7 -0
- package/dist/{pt-PT-Cg7oMqTO.js → pt-PT-CedGAyU5.js} +1 -4
- package/dist/pt-PT-D8ldyR-j.js +7 -0
- package/dist/pt-PT-DAvsI-Tr.js +7 -0
- package/dist/pt-PT-oMj1KA74.js +7 -0
- package/dist/{resolveEnvironment-iYzRliVi.js → resolveEnvironment-D2iMH7UD.js} +69 -70
- package/dist/{ro-RO-UHWXt9rv.js → ro-RO-C-lRWe1h.js} +1 -4
- package/dist/ro-RO-CQJk7Cpo.js +7 -0
- package/dist/ro-RO-CnMe6Mfw.js +7 -0
- package/dist/ro-RO-Cri5-XPn.js +7 -0
- package/dist/sk-SK-Br1Y4_CN.js +7 -0
- package/dist/sk-SK-Bx2_85dW.js +7 -0
- package/dist/{sk-SK-BQHhBpDH.js → sk-SK-D1duuBif.js} +1 -4
- package/dist/sk-SK-XvPPBgTO.js +7 -0
- package/dist/sl-SI-B31X-t8A.js +7 -0
- package/dist/sl-SI-DHPadSTy.js +7 -0
- package/dist/{sl-SI-DOAJBgQV.js → sl-SI-DO9c7geI.js} +2 -2
- package/dist/{sl-SI-CTrggdef.js → sl-SI-iGtJR9Tk.js} +1 -4
- package/dist/style.css +21 -0
- package/dist/styles-DYaAeu4q.js +21 -0
- package/dist/{sv-SE-Bk55FXGN.js → sv-SE-9GnBnxvb.js} +1 -4
- package/dist/sv-SE-BXrlr0X5.js +7 -0
- package/dist/sv-SE-DBANqFwL.js +7 -0
- package/dist/sv-SE-l_UVgmVu.js +7 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -9
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +2 -40
- package/dist/types/components/Business/utils/utils.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +6 -8
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +13 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +12 -3
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.d.ts +4 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +2 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +2 -7
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +38 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/{components/UnincorporatedPartnership/types/types.d.ts → utils/legalArrangementUtils.d.ts} +2 -1
- package/dist/types/{components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts → utils/unincorporatedParnershipUtils.d.ts} +3 -3
- package/dist/{types-Ai_80DXu.js → types-Bdfu7HN6.js} +1 -1
- package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-DZQuIMNw.js} +83 -180
- package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-BGYdkMIE.js} +3 -3
- package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
- package/dist/{useForm-CEXA_F3u.js → useForm-BJq32Ve1.js} +2 -2
- package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-CcCmW80A.js} +9 -8
- package/dist/{useId-CZMbF_sJ.js → useId-BMocIuPK.js} +1 -1
- package/dist/{useNavigate-RRamr3fr.js → useNavigate-D4ypqPBN.js} +33 -33
- package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-BCzs8Xya.js} +3 -3
- package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-Cf1fN_gV.js} +1 -1
- package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
- package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-DqpnYNNj.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-w3dG_nyc.js} +2 -2
- package/dist/{useUpdateLegalEntity-Cp9Cq-yR.js → useUpdateLegalEntity-CvACAgDP.js} +1 -1
- package/dist/{utils-DxOvaA3u.js → utils-BMhvbUV1.js} +6 -6
- package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
- package/dist/validate-BqIbVY0E.js +151 -0
- package/dist/{validate-BevFCyzw.js → validate-Dfw99Sal.js} +5 -31
- package/dist/{validate-BbOeJY9-.js → validate-DiEa5w30.js} +4 -4
- package/dist/{validate--p4TuNQC.js → validate-RLWN-I5L.js} +68 -51
- package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-DueyX5oY.js} +2 -2
- package/dist/{validationError-BLSF1VbX.js → validationError-BhICjGiF.js} +1 -1
- package/package.json +1 -1
- package/dist/InputDate-Cgld5B0-.js +0 -52
- package/dist/TaskStepperContextProvider-DuM9tlet.js +0 -81
- package/dist/TrustMemberCompanyPage-Bzcvc0Cz.js +0 -109
- package/dist/TrustMemberIndividualPage-DN_epZ5a.js +0 -110
- package/dist/bg-BG-CXqERnFH.js +0 -7
- package/dist/bg-BG-DbS559bK.js +0 -7
- package/dist/cs-CZ-4yvBEVL0.js +0 -7
- package/dist/cs-CZ-DAXMHrMi.js +0 -7
- package/dist/cs-CZ-DySBJFlc.js +0 -7
- package/dist/da-DK-BVaEiAWd.js +0 -7
- package/dist/da-DK-BuvKW6Sq.js +0 -7
- package/dist/da-DK-D3mbpcHG.js +0 -7
- package/dist/de-DE-BQaqplTp.js +0 -7
- package/dist/de-DE-BqujMxXu.js +0 -7
- package/dist/de-DE-D6R-XC2F.js +0 -7
- package/dist/el-GR-B1NjHThy.js +0 -7
- package/dist/el-GR-CedmhUFh.js +0 -7
- package/dist/en-US-D4NrsDmW.js +0 -7
- package/dist/es-ES-BM5RTwb7.js +0 -7
- package/dist/es-ES-C64v4NJD.js +0 -7
- package/dist/es-ES-DTUHhE47.js +0 -7
- package/dist/es-LA-B7pY2dp1.js +0 -7
- package/dist/es-LA-BjZq9RK_.js +0 -7
- package/dist/es-LA-CcMAcJ7u.js +0 -7
- package/dist/es-LA-DlL8vCjJ.js +0 -7
- package/dist/et-EE-DqhEsLik.js +0 -7
- package/dist/et-EE-FtKFvr3u.js +0 -7
- package/dist/et-EE-wDQx9HoZ.js +0 -7
- package/dist/fi-FI-KMP96Qxc.js +0 -7
- package/dist/fi-FI-RfGqWbnB.js +0 -7
- package/dist/fi-FI-SFw2grVp.js +0 -7
- package/dist/fr-FR-C8IPWMDL.js +0 -7
- package/dist/fr-FR-zDxTr2D3.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/hr-HR-COvc9TZy.js +0 -7
- package/dist/hr-HR-Cqgf9B0v.js +0 -7
- package/dist/hr-HR-DPjuJ54x.js +0 -7
- package/dist/hu-HU-DIjDe5aa.js +0 -7
- package/dist/hu-HU-DyM1X3r6.js +0 -7
- package/dist/hu-HU-hB61p4H9.js +0 -7
- package/dist/it-IT-BKTDLRBT.js +0 -7
- package/dist/it-IT-BMXQzE0P.js +0 -7
- package/dist/ja-JP-BhHK_ru2.js +0 -7
- package/dist/ja-JP-BuFZko8b.js +0 -7
- package/dist/ja-JP-DbLRpEVj.js +0 -7
- package/dist/lt-LT-Be3q6tyu.js +0 -7
- package/dist/lt-LT-Btr5el2q.js +0 -7
- package/dist/lt-LT-D4raqCUa.js +0 -7
- package/dist/lv-LV-8wOWTo3r.js +0 -7
- package/dist/lv-LV-DBms129k.js +0 -7
- package/dist/lv-LV-DCeyOqHY.js +0 -7
- package/dist/nl-NL-CdHkQcOS.js +0 -7
- package/dist/nl-NL-Dyb3tkBi.js +0 -7
- package/dist/nl-NL-UhYf45fo.js +0 -7
- package/dist/no-NO-B-xCUkf4.js +0 -7
- package/dist/no-NO-DN7Ovyir.js +0 -7
- package/dist/no-NO-DXDddmYv.js +0 -7
- package/dist/pl-PL-BmiDQi18.js +0 -7
- package/dist/pl-PL-CBwRmIu5.js +0 -7
- package/dist/pl-PL-Cc09pXO8.js +0 -7
- package/dist/pt-BR-DA4PVtVa2.js +0 -7
- package/dist/pt-BR-DXGEP6IP.js +0 -7
- package/dist/pt-BR-hMhyqixD.js +0 -7
- package/dist/pt-PT-BXIKj_3F.js +0 -7
- package/dist/pt-PT-D2qX_lOd.js +0 -7
- package/dist/pt-PT-QU0CQs-d.js +0 -7
- package/dist/ro-RO-CQjOM8e-.js +0 -7
- package/dist/ro-RO-D4TQUwVB.js +0 -7
- package/dist/ro-RO-DNye-gMC.js +0 -7
- package/dist/sk-SK-2jlbtz2r.js +0 -7
- package/dist/sk-SK-CszMszV5.js +0 -7
- package/dist/sk-SK-CwbBfCsU.js +0 -7
- package/dist/sl-SI-9XdXVgB8.js +0 -7
- package/dist/sl-SI-Cyx0QtxG.js +0 -7
- package/dist/sv-SE--LlaHl85.js +0 -7
- package/dist/sv-SE-CqhSdYBe.js +0 -7
- package/dist/sv-SE-kbf3zbjX.js +0 -7
- package/dist/types/components/Shared/forms/Address/Address.d.ts +0 -3
- package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
- package/dist/validate-BjD_UO5x.js +0 -125
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2ef394de-0992-4537-8a5a-7e19a632a4e9", e._sentryDebugIdIdentifier = "sentry-dbid-2ef394de-0992-4537-8a5a-7e19a632a4e9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { $ as hasRepeatedCharacters, A as _rolldown_dynamic_import_helper_default, H as NO_ALPHABET_REGEX, T as datasetUtilities, W as OTHER_ENTITIES_VALID_CHAR_REGEX, et as hasText,
|
|
6
|
+
import { $ as hasRepeatedCharacters, A as _rolldown_dynamic_import_helper_default, H as NO_ALPHABET_REGEX, T as datasetUtilities, W as OTHER_ENTITIES_VALID_CHAR_REGEX, et as hasText, it as isInvalidName, j as useToggleContext, k as Header, ot as isValidMinLength, p as getCountrySpecificTrustTypeOptions, st as matchesRegex, x as Alert, z as EMOJI_REGEX } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
9
9
|
import { s as useApiContext } from "./http-DsJtugN1.js";
|
|
@@ -12,33 +12,34 @@ import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
13
13
|
import { a as objectsDeepEqual, r as drop } from "./genUtils-Ce61IJs8.js";
|
|
14
14
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
15
|
-
import { C as EntityTypes, a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-
|
|
15
|
+
import { C as EntityTypes, a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilities-BfskhjUw.js";
|
|
16
16
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
17
17
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
|
|
18
|
-
import { t as InputText } from "./InputText-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { r as useToastContext } from "./useId-
|
|
22
|
-
import { F as
|
|
23
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
24
|
-
import { r as Field, t as Select } from "./Select-
|
|
25
|
-
import { A as
|
|
26
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
27
|
-
import {
|
|
28
|
-
import { t as
|
|
18
|
+
import { t as InputText } from "./InputText-Dr-Wg0uc.js";
|
|
19
|
+
import { _ as getPropsFromConfigurations, g as composePerScenarioFormConfigurations, h as augmentWithCountryConfigs, m as resolveFieldMetadata, t as createFormRules } from "./form-rules-CKwx5XtT.js";
|
|
20
|
+
import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
|
|
21
|
+
import { r as useToastContext } from "./useId-BMocIuPK.js";
|
|
22
|
+
import { F as taxInformationDefaultFieldConfig, I as taxInformationDefaultFieldMetadata, M as exemptedFromTaxDefaultFieldConfig, N as exemptedFromTaxDefaultFieldMetadata, S as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, _ as taxIdNumberOptions, l as TAX_INFORMATION_FIELD, u as TaxInformationField } from "./bafinUtils-h8n1IbJ9.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CfzojTAS.js";
|
|
24
|
+
import { r as Field, t as Select } from "./Select-UO37dd_q.js";
|
|
25
|
+
import { A as mergeFieldMetadataIntoProps, M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, l as COUNTRY_FIELD, m as FormFlow, p as getRequiredForms, s as validateNotEmptyOnBlur, u as CountryField, y as useFormComposer } from "./RadioGroup-C0mNADXE.js";
|
|
26
|
+
import { t as ErrorPanel } from "./ErrorPanel-tLtZnFnX.js";
|
|
27
|
+
import { c as mapAddressLabelsNewSummary, d as COUNTRIES_WITH_STATES_DATASET, i as getAddressSchemaForCountry } from "./StateField-CWS8eXex.js";
|
|
28
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as inferCompanyRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-6m6DEmW8.js";
|
|
29
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-DHccXqsX.js";
|
|
29
30
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CYZd_62a.js";
|
|
30
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
31
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CvACAgDP.js";
|
|
32
|
+
import { o as nestAddressSchema } from "./AddressFields-3kqeRdC_.js";
|
|
33
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CDahgHsP.js";
|
|
34
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Cf1fN_gV.js";
|
|
35
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CRWq2tu-.js";
|
|
36
|
+
import { a as createDocumentRequest, o as documentApiUtils, s as getDocument } from "./validate-DiEa5w30.js";
|
|
35
37
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
36
|
-
import {
|
|
37
|
-
import { a as isValidationError } from "./validationError-
|
|
38
|
-
import { t as NewSummary } from "./NewSummary-
|
|
39
|
-
import { i as
|
|
40
|
-
import { a as
|
|
41
|
-
import { a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, i as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, n as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, r as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CdxNdaM6.js";
|
|
38
|
+
import { i as getFieldsWithExistingData, t as PatriotActDisclosure } from "./PatriotActDisclosure-kOnDnF8P.js";
|
|
39
|
+
import { a as isValidationError } from "./validationError-BhICjGiF.js";
|
|
40
|
+
import { t as NewSummary } from "./NewSummary-mLsovGX8.js";
|
|
41
|
+
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-CtRHXMb9.js";
|
|
42
|
+
import { a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, i as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, n as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, r as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, s as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-skU_cq9L.js";
|
|
42
43
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
43
44
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
44
45
|
import { skipToken } from "@tanstack/preact-query";
|
|
@@ -58,6 +59,7 @@ var unincorporatedPartnershipBaseMapping = {
|
|
|
58
59
|
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
59
60
|
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
60
61
|
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
62
|
+
"trustRegistrationDetails.dateOfIncorporation": "unincorporatedPartnership.dateOfIncorporation",
|
|
61
63
|
"trustRegistrationAddress.registrationAddressCity": "unincorporatedPartnership.registeredAddress.city",
|
|
62
64
|
"trustRegistrationAddress.registrationAddressCountry": "unincorporatedPartnership.registeredAddress.country",
|
|
63
65
|
"trustRegistrationAddress.registrationAddressPostalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
@@ -138,7 +140,8 @@ var TRUST_REGISTRATION_DETAILS_FIELDS = [
|
|
|
138
140
|
"objectOfTrust",
|
|
139
141
|
...TAX_INFORMATION_FIELD,
|
|
140
142
|
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
141
|
-
...VAT_NUMBER_FIELD
|
|
143
|
+
...VAT_NUMBER_FIELD,
|
|
144
|
+
...DATE_OF_INCORPORATION_FIELD
|
|
142
145
|
];
|
|
143
146
|
var ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
144
147
|
function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerificationErrors = {}, shouldValidate, taskType, country: parentLegalEntityCountry }) {
|
|
@@ -182,17 +185,13 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
182
185
|
switch (field) {
|
|
183
186
|
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
184
187
|
case "doingBusinessAs": return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
185
|
-
case "taxInformation": return mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
186
|
-
taxIdNumberType: data.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
187
|
-
companyType: legalEntityType
|
|
188
|
-
}, taxInformationDefaultFieldMetadata), acc);
|
|
189
|
-
case "exemptedFromTax": return mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), acc);
|
|
190
188
|
case "registrationNumber": return mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
191
189
|
companyType: legalEntityType,
|
|
192
190
|
registrationNumberType: data.registrationNumberType
|
|
193
191
|
}, registrationNumberDefaultFieldMetadata), acc);
|
|
194
192
|
case "exemptedFromRegistrationNumber": return mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), acc);
|
|
195
193
|
case "vatNumber": return mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: data?.vatNumberType }, defaultFieldMetadata), acc);
|
|
194
|
+
case "dateOfIncorporation": return mergeFieldMetadataIntoProps("dateOfIncorporation", resolveFieldMetadata(dateOfIncorporationFieldConfig[country], {}, dateOfIncorporationFieldMetadata), acc);
|
|
196
195
|
default: return acc;
|
|
197
196
|
}
|
|
198
197
|
}, initialProps);
|
|
@@ -212,7 +211,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
212
211
|
trustedFields,
|
|
213
212
|
valid
|
|
214
213
|
]);
|
|
215
|
-
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
214
|
+
const showField = (fieldNames) => fieldNames.some((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
216
215
|
return /* @__PURE__ */ jsxs("form", {
|
|
217
216
|
id,
|
|
218
217
|
children: [
|
|
@@ -232,7 +231,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
232
231
|
}),
|
|
233
232
|
className: "u-margin-bottom-16"
|
|
234
233
|
}),
|
|
235
|
-
|
|
234
|
+
showField(COUNTRY_FIELD) && /* @__PURE__ */ jsx(CountryField, {
|
|
236
235
|
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
237
236
|
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
238
237
|
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, COUNTRY_FIELD),
|
|
@@ -243,7 +242,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
243
242
|
handleChange("country", "input")(e);
|
|
244
243
|
}
|
|
245
244
|
}),
|
|
246
|
-
|
|
245
|
+
showField(["legalName"]) && /* @__PURE__ */ jsx(Field, {
|
|
247
246
|
name: "legalName",
|
|
248
247
|
label: formUtils.getLabel(isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"),
|
|
249
248
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
@@ -259,14 +258,14 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
259
258
|
"aria-invalid": !valid?.legalName
|
|
260
259
|
})
|
|
261
260
|
}),
|
|
262
|
-
|
|
261
|
+
showField(["hasDoingBusinessAs"]) && /* @__PURE__ */ jsx(DBANameField, {
|
|
263
262
|
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
264
263
|
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
265
264
|
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DBA_NAME_FIELD),
|
|
266
265
|
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
267
266
|
handleChangeFor: handleChange
|
|
268
267
|
}),
|
|
269
|
-
|
|
268
|
+
showField(["trustType"]) && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
270
269
|
name: "trustType",
|
|
271
270
|
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
272
271
|
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldValidationErrors),
|
|
@@ -284,7 +283,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
284
283
|
placeholder: t(($) => $["trustType"], { ns: "trust" })
|
|
285
284
|
})
|
|
286
285
|
}),
|
|
287
|
-
|
|
286
|
+
showField(["objectOfTrust"]) && /* @__PURE__ */ jsx(Field, {
|
|
288
287
|
name: "objectOfTrust",
|
|
289
288
|
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
290
289
|
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
@@ -301,12 +300,10 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
301
300
|
"aria-invalid": !valid?.objectOfTrust
|
|
302
301
|
})
|
|
303
302
|
}),
|
|
304
|
-
showField(
|
|
303
|
+
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
305
304
|
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
306
305
|
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
307
306
|
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
308
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
309
|
-
mask: formUtils.getMask("taxInformation"),
|
|
310
307
|
readonly: formUtils.isReadOnly("taxInformation"),
|
|
311
308
|
shouldValidate,
|
|
312
309
|
handleChangeFor: handleChange,
|
|
@@ -317,7 +314,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
317
314
|
defaultData: data?.taxInformation,
|
|
318
315
|
registrationNumber: data.registrationNumber
|
|
319
316
|
}),
|
|
320
|
-
showField(
|
|
317
|
+
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
321
318
|
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
322
319
|
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
323
320
|
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
@@ -329,7 +326,7 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
329
326
|
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
330
327
|
companyType: legalEntityType
|
|
331
328
|
}),
|
|
332
|
-
showField(
|
|
329
|
+
showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx(VatNumberField, {
|
|
333
330
|
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
334
331
|
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
335
332
|
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
@@ -340,6 +337,14 @@ function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerifica
|
|
|
340
337
|
country,
|
|
341
338
|
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
342
339
|
}),
|
|
340
|
+
showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx(DateOfIncorporationField, {
|
|
341
|
+
data: formUtils.getFieldData(data, DATE_OF_INCORPORATION_FIELD),
|
|
342
|
+
valid: formUtils.getFieldValid(valid, DATE_OF_INCORPORATION_FIELD),
|
|
343
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DATE_OF_INCORPORATION_FIELD),
|
|
344
|
+
readonly: formUtils.isReadOnly("dateOfIncorporation"),
|
|
345
|
+
handleChangeFor: handleChange,
|
|
346
|
+
country
|
|
347
|
+
}),
|
|
343
348
|
country === "US" && /* @__PURE__ */ jsx(PatriotActDisclosure, {})
|
|
344
349
|
]
|
|
345
350
|
});
|
|
@@ -414,6 +419,9 @@ var rules = ({ data, country, taskType }) => {
|
|
|
414
419
|
requiresTrustType: () => {
|
|
415
420
|
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
416
421
|
},
|
|
422
|
+
requireDateOfIncorporation: () => {
|
|
423
|
+
if (LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION.includes(country)) return "REQUIRED";
|
|
424
|
+
},
|
|
417
425
|
registrationAddressStreetRequired: () => addressFieldRule("street", false),
|
|
418
426
|
registrationAddressStreet2Required: () => addressFieldRule("street2", false),
|
|
419
427
|
registrationAddressCityRequired: () => addressFieldRule("city", false),
|
|
@@ -650,7 +658,8 @@ function formatTrustRegistrationDetails(data, datasetUtils, isUnincorporatedPart
|
|
|
650
658
|
typeOfTrustAgreement: data.trustType && !isUnincorporatedPartnership ? t(($) => $[data.trustType], { ns: "trust" }) : void 0,
|
|
651
659
|
objectOfTrust: data.objectOfTrust,
|
|
652
660
|
[taxIdLabel]: taxInfoForCountry?.number,
|
|
653
|
-
[registrationNumberLabel]: data.registrationNumber
|
|
661
|
+
[registrationNumberLabel]: data.registrationNumber,
|
|
662
|
+
[resolveFieldMetadata(dateOfIncorporationFieldConfig[country], {}, dateOfIncorporationFieldMetadata).label ?? "dateOfIncorporation"]: data.dateOfIncorporation
|
|
654
663
|
};
|
|
655
664
|
}
|
|
656
665
|
function formatDataForSummary(data, forms, t, language, taskType) {
|
|
@@ -719,6 +728,7 @@ var trustBase = {
|
|
|
719
728
|
registrationNumberType: { rule: "registrationNumberType" },
|
|
720
729
|
vatNumber: { rule: "countryUsesVatNumber" },
|
|
721
730
|
vatNumberType: { rule: "countryUsesVatNumber" },
|
|
731
|
+
dateOfIncorporation: { rule: "requireDateOfIncorporation" },
|
|
722
732
|
operationalAddressIsSame: { rule: "REQUIRED" },
|
|
723
733
|
registrationAddressStreet: { rule: "registrationAddressStreetRequired" },
|
|
724
734
|
registrationAddressStreet2: { rule: "registrationAddressStreet2Required" },
|
|
@@ -810,6 +820,7 @@ function trustRegistrationDetailsValidators(country, trustRegistrationDetails =
|
|
|
810
820
|
...defaultTrustRegistrationDetailsValidators,
|
|
811
821
|
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
812
822
|
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
823
|
+
dateOfIncorporation: dateOfIncorporationFieldMetadata.validators,
|
|
813
824
|
taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
814
825
|
taxIdNumberType: taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
815
826
|
companyType: LegalEntityTypes.TRUST
|
|
@@ -1100,32 +1111,32 @@ var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
|
1100
1111
|
addResourceBundles(i18n, [{
|
|
1101
1112
|
ns: "trust",
|
|
1102
1113
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
1103
|
-
"../language/bg-BG.json": () => import("./bg-BG-
|
|
1104
|
-
"../language/cs-CZ.json": () => import("./cs-CZ-
|
|
1105
|
-
"../language/da-DK.json": () => import("./da-DK
|
|
1106
|
-
"../language/de-DE.json": () => import("./de-DE-
|
|
1107
|
-
"../language/el-GR.json": () => import("./el-GR-
|
|
1114
|
+
"../language/bg-BG.json": () => import("./bg-BG-DFFyUYhz.js"),
|
|
1115
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-DbxpNCVt.js"),
|
|
1116
|
+
"../language/da-DK.json": () => import("./da-DK-zLJRzcB1.js"),
|
|
1117
|
+
"../language/de-DE.json": () => import("./de-DE-BMfqDClD.js"),
|
|
1118
|
+
"../language/el-GR.json": () => import("./el-GR-RfSX8m4j.js"),
|
|
1108
1119
|
"../language/en-US.json": () => import("./en-US-CO9xzDL5.js"),
|
|
1109
|
-
"../language/es-ES.json": () => import("./es-ES-
|
|
1110
|
-
"../language/es-LA.json": () => import("./es-LA-
|
|
1111
|
-
"../language/et-EE.json": () => import("./et-EE-
|
|
1112
|
-
"../language/fi-FI.json": () => import("./fi-FI-
|
|
1113
|
-
"../language/fr-FR.json": () => import("./fr-FR-
|
|
1114
|
-
"../language/hr-HR.json": () => import("./hr-HR-
|
|
1115
|
-
"../language/hu-HU.json": () => import("./hu-HU-
|
|
1116
|
-
"../language/it-IT.json": () => import("./it-IT-
|
|
1117
|
-
"../language/ja-JP.json": () => import("./ja-JP-
|
|
1118
|
-
"../language/lt-LT.json": () => import("./lt-LT-
|
|
1119
|
-
"../language/lv-LV.json": () => import("./lv-LV-
|
|
1120
|
-
"../language/nl-NL.json": () => import("./nl-NL-
|
|
1121
|
-
"../language/no-NO.json": () => import("./no-NO-
|
|
1122
|
-
"../language/pl-PL.json": () => import("./pl-PL-
|
|
1123
|
-
"../language/pt-BR.json": () => import("./pt-BR-
|
|
1124
|
-
"../language/pt-PT.json": () => import("./pt-PT-
|
|
1125
|
-
"../language/ro-RO.json": () => import("./ro-RO-
|
|
1126
|
-
"../language/sk-SK.json": () => import("./sk-SK-
|
|
1127
|
-
"../language/sl-SI.json": () => import("./sl-SI-
|
|
1128
|
-
"../language/sv-SE.json": () => import("./sv-SE-
|
|
1120
|
+
"../language/es-ES.json": () => import("./es-ES-CYw82sbG.js"),
|
|
1121
|
+
"../language/es-LA.json": () => import("./es-LA-DDXEJd1M.js"),
|
|
1122
|
+
"../language/et-EE.json": () => import("./et-EE-BlZkCwz8.js"),
|
|
1123
|
+
"../language/fi-FI.json": () => import("./fi-FI-CNoPIGJP.js"),
|
|
1124
|
+
"../language/fr-FR.json": () => import("./fr-FR-CQZLvhS1.js"),
|
|
1125
|
+
"../language/hr-HR.json": () => import("./hr-HR-C6-nBPZJ.js"),
|
|
1126
|
+
"../language/hu-HU.json": () => import("./hu-HU-CKm1kMo5.js"),
|
|
1127
|
+
"../language/it-IT.json": () => import("./it-IT-DjUFw9e_.js"),
|
|
1128
|
+
"../language/ja-JP.json": () => import("./ja-JP-Ce_xNqZj.js"),
|
|
1129
|
+
"../language/lt-LT.json": () => import("./lt-LT-BQD7QWIk.js"),
|
|
1130
|
+
"../language/lv-LV.json": () => import("./lv-LV-DHwdYWGZ.js"),
|
|
1131
|
+
"../language/nl-NL.json": () => import("./nl-NL-Cdmgljzx.js"),
|
|
1132
|
+
"../language/no-NO.json": () => import("./no-NO-MhaaDGft.js"),
|
|
1133
|
+
"../language/pl-PL.json": () => import("./pl-PL-B0tX08_r.js"),
|
|
1134
|
+
"../language/pt-BR.json": () => import("./pt-BR-CExpeuK1.js"),
|
|
1135
|
+
"../language/pt-PT.json": () => import("./pt-PT-CedGAyU5.js"),
|
|
1136
|
+
"../language/ro-RO.json": () => import("./ro-RO-C-lRWe1h.js"),
|
|
1137
|
+
"../language/sk-SK.json": () => import("./sk-SK-D1duuBif.js"),
|
|
1138
|
+
"../language/sl-SI.json": () => import("./sl-SI-iGtJR9Tk.js"),
|
|
1139
|
+
"../language/sv-SE.json": () => import("./sv-SE-9GnBnxvb.js")
|
|
1129
1140
|
}), `../language/${lang}.json`, 3)
|
|
1130
1141
|
}]);
|
|
1131
1142
|
const capabilityProblems = useCapabilityProblems();
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
try {
|
|
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] = "4b029cd6-4f16-413c-b012-2780168fee11", e._sentryDebugIdIdentifier = "sentry-dbid-4b029cd6-4f16-413c-b012-2780168fee11");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
+
import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
10
|
+
import { C as EntityTypes } from "./processCapabilities-BfskhjUw.js";
|
|
11
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
12
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CfzojTAS.js";
|
|
13
|
+
import { t as useTrustMembers } from "./useTrustMembers-DqpnYNNj.js";
|
|
14
|
+
import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-DZQuIMNw.js";
|
|
15
|
+
import { jsx } from "preact/jsx-runtime";
|
|
16
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
17
|
+
import { useParams } from "wouter-preact";
|
|
18
|
+
//#region src/components/Business/pages/TrustMemberCompanyPage.tsx
|
|
19
|
+
function TrustMemberCompanyPage({ trustId, trustMemberCompanyId: trustMemberCompanyIdProp, newMember, onSubmit, handleHomeClick }) {
|
|
20
|
+
const routeParams = useParams();
|
|
21
|
+
const trustMemberCompanyId = trustMemberCompanyIdProp ?? routeParams.memberId;
|
|
22
|
+
const { i18n } = useTranslation();
|
|
23
|
+
const { data: trustLe } = useLegalEntity(trustId ?? skipToken);
|
|
24
|
+
const { data: trustMemberCompanyLe } = useLegalEntity(trustMemberCompanyId ?? skipToken);
|
|
25
|
+
const trustMembers = useTrustMembers();
|
|
26
|
+
const capabilityProblems = useCapabilityProblems();
|
|
27
|
+
const { data, isLoading } = useBusinessDetailsData(TaskTypes.TRUST_MEMBER_COMPANY, trustLe, trustMemberCompanyLe);
|
|
28
|
+
addResourceBundles(i18n, [{
|
|
29
|
+
ns: "business",
|
|
30
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
31
|
+
"../language/bg-BG.json": () => import("./bg-BG-DYkxVgeJ.js"),
|
|
32
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-lJQmuyHq.js"),
|
|
33
|
+
"../language/da-DK.json": () => import("./da-DK-D53M_d04.js"),
|
|
34
|
+
"../language/de-DE.json": () => import("./de-DE-qJPTCQlG.js"),
|
|
35
|
+
"../language/el-GR.json": () => import("./el-GR-Bx996PXx.js"),
|
|
36
|
+
"../language/en-US.json": () => import("./en-US-CJPD8qHc.js"),
|
|
37
|
+
"../language/es-ES.json": () => import("./es-ES-U4-lDfZq.js"),
|
|
38
|
+
"../language/es-LA.json": () => import("./es-LA-B5IRDCf_.js"),
|
|
39
|
+
"../language/et-EE.json": () => import("./et-EE-4_ZUNt3W.js"),
|
|
40
|
+
"../language/fi-FI.json": () => import("./fi-FI-D06EzKrW.js"),
|
|
41
|
+
"../language/fr-FR.json": () => import("./fr-FR-Dl4NL-Nc.js"),
|
|
42
|
+
"../language/hr-HR.json": () => import("./hr-HR-B11sggmG.js"),
|
|
43
|
+
"../language/hu-HU.json": () => import("./hu-HU-Dp6xOBN_.js"),
|
|
44
|
+
"../language/it-IT.json": () => import("./it-IT-BlaVymCj.js"),
|
|
45
|
+
"../language/ja-JP.json": () => import("./ja-JP-h3E8hgLv.js"),
|
|
46
|
+
"../language/lt-LT.json": () => import("./lt-LT-B18sQY9g.js"),
|
|
47
|
+
"../language/lv-LV.json": () => import("./lv-LV-adiXoKhv.js"),
|
|
48
|
+
"../language/nl-NL.json": () => import("./nl-NL-DOB0b0m4.js"),
|
|
49
|
+
"../language/no-NO.json": () => import("./no-NO-BG1sYkpp.js"),
|
|
50
|
+
"../language/pl-PL.json": () => import("./pl-PL-J9S3_lCf.js"),
|
|
51
|
+
"../language/pt-BR.json": () => import("./pt-BR-BYbyk6xS.js"),
|
|
52
|
+
"../language/pt-PT.json": () => import("./pt-PT-D8ldyR-j.js"),
|
|
53
|
+
"../language/ro-RO.json": () => import("./ro-RO-CnMe6Mfw.js"),
|
|
54
|
+
"../language/sk-SK.json": () => import("./sk-SK-Br1Y4_CN.js"),
|
|
55
|
+
"../language/sl-SI.json": () => import("./sl-SI-DHPadSTy.js"),
|
|
56
|
+
"../language/sv-SE.json": () => import("./sv-SE-BXrlr0X5.js")
|
|
57
|
+
}), `../language/${lang}.json`, 5)
|
|
58
|
+
}, {
|
|
59
|
+
ns: "trust",
|
|
60
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
61
|
+
"../language/bg-BG.json": () => import("./bg-BG-DYkxVgeJ.js"),
|
|
62
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-lJQmuyHq.js"),
|
|
63
|
+
"../language/da-DK.json": () => import("./da-DK-D53M_d04.js"),
|
|
64
|
+
"../language/de-DE.json": () => import("./de-DE-qJPTCQlG.js"),
|
|
65
|
+
"../language/el-GR.json": () => import("./el-GR-Bx996PXx.js"),
|
|
66
|
+
"../language/en-US.json": () => import("./en-US-CJPD8qHc.js"),
|
|
67
|
+
"../language/es-ES.json": () => import("./es-ES-U4-lDfZq.js"),
|
|
68
|
+
"../language/es-LA.json": () => import("./es-LA-B5IRDCf_.js"),
|
|
69
|
+
"../language/et-EE.json": () => import("./et-EE-4_ZUNt3W.js"),
|
|
70
|
+
"../language/fi-FI.json": () => import("./fi-FI-D06EzKrW.js"),
|
|
71
|
+
"../language/fr-FR.json": () => import("./fr-FR-Dl4NL-Nc.js"),
|
|
72
|
+
"../language/hr-HR.json": () => import("./hr-HR-B11sggmG.js"),
|
|
73
|
+
"../language/hu-HU.json": () => import("./hu-HU-Dp6xOBN_.js"),
|
|
74
|
+
"../language/it-IT.json": () => import("./it-IT-BlaVymCj.js"),
|
|
75
|
+
"../language/ja-JP.json": () => import("./ja-JP-h3E8hgLv.js"),
|
|
76
|
+
"../language/lt-LT.json": () => import("./lt-LT-B18sQY9g.js"),
|
|
77
|
+
"../language/lv-LV.json": () => import("./lv-LV-adiXoKhv.js"),
|
|
78
|
+
"../language/nl-NL.json": () => import("./nl-NL-DOB0b0m4.js"),
|
|
79
|
+
"../language/no-NO.json": () => import("./no-NO-BG1sYkpp.js"),
|
|
80
|
+
"../language/pl-PL.json": () => import("./pl-PL-J9S3_lCf.js"),
|
|
81
|
+
"../language/pt-BR.json": () => import("./pt-BR-BYbyk6xS.js"),
|
|
82
|
+
"../language/pt-PT.json": () => import("./pt-PT-D8ldyR-j.js"),
|
|
83
|
+
"../language/ro-RO.json": () => import("./ro-RO-CnMe6Mfw.js"),
|
|
84
|
+
"../language/sk-SK.json": () => import("./sk-SK-Br1Y4_CN.js"),
|
|
85
|
+
"../language/sl-SI.json": () => import("./sl-SI-DHPadSTy.js"),
|
|
86
|
+
"../language/sv-SE.json": () => import("./sv-SE-BXrlr0X5.js")
|
|
87
|
+
}), `../language/${lang}.json`, 3)
|
|
88
|
+
}]);
|
|
89
|
+
if (isLoading || !trustLe || trustMemberCompanyId && !trustMemberCompanyLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
90
|
+
const { rootLe, efpBusinessLines, documents } = data;
|
|
91
|
+
const problems = capabilityProblems && trustMemberCompanyId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustMemberCompanyId) : void 0;
|
|
92
|
+
const country = getLegalEntityCountry(trustMemberCompanyLe ?? trustLe);
|
|
93
|
+
const trustMember = newMember ?? trustMembers.find((tm) => tm.trustMemberType !== "undefinedBeneficiary" && tm.legalEntityId === trustMemberCompanyId);
|
|
94
|
+
return /* @__PURE__ */ jsx(BusinessDetailsDropin, {
|
|
95
|
+
taskType: TaskTypes.TRUST_MEMBER_COMPANY,
|
|
96
|
+
legalEntityResponse: rootLe,
|
|
97
|
+
efpBusinessLines,
|
|
98
|
+
documents,
|
|
99
|
+
associatedLegalArrangement: trustLe,
|
|
100
|
+
nestedLegalEntity: trustMemberCompanyLe,
|
|
101
|
+
nestedLegalEntityDetails: trustMember,
|
|
102
|
+
problems,
|
|
103
|
+
country,
|
|
104
|
+
onSubmit,
|
|
105
|
+
handleHomeClick
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { TrustMemberCompanyPage };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
try {
|
|
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] = "774c0630-6fba-467a-90ab-0d57b941f2d8", e._sentryDebugIdIdentifier = "sentry-dbid-774c0630-6fba-467a-90ab-0d57b941f2d8");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
+
import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
10
|
+
import { i as noop } from "./genUtils-Ce61IJs8.js";
|
|
11
|
+
import { C as EntityTypes } from "./processCapabilities-BfskhjUw.js";
|
|
12
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CfzojTAS.js";
|
|
14
|
+
import { t as IndividualDropin } from "./IndividualDropin-DrQiG_Vy.js";
|
|
15
|
+
import { jsx } from "preact/jsx-runtime";
|
|
16
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
17
|
+
import { useParams } from "wouter-preact";
|
|
18
|
+
//#region src/components/Individual/pages/TrustMemberIndividualPage.tsx
|
|
19
|
+
function TrustMemberIndividualPage({ trustId, memberId: memberIdProp, newMember, asModal = false, hideSidebar = false, isTargetLegalEntityType = false, onSubmit, handleBackClick, handleCloseClick, handleHomeClick = noop }) {
|
|
20
|
+
const routeParams = useParams();
|
|
21
|
+
const memberId = memberIdProp ?? routeParams.memberId;
|
|
22
|
+
const { data: memberLe } = useLegalEntity(memberId ?? skipToken);
|
|
23
|
+
const { data: trustLe } = useLegalEntity(trustId ?? skipToken);
|
|
24
|
+
const capabilityProblems = useCapabilityProblems();
|
|
25
|
+
const { i18n } = useTranslation();
|
|
26
|
+
addResourceBundles(i18n, [{
|
|
27
|
+
ns: "individual",
|
|
28
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
29
|
+
"../language/bg-BG.json": () => import("./bg-BG-BtgA44Ui.js"),
|
|
30
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-Ci8c58xJ.js"),
|
|
31
|
+
"../language/da-DK.json": () => import("./da-DK-C1kmOHvo.js"),
|
|
32
|
+
"../language/de-DE.json": () => import("./de-DE-qSBQE-6M.js"),
|
|
33
|
+
"../language/el-GR.json": () => import("./el-GR-CgoxpC-Q.js"),
|
|
34
|
+
"../language/en-US.instructions.json": () => import("./en-US.instructions-DfgivDPI.js"),
|
|
35
|
+
"../language/en-US.json": () => import("./en-US-C3i5Oge2.js"),
|
|
36
|
+
"../language/es-ES.json": () => import("./es-ES-DyB2KXfT.js"),
|
|
37
|
+
"../language/es-LA.json": () => import("./es-LA-ChLRkx-r.js"),
|
|
38
|
+
"../language/et-EE.json": () => import("./et-EE-DSK7kb3n.js"),
|
|
39
|
+
"../language/fi-FI.json": () => import("./fi-FI-DgMsQBRO.js"),
|
|
40
|
+
"../language/fr-FR.json": () => import("./fr-FR-BTJoQq71.js"),
|
|
41
|
+
"../language/hr-HR.json": () => import("./hr-HR-COdiWKoq.js"),
|
|
42
|
+
"../language/hu-HU.json": () => import("./hu-HU-DkSsL94T.js"),
|
|
43
|
+
"../language/it-IT.json": () => import("./it-IT-CawjvBDX.js"),
|
|
44
|
+
"../language/ja-JP.json": () => import("./ja-JP-Dpe9Odla.js"),
|
|
45
|
+
"../language/lt-LT.json": () => import("./lt-LT-Fc1lOUlz.js"),
|
|
46
|
+
"../language/lv-LV.json": () => import("./lv-LV-DctYQmfH.js"),
|
|
47
|
+
"../language/nl-NL.json": () => import("./nl-NL-BIpptPn4.js"),
|
|
48
|
+
"../language/no-NO.json": () => import("./no-NO-P5tRWhV9.js"),
|
|
49
|
+
"../language/pl-PL.json": () => import("./pl-PL-_KG-ZD1N.js"),
|
|
50
|
+
"../language/pt-BR.json": () => import("./pt-BR-fKlNUybd.js"),
|
|
51
|
+
"../language/pt-PT.json": () => import("./pt-PT-DAvsI-Tr.js"),
|
|
52
|
+
"../language/ro-RO.json": () => import("./ro-RO-CQJk7Cpo.js"),
|
|
53
|
+
"../language/sk-SK.json": () => import("./sk-SK-Bx2_85dW.js"),
|
|
54
|
+
"../language/sl-SI.json": () => import("./sl-SI-DO9c7geI.js"),
|
|
55
|
+
"../language/sv-SE.json": () => import("./sv-SE-l_UVgmVu.js")
|
|
56
|
+
}), `../language/${lang}.json`, 5)
|
|
57
|
+
}, {
|
|
58
|
+
ns: "trust",
|
|
59
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
60
|
+
"../language/bg-BG.json": () => import("./bg-BG-BtgA44Ui.js"),
|
|
61
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-Ci8c58xJ.js"),
|
|
62
|
+
"../language/da-DK.json": () => import("./da-DK-C1kmOHvo.js"),
|
|
63
|
+
"../language/de-DE.json": () => import("./de-DE-qSBQE-6M.js"),
|
|
64
|
+
"../language/el-GR.json": () => import("./el-GR-CgoxpC-Q.js"),
|
|
65
|
+
"../language/en-US.instructions.json": () => import("./en-US.instructions-DfgivDPI.js"),
|
|
66
|
+
"../language/en-US.json": () => import("./en-US-C3i5Oge2.js"),
|
|
67
|
+
"../language/es-ES.json": () => import("./es-ES-DyB2KXfT.js"),
|
|
68
|
+
"../language/es-LA.json": () => import("./es-LA-ChLRkx-r.js"),
|
|
69
|
+
"../language/et-EE.json": () => import("./et-EE-DSK7kb3n.js"),
|
|
70
|
+
"../language/fi-FI.json": () => import("./fi-FI-DgMsQBRO.js"),
|
|
71
|
+
"../language/fr-FR.json": () => import("./fr-FR-BTJoQq71.js"),
|
|
72
|
+
"../language/hr-HR.json": () => import("./hr-HR-COdiWKoq.js"),
|
|
73
|
+
"../language/hu-HU.json": () => import("./hu-HU-DkSsL94T.js"),
|
|
74
|
+
"../language/it-IT.json": () => import("./it-IT-CawjvBDX.js"),
|
|
75
|
+
"../language/ja-JP.json": () => import("./ja-JP-Dpe9Odla.js"),
|
|
76
|
+
"../language/lt-LT.json": () => import("./lt-LT-Fc1lOUlz.js"),
|
|
77
|
+
"../language/lv-LV.json": () => import("./lv-LV-DctYQmfH.js"),
|
|
78
|
+
"../language/nl-NL.json": () => import("./nl-NL-BIpptPn4.js"),
|
|
79
|
+
"../language/no-NO.json": () => import("./no-NO-P5tRWhV9.js"),
|
|
80
|
+
"../language/pl-PL.json": () => import("./pl-PL-_KG-ZD1N.js"),
|
|
81
|
+
"../language/pt-BR.json": () => import("./pt-BR-fKlNUybd.js"),
|
|
82
|
+
"../language/pt-PT.json": () => import("./pt-PT-DAvsI-Tr.js"),
|
|
83
|
+
"../language/ro-RO.json": () => import("./ro-RO-CQJk7Cpo.js"),
|
|
84
|
+
"../language/sk-SK.json": () => import("./sk-SK-Bx2_85dW.js"),
|
|
85
|
+
"../language/sl-SI.json": () => import("./sl-SI-DO9c7geI.js"),
|
|
86
|
+
"../language/sv-SE.json": () => import("./sv-SE-l_UVgmVu.js")
|
|
87
|
+
}), `../language/${lang}.json`, 3)
|
|
88
|
+
}]);
|
|
89
|
+
if (!trustLe || memberId && !memberLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
90
|
+
const country = getLegalEntityCountry(memberLe ?? trustLe);
|
|
91
|
+
const problems = capabilityProblems && memberId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, memberId) : void 0;
|
|
92
|
+
return /* @__PURE__ */ jsx(IndividualDropin, {
|
|
93
|
+
taskType: TaskTypes.TRUST_MEMBER_INDIVIDUAL,
|
|
94
|
+
taskName: "trustMemberDetails",
|
|
95
|
+
legalEntityResponse: memberLe,
|
|
96
|
+
parentLegalEntity: trustLe,
|
|
97
|
+
trustMember: newMember,
|
|
98
|
+
problems,
|
|
99
|
+
country,
|
|
100
|
+
asModal,
|
|
101
|
+
hideSidebar,
|
|
102
|
+
isTargetLegalEntityType,
|
|
103
|
+
onSubmit,
|
|
104
|
+
handleBackClick,
|
|
105
|
+
handleCloseClick,
|
|
106
|
+
handleHomeClick
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { TrustMemberIndividualPage };
|