@adyen/kyc-components 4.21.0 → 4.22.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-D2mvc_PB.js} +5 -5
- package/dist/{Accordion-DC7Iuj-J.js → Accordion-DEivLTcw.js} +1 -1
- package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-pcQcFAhQ.js} +1 -1
- package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-C0EsaW8F.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-Nk2CJaU4.js} +54 -54
- package/dist/{AddressField-M0N4sAfl.js → AddressFields-3kqeRdC_.js} +108 -173
- package/dist/{Avatar-BKTdqNpO.js → Avatar-DHyXCNwV.js} +1 -1
- package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-BOECqGNd.js} +104 -197
- package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-DSy5an97.js} +30 -30
- package/dist/BusinessRegistrationNumberField-DHccXqsX.js +101 -0
- package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-2e9GKH-i.js} +5 -6
- package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-BraXRUrg.js} +13 -13
- package/dist/{Button-DSD_afG_.js → Button-nDbNtBn3.js} +1 -1
- package/dist/{Checkbox-Bc98rXHW.js → Checkbox-BiKnP2fS.js} +1 -1
- package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-Due-N8Yz.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-CtRHXMb9.js} +67 -105
- package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-Syyy5BfB.js} +5 -5
- package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-D8leB0D6.js} +2 -2
- package/dist/{Currency-BlBJnPV7.js → Currency-CFsMnSP0.js} +5 -5
- package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-DqayB3BM.js} +13 -12
- package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-Bz2SYyi5.js} +6 -6
- package/dist/{DebugModal-BAf5ZU42.js → DebugModal-fH0uKl1E.js} +10 -10
- package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-7IPREpy1.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-Bs9q7sxc.js} +34 -34
- package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-Dw66GRhZ.js} +40 -40
- package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CjLSK2UN.js} +7 -7
- package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-BIVFBjzu.js} +3 -3
- package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-D2CSEwEn.js} +2 -2
- package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-LF_5ihhI.js} +6 -6
- package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-tLtZnFnX.js} +3 -3
- package/dist/{GlobalEntryModal-DAf4bqoT.js → GlobalEntryModal-CY-t1fGQ.js} +279 -79
- package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-xX4ruKnx.js} +7 -7
- package/dist/{Icon-CurE93CX.js → Icon-BcaP-f1D.js} +1 -1
- package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-4ky6SOcb.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-BKKmSfLG.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-D0eNj4nD.js} +13 -13
- package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-PKwY3D-0.js} +4 -4
- package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-DrQiG_Vy.js} +252 -224
- package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-jm8KFccr.js} +3 -3
- package/dist/InputDate-C14J5Af2.js +211 -0
- package/dist/{InputText-BvrH0bId.js → InputText-Dr-Wg0uc.js} +2 -2
- package/dist/{Introduction-Cc1kb6ZF.js → Introduction-DXAxkrDG.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-CPMIUjiE.js} +61 -61
- package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-olKUlhpt.js} +8 -8
- package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-BrdI-awc.js} +4 -4
- package/dist/{LegalName-CeRLeIRV.js → LegalName-CWoSqy0V.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-Ca3FLoSd.js} +30 -30
- package/dist/{Link-B-gN0d8l.js → Link-opuU6bLF.js} +1 -1
- package/dist/{ListItem-BGdnopqb.js → ListItem-CbjOa0L_.js} +2 -2
- package/dist/{Modal-smcFQS1n.js → Modal-BDNS-0rS.js} +3 -3
- package/dist/{Name-CjSRwrBX.js → Name-CxlxPgUR.js} +4 -4
- package/dist/{NewSummary-BBgZk5N5.js → NewSummary-mLsovGX8.js} +6 -6
- package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-kOnDnF8P.js} +10 -113
- package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-CZ77wefd.js} +26 -26
- package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-Cyy-fDbK.js} +7 -7
- package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-C0mNADXE.js} +10 -17
- package/dist/{Review-D5P6Ac8i.js → Review-CDtJh9j3.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-CnVWFx0H.js} +30 -30
- package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-Dtx9X-mD.js} +23 -23
- package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-q8PZ0Khk.js} +31 -31
- package/dist/{Select-VeoEeZS8.js → Select-UO37dd_q.js} +5 -5
- package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-D21OqVWo.js} +38 -38
- package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-CRYphIRT.js} +4 -4
- package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-BKB0sRiP.js} +30 -30
- package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-C2ZEp0lT.js} +26 -26
- package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-Cy12c7ou.js} +4 -4
- package/dist/{StateField-Bez_WtWb.js → StateField-CWS8eXex.js} +8 -34
- package/dist/{Step-Onf402RU.js → Step-CYG94mSp.js} +9 -13
- package/dist/{StructuredList-36A9DDQa.js → StructuredList-CqZM_5X9.js} +3 -3
- package/dist/{Task-DiyDnOz9.js → Task-D6xuGucd.js} +11 -11
- package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-C4ND30dB.js} +3 -3
- package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-Dc6n6llv.js} +9 -9
- package/dist/TaskStepperContextProvider-CvChF1W5.js +26 -0
- package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-pjPK5vVN.js} +1 -1
- package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-BACQgHQ7.js} +7 -8
- package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-DmOclyYQ.js} +14 -14
- package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-CBEB7oAn.js} +4 -4
- package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-No_9QGjv.js} +37 -37
- package/dist/{TextArea-CZ6EPFIm.js → TextArea-BzY5efza.js} +3 -3
- package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-BHjbebZX.js} +79 -68
- package/dist/TrustMemberCompanyPage-BSe-Pn1O.js +109 -0
- package/dist/TrustMemberIndividualPage-DxlZQF6W.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-AtlXyfKk.js} +40 -39
- package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-DpmUv4Vj.js} +36 -36
- package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-ESC2Ze3o.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-BVpz27KZ.js} +30 -30
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js} +31 -31
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js} +7 -7
- package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-BCEhkhpr.js} +2 -2
- package/dist/{Workflow-CKPX92cv.js → Workflow-CzSGihyD.js} +6 -6
- package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-3WiED1-j.js} +1 -1
- package/dist/adyen-business-financing.js +31 -31
- package/dist/adyen-individual-configuration.js +56 -56
- package/dist/adyen-individual-status.js +29 -29
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +55 -57
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +30 -30
- package/dist/adyen-transfer-instrument-management.js +38 -38
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-DkDlAHgN.js → bafinUtils-h8n1IbJ9.js} +45 -21
- package/dist/{bg-BG-D4mSRREu.js → bg-BG-BizRzO_4.js} +2 -2
- package/dist/bg-BG-BtgA44Ui.js +7 -0
- package/dist/{bg-BG-BeFIiwVZ.js → bg-BG-DFFyUYhz.js} +1 -4
- package/dist/bg-BG-DYkxVgeJ.js +7 -0
- package/dist/{constants-CpzwsYLt.js → constants-B9iXz9xK.js} +3 -3
- package/dist/cs-CZ-Ci8c58xJ.js +7 -0
- package/dist/{cs-CZ-DHfA1xjQ.js → cs-CZ-DbxpNCVt.js} +1 -4
- package/dist/cs-CZ-DcUnrLLF.js +7 -0
- package/dist/cs-CZ-lJQmuyHq.js +7 -0
- package/dist/da-DK-C1kmOHvo.js +7 -0
- package/dist/da-DK-D53M_d04.js +7 -0
- package/dist/da-DK-DxZQbdeO.js +7 -0
- package/dist/{da-DK--DlccBc0.js → da-DK-zLJRzcB1.js} +1 -4
- package/dist/{de-DE-B_iHAkLT.js → de-DE-BMfqDClD.js} +1 -4
- package/dist/de-DE-BnxQPuqK.js +7 -0
- package/dist/de-DE-qJPTCQlG.js +7 -0
- package/dist/de-DE-qSBQE-6M.js +7 -0
- package/dist/el-GR-Bx996PXx.js +7 -0
- package/dist/el-GR-CgoxpC-Q.js +7 -0
- package/dist/{el-GR-C6jyW53I.js → el-GR-Dv4ru2dp.js} +2 -2
- package/dist/{el-GR-D09thseu.js → el-GR-RfSX8m4j.js} +1 -4
- package/dist/{en-US-Del1h5SS.js → en-US-BUmtG-Wj.js} +5 -1
- package/dist/en-US-C_-DId-G.js +7 -0
- package/dist/{error-DYzwu0no.js → error-CHFF8jLc.js} +2 -2
- package/dist/{es-ES-Bpxn6XGC.js → es-ES-CYw82sbG.js} +1 -4
- package/dist/es-ES-DNhmrVEV.js +7 -0
- package/dist/es-ES-DyB2KXfT.js +7 -0
- package/dist/es-ES-U4-lDfZq.js +7 -0
- package/dist/es-LA-B5IRDCf_.js +7 -0
- package/dist/{es-LA-C8U1qPSu.js → es-LA-BctkHpgC.js} +5 -5
- package/dist/es-LA-C9A4OcR1.js +7 -0
- package/dist/{es-LA-DWAiA7Dw.js → es-LA-CG_cu1hM.js} +2 -2
- package/dist/{es-LA-CJdZb5eY.js → es-LA-CgkOJrPJ.js} +2 -2
- package/dist/es-LA-ChLRkx-r.js +7 -0
- package/dist/{es-LA-CjxlB1WZ.js → es-LA-DDXEJd1M.js} +1 -4
- package/dist/{es-LA-DBBkFhgU.js → es-LA-DcnCNM5a.js} +2 -2
- package/dist/es-LA-Oe31aP7N.js +7 -0
- package/dist/{es-LA-CE8hE_Qb.js → es-LA-s415mKU0.js} +2 -2
- package/dist/et-EE-4_ZUNt3W.js +7 -0
- package/dist/et-EE-BgBr1C0u.js +7 -0
- package/dist/{et-EE-Dtc7YYb4.js → et-EE-BlZkCwz8.js} +1 -4
- package/dist/et-EE-DSK7kb3n.js +7 -0
- package/dist/fi-FI-BSsXGaNE.js +7 -0
- package/dist/{fi-FI-DBhYlO4B.js → fi-FI-CNoPIGJP.js} +1 -4
- package/dist/fi-FI-D06EzKrW.js +7 -0
- package/dist/fi-FI-DgMsQBRO.js +7 -0
- package/dist/{form-rules-Cy_z1LiE.js → form-rules-CKwx5XtT.js} +82 -75
- package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DZ1CxHdw.js} +1 -1
- package/dist/fr-FR-BTJoQq71.js +7 -0
- package/dist/{fr-FR-Dsh0Vb20.js → fr-FR-C88I1PF4.js} +2 -2
- package/dist/{fr-FR-N8UDU_0Y.js → fr-FR-CQZLvhS1.js} +1 -4
- package/dist/fr-FR-Dl4NL-Nc.js +7 -0
- package/dist/{CompanyRegistrationNumberTypeSelector-CX4-v376.js → getDefaultRegistrationNumberType-6m6DEmW8.js} +49 -49
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-DzRO0UUx.js} +19 -2
- package/dist/{getProblemsForEntity-CTxd78-9.js → getProblemsForEntity-CfzojTAS.js} +1 -1
- package/dist/{getTrustedDecisionMakers-DWVtW7JE.js → getTrustedDecisionMakers-qs2frwk2.js} +1 -1
- package/dist/hr-HR-B11sggmG.js +7 -0
- package/dist/{hr-HR-GLRwxTIZ.js → hr-HR-C6-nBPZJ.js} +1 -4
- package/dist/hr-HR-COdiWKoq.js +7 -0
- package/dist/hr-HR-HlAOaG4N.js +7 -0
- package/dist/{hu-HU-s1MKqwI4.js → hu-HU-CKm1kMo5.js} +1 -4
- package/dist/hu-HU-DkSsL94T.js +7 -0
- package/dist/hu-HU-Dp6xOBN_.js +7 -0
- package/dist/hu-HU-s1kS1v8Y.js +7 -0
- package/dist/it-IT-BlaVymCj.js +7 -0
- package/dist/it-IT-CawjvBDX.js +7 -0
- package/dist/{it-IT-xXO07yyz.js → it-IT-DPOJ9mKi.js} +2 -2
- package/dist/{it-IT-2reNk09A.js → it-IT-DjUFw9e_.js} +1 -4
- package/dist/{ja-JP-Bf97gKqg.js → ja-JP-Ce_xNqZj.js} +1 -4
- package/dist/ja-JP-DGj167Zw.js +7 -0
- package/dist/ja-JP-Dpe9Odla.js +7 -0
- package/dist/ja-JP-h3E8hgLv.js +7 -0
- package/dist/{types-CdxNdaM6.js → legalArrangementUtils-skU_cq9L.js} +4 -3
- package/dist/lt-LT-B18sQY9g.js +7 -0
- package/dist/{lt-LT-BUgsY7cD.js → lt-LT-BQD7QWIk.js} +1 -4
- package/dist/lt-LT-CEpjHJry.js +7 -0
- package/dist/lt-LT-Fc1lOUlz.js +7 -0
- package/dist/lv-LV-COsG0cJY.js +7 -0
- package/dist/{lv-LV-BpniO6xp.js → lv-LV-DHwdYWGZ.js} +1 -4
- package/dist/lv-LV-DctYQmfH.js +7 -0
- package/dist/lv-LV-adiXoKhv.js +7 -0
- package/dist/{mapExistingFile-R6-FnjjY.js → mapExistingFile-CDahgHsP.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-C-kAGmiq.js → mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-ChE9qTUB.js} +6 -6
- package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js} +2 -2
- package/dist/nl-NL-9sJ9sG_Q.js +7 -0
- package/dist/nl-NL-BIpptPn4.js +7 -0
- package/dist/{nl-NL-_B3Ey_x1.js → nl-NL-Cdmgljzx.js} +1 -4
- package/dist/nl-NL-DOB0b0m4.js +7 -0
- package/dist/no-NO-BG1sYkpp.js +7 -0
- package/dist/no-NO-DnsCTUl4.js +7 -0
- package/dist/{no-NO-CytzrDfA.js → no-NO-MhaaDGft.js} +1 -4
- package/dist/no-NO-P5tRWhV9.js +7 -0
- package/dist/{pl-PL-DLBeIbY5.js → pl-PL-B0tX08_r.js} +1 -4
- package/dist/pl-PL-BX9Xsn_R.js +7 -0
- package/dist/pl-PL-J9S3_lCf.js +7 -0
- package/dist/pl-PL-_KG-ZD1N.js +7 -0
- package/dist/{processCapabilities-uXoRmB5x.js → processCapabilities-BfskhjUw.js} +2 -1
- package/dist/{processValidationErrors-CxYdVSIk.js → processValidationErrors-CRWq2tu-.js} +3 -3
- package/dist/pt-BR-BYbyk6xS.js +7 -0
- package/dist/{pt-BR-Cf5Jif3w.js → pt-BR-CExpeuK1.js} +1 -4
- package/dist/pt-BR-D23HWCOv2.js +7 -0
- package/dist/pt-BR-fKlNUybd.js +7 -0
- package/dist/{pt-PT-Cg7oMqTO.js → pt-PT-CedGAyU5.js} +1 -4
- package/dist/pt-PT-D8ldyR-j.js +7 -0
- package/dist/pt-PT-DAvsI-Tr.js +7 -0
- package/dist/pt-PT-oMj1KA74.js +7 -0
- package/dist/{resolveEnvironment-iYzRliVi.js → resolveEnvironment-D2iMH7UD.js} +69 -70
- package/dist/{ro-RO-UHWXt9rv.js → ro-RO-C-lRWe1h.js} +1 -4
- package/dist/ro-RO-CQJk7Cpo.js +7 -0
- package/dist/ro-RO-CnMe6Mfw.js +7 -0
- package/dist/ro-RO-Cri5-XPn.js +7 -0
- package/dist/sk-SK-Br1Y4_CN.js +7 -0
- package/dist/sk-SK-Bx2_85dW.js +7 -0
- package/dist/{sk-SK-BQHhBpDH.js → sk-SK-D1duuBif.js} +1 -4
- package/dist/sk-SK-XvPPBgTO.js +7 -0
- package/dist/sl-SI-B31X-t8A.js +7 -0
- package/dist/sl-SI-DHPadSTy.js +7 -0
- package/dist/{sl-SI-DOAJBgQV.js → sl-SI-DO9c7geI.js} +2 -2
- package/dist/{sl-SI-CTrggdef.js → sl-SI-iGtJR9Tk.js} +1 -4
- package/dist/style.css +21 -0
- package/dist/styles-DYaAeu4q.js +21 -0
- package/dist/{sv-SE-Bk55FXGN.js → sv-SE-9GnBnxvb.js} +1 -4
- package/dist/sv-SE-BXrlr0X5.js +7 -0
- package/dist/sv-SE-DBANqFwL.js +7 -0
- package/dist/sv-SE-l_UVgmVu.js +7 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -9
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +2 -40
- package/dist/types/components/Business/utils/utils.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +6 -8
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +13 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +12 -3
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.d.ts +4 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +2 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +2 -7
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +38 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/{components/UnincorporatedPartnership/types/types.d.ts → utils/legalArrangementUtils.d.ts} +2 -1
- package/dist/types/{components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts → utils/unincorporatedParnershipUtils.d.ts} +3 -3
- package/dist/{types-Ai_80DXu.js → types-Bdfu7HN6.js} +1 -1
- package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-DZQuIMNw.js} +83 -180
- package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-BGYdkMIE.js} +3 -3
- package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
- package/dist/{useForm-CEXA_F3u.js → useForm-BJq32Ve1.js} +2 -2
- package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-CcCmW80A.js} +9 -8
- package/dist/{useId-CZMbF_sJ.js → useId-BMocIuPK.js} +1 -1
- package/dist/{useNavigate-RRamr3fr.js → useNavigate-D4ypqPBN.js} +33 -33
- package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-BCzs8Xya.js} +3 -3
- package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-Cf1fN_gV.js} +1 -1
- package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
- package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-DqpnYNNj.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-w3dG_nyc.js} +2 -2
- package/dist/{useUpdateLegalEntity-Cp9Cq-yR.js → useUpdateLegalEntity-CvACAgDP.js} +1 -1
- package/dist/{utils-DxOvaA3u.js → utils-BMhvbUV1.js} +6 -6
- package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
- package/dist/validate-BqIbVY0E.js +151 -0
- package/dist/{validate-BevFCyzw.js → validate-Dfw99Sal.js} +5 -31
- package/dist/{validate-BbOeJY9-.js → validate-DiEa5w30.js} +4 -4
- package/dist/{validate--p4TuNQC.js → validate-RLWN-I5L.js} +68 -51
- package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-DueyX5oY.js} +2 -2
- package/dist/{validationError-BLSF1VbX.js → validationError-BhICjGiF.js} +1 -1
- package/package.json +1 -1
- package/dist/InputDate-Cgld5B0-.js +0 -52
- package/dist/TaskStepperContextProvider-DuM9tlet.js +0 -81
- package/dist/TrustMemberCompanyPage-Bzcvc0Cz.js +0 -109
- package/dist/TrustMemberIndividualPage-DN_epZ5a.js +0 -110
- package/dist/bg-BG-CXqERnFH.js +0 -7
- package/dist/bg-BG-DbS559bK.js +0 -7
- package/dist/cs-CZ-4yvBEVL0.js +0 -7
- package/dist/cs-CZ-DAXMHrMi.js +0 -7
- package/dist/cs-CZ-DySBJFlc.js +0 -7
- package/dist/da-DK-BVaEiAWd.js +0 -7
- package/dist/da-DK-BuvKW6Sq.js +0 -7
- package/dist/da-DK-D3mbpcHG.js +0 -7
- package/dist/de-DE-BQaqplTp.js +0 -7
- package/dist/de-DE-BqujMxXu.js +0 -7
- package/dist/de-DE-D6R-XC2F.js +0 -7
- package/dist/el-GR-B1NjHThy.js +0 -7
- package/dist/el-GR-CedmhUFh.js +0 -7
- package/dist/en-US-D4NrsDmW.js +0 -7
- package/dist/es-ES-BM5RTwb7.js +0 -7
- package/dist/es-ES-C64v4NJD.js +0 -7
- package/dist/es-ES-DTUHhE47.js +0 -7
- package/dist/es-LA-B7pY2dp1.js +0 -7
- package/dist/es-LA-BjZq9RK_.js +0 -7
- package/dist/es-LA-CcMAcJ7u.js +0 -7
- package/dist/es-LA-DlL8vCjJ.js +0 -7
- package/dist/et-EE-DqhEsLik.js +0 -7
- package/dist/et-EE-FtKFvr3u.js +0 -7
- package/dist/et-EE-wDQx9HoZ.js +0 -7
- package/dist/fi-FI-KMP96Qxc.js +0 -7
- package/dist/fi-FI-RfGqWbnB.js +0 -7
- package/dist/fi-FI-SFw2grVp.js +0 -7
- package/dist/fr-FR-C8IPWMDL.js +0 -7
- package/dist/fr-FR-zDxTr2D3.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/hr-HR-COvc9TZy.js +0 -7
- package/dist/hr-HR-Cqgf9B0v.js +0 -7
- package/dist/hr-HR-DPjuJ54x.js +0 -7
- package/dist/hu-HU-DIjDe5aa.js +0 -7
- package/dist/hu-HU-DyM1X3r6.js +0 -7
- package/dist/hu-HU-hB61p4H9.js +0 -7
- package/dist/it-IT-BKTDLRBT.js +0 -7
- package/dist/it-IT-BMXQzE0P.js +0 -7
- package/dist/ja-JP-BhHK_ru2.js +0 -7
- package/dist/ja-JP-BuFZko8b.js +0 -7
- package/dist/ja-JP-DbLRpEVj.js +0 -7
- package/dist/lt-LT-Be3q6tyu.js +0 -7
- package/dist/lt-LT-Btr5el2q.js +0 -7
- package/dist/lt-LT-D4raqCUa.js +0 -7
- package/dist/lv-LV-8wOWTo3r.js +0 -7
- package/dist/lv-LV-DBms129k.js +0 -7
- package/dist/lv-LV-DCeyOqHY.js +0 -7
- package/dist/nl-NL-CdHkQcOS.js +0 -7
- package/dist/nl-NL-Dyb3tkBi.js +0 -7
- package/dist/nl-NL-UhYf45fo.js +0 -7
- package/dist/no-NO-B-xCUkf4.js +0 -7
- package/dist/no-NO-DN7Ovyir.js +0 -7
- package/dist/no-NO-DXDddmYv.js +0 -7
- package/dist/pl-PL-BmiDQi18.js +0 -7
- package/dist/pl-PL-CBwRmIu5.js +0 -7
- package/dist/pl-PL-Cc09pXO8.js +0 -7
- package/dist/pt-BR-DA4PVtVa2.js +0 -7
- package/dist/pt-BR-DXGEP6IP.js +0 -7
- package/dist/pt-BR-hMhyqixD.js +0 -7
- package/dist/pt-PT-BXIKj_3F.js +0 -7
- package/dist/pt-PT-D2qX_lOd.js +0 -7
- package/dist/pt-PT-QU0CQs-d.js +0 -7
- package/dist/ro-RO-CQjOM8e-.js +0 -7
- package/dist/ro-RO-D4TQUwVB.js +0 -7
- package/dist/ro-RO-DNye-gMC.js +0 -7
- package/dist/sk-SK-2jlbtz2r.js +0 -7
- package/dist/sk-SK-CszMszV5.js +0 -7
- package/dist/sk-SK-CwbBfCsU.js +0 -7
- package/dist/sl-SI-9XdXVgB8.js +0 -7
- package/dist/sl-SI-Cyx0QtxG.js +0 -7
- package/dist/sv-SE--LlaHl85.js +0 -7
- package/dist/sv-SE-CqhSdYBe.js +0 -7
- package/dist/sv-SE-kbf3zbjX.js +0 -7
- package/dist/types/components/Shared/forms/Address/Address.d.ts +0 -3
- package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
- package/dist/validate-BjD_UO5x.js +0 -125
|
@@ -1,28 +1,32 @@
|
|
|
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] = "db74c2df-ce51-47db-a44b-8c53373da6c3", e._sentryDebugIdIdentifier = "sentry-dbid-db74c2df-ce51-47db-a44b-8c53373da6c3");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default, E as useAllowedCountries, j as useToggleContext, k as Header,
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, E as useAllowedCountries, j as useToggleContext, k as Header, pt as useAccountHolder, v as isPartOfUnincorporatedPartnership, x as Alert } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Button } from "./Button-nDbNtBn3.js";
|
|
9
9
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
10
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
11
|
+
import { s as keysOf } from "./genUtils-Ce61IJs8.js";
|
|
11
12
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
13
|
+
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
12
14
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
15
|
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
|
|
14
|
-
import { t as InputText } from "./InputText-
|
|
15
|
-
import {
|
|
16
|
-
import { t as ListItem } from "./ListItem-
|
|
16
|
+
import { t as InputText } from "./InputText-Dr-Wg0uc.js";
|
|
17
|
+
import { _ as getPropsFromConfigurations, m as resolveFieldMetadata, t as createFormRules } from "./form-rules-CKwx5XtT.js";
|
|
18
|
+
import { t as ListItem } from "./ListItem-CbjOa0L_.js";
|
|
19
|
+
import { t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
|
|
17
20
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
18
|
-
import { A as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS,
|
|
19
|
-
import { r as Field } from "./Select-
|
|
20
|
-
import {
|
|
21
|
+
import { A as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, C as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, E as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as taxInformationDefaultFieldConfig, H as CompanyTypesValues, I as taxInformationDefaultFieldMetadata, O as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, P as getTaxInformationPlaceholderText, S as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, T as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, V as isJapanLocalizationEnabled, b as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, c as TileGroup, j as isUsingCompanySearch, k as REGISTRATION_NUMBER_EXEMPTION_RULES, l as TAX_INFORMATION_FIELD, u as TaxInformationField, w as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, x as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, y as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION } from "./bafinUtils-h8n1IbJ9.js";
|
|
22
|
+
import { r as Field } from "./Select-UO37dd_q.js";
|
|
23
|
+
import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, l as COUNTRY_FIELD, m as FormFlow, p as getRequiredForms, u as CountryField, y as useFormComposer } from "./RadioGroup-C0mNADXE.js";
|
|
21
24
|
import { t as List } from "./List-ywoRPg-q.js";
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
25
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, n as StateField, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-CWS8eXex.js";
|
|
26
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BrdI-awc.js";
|
|
27
|
+
import { c as CountryOfGoverningLawField, i as isRegistrationExemptionAllowed, l as useLegalCompanyNameField, o as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, s as COUNTRY_OF_GOVERNING_LAW_FIELD, t as CountryOfGoverningLawFieldValidation } from "./validate-BqIbVY0E.js";
|
|
28
|
+
import { l as registrationNumberDefaultFieldConfig, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-6m6DEmW8.js";
|
|
29
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-DHccXqsX.js";
|
|
26
30
|
import { useCallback, useEffect, useMemo, useState } from "preact/compat";
|
|
27
31
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
28
32
|
import { signal } from "@preact/signals";
|
|
@@ -35,14 +39,19 @@ var EntitySetupField_module_default = {
|
|
|
35
39
|
//#endregion
|
|
36
40
|
//#region src/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.tsx
|
|
37
41
|
var ENTITY_SETUP_FIELD = ["entitySetup"];
|
|
42
|
+
/**
|
|
43
|
+
* Determines whether an organization exists at all, rather than what the legal entity is.
|
|
44
|
+
* `partOfABusiness` does not imply an organization legal entity: an individual in an
|
|
45
|
+
* Unincorporated Partnership or Trust picks it too.
|
|
46
|
+
*/
|
|
38
47
|
var EntitySetupField = ({ data, valid, errors, handleChangeFor }) => {
|
|
39
48
|
const { t: globalT } = useTranslation("globalEntry");
|
|
40
|
-
const
|
|
41
|
-
value: "
|
|
49
|
+
const entitySetupOptions = [{
|
|
50
|
+
value: "justMe",
|
|
42
51
|
label: globalT(($) => $["itsJustMe"]),
|
|
43
52
|
iconName: "user"
|
|
44
53
|
}, {
|
|
45
|
-
value: "
|
|
54
|
+
value: "partOfABusiness",
|
|
46
55
|
label: globalT(($) => $["imPartOfABusinessOrOrganization"]),
|
|
47
56
|
iconName: "company"
|
|
48
57
|
}];
|
|
@@ -55,7 +64,7 @@ var EntitySetupField = ({ data, valid, errors, handleChangeFor }) => {
|
|
|
55
64
|
children: () => /* @__PURE__ */ jsx(List, {
|
|
56
65
|
dividers: false,
|
|
57
66
|
padding: "large",
|
|
58
|
-
children:
|
|
67
|
+
children: entitySetupOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
59
68
|
className: EntitySetupField_module_default.entitySetupOption,
|
|
60
69
|
children: /* @__PURE__ */ jsx(Card, {
|
|
61
70
|
selected: data?.entitySetup === option.value,
|
|
@@ -114,7 +123,7 @@ var EntityInformation = ({ id, country }) => {
|
|
|
114
123
|
selectedCountry: country,
|
|
115
124
|
readonly: false,
|
|
116
125
|
handleChangeFor,
|
|
117
|
-
|
|
126
|
+
labelOverride: commonT(($) => $["whereIsYourBusinessRegistered"])
|
|
118
127
|
}),
|
|
119
128
|
/* @__PURE__ */ jsx(EntitySetupField, {
|
|
120
129
|
data: { entitySetup: data?.entitySetup },
|
|
@@ -125,6 +134,77 @@ var EntityInformation = ({ id, country }) => {
|
|
|
125
134
|
]
|
|
126
135
|
});
|
|
127
136
|
};
|
|
137
|
+
var PrimaryPartnerTypeField_module_default = {
|
|
138
|
+
"primary-partner-type": "_primary-partner-type_1omkz_1",
|
|
139
|
+
primaryPartnerType: "_primary-partner-type_1omkz_1"
|
|
140
|
+
};
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.tsx
|
|
143
|
+
var PRIMARY_PARTNER_TYPE_FIELD = ["primaryPartnerType"];
|
|
144
|
+
var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
145
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
146
|
+
const partnerTypeOptions = [{
|
|
147
|
+
value: "individual",
|
|
148
|
+
label: globalEntryT(($) => $["anIndividual"]),
|
|
149
|
+
iconName: "user"
|
|
150
|
+
}, {
|
|
151
|
+
value: "organization",
|
|
152
|
+
label: globalEntryT(($) => $["aBusinessEntity"]),
|
|
153
|
+
iconName: "company"
|
|
154
|
+
}];
|
|
155
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
156
|
+
el: "fieldset",
|
|
157
|
+
name: "primaryPartnerType",
|
|
158
|
+
errorMessage: errors.primaryPartnerType,
|
|
159
|
+
isValid: valid?.primaryPartnerType,
|
|
160
|
+
label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryPartner"]),
|
|
161
|
+
formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOnePartner"]),
|
|
162
|
+
children: () => /* @__PURE__ */ jsx(List, {
|
|
163
|
+
dividers: false,
|
|
164
|
+
padding: "large",
|
|
165
|
+
children: partnerTypeOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
166
|
+
className: PrimaryPartnerTypeField_module_default.primaryPartnerType,
|
|
167
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
168
|
+
selected: data?.primaryPartnerType === option.value,
|
|
169
|
+
onClick: () => handleChangeFor("primaryPartnerType")(option.value),
|
|
170
|
+
children: /* @__PURE__ */ jsx(ListItem, {
|
|
171
|
+
title: option.label,
|
|
172
|
+
avatar: {
|
|
173
|
+
iconName: option.iconName,
|
|
174
|
+
circle: true
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
})
|
|
178
|
+
}, option.value))
|
|
179
|
+
})
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.tsx
|
|
184
|
+
var PRIMARY_PARTNER_FIELDS = [...PRIMARY_PARTNER_TYPE_FIELD];
|
|
185
|
+
var PrimaryPartner = ({ id }) => {
|
|
186
|
+
const { form } = useFormContext();
|
|
187
|
+
const { t: commonT } = useTranslation("common");
|
|
188
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
189
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "primaryPartner");
|
|
190
|
+
const formUtils = createFormUtils({
|
|
191
|
+
requiredFields,
|
|
192
|
+
optionalFields,
|
|
193
|
+
trustedFields
|
|
194
|
+
}, commonT);
|
|
195
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
196
|
+
id,
|
|
197
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
198
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
199
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
200
|
+
}), /* @__PURE__ */ jsx(PrimaryPartnerTypeField, {
|
|
201
|
+
data: { primaryPartnerType: data?.primaryPartnerType },
|
|
202
|
+
valid: { primaryPartnerType: valid?.primaryPartnerType },
|
|
203
|
+
errors: { primaryPartnerType: formUtils.getErrorMessage("primaryPartnerType", errors, fieldProblems) },
|
|
204
|
+
handleChangeFor
|
|
205
|
+
})]
|
|
206
|
+
});
|
|
207
|
+
};
|
|
128
208
|
//#endregion
|
|
129
209
|
//#region src/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.tsx
|
|
130
210
|
var PAPERWORK_QUESTIONNAIRE_FIELD = ["filedPaperwork"];
|
|
@@ -198,23 +278,32 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
198
278
|
//#endregion
|
|
199
279
|
//#region src/components/GlobalEntry/utils.ts
|
|
200
280
|
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
201
|
-
if (data.entityInformation.entitySetup === "
|
|
281
|
+
if (data.entityInformation.entitySetup === "partOfABusiness") {
|
|
202
282
|
if (legalEntity?.organization?.type) return legalEntity?.organization?.type || void 0;
|
|
203
283
|
}
|
|
204
|
-
if (data.entityInformation.entitySetup === "
|
|
284
|
+
if (data.entityInformation.entitySetup === "justMe") return legalEntity && hasSolePropInLegalEntity(legalEntity) || data.registrationInformation.filedPaperwork === "yes" ? CompanyTypesValues.SOLE_PROPRIETORSHIP : LegalEntityTypes.INDIVIDUAL;
|
|
205
285
|
};
|
|
206
286
|
var mapLegalEntityToGlobalEntrySchema = (legalEntity) => {
|
|
287
|
+
const isSoleProprietorship = legalEntity.type === "soleProprietorship";
|
|
288
|
+
const taxInformation = isSoleProprietorship ? legalEntity.soleProprietorship?.taxInformation : legalEntity.organization?.taxInformation;
|
|
289
|
+
const registrationNumber = isSoleProprietorship ? legalEntity.soleProprietorship?.registrationNumber : legalEntity.organization?.registrationNumber;
|
|
290
|
+
const currentCountryTaxInformation = taxInformation?.find((taxInformationItem) => taxInformationItem.country === getLegalEntityCountry(legalEntity));
|
|
291
|
+
const isUen = currentCountryTaxInformation?.type === "UEN";
|
|
207
292
|
return {
|
|
208
293
|
entityInformation: {
|
|
209
|
-
entitySetup: legalEntity.type === "individual" || legalEntity.type === "soleProprietorship" ? "
|
|
294
|
+
entitySetup: legalEntity.type === "individual" || legalEntity.type === "soleProprietorship" ? "justMe" : "partOfABusiness",
|
|
210
295
|
country: getLegalEntityCountry(legalEntity)
|
|
211
296
|
},
|
|
212
297
|
registrationInformation: {
|
|
213
298
|
filedPaperwork: null,
|
|
214
299
|
unincorporatedOrganizationType: null,
|
|
215
|
-
legalCompanyName:
|
|
216
|
-
|
|
217
|
-
|
|
300
|
+
legalCompanyName: isSoleProprietorship ? legalEntity.soleProprietorship?.name : legalEntity.organization?.legalName,
|
|
301
|
+
registrationNumber: isUen ? currentCountryTaxInformation?.number : registrationNumber,
|
|
302
|
+
exemptedFromRegistrationNumber: isSoleProprietorship ? legalEntity.soleProprietorship?.taxAbsent : legalEntity.organization?.registrationNumberAbsent,
|
|
303
|
+
taxInformation,
|
|
304
|
+
isUen
|
|
305
|
+
},
|
|
306
|
+
primaryPartner: { primaryPartnerType: isPartOfUnincorporatedPartnership(legalEntity) ? legalEntity.type === "individual" ? "individual" : "organization" : void 0 }
|
|
218
307
|
};
|
|
219
308
|
};
|
|
220
309
|
//#endregion
|
|
@@ -226,6 +315,7 @@ var REGISTRATION_INFORMATION_FIELDS = [
|
|
|
226
315
|
"jaHaniLegalCompanyName",
|
|
227
316
|
"jaKanaLegalCompanyName",
|
|
228
317
|
...COUNTRY_OF_GOVERNING_LAW_FIELD,
|
|
318
|
+
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
229
319
|
...TAX_INFORMATION_FIELD
|
|
230
320
|
];
|
|
231
321
|
var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) => {
|
|
@@ -236,19 +326,12 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
236
326
|
const { defaultData } = form;
|
|
237
327
|
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "registrationInformation");
|
|
238
328
|
const companyType = getGlobalEntryCompanyType(legalEntity, form.data);
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
242
|
-
companyType
|
|
243
|
-
}, taxInformationDefaultFieldMetadata);
|
|
244
|
-
const formUtils = createFormUtils(mergeFieldMetadataIntoProps("taxInformation", {
|
|
245
|
-
label: taxInformationMetadata.label,
|
|
246
|
-
mask: taxInformationMetadata.mask
|
|
247
|
-
}, {
|
|
329
|
+
const registrationCompanyType = companyType === "individual" ? void 0 : companyType;
|
|
330
|
+
const formUtils = createFormUtils({
|
|
248
331
|
requiredFields,
|
|
249
332
|
optionalFields,
|
|
250
333
|
trustedFields
|
|
251
|
-
}
|
|
334
|
+
}, commonT);
|
|
252
335
|
const legalCompanyNameFields = useLegalCompanyNameField({
|
|
253
336
|
data: data ?? {},
|
|
254
337
|
valid: valid ?? {},
|
|
@@ -271,7 +354,7 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
271
354
|
data: { filedPaperwork: data.filedPaperwork },
|
|
272
355
|
valid: { filedPaperwork: valid.filedPaperwork },
|
|
273
356
|
errors: { filedPaperwork: formUtils.getErrorMessage("filedPaperwork", errors, fieldProblems) },
|
|
274
|
-
label: form.data.entityInformation.entitySetup === "
|
|
357
|
+
label: form.data.entityInformation.entitySetup === "partOfABusiness" ? globalEntryT(($) => $["hasPaperworkBeenFiled"]) : globalEntryT(($) => $["areYourBusinessActivitiesRegisteredWithAGovernmentAuthority"]),
|
|
275
358
|
handleChangeFor
|
|
276
359
|
}),
|
|
277
360
|
showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx(CountryOfGoverningLawField, {
|
|
@@ -319,20 +402,40 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
319
402
|
isUen: valid.isUen
|
|
320
403
|
},
|
|
321
404
|
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
322
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
323
405
|
placeholder: getTaxInformationPlaceholderText({
|
|
324
406
|
country,
|
|
325
407
|
companyType,
|
|
326
408
|
taxIdNumberType: data?.taxInformation?.find((tax) => tax.country === country)?.type
|
|
327
409
|
}),
|
|
328
|
-
mask: formUtils.getMask("taxInformation"),
|
|
329
410
|
shouldValidate,
|
|
330
411
|
readonly: formUtils.isReadOnly("taxInformation"),
|
|
331
412
|
handleChangeFor,
|
|
332
413
|
canExempt: showField(["exemptedFromTax"]),
|
|
414
|
+
registrationNumber: data.registrationNumber,
|
|
333
415
|
country,
|
|
334
416
|
entityType: companyType,
|
|
335
417
|
defaultData: defaultData?.registrationInformation.taxInformation
|
|
418
|
+
}),
|
|
419
|
+
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
420
|
+
data: {
|
|
421
|
+
registrationNumber: data.registrationNumber,
|
|
422
|
+
registrationNumberType: data.registrationNumberType,
|
|
423
|
+
exemptedFromRegistrationNumber: data.exemptedFromRegistrationNumber
|
|
424
|
+
},
|
|
425
|
+
valid: {
|
|
426
|
+
registrationNumber: valid.registrationNumber,
|
|
427
|
+
registrationNumberType: valid.registrationNumberType,
|
|
428
|
+
exemptedFromRegistrationNumber: valid.exemptedFromRegistrationNumber
|
|
429
|
+
},
|
|
430
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
431
|
+
shouldValidate,
|
|
432
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
433
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
434
|
+
handleChangeFor,
|
|
435
|
+
country,
|
|
436
|
+
state: form.data.entityInformation.stateOrProvince,
|
|
437
|
+
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
438
|
+
companyType: registrationCompanyType
|
|
336
439
|
})
|
|
337
440
|
]
|
|
338
441
|
});
|
|
@@ -349,12 +452,18 @@ var globalEntryForms = {
|
|
|
349
452
|
formId: "registrationInformation",
|
|
350
453
|
formName: "registrationInformationFormName",
|
|
351
454
|
fields: REGISTRATION_INFORMATION_FIELDS
|
|
455
|
+
},
|
|
456
|
+
primaryPartner: {
|
|
457
|
+
formId: "primaryPartner",
|
|
458
|
+
formName: "primaryPartnerFormName",
|
|
459
|
+
fields: PRIMARY_PARTNER_FIELDS
|
|
352
460
|
}
|
|
353
461
|
};
|
|
354
462
|
//#endregion
|
|
355
463
|
//#region src/components/GlobalEntry/rules.ts
|
|
356
464
|
var globalEntryFieldRuleConfigurations = {
|
|
357
465
|
entitySetup: { rule: "entitySetupRequired" },
|
|
466
|
+
primaryPartnerType: { rule: "primaryPartnerTypeRequired" },
|
|
358
467
|
country: { rule: "countryRequired" },
|
|
359
468
|
stateOrProvince: { rule: "requireStateOrProvinceForCompanySearch" },
|
|
360
469
|
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
@@ -363,14 +472,20 @@ var globalEntryFieldRuleConfigurations = {
|
|
|
363
472
|
legalCompanyName: { rule: "legalCompanyNameRequired" },
|
|
364
473
|
jaHaniLegalCompanyName: { rule: "jaHaniLegalCompanyName" },
|
|
365
474
|
jaKanaLegalCompanyName: { rule: "jaKanaLegalCompanyName" },
|
|
475
|
+
registrationNumber: { rule: "countryRequiresRegistrationNumber" },
|
|
476
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
477
|
+
exemptedFromRegistrationNumber: { rule: "companyRegistrationNumberExemptionAllowed" },
|
|
366
478
|
taxInformation: { rule: "taxInformationRequired" },
|
|
367
479
|
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
368
480
|
};
|
|
369
|
-
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, taskType }) => {
|
|
370
|
-
const filedPaperwork = data
|
|
371
|
-
const hasAnsweredPaperworkQuestion = data
|
|
372
|
-
const
|
|
373
|
-
const isSoleProp = data
|
|
481
|
+
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, taskType, rootLegalEntity }) => {
|
|
482
|
+
const filedPaperwork = data.registrationInformation?.filedPaperwork === "yes";
|
|
483
|
+
const hasAnsweredPaperworkQuestion = !!data.registrationInformation?.filedPaperwork;
|
|
484
|
+
const isPartOfABusiness = data.entityInformation?.entitySetup === "partOfABusiness";
|
|
485
|
+
const isSoleProp = data.entityInformation?.entitySetup === "justMe" && filedPaperwork;
|
|
486
|
+
const isExemptFromRegistrationNumber = Boolean(data.registrationInformation?.exemptedFromRegistrationNumber);
|
|
487
|
+
const existingRegistrationNumber = rootLegalEntity?.type === "soleProprietorship" ? rootLegalEntity.soleProprietorship?.registrationNumber : rootLegalEntity?.organization?.registrationNumber;
|
|
488
|
+
const isUnincorporatedOrganization = isPartOfABusiness && data?.registrationInformation?.filedPaperwork === "no";
|
|
374
489
|
return createFormRules({
|
|
375
490
|
entitySetupRequired: () => "REQUIRED",
|
|
376
491
|
countryRequired: () => "REQUIRED",
|
|
@@ -378,10 +493,10 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
378
493
|
if (isUsingCompanySearch(country, taskType) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
|
|
379
494
|
},
|
|
380
495
|
countryOfGoverningLawRequired: () => {
|
|
381
|
-
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && (
|
|
496
|
+
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && (isPartOfABusiness || isSoleProp) && hasAnsweredPaperworkQuestion) return "REQUIRED";
|
|
382
497
|
},
|
|
383
498
|
filedPaperworkRequired: () => "REQUIRED",
|
|
384
|
-
unincorporatedOrganizationTypeRequired: () =>
|
|
499
|
+
unincorporatedOrganizationTypeRequired: () => isUnincorporatedOrganization ? "REQUIRED" : void 0,
|
|
385
500
|
legalCompanyNameRequired: () => filedPaperwork ? "REQUIRED" : void 0,
|
|
386
501
|
jaHaniLegalCompanyName: () => {
|
|
387
502
|
if (filedPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
@@ -389,16 +504,87 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
389
504
|
jaKanaLegalCompanyName: () => {
|
|
390
505
|
if (filedPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
391
506
|
},
|
|
392
|
-
|
|
507
|
+
countryRequiresRegistrationNumber: () => {
|
|
508
|
+
if (!filedPaperwork) return;
|
|
509
|
+
if (isSoleProp) {
|
|
510
|
+
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
511
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) return "OPTIONAL";
|
|
512
|
+
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
513
|
+
}
|
|
514
|
+
if (isPartOfABusiness) {
|
|
515
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
516
|
+
if (country === CountryCodes.HongKong) {
|
|
517
|
+
if (!existingRegistrationNumber) return;
|
|
518
|
+
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
519
|
+
}
|
|
520
|
+
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
registrationNumberType: () => {
|
|
524
|
+
if (!filedPaperwork) return;
|
|
525
|
+
if (isSoleProp) return COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country) ? void 0 : "OPTIONAL";
|
|
526
|
+
if (isPartOfABusiness) {
|
|
527
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
528
|
+
if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
|
|
529
|
+
return "OPTIONAL";
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
companyRegistrationNumberExemptionAllowed: () => {
|
|
533
|
+
if (!filedPaperwork) return;
|
|
534
|
+
if (isSoleProp) {
|
|
535
|
+
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
|
|
536
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
537
|
+
}
|
|
538
|
+
if (isPartOfABusiness) {
|
|
539
|
+
const companyType = getGlobalEntryCompanyType(rootLegalEntity, data);
|
|
540
|
+
if (!isRegistrationExemptionAllowed(country)) return;
|
|
541
|
+
const allowedTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
542
|
+
if (allowedTypes.length > 0 && !allowedTypes.includes(companyType)) return;
|
|
543
|
+
/**
|
|
544
|
+
* Country-specific guard checks before applying the shared exemption rule result.
|
|
545
|
+
*
|
|
546
|
+
* - HK first enforces the legacy registration-number presence guard for existing entities.
|
|
547
|
+
* - AU/NZ then enforce the absent-state V4 feature flag gate.
|
|
548
|
+
*/
|
|
549
|
+
switch (country) {
|
|
550
|
+
case CountryCodes.HongKong:
|
|
551
|
+
if (!existingRegistrationNumber) return;
|
|
552
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
553
|
+
case CountryCodes.Australia:
|
|
554
|
+
case CountryCodes.NewZealand:
|
|
555
|
+
if (!isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4")) return;
|
|
556
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
557
|
+
default: return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
taxInformationRequired: () => {
|
|
562
|
+
const requiredUnlessExempt = Boolean(data.registrationInformation?.exemptedFromTax) ? "OPTIONAL" : "REQUIRED";
|
|
563
|
+
const usesTaxIdInsteadOfVat = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country);
|
|
564
|
+
if (!filedPaperwork) return;
|
|
565
|
+
if (isPartOfABusiness) {
|
|
566
|
+
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount")) {
|
|
567
|
+
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country)) return requiredUnlessExempt;
|
|
568
|
+
if (country === CountryCodes.Italy && data.registrationInformation?.registrationNumberType === "CCIAA") return requiredUnlessExempt;
|
|
569
|
+
}
|
|
570
|
+
if (usesTaxIdInsteadOfVat) return requiredUnlessExempt;
|
|
571
|
+
}
|
|
572
|
+
if (isSoleProp) {
|
|
573
|
+
if (COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country)) return;
|
|
574
|
+
if (usesTaxIdInsteadOfVat) return requiredUnlessExempt;
|
|
575
|
+
}
|
|
576
|
+
},
|
|
393
577
|
countryHasTaxExemptions: () => {
|
|
394
|
-
|
|
578
|
+
if (!filedPaperwork) return;
|
|
579
|
+
const isExemptFromTax = Boolean(data.registrationInformation?.exemptedFromTax);
|
|
395
580
|
if (isSoleProp) {
|
|
396
581
|
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
397
582
|
return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
398
583
|
}
|
|
399
584
|
if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
400
585
|
if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
401
|
-
}
|
|
586
|
+
},
|
|
587
|
+
primaryPartnerTypeRequired: () => isUnincorporatedOrganization && data.registrationInformation.unincorporatedOrganizationType === "unincorporatedPartnership" ? "REQUIRED" : void 0
|
|
402
588
|
});
|
|
403
589
|
};
|
|
404
590
|
//#endregion
|
|
@@ -407,22 +593,31 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
|
|
|
407
593
|
const country = data?.entityInformation?.country ?? getLegalEntityCountry(legalEntity);
|
|
408
594
|
const countryOfGoverningLawValidators = CountryOfGoverningLawFieldValidation().countryOfGoverningLaw;
|
|
409
595
|
const useStrictNameValidation = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
410
|
-
const legalCompanyNameValidators = resolveFieldMetadata(useStrictNameValidation ? defaultFieldConfigV4[country] : defaultFieldConfig
|
|
411
|
-
const stateValidators =
|
|
596
|
+
const legalCompanyNameValidators = resolveFieldMetadata(useStrictNameValidation ? defaultFieldConfigV4[country] : defaultFieldConfig[country], {}, useStrictNameValidation ? defaultFieldMetadataV4 : defaultFieldMetadata).validators;
|
|
597
|
+
const stateValidators = stateFieldMetadata.validators;
|
|
412
598
|
const taxIdNumberType = data?.registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
413
599
|
const companyType = data ? getGlobalEntryCompanyType(legalEntity, data) : void 0;
|
|
414
600
|
const taxInformationValidators = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
415
601
|
taxIdNumberType,
|
|
416
602
|
companyType
|
|
417
603
|
}, taxInformationDefaultFieldMetadata).validators;
|
|
604
|
+
const registrationNumberValidators = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
605
|
+
registrationNumberType: data?.registrationInformation?.registrationNumberType,
|
|
606
|
+
state: data?.entityInformation?.stateOrProvince
|
|
607
|
+
}, registrationNumberDefaultFieldMetadata).validators;
|
|
418
608
|
return {
|
|
419
609
|
entityInformation: { stateOrProvince: stateValidators },
|
|
610
|
+
primaryPartner: { primaryPartnerType: {
|
|
611
|
+
validate: (value) => !!value,
|
|
612
|
+
modes: ["blur", "input"]
|
|
613
|
+
} },
|
|
420
614
|
registrationInformation: {
|
|
421
615
|
countryOfGoverningLaw: countryOfGoverningLawValidators,
|
|
422
616
|
legalCompanyName: legalCompanyNameValidators,
|
|
617
|
+
registrationNumber: registrationNumberValidators,
|
|
423
618
|
taxInformation: taxInformationValidators,
|
|
424
619
|
unincorporatedOrganizationType: {
|
|
425
|
-
validate: (value) => value !== "unincorporatedAssociation",
|
|
620
|
+
validate: (value) => !!value && value !== "unincorporatedAssociation",
|
|
426
621
|
modes: ["blur", "input"]
|
|
427
622
|
}
|
|
428
623
|
}
|
|
@@ -442,6 +637,7 @@ var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
|
442
637
|
shouldValidate,
|
|
443
638
|
country
|
|
444
639
|
});
|
|
640
|
+
case "primaryPartner": return /* @__PURE__ */ jsx(PrimaryPartner, { id: activeForm.formId });
|
|
445
641
|
default: return null;
|
|
446
642
|
}
|
|
447
643
|
};
|
|
@@ -460,7 +656,7 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
460
656
|
"../language/da-DK.json": () => import("./da-DK-BfaKncp5.js"),
|
|
461
657
|
"../language/de-DE.json": () => import("./de-DE-GUfA18ps.js"),
|
|
462
658
|
"../language/el-GR.json": () => import("./el-GR-CJqHd-CD.js"),
|
|
463
|
-
"../language/en-US.json": () => import("./en-US-
|
|
659
|
+
"../language/en-US.json": () => import("./en-US-BUmtG-Wj.js"),
|
|
464
660
|
"../language/es-ES.json": () => import("./es-ES-IobfbI71.js"),
|
|
465
661
|
"../language/es-LA.json": () => import("./es-LA--YYwwbVo.js"),
|
|
466
662
|
"../language/et-EE.json": () => import("./et-EE-DqYCOl2Y.js"),
|
|
@@ -486,32 +682,32 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
486
682
|
addResourceBundles(i18n, [{
|
|
487
683
|
ns: "business",
|
|
488
684
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
489
|
-
"../../Business/language/bg-BG.json": () => import("./bg-BG-
|
|
490
|
-
"../../Business/language/cs-CZ.json": () => import("./cs-CZ-
|
|
491
|
-
"../../Business/language/da-DK.json": () => import("./da-DK-
|
|
492
|
-
"../../Business/language/de-DE.json": () => import("./de-DE-
|
|
493
|
-
"../../Business/language/el-GR.json": () => import("./el-GR-
|
|
685
|
+
"../../Business/language/bg-BG.json": () => import("./bg-BG-DYkxVgeJ.js"),
|
|
686
|
+
"../../Business/language/cs-CZ.json": () => import("./cs-CZ-lJQmuyHq.js"),
|
|
687
|
+
"../../Business/language/da-DK.json": () => import("./da-DK-D53M_d04.js"),
|
|
688
|
+
"../../Business/language/de-DE.json": () => import("./de-DE-qJPTCQlG.js"),
|
|
689
|
+
"../../Business/language/el-GR.json": () => import("./el-GR-Bx996PXx.js"),
|
|
494
690
|
"../../Business/language/en-US.json": () => import("./en-US-CJPD8qHc.js"),
|
|
495
|
-
"../../Business/language/es-ES.json": () => import("./es-ES-
|
|
496
|
-
"../../Business/language/es-LA.json": () => import("./es-LA-
|
|
497
|
-
"../../Business/language/et-EE.json": () => import("./et-EE-
|
|
498
|
-
"../../Business/language/fi-FI.json": () => import("./fi-FI-
|
|
499
|
-
"../../Business/language/fr-FR.json": () => import("./fr-FR-
|
|
500
|
-
"../../Business/language/hr-HR.json": () => import("./hr-HR-
|
|
501
|
-
"../../Business/language/hu-HU.json": () => import("./hu-HU-
|
|
502
|
-
"../../Business/language/it-IT.json": () => import("./it-IT-
|
|
503
|
-
"../../Business/language/ja-JP.json": () => import("./ja-JP-
|
|
504
|
-
"../../Business/language/lt-LT.json": () => import("./lt-LT-
|
|
505
|
-
"../../Business/language/lv-LV.json": () => import("./lv-LV-
|
|
506
|
-
"../../Business/language/nl-NL.json": () => import("./nl-NL-
|
|
507
|
-
"../../Business/language/no-NO.json": () => import("./no-NO-
|
|
508
|
-
"../../Business/language/pl-PL.json": () => import("./pl-PL-
|
|
509
|
-
"../../Business/language/pt-BR.json": () => import("./pt-BR-
|
|
510
|
-
"../../Business/language/pt-PT.json": () => import("./pt-PT-
|
|
511
|
-
"../../Business/language/ro-RO.json": () => import("./ro-RO-
|
|
512
|
-
"../../Business/language/sk-SK.json": () => import("./sk-SK-
|
|
513
|
-
"../../Business/language/sl-SI.json": () => import("./sl-SI-
|
|
514
|
-
"../../Business/language/sv-SE.json": () => import("./sv-SE-
|
|
691
|
+
"../../Business/language/es-ES.json": () => import("./es-ES-U4-lDfZq.js"),
|
|
692
|
+
"../../Business/language/es-LA.json": () => import("./es-LA-B5IRDCf_.js"),
|
|
693
|
+
"../../Business/language/et-EE.json": () => import("./et-EE-4_ZUNt3W.js"),
|
|
694
|
+
"../../Business/language/fi-FI.json": () => import("./fi-FI-D06EzKrW.js"),
|
|
695
|
+
"../../Business/language/fr-FR.json": () => import("./fr-FR-Dl4NL-Nc.js"),
|
|
696
|
+
"../../Business/language/hr-HR.json": () => import("./hr-HR-B11sggmG.js"),
|
|
697
|
+
"../../Business/language/hu-HU.json": () => import("./hu-HU-Dp6xOBN_.js"),
|
|
698
|
+
"../../Business/language/it-IT.json": () => import("./it-IT-BlaVymCj.js"),
|
|
699
|
+
"../../Business/language/ja-JP.json": () => import("./ja-JP-h3E8hgLv.js"),
|
|
700
|
+
"../../Business/language/lt-LT.json": () => import("./lt-LT-B18sQY9g.js"),
|
|
701
|
+
"../../Business/language/lv-LV.json": () => import("./lv-LV-adiXoKhv.js"),
|
|
702
|
+
"../../Business/language/nl-NL.json": () => import("./nl-NL-DOB0b0m4.js"),
|
|
703
|
+
"../../Business/language/no-NO.json": () => import("./no-NO-BG1sYkpp.js"),
|
|
704
|
+
"../../Business/language/pl-PL.json": () => import("./pl-PL-J9S3_lCf.js"),
|
|
705
|
+
"../../Business/language/pt-BR.json": () => import("./pt-BR-BYbyk6xS.js"),
|
|
706
|
+
"../../Business/language/pt-PT.json": () => import("./pt-PT-D8ldyR-j.js"),
|
|
707
|
+
"../../Business/language/ro-RO.json": () => import("./ro-RO-CnMe6Mfw.js"),
|
|
708
|
+
"../../Business/language/sk-SK.json": () => import("./sk-SK-Br1Y4_CN.js"),
|
|
709
|
+
"../../Business/language/sl-SI.json": () => import("./sl-SI-DHPadSTy.js"),
|
|
710
|
+
"../../Business/language/sv-SE.json": () => import("./sv-SE-BXrlr0X5.js")
|
|
515
711
|
}), `../../Business/language/${lang}.json`, 5)
|
|
516
712
|
}]);
|
|
517
713
|
const handleClose = () => {
|
|
@@ -536,12 +732,14 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
536
732
|
isFeatureEnabled,
|
|
537
733
|
country,
|
|
538
734
|
taskType: TaskTypes.GLOBAL_ENTRY,
|
|
539
|
-
accountHolder
|
|
735
|
+
accountHolder,
|
|
736
|
+
rootLegalEntity
|
|
540
737
|
}), [
|
|
541
738
|
accountHolder,
|
|
542
739
|
isFeatureEnabled,
|
|
543
740
|
country,
|
|
544
|
-
data
|
|
741
|
+
data,
|
|
742
|
+
rootLegalEntity
|
|
545
743
|
]);
|
|
546
744
|
useEffect(() => {
|
|
547
745
|
setDerivedProps(getPropsFromConfigurations({
|
|
@@ -554,7 +752,9 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
554
752
|
legalEntityType: rootLegalEntity?.type
|
|
555
753
|
}));
|
|
556
754
|
}, [rootLegalEntity?.type, rules]);
|
|
557
|
-
const forms = useMemo(() =>
|
|
755
|
+
const forms = useMemo(() => {
|
|
756
|
+
return addValidityToForms(getRequiredForms(globalEntryForms, derivedProps?.requiredFields, derivedProps?.optionalFields), formValidity, void 0);
|
|
757
|
+
}, [derivedProps, formValidity]);
|
|
558
758
|
const { activeForm, handleNextClick, handleBackClick, steps, gotoFormByFormId, gotoFormByFormIndex, shouldValidate } = useFormComposer({
|
|
559
759
|
onSubmit: () => {
|
|
560
760
|
showGlobalEntryModal.value = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "308ef387-0b97-4f30-ad7b-8e2d94b907f7", e._sentryDebugIdIdentifier = "sentry-dbid-308ef387-0b97-4f30-ad7b-8e2d94b907f7");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Button } from "./Button-nDbNtBn3.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
10
|
-
import {
|
|
11
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
10
|
+
import { v as LandingLayout } from "./form-rules-CKwx5XtT.js";
|
|
11
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-CY-t1fGQ.js";
|
|
12
12
|
import { t as Image } from "./Image-D82terx4.js";
|
|
13
|
-
import { t as Link } from "./Link-
|
|
13
|
+
import { t as Link } from "./Link-opuU6bLF.js";
|
|
14
14
|
import { lazy } from "preact/compat";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
16
16
|
import { Show } from "@preact/signals/utils";
|
|
@@ -27,7 +27,7 @@ var GlobalEntryPage = () => {
|
|
|
27
27
|
"../language/da-DK.json": () => import("./da-DK-BfaKncp5.js"),
|
|
28
28
|
"../language/de-DE.json": () => import("./de-DE-GUfA18ps.js"),
|
|
29
29
|
"../language/el-GR.json": () => import("./el-GR-CJqHd-CD.js"),
|
|
30
|
-
"../language/en-US.json": () => import("./en-US-
|
|
30
|
+
"../language/en-US.json": () => import("./en-US-BUmtG-Wj.js"),
|
|
31
31
|
"../language/es-ES.json": () => import("./es-ES-IobfbI71.js"),
|
|
32
32
|
"../language/es-LA.json": () => import("./es-LA--YYwwbVo.js"),
|
|
33
33
|
"../language/et-EE.json": () => import("./et-EE-DqYCOl2Y.js"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0e6919c8-caea-4d4a-8739-10656c4e2ed5", e._sentryDebugIdIdentifier = "sentry-dbid-0e6919c8-caea-4d4a-8739-10656c4e2ed5");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
6
|
import { Suspense, lazy } from "preact/compat";
|