@adyen/kyc-components 4.20.0 → 4.21.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-BX4PavSh.js +28 -0
- package/dist/{Accordion-BWdAGMRb.js → Accordion-DC7Iuj-J.js} +3 -2
- package/dist/{AccountSetupRejected-Ku1FCk8G.js → AccountSetupRejected-U97LE7iR.js} +2 -2
- package/dist/AdaptiveWorkflow-DnvzkolP.js +210 -0
- package/dist/{AdaptiveWorkflowComponent-ZC8yOYn_.js → AdaptiveWorkflowComponent-nyRU4M-H.js} +35 -34
- package/dist/{AddressField-S_TJHHgc.js → AddressField-OygGZ6XH.js} +13 -79
- package/dist/{Avatar-CeZIQS8n.js → Avatar-BKTdqNpO.js} +2 -2
- package/dist/{BusinessFinancingDropin-T0Q5IO1m.js → BusinessFinancingDropin-BGFKtVmf.js} +155 -36
- package/dist/{BusinessFinancingPage-D2CulkQb.js → BusinessFinancingPage-HggLO02u.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-BZD5POn0.js → BusinessRegistrationNumberField-CLtSzZ4H.js} +28 -133
- package/dist/BusinessRegistrationNumberFieldGroup-BfuSULya.js +172 -0
- package/dist/{BusinessTypeSelectionPage-BtJLsGtX.js → BusinessTypeSelectionPage-C9BYbNj1.js} +19 -16
- package/dist/{Button-Cm7cT6BX.js → Button-DSD_afG_.js} +4 -85
- package/dist/{Checkbox-faFUul66.js → Checkbox-B-hhlkoQ.js} +2 -2
- package/dist/{CompanyRegistrationNumberTypeSelector-v4sUJ8TM.js → CompanyRegistrationNumberTypeSelector-BlW3-gmE.js} +6 -8
- package/dist/ComponentGroup-o36ZWZoO.js +32 -0
- package/dist/{ContactDetails-CUwCotpR.js → ContactDetails-DwH0Wdi1.js} +8 -9
- package/dist/{ContextGuidance-M7lR8QJv.js → ContextGuidance-Digds0A2.js} +3 -3
- package/dist/{Currency-BOFjRr_4.js → Currency-BSsyM5Mm.js} +9 -8
- package/dist/{CustomerSupport-BE7qg8WI.js → CustomerSupport-CrNlpDnm.js} +16 -15
- package/dist/{DataConflictsModal-Ez5mMzqA.js → DataConflictsModal-CnePHHgB.js} +10 -9
- package/dist/{DebugModal-B2-a1_2A.js → DebugModal-BSNHP5Ae.js} +13 -13
- package/dist/{DecisionMakerDetails-D8vYcBse.js → DecisionMakerDetails-DwU-PnMz.js} +59 -22
- package/dist/{DecisionMakerDetailsPage-CHLINVDC.js → DecisionMakerDetailsPage-B6soHNL0.js} +35 -17
- package/dist/{DecisionMakers-Cnafi8Ul.js → DecisionMakers-Cq0TqVBQ.js} +22 -20
- package/dist/{Dropzone-D3mN45cH.js → Dropzone-JYR4c6bX.js} +9 -7
- package/dist/{EmbeddedStatus-uz3Ivsyw.js → EmbeddedStatus-CkSg9-9r.js} +5 -4
- package/dist/{EndStateLayout-BUK64Vqu.js → EndStateLayout-CarfWtTC.js} +4 -3
- package/dist/{EntityAssociation-DjEleBIE.js → EntityAssociation-DjvGgE2E.js} +7 -7
- package/dist/{ErrorPanel-Be6eGO6I.js → ErrorPanel-CMHH1nTS.js} +6 -6
- package/dist/GlobalEntryModal-CFk22iXk.js +589 -0
- package/dist/{GlobalEntryPage-3_PbpcUB.js → GlobalEntryPage-DjJZ8GP4.js} +35 -34
- package/dist/Icon-CurE93CX.js +175 -0
- package/dist/{validateExtractionResult-QkXKfGje.js → IdentityNumber-DHn--v-7.js} +7 -344
- package/dist/IdentityNumberFieldGroup-ivJ1jyGI.js +57 -0
- package/dist/IdentityScreeningWorkflow-zNOsMLhY.js +307 -0
- package/dist/{Image-8SOcICah.js → Image-D82terx4.js} +2 -2
- package/dist/{Individual.rules-Ozgltft8.js → Individual.rules-CKRy22gy.js} +9 -10
- package/dist/{IndividualDropin-DXAyTcGh.js → IndividualDropin-iGwLttHz.js} +86 -82
- package/dist/IndustryCodeFieldGroup-9CC2Ujpm.js +188 -0
- package/dist/{InputDate-DDVX2D-5.js → InputDate-9I-vTE2B.js} +2 -2
- package/dist/{InputText-Cf9ccCaj.js → InputText-Co02nT5L.js} +41 -6
- package/dist/{Introduction-ChXvkTjG.js → Introduction-BrP3b2Vs.js} +9 -8
- package/dist/{InvitedDecisionMakerComponent-BpToVKx6.js → InvitedDecisionMakerComponent-DmZh2BsQ.js} +48 -46
- package/dist/{JpAddressFields-tIf74G41.js → JpAddressFields-_PYHM7ee.js} +51 -11
- package/dist/{LegalCompanyNameField-BfkXdcjt.js → LegalCompanyNameField-C04RZp2O.js} +5 -5
- package/dist/LegalName-uERLVj_B.js +33 -0
- package/dist/{LegalRepresentativeDetailsPage-CJNdb_Yi.js → LegalRepresentativeDetailsPage-Ci3oO3ix.js} +11 -11
- package/dist/{Link-B7RA2gSt.js → Link-B-gN0d8l.js} +2 -2
- package/dist/{ListItem-Cy46BXUv.js → ListItem-BGdnopqb.js} +3 -3
- package/dist/Loader-BEpMlKm2.js +92 -0
- package/dist/{Modal-nylR9F4X.js → Modal-C6gfqa3Z.js} +3 -3
- package/dist/{Name-SuGGhRna.js → Name-PDN2ZxmV.js} +5 -5
- package/dist/{NewSummary-u_1KGI2X.js → NewSummary-BKUTkBAU.js} +10 -9
- package/dist/{PatriotActDisclosure-CudamdZG.js → PatriotActDisclosure-D6J1hjaU.js} +110 -222
- package/dist/{PayoutDetailsDropin-CGuM-jhl.js → PayoutDetailsDropin-CEbLLMkT.js} +243 -156
- package/dist/{PayoutDetailsPage-B-iD21gT.js → PayoutDetailsPage-z-U987Uw.js} +9 -9
- package/dist/{CountryField-BC0wDSlI.js → RadioGroup-B_lHSMq9.js} +168 -13
- package/dist/{Review-C18hR0ho.js → Review-DRxhY1FP.js} +8 -8
- package/dist/RootBusinessDetailsPage-Dgezqj6k.js +68 -0
- package/dist/{RootBusinessLinesPage-Cwqxq4ct.js → RootBusinessLinesPage-DHL_atq0.js} +34 -30
- package/dist/{RootIndividualDetailsPage-C1Ulh9yT.js → RootIndividualDetailsPage-DmF9Av8J.js} +12 -12
- package/dist/{Select-Dmn4bMEK.js → Select-PqhoL_oQ.js} +11 -8
- package/dist/{useSettingsContext-Bpf4UqRT.js → SettingsContext-Dl-9WWCI.js} +2 -8
- package/dist/{SignPCIComponent-DJYIl0JN.js → SignPCIComponent-BT1s1NJx.js} +44 -43
- package/dist/{SingpassSelection-nwwRlowI.js → SingpassSelection-B91AO2sW.js} +7 -6
- package/dist/SoleProprietorshipPage-Cy7D2N5d.js +70 -0
- package/dist/{SourceOfFundsPage-_zuCmR_g.js → SourceOfFundsPage-Co81WwYJ.js} +40 -38
- package/dist/SourceOfFundsWorkflow-xv-wmYjn.js +28 -0
- package/dist/{utils-eFdC-IQw.js → StateField-uZDljrxJ.js} +82 -8
- package/dist/Step-cy9IjT4h.js +195 -0
- package/dist/{StructuredList-DpzDjXNV.js → StructuredList-BKWmLAYe.js} +6 -5
- package/dist/Task-B05SmIvp.js +129 -0
- package/dist/TaskGroup-CCneo6Tt.js +46 -0
- package/dist/{TaskListItem-CKO2Us74.js → TaskListItem-DRUWL-3r.js} +12 -58
- package/dist/TaskStepperContextProvider-DuM9tlet.js +81 -0
- package/dist/{TaskVerificationStatus-DMj8rsZ_.js → TaskVerificationStatus-DCfFNRJc.js} +4 -3
- package/dist/TaxInformationFieldGroup-pBDZmrIx.js +288 -0
- package/dist/{TaxReportingDropin-DhSxTmTT.js → TaxReportingDropin-DLiaJcDy.js} +23 -21
- package/dist/TaxReportingWorkflow-BD7DTvXl.js +28 -0
- package/dist/{TermsOfServiceManagement-CeJZwKwl.js → TermsOfServiceManagement-dIJFQSNn.js} +49 -47
- package/dist/{TextArea-CoS-i-FF.js → TextArea-E1LIeudB.js} +7 -13
- package/dist/{TrustDetailsPage-BwrCUski.js → TrustDetailsPage-CVIKeFQW.js} +433 -442
- package/dist/TrustMemberCompanyPage-B5F1D3QE.js +109 -0
- package/dist/{TrustMemberIndividualPage-B3_G3BPJ.js → TrustMemberIndividualPage-BovRg-Mq.js} +12 -12
- package/dist/{TrustMemberRoleAndTypePage-CVvfVi_N.js → TrustMemberRoleAndTypePage-CofPOUX5.js} +48 -47
- package/dist/{TrustMembersOverview-CUHU8cFd.js → TrustMembersOverview-d_SZlrW5.js} +42 -40
- package/dist/Typography-CAc_f5Iq.js +80 -0
- package/dist/UboTaskItem-CG07K7K_.js +115 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-CYNhHZk8.js → UnincorporatedPartnershipIndividualPage-kobyT_Sc.js} +11 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BC9dJEH3.js → UnincorporatedPartnershipMemberCompanyPage-MvFM-iYR.js} +36 -36
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BcNgMOlJ.js → UnincorporatedPartnershipMemberRoleAndTypePage-DWu78HTQ.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-CSTERzB3.js → UnincorporatedPartnershipMembersOverview-B-WsX9qd.js} +10 -9
- package/dist/{VerificationErrorAlert-Ci453mfn.js → VerificationErrorAlert-D6Fwj_k3.js} +5 -5
- package/dist/Workflow-CZMd0lUc.js +228 -0
- package/dist/{accountHolderUtils-zbNnEvvh.js → accountHolderUtils-Bf4y2QFq.js} +3 -3
- package/dist/adyen-business-financing.js +35 -35
- package/dist/adyen-individual-configuration.js +37 -37
- package/dist/adyen-individual-status.js +34 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +67 -63
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +44 -41
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{utils-Be9xux9M.js → bafinUtils-CT-a64QP.js} +684 -167
- package/dist/{bg-BG-qQc6pN4K.js → bg-BG-BeFIiwVZ.js} +3 -1
- package/dist/bg-BG-CXqERnFH.js +7 -0
- package/dist/bg-BG-D4mSRREu.js +7 -0
- package/dist/{bg-BG-Smu9r9Kp.js → bg-BG-DpSUitm0.js} +12 -2
- package/dist/{constants-CgndY-Nk.js → constants-B8ghpskV.js} +5 -5
- package/dist/{countries-CPj8hkLs.js → countries-BE4iGVAo.js} +1 -1
- package/dist/{country-IYuKDSdC.js → country-DkgapJ4w.js} +2 -2
- package/dist/cs-CZ-C_VaBRMS.js +23 -0
- package/dist/cs-CZ-DAXMHrMi.js +7 -0
- package/dist/{cs-CZ-Jsmhr_B3.js → cs-CZ-DHfA1xjQ.js} +3 -1
- package/dist/cs-CZ-DySBJFlc.js +7 -0
- package/dist/{da-DK-CXZXQspY.js → da-DK--DlccBc0.js} +3 -1
- package/dist/da-DK-BVaEiAWd.js +7 -0
- package/dist/da-DK-BfaKncp5.js +23 -0
- package/dist/da-DK-BuvKW6Sq.js +7 -0
- package/dist/de-DE-BQaqplTp.js +7 -0
- package/dist/{de-DE-BRJ0jBty.js → de-DE-B_iHAkLT.js} +3 -1
- package/dist/de-DE-BqujMxXu.js +7 -0
- package/dist/de-DE-GUfA18ps.js +23 -0
- package/dist/{decisionMaker-Dt53wKqO.js → decisionMaker-M0Tm92JR.js} +1 -1
- package/dist/{decisionMakerRoles-CTy0faoW.js → decisionMakerRoles-DbKnutwk.js} +3 -3
- package/dist/el-GR-B1NjHThy.js +7 -0
- package/dist/el-GR-C6jyW53I.js +7 -0
- package/dist/{el-GR-DEBvBgI-.js → el-GR-CJqHd-CD.js} +12 -2
- package/dist/{el-GR-BMGYrO4V.js → el-GR-D09thseu.js} +3 -1
- package/dist/en-US-C3i5Oge2.js +7 -0
- package/dist/en-US-CJPD8qHc.js +7 -0
- package/dist/{en-US-BFM81i9K.js → en-US-CO9xzDL5.js} +1 -4
- package/dist/en-US-D4NrsDmW.js +7 -0
- package/dist/{en-US.instructions-pRLq5gXB.js → en-US.instructions-CqF1qVJV.js} +2 -1
- package/dist/{entityAssociationUtil-DLXInibJ.js → entityAssociationUtil-CLBR9osP.js} +1 -1
- package/dist/{error-Dw40w6WM.js → error-DIUYkZG-.js} +3 -3
- package/dist/es-ES-BM5RTwb7.js +7 -0
- package/dist/{es-ES-pt4yy_U2.js → es-ES-Bpxn6XGC.js} +3 -1
- package/dist/es-ES-C64v4NJD.js +7 -0
- package/dist/es-ES-IobfbI71.js +23 -0
- package/dist/es-LA--YYwwbVo.js +23 -0
- package/dist/es-LA-B7pY2dp1.js +7 -0
- package/dist/es-LA-CcMAcJ7u.js +7 -0
- package/dist/{es-LA-CGrMi4rR.js → es-LA-CjxlB1WZ.js} +3 -1
- package/dist/et-EE-DqYCOl2Y.js +23 -0
- package/dist/{et-EE-dDMeDiTJ.js → et-EE-Dtc7YYb4.js} +3 -1
- package/dist/{et-EE-BGpsJPjk.js → et-EE-FtKFvr3u.js} +2 -2
- package/dist/{et-EE-OAYKzRjG.js → et-EE-wDQx9HoZ.js} +2 -2
- package/dist/{fi-FI-iRb7nS7X.js → fi-FI-DBhYlO4B.js} +3 -1
- package/dist/{fi-FI-BTG87BwH.js → fi-FI-DSCFTLoG.js} +12 -2
- package/dist/fi-FI-KMP96Qxc.js +7 -0
- package/dist/fi-FI-SFw2grVp.js +7 -0
- package/dist/{MaskedInput-DhHmuLSN.js → form-rules-DCZ-uyGo.js} +378 -14
- package/dist/formHook-Dgi2CgbT.js +24 -0
- package/dist/{formatValidationError-XKzTY3nX.js → formatValidationError-HjSxukRu.js} +2 -2
- package/dist/fr-FR-C8IPWMDL.js +7 -0
- package/dist/fr-FR-Dsh0Vb20.js +7 -0
- package/dist/{fr-FR-DUrcyeOg.js → fr-FR-N8UDU_0Y.js} +3 -1
- package/dist/fr-FR-ZWnkRO7z.js +23 -0
- package/dist/{AnalyticsContext-BnRQ9H1u.js → genUtils-Ce61IJs8.js} +2 -17
- package/dist/{getLegalEntityCountry-BHh7Ux8v.js → getLegalEntityCountry-CNE5uei8.js} +1 -1
- package/dist/{getName-C5jqdkJg.js → getName-s7qmFean.js} +2 -2
- package/dist/{getProblemsForEntity-DStlTvE-.js → getProblemsForEntity-CTxd78-9.js} +4 -4
- package/dist/{getTrustedDecisionMakers-CAbhvydj.js → getTrustedDecisionMakers-DWVtW7JE.js} +2 -2
- package/dist/hr-HR-2a3ywU0e.js +23 -0
- package/dist/hr-HR-COvc9TZy.js +7 -0
- package/dist/hr-HR-Cqgf9B0v.js +7 -0
- package/dist/{hr-HR-LnDb18bf.js → hr-HR-GLRwxTIZ.js} +3 -1
- package/dist/{http-D6AdUBhO.js → http-DsJtugN1.js} +2 -2
- package/dist/hu-HU-BOXBLK1a.js +23 -0
- package/dist/{hu-HU-VLUIAFMp.js → hu-HU-DIjDe5aa.js} +2 -2
- package/dist/{hu-HU-D9Avt-9f.js → hu-HU-DyM1X3r6.js} +2 -2
- package/dist/{hu-HU-Cc7wqn6A.js → hu-HU-s1MKqwI4.js} +3 -1
- package/dist/{isEmpty-MyMko24J.js → isEmpty-DD8Insy0.js} +2 -2
- package/dist/{it-IT-BPA_Upt_.js → it-IT-2reNk09A.js} +3 -1
- package/dist/it-IT-BKTDLRBT.js +7 -0
- package/dist/it-IT-Dj2NtH7G.js +23 -0
- package/dist/it-IT-xXO07yyz.js +7 -0
- package/dist/{ja-JP-CYb1SAoz.js → ja-JP-Bf97gKqg.js} +3 -1
- package/dist/ja-JP-BhHK_ru2.js +7 -0
- package/dist/ja-JP-DbLRpEVj.js +7 -0
- package/dist/{ja-JP-Yi2wExJE.js → ja-JP-lXTbRXBb.js} +12 -2
- package/dist/{localizeDateString-D-MlYN4V.js → localizeDateString-Dxlqr4rL.js} +2 -2
- package/dist/logger-Z8AeTE4x.js +29 -0
- package/dist/{lt-LT-B9Nm7OZQ.js → lt-LT-BUgsY7cD.js} +3 -1
- package/dist/lt-LT-Be3q6tyu.js +7 -0
- package/dist/lt-LT-Btr5el2q.js +7 -0
- package/dist/lt-LT-COUN4qC5.js +23 -0
- package/dist/lv-LV-8wOWTo3r.js +7 -0
- package/dist/{lv-LV-DkjsE74u.js → lv-LV-BpniO6xp.js} +3 -1
- package/dist/lv-LV-DCeyOqHY.js +7 -0
- package/dist/lv-LV-DKbvF9t_.js +23 -0
- package/dist/{mapExistingFile-LvvzPjnk.js → mapExistingFile-R6-FnjjY.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DzLVWIs7.js → mapJpAddressSchemaToAddressLocalizations-CnoGHZz_.js} +3 -3
- package/dist/{mapLegalEntityToIndividualSchema-DdNuOsAz.js → mapLegalEntityToIndividualSchema-C5lQR5IO.js} +10 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js → mapTransferInstrumentToPayoutAccount-D-RdVquH.js} +3 -3
- package/dist/nl-NL-CdHkQcOS.js +7 -0
- package/dist/nl-NL-CtK4OR3t.js +23 -0
- package/dist/nl-NL-Dyb3tkBi.js +7 -0
- package/dist/{nl-NL-BtdPxlFm.js → nl-NL-_B3Ey_x1.js} +3 -1
- package/dist/no-NO-B-xCUkf4.js +7 -0
- package/dist/no-NO-CxZumo2p.js +23 -0
- package/dist/{no-NO-BIhMgC99.js → no-NO-CytzrDfA.js} +3 -1
- package/dist/no-NO-DXDddmYv.js +7 -0
- package/dist/pl-PL-CBwRmIu5.js +7 -0
- package/dist/pl-PL-Cc09pXO8.js +7 -0
- package/dist/pl-PL-Csv1Lg5y.js +23 -0
- package/dist/{pl-PL-BT6NmGgO.js → pl-PL-DLBeIbY5.js} +3 -1
- package/dist/{processCapabilities-BSpmJOEd.js → processCapabilities-uXoRmB5x.js} +2 -2
- package/dist/{processValidationErrors-DgBZ7oLn.js → processValidationErrors-Cm3cBtN7.js} +3 -3
- package/dist/{pt-BR-B0SUw4uu.js → pt-BR-Cf5Jif3w.js} +3 -1
- package/dist/pt-BR-DA4PVtVa2.js +7 -0
- package/dist/pt-BR-IBsCApUj.js +23 -0
- package/dist/pt-BR-hMhyqixD.js +7 -0
- package/dist/pt-PT-CYKk0WDI.js +23 -0
- package/dist/{pt-PT-KikTTc5A.js → pt-PT-Cg7oMqTO.js} +3 -1
- package/dist/pt-PT-D2qX_lOd.js +7 -0
- package/dist/pt-PT-QU0CQs-d.js +7 -0
- package/dist/{resolveEnvironment-I0NAzeCT.js → resolveEnvironment-wbFNXSP-.js} +68 -46
- package/dist/ro-RO-23qEGblz.js +23 -0
- package/dist/ro-RO-CQjOM8e-.js +7 -0
- package/dist/ro-RO-DNye-gMC.js +7 -0
- package/dist/{ro-RO-DajmyI4j.js → ro-RO-UHWXt9rv.js} +3 -1
- package/dist/sk-SK-2jlbtz2r.js +7 -0
- package/dist/{sk-SK-DJWcs0qJ.js → sk-SK-BQHhBpDH.js} +3 -1
- package/dist/sk-SK-CwbBfCsU.js +7 -0
- package/dist/sk-SK-D8j8B4ng.js +23 -0
- package/dist/sl-SI-333ryFnM.js +23 -0
- package/dist/sl-SI-9XdXVgB8.js +7 -0
- package/dist/{sl-SI-C_QeUL6t.js → sl-SI-CTrggdef.js} +3 -1
- package/dist/sl-SI-Cyx0QtxG.js +7 -0
- package/dist/style.css +693 -672
- package/dist/styles-DYaAeu4q.js +693 -672
- package/dist/{sv-SE-D3MOTV-T.js → sv-SE-Bk55FXGN.js} +3 -1
- package/dist/sv-SE-CqhSdYBe.js +7 -0
- package/dist/sv-SE-CwsP7bTA.js +23 -0
- package/dist/sv-SE-kbf3zbjX.js +7 -0
- package/dist/{translation-DH4IlMCP.js → translation-BOm4lmPx.js} +3 -271
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +5 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +32 -39
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/{useCustomerDataV2.d.ts → useCustomerData.d.ts} +4 -9
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow/IdentityScreening.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/{IdentityScreeningWorkflow.d.ts → IdentityScreeningWorkflow/IdentityScreeningWorkflow.d.ts} +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowEndState → Layout/Workflow/WorkflowEndState}/WorkflowEndState.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowHeading → Layout/Workflow/WorkflowHeading}/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +4 -5
- package/dist/types/adaptiveWorkflow/components/types.d.ts +4 -108
- package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/formHook.d.ts +2 -2
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +2 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +0 -17
- package/dist/types/components/Business/utils/utils.d.ts +0 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +0 -22
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +4 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +8 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +23 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +6 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +3 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +4 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +7 -2
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +1 -0
- package/dist/types/components/Shared/VerifiedWith/VerifiedWith.d.ts +7 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/constants.d.ts +2 -0
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +13 -0
- package/dist/types/components/Trust/forms/Trust/form-ids.d.ts +2 -0
- package/dist/types/components/Trust/{tasks/TrustDropin/Trust.d.ts → forms/Trust/forms.d.ts} +3 -4
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -20
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +2 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +3 -3
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +15 -0
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +19 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BLWT7WnU.js → types-Ai_80DXu.js} +1 -1
- package/dist/{types-B4LsyK73.js → types-BeveNAZK.js} +1 -1
- package/dist/{types-Bm4RGrSI.js → types-CdxNdaM6.js} +1 -1
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +28 -0
- package/dist/{useAssociatedLegalEntity-CzQlHWXy.js → useAssociatedLegalEntity-BdcoiUby.js} +3 -3
- package/dist/{useBusinessDetailsData-D2SKV7CO.js → useBusinessDetailsData-D6CY5gWd.js} +93 -186
- package/dist/{useBusinessLines-D-rc-Z6G.js → useBusinessLines-BhSN6qCH.js} +2 -2
- package/dist/{useCanSeeIntroduction-DGtlX3lt.js → useCanSeeIntroduction-Ci3FC4DJ.js} +4 -5
- package/dist/{useCreateLegalEntity-Ctdmk3Ky.js → useCreateLegalEntity-CYZd_62a.js} +2 -2
- package/dist/{useDataMissingRemediations-DNZ_UDbI.js → useDataMissingRemediations-Cd-jucOu.js} +3 -3
- package/dist/{useForm-T9qxtTlE.js → useForm-D9htlwjI.js} +5 -5
- package/dist/useHideTaskStepper-MdPt1zI8.js +25 -0
- package/dist/{useId-InBEunao.js → useId-zuKUQ8ly.js} +4 -4
- package/dist/useIndustryCodes-uAj90IyS.js +32 -0
- package/dist/{useLegalEntity-DR51Q4mE.js → useLegalEntity-QQXN6YOm.js} +2 -2
- package/dist/{useNavigate-BT8Z1amQ.js → useNavigate-BPlIHbOr.js} +33 -33
- package/dist/{useOnboardingStatus-op5TyMUR.js → useOnboardingStatus-CsGUjkm-.js} +2 -2
- package/dist/{usePciQuestionnaireList-BZsgbrTy.js → usePciQuestionnaireList-CFNJD8pS.js} +2 -2
- package/dist/{useSalesChannels-Mi6DmHab.js → useSalesChannels-CSp1PYlL.js} +5 -5
- package/dist/{useScenarios-Bne3C0PV.js → useScenarios-CGcmXgJv.js} +3 -3
- package/dist/{useTaskLandedEvent-C7fcguXK.js → useTaskLandedEvent-BCvoFRym.js} +2 -2
- package/dist/{useTaskStatus-Be6XyW54.js → useTaskStatus-CgrhdaE_.js} +2 -2
- package/dist/useTaskStepperContext-BIEhTt1x.js +15 -0
- package/dist/{useTermsOfServiceStatus-D0NHUKl_.js → useTermsOfServiceStatus-DbJDklA2.js} +2 -2
- package/dist/{useTrustMembers-B0Rg3wyX.js → useTrustMembers-BR2VfPMj.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-C5CNWe_U.js → useUnincorporatedPartnershipMembers-00l8eNLk.js} +5 -5
- package/dist/{useUpdateBusinessLines-D6D9DAn1.js → useUpdateBusinessLines-DCKYTzxd.js} +4 -29
- package/dist/{useUpdateLegalEntity-DtWHsFZ9.js → useUpdateLegalEntity-B6oM8kXX.js} +3 -3
- package/dist/{utils-BKAldHdP.js → utils-2s4JuDg2.js} +8 -8
- package/dist/{utils-DwujAUJC.js → utils-Br7Ah3uy.js} +1 -1
- package/dist/utils-CFaGY5aD.js +52 -0
- package/dist/{validate-DRp09YPF.js → validate-B7VTIiia.js} +1 -1
- package/dist/{validate-BNu91k9j.js → validate-D3UP_q_2.js} +10 -6
- package/dist/validate-Pfp0KXdh.js +125 -0
- package/dist/{validate-BtvWBgdt.js → validate-_NwYQ8tj.js} +4 -4
- package/dist/validateExtractionResult-BnSV5Z6F.js +343 -0
- package/dist/{validationError-D5iB4HOa.js → validationError-BgIcYxoa.js} +2 -2
- package/package.json +2 -2
- package/dist/AdaptiveWorkflow-DGwymf21.js +0 -5112
- package/dist/Address-DmDfexg6.js +0 -133
- package/dist/GlobalEntryModal-D6dN9IAJ.js +0 -353
- package/dist/JpAddress-DOw7YLKt.js +0 -284
- package/dist/JpAddress.module-OYxAFctC.js +0 -48
- package/dist/RadioGroup-C4csROhR.js +0 -84
- package/dist/RootBusinessDetailsPage-CFdd54bg.js +0 -68
- package/dist/SoleProprietorshipPage-C8FIHuAF.js +0 -70
- package/dist/TrustMemberCompanyPage-Da8JTcd4.js +0 -109
- package/dist/bafinUtils-9rBblM1a.js +0 -276
- package/dist/bg-BG-BkIvSbsH.js +0 -7
- package/dist/bg-BG-Bmveyt6S.js +0 -7
- package/dist/cs-CZ-BQ5B0-Kt.js +0 -13
- package/dist/cs-CZ-CPvgcrDs.js +0 -7
- package/dist/cs-CZ-D5CQd_YI.js +0 -7
- package/dist/da-DK-Bl0-8FN4.js +0 -7
- package/dist/da-DK-CXAIXO3c.js +0 -13
- package/dist/da-DK-D5969QKP.js +0 -7
- package/dist/de-DE-DFQGGPCj.js +0 -13
- package/dist/de-DE-Hah2EvAY.js +0 -7
- package/dist/de-DE-uDUBu-3n.js +0 -7
- package/dist/debugStore-DpSgCNGn.js +0 -40
- package/dist/el-GR-C9KGlGa7.js +0 -7
- package/dist/el-GR-DWh7gn7M.js +0 -7
- package/dist/en-US-DqhKW1eC.js +0 -7
- package/dist/en-US-MqobYcqc.js +0 -7
- package/dist/en-US-X8pjkwa3.js +0 -7
- package/dist/es-ES-C7XCTACS.js +0 -7
- package/dist/es-ES-DSwi-qfd.js +0 -7
- package/dist/es-ES-_qbfha1o.js +0 -13
- package/dist/es-LA-0IrX8yr2.js +0 -7
- package/dist/es-LA-1H8dAUVR.js +0 -7
- package/dist/es-LA-DF0v3VMe.js +0 -13
- package/dist/et-EE-evCiUrFW.js +0 -13
- package/dist/fi-FI-BdrXeX9d.js +0 -7
- package/dist/fi-FI-Cdof5NRG.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/form-rules-DV3hxYqZ.js +0 -359
- package/dist/fr-FR-DIiBHkhs.js +0 -13
- package/dist/fr-FR-NOULV1vy.js +0 -7
- package/dist/fr-FR-hleHEr-Y.js +0 -7
- package/dist/hr-HR--ti3n_XO.js +0 -7
- package/dist/hr-HR-2h3d5-q3.js +0 -7
- package/dist/hr-HR-DofgeWWO.js +0 -13
- package/dist/hu-HU-FdLZGnBz.js +0 -13
- package/dist/it-IT-CWIAGNlE.js +0 -7
- package/dist/it-IT-CXgZZgyU.js +0 -13
- package/dist/it-IT-Dq5z7p1-.js +0 -7
- package/dist/ja-JP-C1c2UPpy.js +0 -7
- package/dist/ja-JP-Dyhw0Ycj.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/lt-LT-BMI4JzrS.js +0 -7
- package/dist/lt-LT-BZ6seLuB.js +0 -13
- package/dist/lt-LT-C62dFtWW.js +0 -7
- package/dist/lv-LV-CMYrAWqu.js +0 -13
- package/dist/lv-LV-LkNZQ__4.js +0 -7
- package/dist/lv-LV-W0I-UUyj.js +0 -7
- package/dist/nl-NL-C9HoBicG.js +0 -7
- package/dist/nl-NL-CC2r7Ldv.js +0 -7
- package/dist/nl-NL-CiH1raQa.js +0 -13
- package/dist/no-NO-Bo9rlROU.js +0 -7
- package/dist/no-NO-Ce2vzrp7.js +0 -13
- package/dist/no-NO-V7_rz3uN.js +0 -7
- package/dist/patternValidators-C8cRrD-t.js +0 -73
- package/dist/pl-PL-2QyKX67Y.js +0 -7
- package/dist/pl-PL-STp7eeFE.js +0 -7
- package/dist/pl-PL-aErZF5Xz.js +0 -13
- package/dist/pt-BR-CFGpH3BW.js +0 -7
- package/dist/pt-BR-D08Fo1qY.js +0 -7
- package/dist/pt-BR-hRRebYjo.js +0 -13
- package/dist/pt-PT-BAQWYDe6.js +0 -7
- package/dist/pt-PT-BHR4CEnv.js +0 -7
- package/dist/pt-PT-UAIvemf-.js +0 -13
- package/dist/ro-RO-BJeKitCz.js +0 -13
- package/dist/ro-RO-ni-ZNqXU.js +0 -7
- package/dist/ro-RO-wG0rfL5w.js +0 -7
- package/dist/sk-SK-DJinBnS1.js +0 -7
- package/dist/sk-SK-DQAGAOJW.js +0 -7
- package/dist/sk-SK-ztSYyXUE.js +0 -13
- package/dist/sl-SI-B-MLX0nT.js +0 -7
- package/dist/sl-SI-BY4TzP-F.js +0 -13
- package/dist/sl-SI-DUaLO_J7.js +0 -7
- package/dist/sv-SE-5uxyEq2a.js +0 -7
- package/dist/sv-SE-CNQCI2nX.js +0 -7
- package/dist/sv-SE-CrUbxniG.js +0 -13
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +0 -46
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/components/DynamicForm/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/DynamicForm/useCustomerData.d.ts +0 -25
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +0 -5
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +0 -18
- package/dist/types/adaptiveWorkflow/components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxReportingWorkflow/TaxReportingWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +0 -34
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +0 -16
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +0 -7
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +0 -7
- package/dist/uppercase-DvjwUM0n.js +0 -7
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContextProvider.d.ts +0 -0
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/useWorkflowContext.d.ts +0 -0
|
@@ -1,45 +1,44 @@
|
|
|
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] = "4e549bff-4d32-4c57-8532-245db5e913cb", e._sentryDebugIdIdentifier = "sentry-dbid-4e549bff-4d32-4c57-8532-245db5e913cb");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { $ as hasRepeatedCharacters, A as _rolldown_dynamic_import_helper_default,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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, h as getCountrySpecificTrustTypeOptions, it as isInvalidName, j as useToggleContext, k as Header, ot as isValidMinLength, st as matchesRegex, x as Alert, z as EMOJI_REGEX } from "./resolveEnvironment-wbFNXSP-.js";
|
|
7
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
9
|
+
import { s as useApiContext } from "./http-DsJtugN1.js";
|
|
10
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
10
11
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
|
-
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-
|
|
12
|
-
import {
|
|
12
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
13
|
+
import { a as objectsDeepEqual, r as drop } from "./genUtils-Ce61IJs8.js";
|
|
13
14
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
14
|
-
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-uXoRmB5x.js";
|
|
15
16
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
|
-
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
17
|
+
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
|
|
18
|
+
import { t as InputText } from "./InputText-Co02nT5L.js";
|
|
19
|
+
import { g as getPropsFromConfigurations, h as composePerScenarioFormConfigurations, m as augmentWithCountryConfigs, t as createFormRules } from "./form-rules-DCZ-uyGo.js";
|
|
20
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BdcoiUby.js";
|
|
21
|
+
import { r as useToastContext } from "./useId-zuKUQ8ly.js";
|
|
22
|
+
import { F as exemptedFromTaxDefaultFieldMetadata, L as taxInformationDefaultFieldConfig, P as exemptedFromTaxDefaultFieldConfig, R as taxInformationDefaultFieldMetadata, T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, _ as taxIdNumberOptions, l as TAX_INFORMATION_FIELD, u as TaxInformationField } from "./bafinUtils-CT-a64QP.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CTxd78-9.js";
|
|
24
|
+
import { r as Field, t as Select } from "./Select-PqhoL_oQ.js";
|
|
25
|
+
import { A as createFormUtils, N as FormContextProvider, _ as useMultiForm, b as useFormComposer, d as CountryField, f as useFormContext, h as FormFlow, j as mergeFieldMetadataIntoProps, l as resolveFieldMetadata, m as getRequiredForms, p as addValidityToForms, s as validateNotEmptyOnBlur, u as COUNTRY_FIELD } from "./RadioGroup-B_lHSMq9.js";
|
|
26
|
+
import { t as ErrorPanel } from "./ErrorPanel-CMHH1nTS.js";
|
|
27
|
+
import { a as getAddressSchemaForCountry, f as COUNTRIES_WITH_STATES_DATASET, l as mapAddressLabelsNewSummary } from "./StateField-uZDljrxJ.js";
|
|
24
28
|
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
25
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
26
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
27
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
28
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { a as createDocumentRequest, o as documentApiUtils, s as getDocument } from "./validate-BNu91k9j.js";
|
|
29
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CYZd_62a.js";
|
|
30
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-B6oM8kXX.js";
|
|
31
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-R6-FnjjY.js";
|
|
32
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BCvoFRym.js";
|
|
33
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-Cm3cBtN7.js";
|
|
34
|
+
import { a as createDocumentRequest, o as documentApiUtils, s as getDocument } from "./validate-D3UP_q_2.js";
|
|
32
35
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
33
|
-
import {
|
|
34
|
-
import { a as isValidationError } from "./validationError-
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as NewSummary } from "./NewSummary-u_1KGI2X.js";
|
|
40
|
-
import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-v4sUJ8TM.js";
|
|
41
|
-
import { _ as DBA_NAME_FIELD, a as VatNumberField, c as defaultFieldMetadata, d as RegistrationAndOperationalAddressFields, g as DBANameField, h as doingBusinessAsFieldMetadata, i as VAT_NUMBER_FIELD, m as doingBusinessAsAbsentFieldMetadata, n as BusinessRegistrationNumberField, o as getDefaultVatNumberType, p as nestAddressSchema, r as MemoizedConstitutionalDocument, s as defaultFieldConfig, t as BUSINESS_REGISTRATION_NUMBER_FIELD, u as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS } from "./BusinessRegistrationNumberField-BZD5POn0.js";
|
|
42
|
-
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-Bm4RGrSI.js";
|
|
36
|
+
import { s as nestAddressSchema, t as PatriotActDisclosure, u as getFieldsWithExistingData } from "./PatriotActDisclosure-D6J1hjaU.js";
|
|
37
|
+
import { a as isValidationError } from "./validationError-BgIcYxoa.js";
|
|
38
|
+
import { t as NewSummary } from "./NewSummary-BKUTkBAU.js";
|
|
39
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-BlW3-gmE.js";
|
|
40
|
+
import { a as VatNumberField, c as defaultFieldMetadata, d as RegistrationAndOperationalAddressFields, f as doingBusinessAsAbsentFieldMetadata, h as DBA_NAME_FIELD, i as VAT_NUMBER_FIELD, m as DBANameField, n as BusinessRegistrationNumberField, o as getDefaultVatNumberType, p as doingBusinessAsFieldMetadata, r as MemoizedConstitutionalDocument, s as defaultFieldConfig, t as BUSINESS_REGISTRATION_NUMBER_FIELD, u as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS } from "./BusinessRegistrationNumberField-CLtSzZ4H.js";
|
|
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";
|
|
43
42
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
44
43
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
45
44
|
import { skipToken } from "@tanstack/preact-query";
|
|
@@ -130,298 +129,8 @@ var mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled, existin
|
|
|
130
129
|
return requestObj;
|
|
131
130
|
};
|
|
132
131
|
//#endregion
|
|
133
|
-
//#region src/components/Trust/forms/Trust/rules.ts
|
|
134
|
-
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
135
|
-
var rules = ({ data, country, taskType }) => {
|
|
136
|
-
const addressFieldRule = (field, isOperational) => {
|
|
137
|
-
if (isOperational && data.trustRegistrationAddress?.operationalAddressIsSame) return void 0;
|
|
138
|
-
if (field === "country") return "REQUIRED";
|
|
139
|
-
if (!getAddressSchemaForCountry(country).includes(field)) return void 0;
|
|
140
|
-
if (field === "street2") return "OPTIONAL";
|
|
141
|
-
if (field === "stateOrProvince") return COUNTRIES_WITH_STATES_DATASET.includes(country) ? "REQUIRED" : void 0;
|
|
142
|
-
return "REQUIRED";
|
|
143
|
-
};
|
|
144
|
-
return createFormRules({
|
|
145
|
-
countryUsesTaxId: () => {
|
|
146
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
147
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) return "REQUIRED";
|
|
148
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
149
|
-
}
|
|
150
|
-
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "REQUIRED";
|
|
151
|
-
},
|
|
152
|
-
countryRequiresRegistrationNumberForTrust: () => {
|
|
153
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
154
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "REQUIRED";
|
|
155
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
156
|
-
}
|
|
157
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "REQUIRED";
|
|
158
|
-
},
|
|
159
|
-
registrationNumberType: () => {
|
|
160
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
161
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "OPTIONAL";
|
|
162
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
163
|
-
}
|
|
164
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
165
|
-
},
|
|
166
|
-
countryUsesVatNumber: () => {
|
|
167
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
168
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
trustTypeHasDescription: () => {
|
|
172
|
-
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") return "REQUIRED";
|
|
173
|
-
},
|
|
174
|
-
requireDoingBusinessAsName: () => {
|
|
175
|
-
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
176
|
-
},
|
|
177
|
-
requiresTrustType: () => {
|
|
178
|
-
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
179
|
-
},
|
|
180
|
-
registrationAddressStreetRequired: () => addressFieldRule("street", false),
|
|
181
|
-
registrationAddressStreet2Required: () => addressFieldRule("street2", false),
|
|
182
|
-
registrationAddressCityRequired: () => addressFieldRule("city", false),
|
|
183
|
-
registrationAddressPostalCodeRequired: () => addressFieldRule("postalCode", false),
|
|
184
|
-
registrationAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", false),
|
|
185
|
-
registrationAddressCountryRequired: () => addressFieldRule("country", false),
|
|
186
|
-
operationalAddressStreetRequired: () => addressFieldRule("street", true),
|
|
187
|
-
operationalAddressStreet2Required: () => addressFieldRule("street2", true),
|
|
188
|
-
operationalAddressCityRequired: () => addressFieldRule("city", true),
|
|
189
|
-
operationalAddressPostalCodeRequired: () => addressFieldRule("postalCode", true),
|
|
190
|
-
operationalAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", true),
|
|
191
|
-
operationalAddressCountryRequired: () => addressFieldRule("country", true)
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/components/Trust/mapping/mapLegalEntityToTrust.ts
|
|
196
|
-
var mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
197
|
-
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
198
|
-
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
199
|
-
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
200
|
-
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(legalEntity.trust.vatNumber, legalEntity.trust.countryOfGoverningLaw);
|
|
201
|
-
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(legalEntity.trust.registrationNumber, legalEntity.trust.countryOfGoverningLaw, LegalEntityTypes.TRUST);
|
|
202
|
-
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
203
|
-
if (legalEntity.trust.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
204
|
-
const operationalAddressIsSame = !(legalEntity.trust.principalPlaceOfBusiness && !objectsDeepEqual(legalEntity.trust.principalPlaceOfBusiness, legalEntity.trust.registeredAddress));
|
|
205
|
-
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
206
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSame;
|
|
207
|
-
if (legalEntity.trust.taxInformation?.length) {
|
|
208
|
-
const { country } = legalEntity.trust.registeredAddress;
|
|
209
|
-
const countryTaxInformation = legalEntity.trust.taxInformation.find((info) => info.country === country);
|
|
210
|
-
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
211
|
-
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
212
|
-
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
213
|
-
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
214
|
-
}
|
|
215
|
-
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
216
|
-
...trustCompData,
|
|
217
|
-
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
218
|
-
};
|
|
219
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
220
|
-
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
221
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
222
|
-
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.trust?.doingBusinessAs;
|
|
223
|
-
}
|
|
224
|
-
} else {
|
|
225
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
226
|
-
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
227
|
-
}
|
|
228
|
-
return trustCompData;
|
|
229
|
-
};
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/components/Trust/mapping/mapTrustDocumentToApiDocument.ts
|
|
232
|
-
var mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
233
|
-
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
234
|
-
if (!constitutionalDocument) throw new Error("Constitutional document missing");
|
|
235
|
-
const page1 = constitutionalDocument[0];
|
|
236
|
-
if (!page1) throw new Error("Document needs at least one page");
|
|
237
|
-
return await createDocumentRequest({
|
|
238
|
-
entityId,
|
|
239
|
-
entityType: "legalEntity",
|
|
240
|
-
documentType: "constitutionalDocument",
|
|
241
|
-
page1,
|
|
242
|
-
existingDocument: getDocument(entityId, "constitutionalDocument")
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region src/components/Trust/mapping/mapTrustToLegalEntity.ts
|
|
247
|
-
var mapTrustToLegalEntity = (data, isFeatureEnabled, existingLegalEntity) => {
|
|
248
|
-
const requestObj = { ...formatObject(data, trustApiKeyMapping) };
|
|
249
|
-
if (!requestObj.trust) return requestObj;
|
|
250
|
-
if (data.trustRegistrationDetails?.objectOfTrust) requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
251
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
252
|
-
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
253
|
-
if (requestObj.trust.doingBusinessAsAbsent) requestObj.trust.doingBusinessAs = "";
|
|
254
|
-
} else {
|
|
255
|
-
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
256
|
-
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
257
|
-
}
|
|
258
|
-
if (data.trustRegistrationAddress?.operationalAddressIsSame) if (!existingLegalEntity?.trust?.principalPlaceOfBusiness) delete requestObj.trust.principalPlaceOfBusiness;
|
|
259
|
-
else requestObj.trust.principalPlaceOfBusiness = requestObj.trust.registeredAddress;
|
|
260
|
-
requestObj.type = LegalEntityTypes.TRUST;
|
|
261
|
-
return requestObj;
|
|
262
|
-
};
|
|
263
|
-
//#endregion
|
|
264
|
-
//#region src/components/Trust/utils/formatDataForSummary.ts
|
|
265
|
-
function createStructuredListItem(term, details, t) {
|
|
266
|
-
if (!details) return;
|
|
267
|
-
return {
|
|
268
|
-
term: t(($) => $[term], { ns: "common" }),
|
|
269
|
-
details
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function formatTrustRegistrationDetails(data, datasetUtils, isUnincorporatedPartnership, t) {
|
|
273
|
-
const country = data.country;
|
|
274
|
-
const taxInfoForCountry = data.taxInformation?.find((taxInfo) => taxInfo.country === country);
|
|
275
|
-
let taxIdLabel = "taxInformationNumber";
|
|
276
|
-
if (country in taxIdNumberOptions) {
|
|
277
|
-
const numberOption = taxIdNumberOptions[country]?.find((taxOption) => taxOption.id === taxInfoForCountry?.type);
|
|
278
|
-
if (numberOption) taxIdLabel = numberOption.name;
|
|
279
|
-
}
|
|
280
|
-
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
281
|
-
companyType: LegalEntityTypes.TRUST,
|
|
282
|
-
registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
283
|
-
}, registrationNumberDefaultFieldMetadata).label ?? "";
|
|
284
|
-
return {
|
|
285
|
-
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: data.legalName,
|
|
286
|
-
doingBusinessAs: data.doingBusinessAs,
|
|
287
|
-
countryRegionOfEstablishment: datasetUtils.getCountryName(country),
|
|
288
|
-
typeOfTrustAgreement: data.trustType && !isUnincorporatedPartnership ? t(($) => $[data.trustType], { ns: "trust" }) : void 0,
|
|
289
|
-
objectOfTrust: data.objectOfTrust,
|
|
290
|
-
[taxIdLabel]: taxInfoForCountry?.number,
|
|
291
|
-
[registrationNumberLabel]: data.registrationNumber
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
function formatDataForSummary(data, forms, t, language, taskType) {
|
|
295
|
-
const OMITTED_FORMS = ["summary"];
|
|
296
|
-
const datasetUtils = datasetUtilities(language);
|
|
297
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
298
|
-
const getSummaryItemsForForm = (formId) => {
|
|
299
|
-
if (!data[formId]) return {};
|
|
300
|
-
switch (formId) {
|
|
301
|
-
case "trustRegistrationDetails": return formatTrustRegistrationDetails(data[formId], datasetUtils, isUnincorporatedPartnership, t);
|
|
302
|
-
case "trustConstitutionalDocument": return {
|
|
303
|
-
fileName: data[formId]?.constitutionalDocument?.[0]?.name,
|
|
304
|
-
description: data[formId].description
|
|
305
|
-
};
|
|
306
|
-
default: return {};
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
const translateAndFilterMappedSummary = (data) => {
|
|
310
|
-
const tmp = [];
|
|
311
|
-
for (const summaryItem in data) {
|
|
312
|
-
const item = createStructuredListItem(summaryItem, data[summaryItem], t);
|
|
313
|
-
if (item) tmp.push(item);
|
|
314
|
-
}
|
|
315
|
-
return tmp;
|
|
316
|
-
};
|
|
317
|
-
const summarySectionData = [];
|
|
318
|
-
for (const form of forms) {
|
|
319
|
-
if (OMITTED_FORMS.includes(form.formId)) continue;
|
|
320
|
-
const summaryItems = translateAndFilterMappedSummary(getSummaryItemsForForm(form.formId));
|
|
321
|
-
if (summaryItems.length > 0) summarySectionData.push({
|
|
322
|
-
formId: form.formId,
|
|
323
|
-
label: t(($) => $[form.formName], { ns: "common" }),
|
|
324
|
-
items: summaryItems
|
|
325
|
-
});
|
|
326
|
-
if (form.formId === "trustRegistrationAddress") {
|
|
327
|
-
const registrationAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("registrationAddress", data.trustRegistrationAddress), datasetUtils));
|
|
328
|
-
if (registrationAddressSummaryItems.length > 0) summarySectionData.push({
|
|
329
|
-
formId: "registrationAddress",
|
|
330
|
-
label: t(($) => $["registrationAddress"], { ns: "common" }),
|
|
331
|
-
items: registrationAddressSummaryItems
|
|
332
|
-
});
|
|
333
|
-
if (!data[form.formId]?.operationalAddressIsSame) {
|
|
334
|
-
const operationalAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("operationalAddress", data.trustRegistrationAddress), datasetUtils));
|
|
335
|
-
if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
|
|
336
|
-
formId: "operationalAddress",
|
|
337
|
-
label: t(($) => $["operationalAddress"], { ns: "common" }),
|
|
338
|
-
items: operationalAddressSummaryItems
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return summarySectionData;
|
|
344
|
-
}
|
|
345
|
-
var TrustRegistrationAddress_module_default = {
|
|
346
|
-
"additional-details-content": "_additional-details-content_nh4dq_1",
|
|
347
|
-
additionalDetailsContent: "_additional-details-content_nh4dq_1"
|
|
348
|
-
};
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/components/Trust/forms/TrustRegistrationAddress/TrustRegistrationAddress.tsx
|
|
351
|
-
function TrustRegistrationAddress({ id, country, fieldValidationErrors, formVerificationErrors, taskType }) {
|
|
352
|
-
const { t } = useTranslation(["common", "trust"]);
|
|
353
|
-
const { form } = useFormContext();
|
|
354
|
-
const entityType = taskType === TaskTypes.TRUST ? "trust" : "partnership";
|
|
355
|
-
const { data, valid, errors, allFields, requiredFields, optionalFields, trustedFields, obscuredFields, handleChange: handleChangeFor } = getFormSlice(form, "trustRegistrationAddress");
|
|
356
|
-
const formUtils = useMemo(() => {
|
|
357
|
-
return createFormUtils({
|
|
358
|
-
data: data ?? {},
|
|
359
|
-
fieldValidationErrors,
|
|
360
|
-
formVerificationErrors,
|
|
361
|
-
allFields: allFields ?? [],
|
|
362
|
-
requiredFields: requiredFields ?? [],
|
|
363
|
-
optionalFields: optionalFields ?? [],
|
|
364
|
-
trustedFields: trustedFields ?? [],
|
|
365
|
-
obscuredFields: obscuredFields ?? [],
|
|
366
|
-
errors: errors ?? {},
|
|
367
|
-
valid: valid ?? {},
|
|
368
|
-
handleFieldChange: handleChangeFor
|
|
369
|
-
}, t);
|
|
370
|
-
}, [
|
|
371
|
-
allFields,
|
|
372
|
-
data,
|
|
373
|
-
errors,
|
|
374
|
-
fieldValidationErrors,
|
|
375
|
-
formVerificationErrors,
|
|
376
|
-
handleChangeFor,
|
|
377
|
-
obscuredFields,
|
|
378
|
-
optionalFields,
|
|
379
|
-
requiredFields,
|
|
380
|
-
t,
|
|
381
|
-
trustedFields,
|
|
382
|
-
valid
|
|
383
|
-
]);
|
|
384
|
-
return /* @__PURE__ */ jsxs("form", {
|
|
385
|
-
id,
|
|
386
|
-
children: [
|
|
387
|
-
/* @__PURE__ */ jsx(Header, {
|
|
388
|
-
title: t(($) => $["trustRegistrationAddressFormHeading"], { ns: "trust" }),
|
|
389
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
390
|
-
slot: "description",
|
|
391
|
-
children: t(($) => $["trustRegistrationAddressFormDescription"], {
|
|
392
|
-
entityType,
|
|
393
|
-
ns: "trust"
|
|
394
|
-
})
|
|
395
|
-
})
|
|
396
|
-
}),
|
|
397
|
-
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
398
|
-
id: "ariaErrorField",
|
|
399
|
-
verificationErrors: formVerificationErrors,
|
|
400
|
-
validationErrors: fieldValidationErrors,
|
|
401
|
-
formUtils
|
|
402
|
-
}),
|
|
403
|
-
/* @__PURE__ */ jsx("div", {
|
|
404
|
-
className: TrustRegistrationAddress_module_default.additionalDetailsContent,
|
|
405
|
-
children: /* @__PURE__ */ jsx(RegistrationAndOperationalAddressFields, {
|
|
406
|
-
entityType,
|
|
407
|
-
country,
|
|
408
|
-
data,
|
|
409
|
-
valid,
|
|
410
|
-
errors,
|
|
411
|
-
requiredFields,
|
|
412
|
-
optionalFields,
|
|
413
|
-
trustedFields,
|
|
414
|
-
fieldValidationErrors,
|
|
415
|
-
handleChangeFor,
|
|
416
|
-
formUtils
|
|
417
|
-
})
|
|
418
|
-
})
|
|
419
|
-
]
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
//#endregion
|
|
423
132
|
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.tsx
|
|
424
|
-
var
|
|
133
|
+
var TRUST_REGISTRATION_DETAILS_FIELDS = [
|
|
425
134
|
"legalName",
|
|
426
135
|
...DBA_NAME_FIELD,
|
|
427
136
|
"country",
|
|
@@ -432,10 +141,8 @@ var trustRegistrationDetailsFields = [
|
|
|
432
141
|
...VAT_NUMBER_FIELD
|
|
433
142
|
];
|
|
434
143
|
var ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
const { t: trustT } = useTranslation("trust");
|
|
438
|
-
const { t: CommonT } = useTranslation("common");
|
|
144
|
+
function TrustRegistrationDetails({ id, fieldValidationErrors = {}, formVerificationErrors = {}, shouldValidate, taskType, country: parentLegalEntityCountry }) {
|
|
145
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
439
146
|
const { form } = useFormContext();
|
|
440
147
|
const { data, valid, errors, allFields, trustedFields, obscuredFields, optionalFields, requiredFields } = useMemo(() => {
|
|
441
148
|
return {
|
|
@@ -453,10 +160,10 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
453
160
|
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
454
161
|
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
455
162
|
const legalEntityType = isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST;
|
|
456
|
-
const handleChange = (fieldName, mode) => form.handleChangeFor(
|
|
163
|
+
const handleChange = (fieldName, mode) => form.handleChangeFor("trustRegistrationDetails", fieldName, mode);
|
|
457
164
|
const changeTrustType = (e) => {
|
|
458
165
|
handleChange("trustType", "blur")(e);
|
|
459
|
-
if (e.target.value !== "charitableTrust") form.setData(
|
|
166
|
+
if (e.target.value !== "charitableTrust") form.setData("trustRegistrationDetails", "objectOfTrust", void 0);
|
|
460
167
|
};
|
|
461
168
|
const formUtils = useMemo(() => {
|
|
462
169
|
const initialProps = {
|
|
@@ -489,9 +196,9 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
489
196
|
default: return acc;
|
|
490
197
|
}
|
|
491
198
|
}, initialProps);
|
|
492
|
-
return createFormUtils(formUtilProps ?? initialProps,
|
|
199
|
+
return createFormUtils(formUtilProps ?? initialProps, t);
|
|
493
200
|
}, [
|
|
494
|
-
|
|
201
|
+
t,
|
|
495
202
|
allFields,
|
|
496
203
|
country,
|
|
497
204
|
data,
|
|
@@ -507,9 +214,9 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
507
214
|
]);
|
|
508
215
|
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
509
216
|
return /* @__PURE__ */ jsxs("form", {
|
|
510
|
-
id
|
|
217
|
+
id,
|
|
511
218
|
children: [
|
|
512
|
-
|
|
219
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["registrationDetails"], { ns: "common" }) }),
|
|
513
220
|
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
514
221
|
verificationErrors: formVerificationErrors,
|
|
515
222
|
validationErrors: fieldValidationErrors,
|
|
@@ -521,7 +228,7 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
521
228
|
title: /* @__PURE__ */ jsx(Typography, {
|
|
522
229
|
variant: "caption",
|
|
523
230
|
color: "secondary",
|
|
524
|
-
children:
|
|
231
|
+
children: t(($) => $["makeSureToHaveYourTrustDeed"], { ns: "trust" })
|
|
525
232
|
}),
|
|
526
233
|
className: "u-margin-bottom-16"
|
|
527
234
|
}),
|
|
@@ -572,9 +279,9 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
572
279
|
selected: data?.trustType,
|
|
573
280
|
items: trustTypeOptions.map((trust) => ({
|
|
574
281
|
id: trust,
|
|
575
|
-
name:
|
|
282
|
+
name: t(($) => $[trust], { ns: "trust" })
|
|
576
283
|
})),
|
|
577
|
-
placeholder:
|
|
284
|
+
placeholder: t(($) => $["trustType"], { ns: "trust" })
|
|
578
285
|
})
|
|
579
286
|
}),
|
|
580
287
|
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
@@ -594,78 +301,213 @@ function TrustRegistrationDetails({ fieldValidationErrors = {}, formVerification
|
|
|
594
301
|
"aria-invalid": !valid?.objectOfTrust
|
|
595
302
|
})
|
|
596
303
|
}),
|
|
597
|
-
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
598
|
-
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
599
|
-
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
600
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
601
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
602
|
-
mask: formUtils.getMask("taxInformation"),
|
|
603
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
604
|
-
shouldValidate,
|
|
605
|
-
handleChangeFor: handleChange,
|
|
606
|
-
optional: formUtils.isOptionalField("taxInformation"),
|
|
607
|
-
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
608
|
-
country,
|
|
609
|
-
entityType: legalEntityType,
|
|
610
|
-
defaultData: data?.taxInformation,
|
|
611
|
-
registrationNumber: data.registrationNumber
|
|
304
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
305
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
306
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
307
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
308
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
309
|
+
mask: formUtils.getMask("taxInformation"),
|
|
310
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
311
|
+
shouldValidate,
|
|
312
|
+
handleChangeFor: handleChange,
|
|
313
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
314
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
315
|
+
country,
|
|
316
|
+
entityType: legalEntityType,
|
|
317
|
+
defaultData: data?.taxInformation,
|
|
318
|
+
registrationNumber: data.registrationNumber
|
|
319
|
+
}),
|
|
320
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
321
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
322
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
323
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
324
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
325
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
326
|
+
shouldValidate,
|
|
327
|
+
handleChangeFor: handleChange,
|
|
328
|
+
country,
|
|
329
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
330
|
+
companyType: legalEntityType
|
|
331
|
+
}),
|
|
332
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
333
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
334
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
335
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
336
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
337
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
338
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
339
|
+
handleChangeFor: handleChange,
|
|
340
|
+
country,
|
|
341
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
342
|
+
}),
|
|
343
|
+
country === "US" && /* @__PURE__ */ jsx(PatriotActDisclosure, {})
|
|
344
|
+
]
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region src/components/Trust/forms/Trust/forms.ts
|
|
349
|
+
var trustForms = {
|
|
350
|
+
trustRegistrationDetails: {
|
|
351
|
+
formId: "trustRegistrationDetails",
|
|
352
|
+
formName: "registrationDetails",
|
|
353
|
+
fields: TRUST_REGISTRATION_DETAILS_FIELDS
|
|
354
|
+
},
|
|
355
|
+
trustRegistrationAddress: {
|
|
356
|
+
formId: "trustRegistrationAddress",
|
|
357
|
+
formName: "addressDetails",
|
|
358
|
+
fields: REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS
|
|
359
|
+
},
|
|
360
|
+
trustConstitutionalDocument: {
|
|
361
|
+
formId: "trustConstitutionalDocument",
|
|
362
|
+
formName: "constitutionalDocument",
|
|
363
|
+
fields: ["constitutionalDocument"]
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
var trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
367
|
+
var trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
368
|
+
var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region src/components/Trust/forms/Trust/rules.ts
|
|
371
|
+
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
372
|
+
var rules = ({ data, country, taskType }) => {
|
|
373
|
+
const addressFieldRule = (field, isOperational) => {
|
|
374
|
+
if (isOperational && data.trustRegistrationAddress?.operationalAddressIsSame) return void 0;
|
|
375
|
+
if (field === "country") return "REQUIRED";
|
|
376
|
+
if (!getAddressSchemaForCountry(country).includes(field)) return void 0;
|
|
377
|
+
if (field === "street2") return "OPTIONAL";
|
|
378
|
+
if (field === "stateOrProvince") return COUNTRIES_WITH_STATES_DATASET.includes(country) ? "REQUIRED" : void 0;
|
|
379
|
+
return "REQUIRED";
|
|
380
|
+
};
|
|
381
|
+
return createFormRules({
|
|
382
|
+
countryUsesTaxId: () => {
|
|
383
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
384
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) return "REQUIRED";
|
|
385
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
386
|
+
}
|
|
387
|
+
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "REQUIRED";
|
|
388
|
+
},
|
|
389
|
+
countryRequiresRegistrationNumberForTrust: () => {
|
|
390
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
391
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "REQUIRED";
|
|
392
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
393
|
+
}
|
|
394
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "REQUIRED";
|
|
395
|
+
},
|
|
396
|
+
registrationNumberType: () => {
|
|
397
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
398
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "OPTIONAL";
|
|
399
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
400
|
+
}
|
|
401
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
402
|
+
},
|
|
403
|
+
countryUsesVatNumber: () => {
|
|
404
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
405
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
trustTypeHasDescription: () => {
|
|
409
|
+
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") return "REQUIRED";
|
|
410
|
+
},
|
|
411
|
+
requireDoingBusinessAsName: () => {
|
|
412
|
+
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
413
|
+
},
|
|
414
|
+
requiresTrustType: () => {
|
|
415
|
+
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
416
|
+
},
|
|
417
|
+
registrationAddressStreetRequired: () => addressFieldRule("street", false),
|
|
418
|
+
registrationAddressStreet2Required: () => addressFieldRule("street2", false),
|
|
419
|
+
registrationAddressCityRequired: () => addressFieldRule("city", false),
|
|
420
|
+
registrationAddressPostalCodeRequired: () => addressFieldRule("postalCode", false),
|
|
421
|
+
registrationAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", false),
|
|
422
|
+
registrationAddressCountryRequired: () => addressFieldRule("country", false),
|
|
423
|
+
operationalAddressStreetRequired: () => addressFieldRule("street", true),
|
|
424
|
+
operationalAddressStreet2Required: () => addressFieldRule("street2", true),
|
|
425
|
+
operationalAddressCityRequired: () => addressFieldRule("city", true),
|
|
426
|
+
operationalAddressPostalCodeRequired: () => addressFieldRule("postalCode", true),
|
|
427
|
+
operationalAddressStateOrProvinceRequired: () => addressFieldRule("stateOrProvince", true),
|
|
428
|
+
operationalAddressCountryRequired: () => addressFieldRule("country", true)
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
var TrustRegistrationAddress_module_default = {
|
|
432
|
+
"additional-details-content": "_additional-details-content_nh4dq_1",
|
|
433
|
+
additionalDetailsContent: "_additional-details-content_nh4dq_1"
|
|
434
|
+
};
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/components/Trust/forms/TrustRegistrationAddress/TrustRegistrationAddress.tsx
|
|
437
|
+
function TrustRegistrationAddress({ id, country, fieldValidationErrors, formVerificationErrors, taskType }) {
|
|
438
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
439
|
+
const { form } = useFormContext();
|
|
440
|
+
const entityType = taskType === TaskTypes.TRUST ? "trust" : "partnership";
|
|
441
|
+
const { data, valid, errors, allFields, requiredFields, optionalFields, trustedFields, obscuredFields, handleChange: handleChangeFor } = getFormSlice(form, "trustRegistrationAddress");
|
|
442
|
+
const formUtils = useMemo(() => {
|
|
443
|
+
return createFormUtils({
|
|
444
|
+
data: data ?? {},
|
|
445
|
+
fieldValidationErrors,
|
|
446
|
+
formVerificationErrors,
|
|
447
|
+
allFields: allFields ?? [],
|
|
448
|
+
requiredFields: requiredFields ?? [],
|
|
449
|
+
optionalFields: optionalFields ?? [],
|
|
450
|
+
trustedFields: trustedFields ?? [],
|
|
451
|
+
obscuredFields: obscuredFields ?? [],
|
|
452
|
+
errors: errors ?? {},
|
|
453
|
+
valid: valid ?? {},
|
|
454
|
+
handleFieldChange: handleChangeFor
|
|
455
|
+
}, t);
|
|
456
|
+
}, [
|
|
457
|
+
allFields,
|
|
458
|
+
data,
|
|
459
|
+
errors,
|
|
460
|
+
fieldValidationErrors,
|
|
461
|
+
formVerificationErrors,
|
|
462
|
+
handleChangeFor,
|
|
463
|
+
obscuredFields,
|
|
464
|
+
optionalFields,
|
|
465
|
+
requiredFields,
|
|
466
|
+
t,
|
|
467
|
+
trustedFields,
|
|
468
|
+
valid
|
|
469
|
+
]);
|
|
470
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
471
|
+
id,
|
|
472
|
+
children: [
|
|
473
|
+
/* @__PURE__ */ jsx(Header, {
|
|
474
|
+
title: t(($) => $["trustRegistrationAddressFormHeading"], { ns: "trust" }),
|
|
475
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
476
|
+
slot: "description",
|
|
477
|
+
children: t(($) => $["trustRegistrationAddressFormDescription"], {
|
|
478
|
+
entityType,
|
|
479
|
+
ns: "trust"
|
|
480
|
+
})
|
|
481
|
+
})
|
|
482
|
+
}),
|
|
483
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
484
|
+
id: "ariaErrorField",
|
|
485
|
+
verificationErrors: formVerificationErrors,
|
|
486
|
+
validationErrors: fieldValidationErrors,
|
|
487
|
+
formUtils
|
|
612
488
|
}),
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
helperText: getRegistrationNumberHelperText(trustT, {
|
|
489
|
+
/* @__PURE__ */ jsx("div", {
|
|
490
|
+
className: TrustRegistrationAddress_module_default.additionalDetailsContent,
|
|
491
|
+
children: /* @__PURE__ */ jsx(RegistrationAndOperationalAddressFields, {
|
|
492
|
+
entityType,
|
|
618
493
|
country,
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
631
|
-
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
632
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
633
|
-
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
634
|
-
optional: formUtils.isOptionalField("vatNumber"),
|
|
635
|
-
readonly: formUtils.isReadOnly("vatNumber"),
|
|
636
|
-
handleChangeFor: handleChange,
|
|
637
|
-
country,
|
|
638
|
-
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
639
|
-
}),
|
|
640
|
-
country === "US" && /* @__PURE__ */ jsx(PatriotActDisclosure, {})
|
|
494
|
+
data,
|
|
495
|
+
valid,
|
|
496
|
+
errors,
|
|
497
|
+
requiredFields,
|
|
498
|
+
optionalFields,
|
|
499
|
+
trustedFields,
|
|
500
|
+
fieldValidationErrors,
|
|
501
|
+
handleChangeFor,
|
|
502
|
+
formUtils
|
|
503
|
+
})
|
|
504
|
+
})
|
|
641
505
|
]
|
|
642
506
|
});
|
|
643
507
|
}
|
|
644
508
|
//#endregion
|
|
645
|
-
//#region src/components/Trust/
|
|
646
|
-
|
|
647
|
-
trustRegistrationDetails: {
|
|
648
|
-
formId: TRUST_REGISTRATION_DETAILS,
|
|
649
|
-
formName: "registrationDetails",
|
|
650
|
-
fields: [...trustRegistrationDetailsFields]
|
|
651
|
-
},
|
|
652
|
-
trustRegistrationAddress: {
|
|
653
|
-
formId: "trustRegistrationAddress",
|
|
654
|
-
formName: "addressDetails",
|
|
655
|
-
fields: REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS
|
|
656
|
-
},
|
|
657
|
-
trustConstitutionalDocument: {
|
|
658
|
-
formId: "trustConstitutionalDocument",
|
|
659
|
-
formName: "constitutionalDocument",
|
|
660
|
-
fields: ["constitutionalDocument"]
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
var trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
664
|
-
var trustRegistrationDetailsFormId = TRUST_REGISTRATION_DETAILS;
|
|
665
|
-
var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
666
|
-
function Trust(props) {
|
|
667
|
-
const { t } = useTranslation(["common", "trust"]);
|
|
668
|
-
const { country, activeForm, taskType, shouldValidate, problems = {} } = props;
|
|
509
|
+
//#region src/components/Trust/forms/Trust/Trust.tsx
|
|
510
|
+
function Trust({ taskType, country, activeForm, shouldValidate, problems = {} }) {
|
|
669
511
|
const { form } = useFormContext();
|
|
670
512
|
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
671
513
|
function handleChange(formName, fieldName, mode) {
|
|
@@ -676,11 +518,12 @@ function Trust(props) {
|
|
|
676
518
|
const renderActiveForm = (activeForm) => {
|
|
677
519
|
switch (activeForm.formId) {
|
|
678
520
|
case trustRegistrationDetailsFormId: return /* @__PURE__ */ jsx(TrustRegistrationDetails, {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
taskType,
|
|
521
|
+
id: activeForm.formId,
|
|
522
|
+
country,
|
|
682
523
|
shouldValidate,
|
|
683
|
-
|
|
524
|
+
taskType,
|
|
525
|
+
fieldValidationErrors,
|
|
526
|
+
formVerificationErrors
|
|
684
527
|
});
|
|
685
528
|
case trustRegistrationAddressFormId: return /* @__PURE__ */ jsx(TrustRegistrationAddress, {
|
|
686
529
|
id: trustRegistrationAddressFormId,
|
|
@@ -702,13 +545,164 @@ function Trust(props) {
|
|
|
702
545
|
trustedFields: form.trustedFields?.trustConstitutionalDocument,
|
|
703
546
|
handleFieldChange: () => handleChange("trustConstitutionalDocument", "constitutionalDocument"),
|
|
704
547
|
shouldValidate,
|
|
705
|
-
fieldValidationErrors
|
|
706
|
-
formVerificationErrors
|
|
548
|
+
fieldValidationErrors,
|
|
549
|
+
formVerificationErrors
|
|
707
550
|
});
|
|
708
551
|
default: return null;
|
|
709
552
|
}
|
|
710
553
|
};
|
|
711
|
-
return /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm
|
|
554
|
+
return /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm) });
|
|
555
|
+
}
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/components/Trust/mapping/mapLegalEntityToTrust.ts
|
|
558
|
+
var mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
559
|
+
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
560
|
+
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
561
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
562
|
+
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(legalEntity.trust.vatNumber, legalEntity.trust.countryOfGoverningLaw);
|
|
563
|
+
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(legalEntity.trust.registrationNumber, legalEntity.trust.countryOfGoverningLaw, LegalEntityTypes.TRUST);
|
|
564
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
565
|
+
if (legalEntity.trust.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
566
|
+
const operationalAddressIsSame = !(legalEntity.trust.principalPlaceOfBusiness && !objectsDeepEqual(legalEntity.trust.principalPlaceOfBusiness, legalEntity.trust.registeredAddress));
|
|
567
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
568
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSame;
|
|
569
|
+
if (legalEntity.trust.taxInformation?.length) {
|
|
570
|
+
const { country } = legalEntity.trust.registeredAddress;
|
|
571
|
+
const countryTaxInformation = legalEntity.trust.taxInformation.find((info) => info.country === country);
|
|
572
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
573
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
574
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
575
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
576
|
+
}
|
|
577
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
578
|
+
...trustCompData,
|
|
579
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
580
|
+
};
|
|
581
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
582
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
583
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
584
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.trust?.doingBusinessAs;
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
588
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
589
|
+
}
|
|
590
|
+
return trustCompData;
|
|
591
|
+
};
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region src/components/Trust/mapping/mapTrustDocumentToApiDocument.ts
|
|
594
|
+
var mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
595
|
+
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
596
|
+
if (!constitutionalDocument) throw new Error("Constitutional document missing");
|
|
597
|
+
const page1 = constitutionalDocument[0];
|
|
598
|
+
if (!page1) throw new Error("Document needs at least one page");
|
|
599
|
+
return await createDocumentRequest({
|
|
600
|
+
entityId,
|
|
601
|
+
entityType: "legalEntity",
|
|
602
|
+
documentType: "constitutionalDocument",
|
|
603
|
+
page1,
|
|
604
|
+
existingDocument: getDocument(entityId, "constitutionalDocument")
|
|
605
|
+
});
|
|
606
|
+
};
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region src/components/Trust/mapping/mapTrustToLegalEntity.ts
|
|
609
|
+
var mapTrustToLegalEntity = (data, isFeatureEnabled, existingLegalEntity) => {
|
|
610
|
+
const requestObj = { ...formatObject(data, trustApiKeyMapping) };
|
|
611
|
+
if (!requestObj.trust) return requestObj;
|
|
612
|
+
if (data.trustRegistrationDetails?.objectOfTrust) requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
613
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
614
|
+
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
615
|
+
if (requestObj.trust.doingBusinessAsAbsent) requestObj.trust.doingBusinessAs = "";
|
|
616
|
+
} else {
|
|
617
|
+
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
618
|
+
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
619
|
+
}
|
|
620
|
+
if (data.trustRegistrationAddress?.operationalAddressIsSame) if (!existingLegalEntity?.trust?.principalPlaceOfBusiness) delete requestObj.trust.principalPlaceOfBusiness;
|
|
621
|
+
else requestObj.trust.principalPlaceOfBusiness = requestObj.trust.registeredAddress;
|
|
622
|
+
requestObj.type = LegalEntityTypes.TRUST;
|
|
623
|
+
return requestObj;
|
|
624
|
+
};
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region src/components/Trust/utils/formatDataForSummary.ts
|
|
627
|
+
function createStructuredListItem(term, details, t) {
|
|
628
|
+
if (!details) return;
|
|
629
|
+
return {
|
|
630
|
+
term: t(($) => $[term], { ns: "common" }),
|
|
631
|
+
details
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
function formatTrustRegistrationDetails(data, datasetUtils, isUnincorporatedPartnership, t) {
|
|
635
|
+
const country = data.country;
|
|
636
|
+
const taxInfoForCountry = data.taxInformation?.find((taxInfo) => taxInfo.country === country);
|
|
637
|
+
let taxIdLabel = "taxInformationNumber";
|
|
638
|
+
if (country in taxIdNumberOptions) {
|
|
639
|
+
const numberOption = taxIdNumberOptions[country]?.find((taxOption) => taxOption.id === taxInfoForCountry?.type);
|
|
640
|
+
if (numberOption) taxIdLabel = numberOption.name;
|
|
641
|
+
}
|
|
642
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
643
|
+
companyType: LegalEntityTypes.TRUST,
|
|
644
|
+
registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
645
|
+
}, registrationNumberDefaultFieldMetadata).label ?? "";
|
|
646
|
+
return {
|
|
647
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: data.legalName,
|
|
648
|
+
doingBusinessAs: data.doingBusinessAs,
|
|
649
|
+
countryRegionOfEstablishment: datasetUtils.getCountryName(country),
|
|
650
|
+
typeOfTrustAgreement: data.trustType && !isUnincorporatedPartnership ? t(($) => $[data.trustType], { ns: "trust" }) : void 0,
|
|
651
|
+
objectOfTrust: data.objectOfTrust,
|
|
652
|
+
[taxIdLabel]: taxInfoForCountry?.number,
|
|
653
|
+
[registrationNumberLabel]: data.registrationNumber
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
function formatDataForSummary(data, forms, t, language, taskType) {
|
|
657
|
+
const OMITTED_FORMS = ["summary"];
|
|
658
|
+
const datasetUtils = datasetUtilities(language);
|
|
659
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
660
|
+
const getSummaryItemsForForm = (formId) => {
|
|
661
|
+
if (!data[formId]) return {};
|
|
662
|
+
switch (formId) {
|
|
663
|
+
case "trustRegistrationDetails": return formatTrustRegistrationDetails(data[formId], datasetUtils, isUnincorporatedPartnership, t);
|
|
664
|
+
case "trustConstitutionalDocument": return {
|
|
665
|
+
fileName: data[formId]?.constitutionalDocument?.[0]?.name,
|
|
666
|
+
description: data[formId].description
|
|
667
|
+
};
|
|
668
|
+
default: return {};
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
const translateAndFilterMappedSummary = (data) => {
|
|
672
|
+
const tmp = [];
|
|
673
|
+
for (const summaryItem in data) {
|
|
674
|
+
const item = createStructuredListItem(summaryItem, data[summaryItem], t);
|
|
675
|
+
if (item) tmp.push(item);
|
|
676
|
+
}
|
|
677
|
+
return tmp;
|
|
678
|
+
};
|
|
679
|
+
const summarySectionData = [];
|
|
680
|
+
for (const form of forms) {
|
|
681
|
+
if (OMITTED_FORMS.includes(form.formId)) continue;
|
|
682
|
+
const summaryItems = translateAndFilterMappedSummary(getSummaryItemsForForm(form.formId));
|
|
683
|
+
if (summaryItems.length > 0) summarySectionData.push({
|
|
684
|
+
formId: form.formId,
|
|
685
|
+
label: t(($) => $[form.formName], { ns: "common" }),
|
|
686
|
+
items: summaryItems
|
|
687
|
+
});
|
|
688
|
+
if (form.formId === "trustRegistrationAddress") {
|
|
689
|
+
const registrationAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("registrationAddress", data.trustRegistrationAddress), datasetUtils));
|
|
690
|
+
if (registrationAddressSummaryItems.length > 0) summarySectionData.push({
|
|
691
|
+
formId: "registrationAddress",
|
|
692
|
+
label: t(($) => $["registrationAddress"], { ns: "common" }),
|
|
693
|
+
items: registrationAddressSummaryItems
|
|
694
|
+
});
|
|
695
|
+
if (!data[form.formId]?.operationalAddressIsSame) {
|
|
696
|
+
const operationalAddressSummaryItems = translateAndFilterMappedSummary(mapAddressLabelsNewSummary(nestAddressSchema("operationalAddress", data.trustRegistrationAddress), datasetUtils));
|
|
697
|
+
if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
|
|
698
|
+
formId: "operationalAddress",
|
|
699
|
+
label: t(($) => $["operationalAddress"], { ns: "common" }),
|
|
700
|
+
items: operationalAddressSummaryItems
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return summarySectionData;
|
|
712
706
|
}
|
|
713
707
|
//#endregion
|
|
714
708
|
//#region src/components/Trust/tasks/TrustDropin/trustFormConfig.ts
|
|
@@ -1086,9 +1080,9 @@ function TrustDropin({ parentLegalEntity, country: countryProp, existingTrust, t
|
|
|
1086
1080
|
handleCancelClick: handleHomeClick,
|
|
1087
1081
|
loadingStatus,
|
|
1088
1082
|
children: /* @__PURE__ */ jsx(Trust, {
|
|
1089
|
-
country,
|
|
1090
|
-
activeForm,
|
|
1091
1083
|
taskType,
|
|
1084
|
+
activeForm,
|
|
1085
|
+
country,
|
|
1092
1086
|
shouldValidate,
|
|
1093
1087
|
problems
|
|
1094
1088
|
})
|
|
@@ -1106,36 +1100,34 @@ var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
|
1106
1100
|
addResourceBundles(i18n, [{
|
|
1107
1101
|
ns: "trust",
|
|
1108
1102
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
1109
|
-
"../language/bg-BG.json": () => import("./bg-BG-
|
|
1110
|
-
"../language/cs-CZ.json": () => import("./cs-CZ-
|
|
1111
|
-
"../language/da-DK.json": () => import("./da-DK
|
|
1112
|
-
"../language/de-DE.json": () => import("./de-DE-
|
|
1113
|
-
"../language/el-GR.json": () => import("./el-GR-
|
|
1114
|
-
"../language/en-US.json": () => import("./en-US-
|
|
1115
|
-
"../language/es-ES.json": () => import("./es-ES-
|
|
1116
|
-
"../language/es-LA.json": () => import("./es-LA-
|
|
1117
|
-
"../language/et-EE.json": () => import("./et-EE-
|
|
1118
|
-
"../language/fi-FI.json": () => import("./fi-FI-
|
|
1119
|
-
"../language/fr-FR.json": () => import("./fr-FR-
|
|
1120
|
-
"../language/hr-HR.json": () => import("./hr-HR-
|
|
1121
|
-
"../language/hu-HU.json": () => import("./hu-HU-
|
|
1122
|
-
"../language/it-IT.json": () => import("./it-IT-
|
|
1123
|
-
"../language/ja-JP.json": () => import("./ja-JP-
|
|
1124
|
-
"../language/lt-LT.json": () => import("./lt-LT-
|
|
1125
|
-
"../language/lv-LV.json": () => import("./lv-LV-
|
|
1126
|
-
"../language/nl-NL.json": () => import("./nl-NL-
|
|
1127
|
-
"../language/no-NO.json": () => import("./no-NO-
|
|
1128
|
-
"../language/pl-PL.json": () => import("./pl-PL-
|
|
1129
|
-
"../language/pt-BR.json": () => import("./pt-BR-
|
|
1130
|
-
"../language/pt-PT.json": () => import("./pt-PT-
|
|
1131
|
-
"../language/ro-RO.json": () => import("./ro-RO-
|
|
1132
|
-
"../language/sk-SK.json": () => import("./sk-SK-
|
|
1133
|
-
"../language/sl-SI.json": () => import("./sl-SI-
|
|
1134
|
-
"../language/sv-SE.json": () => import("./sv-SE-
|
|
1103
|
+
"../language/bg-BG.json": () => import("./bg-BG-BeFIiwVZ.js"),
|
|
1104
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-DHfA1xjQ.js"),
|
|
1105
|
+
"../language/da-DK.json": () => import("./da-DK--DlccBc0.js"),
|
|
1106
|
+
"../language/de-DE.json": () => import("./de-DE-B_iHAkLT.js"),
|
|
1107
|
+
"../language/el-GR.json": () => import("./el-GR-D09thseu.js"),
|
|
1108
|
+
"../language/en-US.json": () => import("./en-US-CO9xzDL5.js"),
|
|
1109
|
+
"../language/es-ES.json": () => import("./es-ES-Bpxn6XGC.js"),
|
|
1110
|
+
"../language/es-LA.json": () => import("./es-LA-CjxlB1WZ.js"),
|
|
1111
|
+
"../language/et-EE.json": () => import("./et-EE-Dtc7YYb4.js"),
|
|
1112
|
+
"../language/fi-FI.json": () => import("./fi-FI-DBhYlO4B.js"),
|
|
1113
|
+
"../language/fr-FR.json": () => import("./fr-FR-N8UDU_0Y.js"),
|
|
1114
|
+
"../language/hr-HR.json": () => import("./hr-HR-GLRwxTIZ.js"),
|
|
1115
|
+
"../language/hu-HU.json": () => import("./hu-HU-s1MKqwI4.js"),
|
|
1116
|
+
"../language/it-IT.json": () => import("./it-IT-2reNk09A.js"),
|
|
1117
|
+
"../language/ja-JP.json": () => import("./ja-JP-Bf97gKqg.js"),
|
|
1118
|
+
"../language/lt-LT.json": () => import("./lt-LT-BUgsY7cD.js"),
|
|
1119
|
+
"../language/lv-LV.json": () => import("./lv-LV-BpniO6xp.js"),
|
|
1120
|
+
"../language/nl-NL.json": () => import("./nl-NL-_B3Ey_x1.js"),
|
|
1121
|
+
"../language/no-NO.json": () => import("./no-NO-CytzrDfA.js"),
|
|
1122
|
+
"../language/pl-PL.json": () => import("./pl-PL-DLBeIbY5.js"),
|
|
1123
|
+
"../language/pt-BR.json": () => import("./pt-BR-Cf5Jif3w.js"),
|
|
1124
|
+
"../language/pt-PT.json": () => import("./pt-PT-Cg7oMqTO.js"),
|
|
1125
|
+
"../language/ro-RO.json": () => import("./ro-RO-UHWXt9rv.js"),
|
|
1126
|
+
"../language/sk-SK.json": () => import("./sk-SK-BQHhBpDH.js"),
|
|
1127
|
+
"../language/sl-SI.json": () => import("./sl-SI-CTrggdef.js"),
|
|
1128
|
+
"../language/sv-SE.json": () => import("./sv-SE-Bk55FXGN.js")
|
|
1135
1129
|
}), `../language/${lang}.json`, 3)
|
|
1136
1130
|
}]);
|
|
1137
|
-
const capabilities = useCapabilities();
|
|
1138
|
-
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
1139
1131
|
const capabilityProblems = useCapabilityProblems();
|
|
1140
1132
|
const problems = capabilityProblems && trustLe?.id ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustLe.id) : void 0;
|
|
1141
1133
|
if (!rootLe || isAssociatedEntityLoading || isTrustLeFromPropLoading) return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -1144,7 +1136,6 @@ var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
|
1144
1136
|
problems,
|
|
1145
1137
|
existingTrust: trustLe,
|
|
1146
1138
|
parentLegalEntity: rootLe,
|
|
1147
|
-
capabilities: capabilityNames,
|
|
1148
1139
|
country: getLegalEntityCountry(trustLe ?? rootLe),
|
|
1149
1140
|
handleHomeClick,
|
|
1150
1141
|
onSubmit
|