@adyen/kyc-components 4.21.0 → 4.22.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-CLA1JNzc.js} +5 -5
- package/dist/{Accordion-DC7Iuj-J.js → Accordion-Cwp-Xc7e.js} +1 -1
- package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-B2h3LRDZ.js} +1 -1
- package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-BHooRzh_.js} +17 -17
- package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-D1EALddI.js} +54 -54
- package/dist/{AddressField-M0N4sAfl.js → AddressFields-CU23S3JV.js} +108 -173
- package/dist/{Avatar-BKTdqNpO.js → Avatar-BbOb0bui.js} +1 -1
- package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-Cc0oB8ka.js} +104 -199
- package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-D0EmBl9D.js} +30 -30
- package/dist/BusinessRegistrationNumberField-c8mvmS4m.js +101 -0
- package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-DNZALTo_.js} +5 -6
- package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-CYjrUqoM.js} +13 -13
- package/dist/{Button-DSD_afG_.js → Button-oqvTDztg.js} +1 -1
- package/dist/{Checkbox-Bc98rXHW.js → Checkbox-2Rp9bWYN.js} +1 -1
- package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-DbWo8fnI.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-64rqHz7d.js} +67 -105
- package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-ucx3UuP8.js} +5 -5
- package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-CIwiyrm9.js} +2 -2
- package/dist/{Currency-BlBJnPV7.js → Currency-fvQfdQ2i.js} +5 -5
- package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-CHHRYNTG.js} +13 -12
- package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-BJHJVW3V.js} +6 -6
- package/dist/{DebugModal-BAf5ZU42.js → DebugModal-CptS2b87.js} +10 -10
- package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-a_G8S1S9.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-BsiheWPy.js} +34 -34
- package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-DC3r2UzN.js} +40 -40
- package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CTdbCPiL.js} +7 -7
- package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-DqanSUWu.js} +3 -3
- package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-CRNRpDeu.js} +2 -2
- package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-DqTOqixv.js} +6 -6
- package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-jcVYNW8o.js} +3 -3
- package/dist/GlobalEntryModal-Bwy0lfz2.js +951 -0
- package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-DPKND7LX.js} +12 -9
- package/dist/{Icon-CurE93CX.js → Icon-BblJeZYj.js} +1 -1
- package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-D9t0xamT.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-0Ll_77LW.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-DESXjfuC.js} +13 -13
- package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-4BHmKpNa.js} +4 -4
- package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-CMejkT3R.js} +251 -226
- package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-xFrcCogG.js} +4 -4
- package/dist/InputDate-DMcomeFj.js +211 -0
- package/dist/{InputText-BvrH0bId.js → InputText-BqeL5dXt.js} +3 -3
- package/dist/{Introduction-Cc1kb6ZF.js → Introduction-6WPMkIpx.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-w0xQxDgC.js} +61 -61
- package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-Cic1nSNI.js} +8 -8
- package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-Dl60xD84.js} +5 -5
- package/dist/{LegalName-CeRLeIRV.js → LegalName-DDKN6L93.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-B2ubp7Rb.js} +30 -30
- package/dist/{Link-B-gN0d8l.js → Link-Bb1XDrs1.js} +1 -1
- package/dist/{ListItem-BGdnopqb.js → ListItem-CI4fqIkg.js} +2 -2
- package/dist/{Modal-smcFQS1n.js → Modal-By_wpf9o.js} +3 -3
- package/dist/{Name-CjSRwrBX.js → Name-BpKVUmoY.js} +4 -4
- package/dist/{NewSummary-BBgZk5N5.js → NewSummary-Bmi54FYk.js} +6 -6
- package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-DsZX3cb-.js} +10 -113
- package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-BkzjalFb.js} +26 -26
- package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-BLbHUm0I.js} +7 -7
- package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-e6Ty_ggj.js} +12 -19
- package/dist/{Review-D5P6Ac8i.js → Review-BG_iSaAN.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-D6ZEfFr4.js} +30 -30
- package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-B6Swhdyx.js} +23 -23
- package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-2Bu7fbyB.js} +31 -31
- package/dist/{Select-VeoEeZS8.js → Select-CrcaoG0i.js} +6 -6
- package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-B4Iz8PXX.js} +38 -38
- package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-D2NSiGzi.js} +4 -4
- package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-bJ6oea6W.js} +30 -30
- package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-Bu9e93PV.js} +26 -28
- package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-CW7McbuG.js} +5 -5
- package/dist/{StateField-Bez_WtWb.js → StateField-BnyUQjAj.js} +49 -34
- package/dist/{Step-Onf402RU.js → Step-CZq7qzCe.js} +9 -13
- package/dist/{Task-DiyDnOz9.js → Task-Jhx4xFyF.js} +11 -11
- package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-CHPDt1lw.js} +3 -3
- package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-BAHYod3y.js} +10 -10
- package/dist/TaskStepperContextProvider-BtpYUg5S.js +26 -0
- package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-onOyOzoM.js} +1 -1
- package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-D4bSgrDG.js} +7 -8
- package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-BD-WaKf5.js} +14 -14
- package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-UVCd2CGW.js} +5 -5
- package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-Czlvu-_X.js} +37 -37
- package/dist/{TextArea-CZ6EPFIm.js → TextArea-Doiwq6Fz.js} +4 -4
- package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-Do_Pgp5e.js} +79 -70
- package/dist/TrustMemberCompanyPage-COKJWVwj.js +109 -0
- package/dist/TrustMemberIndividualPage-BTzYVATe.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-CvT2NyPL.js} +40 -40
- package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-Dx2d70H1.js} +36 -36
- package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-DItfn-Pd.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-CLBFd1-S.js} +30 -30
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-5RlKVr20.js} +31 -31
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-D3j7kPUH.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-BrypfDgd.js} +7 -7
- package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-Dg0EN5Gg.js} +2 -2
- package/dist/{Workflow-CKPX92cv.js → Workflow-BbFLvLAf.js} +6 -6
- package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-BnH2f3aW.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 +67 -60
- 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-F8i4raV6.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-C1GRcz1y.js} +4 -4
- 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-3d6yiTPF.js} +3 -3
- 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-BhIs9ilj.js} +82 -75
- package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DdKr3rgo.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-CfU1YUaz.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-Brlr-pKL.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-CWb68lJV.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-B3XhBnaa.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-n4ffPJ2c.js} +3 -3
- 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-BfqJR1rP.js} +4 -4
- 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-Bp-RuIhz.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/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils.d.ts +22 -1
- package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -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/router/routeConfig.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-C6GnB9nH.js} +1 -1
- package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-UyUhXzON.js} +82 -182
- package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-C6qXZZe8.js} +3 -3
- package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
- package/dist/{useForm-CEXA_F3u.js → useForm-BhfuVkAR.js} +2 -2
- package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-Dlzsx-RK.js} +9 -8
- package/dist/{useId-CZMbF_sJ.js → useId-DqpXTon5.js} +1 -1
- package/dist/{useNavigate-RRamr3fr.js → useNavigate-Xc0HARgb.js} +33 -33
- package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-gzi6QOI7.js} +3 -3
- package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-BXv-wuAJ.js} +1 -1
- package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
- package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-wjNlRtOm.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-CfpBIS06.js} +2 -2
- package/dist/{utils-DxOvaA3u.js → utils-DebuaWe9.js} +6 -6
- package/dist/{StructuredList-36A9DDQa.js → utils-DyriwmGv.js} +94 -5
- package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
- package/dist/{validate-BbOeJY9-.js → validate-C2fajdCR.js} +4 -4
- package/dist/{validate--p4TuNQC.js → validate-DruWE6jY.js} +68 -51
- package/dist/{validate-BevFCyzw.js → validate-DzNLLQoR.js} +5 -31
- package/dist/validate-MsZ6MiUq.js +151 -0
- package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-BfwUJj1D.js} +2 -2
- package/dist/{validationError-BLSF1VbX.js → validationError-DudGlB6v.js} +2 -2
- package/package.json +1 -1
- package/dist/GlobalEntryModal-DAf4bqoT.js +0 -589
- 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/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
- package/dist/useUpdateLegalEntity-Cp9Cq-yR.js +0 -29
- package/dist/utils-DdHbAadK.js +0 -80
- package/dist/validate-BjD_UO5x.js +0 -125
|
@@ -1,8 +1,8 @@
|
|
|
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] = "fae48524-6bfc-48f8-be66-5851d92f7143", e._sentryDebugIdIdentifier = "sentry-dbid-fae48524-6bfc-48f8-be66-5851d92f7143");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as getFieldNameFromPath } from "./ErrorPanel-
|
|
5
|
+
import { i as getFieldNameFromPath } from "./ErrorPanel-jcVYNW8o.js";
|
|
6
6
|
//#region src/utils/validationError.ts
|
|
7
7
|
var API_VALIDATION_ERROR_CODE = "30_102";
|
|
8
8
|
var ID_DOCUMENT_UPLOAD_ERROR_CODE = "30_105";
|
package/package.json
CHANGED
|
@@ -1,589 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8d99437d-4093-4562-8826-88eabff6d2d7", e._sentryDebugIdIdentifier = "sentry-dbid-8d99437d-4093-4562-8826-88eabff6d2d7");
|
|
4
|
-
} catch (e) {}
|
|
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, mt as useAccountHolder, x as Alert } from "./resolveEnvironment-iYzRliVi.js";
|
|
7
|
-
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { t as Button } from "./Button-DSD_afG_.js";
|
|
9
|
-
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
|
-
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
11
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
12
|
-
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
-
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
|
|
14
|
-
import { t as InputText } from "./InputText-BvrH0bId.js";
|
|
15
|
-
import { g as getPropsFromConfigurations, t as createFormRules } from "./form-rules-Cy_z1LiE.js";
|
|
16
|
-
import { t as ListItem } from "./ListItem-BGdnopqb.js";
|
|
17
|
-
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
18
|
-
import { A as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, I as getTaxInformationPlaceholderText, L as taxInformationDefaultFieldConfig, R as taxInformationDefaultFieldMetadata, U as isJapanLocalizationEnabled, W as CompanyTypesValues, c as TileGroup, j as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, k as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, l as TAX_INFORMATION_FIELD, u as TaxInformationField } from "./bafinUtils-DkDlAHgN.js";
|
|
19
|
-
import { r as Field } from "./Select-VeoEeZS8.js";
|
|
20
|
-
import { A as createFormUtils, N as FormContextProvider, S as summaryStep, _ as useMultiForm, b as useFormComposer, d as CountryField, f as useFormContext, h as FormFlow, j as mergeFieldMetadataIntoProps, l as resolveFieldMetadata, p as addValidityToForms, u as COUNTRY_FIELD } from "./RadioGroup-CdF_CJsU.js";
|
|
21
|
-
import { t as List } from "./List-ywoRPg-q.js";
|
|
22
|
-
import { f as COUNTRIES_WITH_STATES_DATASET, i as defaultFieldMetadata, n as StateField, r as defaultFieldConfig, t as STATE_FIELD } from "./StateField-Bez_WtWb.js";
|
|
23
|
-
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
24
|
-
import { a as defaultFieldMetadata$1, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$1, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BmLuKn05.js";
|
|
25
|
-
import { a as CountryOfGoverningLawField, i as COUNTRY_OF_GOVERNING_LAW_FIELD, n as isUsingCompanySearch, o as useLegalCompanyNameField, r as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, t as CountryOfGoverningLawFieldValidation } from "./validate-BjD_UO5x.js";
|
|
26
|
-
import { useCallback, useEffect, useMemo, useState } from "preact/compat";
|
|
27
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
28
|
-
import { signal } from "@preact/signals";
|
|
29
|
-
//#region src/components/GlobalEntry/globalEntryStore.ts
|
|
30
|
-
var showGlobalEntryModal = signal(false);
|
|
31
|
-
var EntitySetupField_module_default = {
|
|
32
|
-
"entity-setup-option": "_entity-setup-option_1ykiv_1",
|
|
33
|
-
entitySetupOption: "_entity-setup-option_1ykiv_1"
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.tsx
|
|
37
|
-
var ENTITY_SETUP_FIELD = ["entitySetup"];
|
|
38
|
-
var EntitySetupField = ({ data, valid, errors, handleChangeFor }) => {
|
|
39
|
-
const { t: globalT } = useTranslation("globalEntry");
|
|
40
|
-
const entityOptions = [{
|
|
41
|
-
value: "individual",
|
|
42
|
-
label: globalT(($) => $["itsJustMe"]),
|
|
43
|
-
iconName: "user"
|
|
44
|
-
}, {
|
|
45
|
-
value: "organization",
|
|
46
|
-
label: globalT(($) => $["imPartOfABusinessOrOrganization"]),
|
|
47
|
-
iconName: "company"
|
|
48
|
-
}];
|
|
49
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
50
|
-
el: "fieldset",
|
|
51
|
-
name: "entitySetup",
|
|
52
|
-
errorMessage: errors.entitySetup,
|
|
53
|
-
isValid: valid?.entitySetup,
|
|
54
|
-
label: globalT(($) => $["howIsYourBusinessSetup"]),
|
|
55
|
-
children: () => /* @__PURE__ */ jsx(List, {
|
|
56
|
-
dividers: false,
|
|
57
|
-
padding: "large",
|
|
58
|
-
children: entityOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
59
|
-
className: EntitySetupField_module_default.entitySetupOption,
|
|
60
|
-
children: /* @__PURE__ */ jsx(Card, {
|
|
61
|
-
selected: data?.entitySetup === option.value,
|
|
62
|
-
onClick: () => handleChangeFor("entitySetup")(option.value),
|
|
63
|
-
children: /* @__PURE__ */ jsx(ListItem, {
|
|
64
|
-
title: option.label,
|
|
65
|
-
avatar: {
|
|
66
|
-
iconName: option.iconName,
|
|
67
|
-
circle: true
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
})
|
|
71
|
-
}, option.value))
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/components/GlobalEntry/forms/EntityInformation/EntityInformation.tsx
|
|
77
|
-
var ENTITY_INFORMATION_FIELDS = [
|
|
78
|
-
...COUNTRY_FIELD,
|
|
79
|
-
...STATE_FIELD,
|
|
80
|
-
...ENTITY_SETUP_FIELD
|
|
81
|
-
];
|
|
82
|
-
var EntityInformation = ({ id, country }) => {
|
|
83
|
-
const { form } = useFormContext();
|
|
84
|
-
const { t: commonT } = useTranslation("common");
|
|
85
|
-
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
86
|
-
const allowedCountries = useAllowedCountries();
|
|
87
|
-
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "entityInformation");
|
|
88
|
-
const formUtils = createFormUtils({
|
|
89
|
-
requiredFields,
|
|
90
|
-
optionalFields,
|
|
91
|
-
trustedFields
|
|
92
|
-
}, commonT);
|
|
93
|
-
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
94
|
-
return /* @__PURE__ */ jsxs("form", {
|
|
95
|
-
id,
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ jsx(Header, {
|
|
98
|
-
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
99
|
-
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ jsx(CountryField, {
|
|
102
|
-
data: { country: data?.country },
|
|
103
|
-
valid: { country: valid?.country },
|
|
104
|
-
errors: { country: formUtils.getErrorMessage("country", errors, fieldProblems) },
|
|
105
|
-
labels: { country: globalEntryT(($) => $["whereIsYourBusinessLocated"]) },
|
|
106
|
-
readonly: false,
|
|
107
|
-
allowedCountries,
|
|
108
|
-
handleChangeFor
|
|
109
|
-
}),
|
|
110
|
-
showField(STATE_FIELD) && /* @__PURE__ */ jsx(StateField, {
|
|
111
|
-
data: { stateOrProvince: data?.stateOrProvince },
|
|
112
|
-
valid: { stateOrProvince: valid?.stateOrProvince },
|
|
113
|
-
errors: { stateOrProvince: formUtils.getErrorMessage("stateOrProvince", errors, fieldProblems) },
|
|
114
|
-
selectedCountry: country,
|
|
115
|
-
readonly: false,
|
|
116
|
-
handleChangeFor,
|
|
117
|
-
isBusinessSearch: true
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ jsx(EntitySetupField, {
|
|
120
|
-
data: { entitySetup: data?.entitySetup },
|
|
121
|
-
valid: { entitySetup: valid?.entitySetup },
|
|
122
|
-
errors: { entitySetup: formUtils.getErrorMessage("entitySetup", errors, fieldProblems) },
|
|
123
|
-
handleChangeFor
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.tsx
|
|
130
|
-
var PAPERWORK_QUESTIONNAIRE_FIELD = ["filedPaperwork"];
|
|
131
|
-
function PaperworkQuestionnaire({ data, valid, handleChangeFor, errors, label }) {
|
|
132
|
-
const { t } = useTranslation(["globalEntry", "common"]);
|
|
133
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
134
|
-
el: "fieldset",
|
|
135
|
-
name: "PaperworkQuestionnaire",
|
|
136
|
-
label,
|
|
137
|
-
isValid: valid.filedPaperwork,
|
|
138
|
-
errorMessage: errors.filedPaperwork,
|
|
139
|
-
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
140
|
-
variant: "link",
|
|
141
|
-
onClick: () => {},
|
|
142
|
-
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
143
|
-
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
144
|
-
name: "filedPaperwork",
|
|
145
|
-
selected: data.filedPaperwork ?? "",
|
|
146
|
-
isHorizontal: true,
|
|
147
|
-
onChange: (value) => handleChangeFor("filedPaperwork")(value),
|
|
148
|
-
tiles: [{
|
|
149
|
-
label: t(($) => $["yes"], { ns: "common" }),
|
|
150
|
-
value: "yes"
|
|
151
|
-
}, {
|
|
152
|
-
label: t(($) => $["no"], { ns: "common" }),
|
|
153
|
-
value: "no"
|
|
154
|
-
}]
|
|
155
|
-
})] })
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.tsx
|
|
160
|
-
var UNINCORPORATED_ORGANIZATION_TYPE_FIELD = ["unincorporatedOrganizationType"];
|
|
161
|
-
var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
162
|
-
const { t } = useTranslation("globalEntry");
|
|
163
|
-
const tiles = [{
|
|
164
|
-
label: t(($) => $["unincorporatedPartnership"]),
|
|
165
|
-
value: "unincorporatedPartnership",
|
|
166
|
-
icon: "trust"
|
|
167
|
-
}, {
|
|
168
|
-
label: t(($) => $["unincorporatedAssociation"]),
|
|
169
|
-
value: "unincorporatedAssociation",
|
|
170
|
-
icon: "trust"
|
|
171
|
-
}];
|
|
172
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
173
|
-
el: "fieldset",
|
|
174
|
-
name: "unincorporatedOrganizationType",
|
|
175
|
-
label: t(($) => $["whichBestDescribesYourOrganization"]),
|
|
176
|
-
errorMessage: errors.unincorporatedOrganizationType,
|
|
177
|
-
isValid: valid?.unincorporatedOrganizationType,
|
|
178
|
-
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
179
|
-
variant: "link",
|
|
180
|
-
onClick: () => {},
|
|
181
|
-
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
182
|
-
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
183
|
-
name: "unincorporatedOrganizationType",
|
|
184
|
-
selected: data?.unincorporatedOrganizationType ?? "",
|
|
185
|
-
onChange: (value) => handleChangeFor("unincorporatedOrganizationType")(value),
|
|
186
|
-
tiles,
|
|
187
|
-
isHorizontal: true
|
|
188
|
-
})] })
|
|
189
|
-
}), data?.unincorporatedOrganizationType === "unincorporatedAssociation" && /* @__PURE__ */ jsx(Alert, {
|
|
190
|
-
variant: "error",
|
|
191
|
-
title: t(($) => $["unincorporatedAssociationsArentSupported"]),
|
|
192
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
193
|
-
variant: "body",
|
|
194
|
-
children: t(($) => $["contactYourPlatformsSupportForHelp"])
|
|
195
|
-
})
|
|
196
|
-
})] });
|
|
197
|
-
};
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/components/GlobalEntry/utils.ts
|
|
200
|
-
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
201
|
-
if (data.entityInformation.entitySetup === "organization") {
|
|
202
|
-
if (legalEntity?.organization?.type) return legalEntity?.organization?.type || void 0;
|
|
203
|
-
}
|
|
204
|
-
if (data.entityInformation.entitySetup === "individual") return legalEntity && hasSolePropInLegalEntity(legalEntity) || data.registrationInformation.filedPaperwork === "yes" ? CompanyTypesValues.SOLE_PROPRIETORSHIP : LegalEntityTypes.INDIVIDUAL;
|
|
205
|
-
};
|
|
206
|
-
var mapLegalEntityToGlobalEntrySchema = (legalEntity) => {
|
|
207
|
-
return {
|
|
208
|
-
entityInformation: {
|
|
209
|
-
entitySetup: legalEntity.type === "individual" || legalEntity.type === "soleProprietorship" ? "individual" : "organization",
|
|
210
|
-
country: getLegalEntityCountry(legalEntity)
|
|
211
|
-
},
|
|
212
|
-
registrationInformation: {
|
|
213
|
-
filedPaperwork: null,
|
|
214
|
-
unincorporatedOrganizationType: null,
|
|
215
|
-
legalCompanyName: legalEntity.type === "soleProprietorship" ? legalEntity.soleProprietorship?.name : legalEntity.organization?.legalName,
|
|
216
|
-
taxInformation: legalEntity.type === "soleProprietorship" ? legalEntity.soleProprietorship?.taxInformation : legalEntity.organization?.taxInformation
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
222
|
-
var REGISTRATION_INFORMATION_FIELDS = [
|
|
223
|
-
...PAPERWORK_QUESTIONNAIRE_FIELD,
|
|
224
|
-
...UNINCORPORATED_ORGANIZATION_TYPE_FIELD,
|
|
225
|
-
...LEGAL_COMPANY_NAME_FIELD,
|
|
226
|
-
"jaHaniLegalCompanyName",
|
|
227
|
-
"jaKanaLegalCompanyName",
|
|
228
|
-
...COUNTRY_OF_GOVERNING_LAW_FIELD,
|
|
229
|
-
...TAX_INFORMATION_FIELD
|
|
230
|
-
];
|
|
231
|
-
var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) => {
|
|
232
|
-
const { form } = useFormContext();
|
|
233
|
-
const { t: commonT } = useTranslation("common");
|
|
234
|
-
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
235
|
-
const { t: businessT } = useTranslation("business");
|
|
236
|
-
const { defaultData } = form;
|
|
237
|
-
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "registrationInformation");
|
|
238
|
-
const companyType = getGlobalEntryCompanyType(legalEntity, form.data);
|
|
239
|
-
const currentCountryTaxInformation = data.taxInformation?.find((tax) => tax.country === country);
|
|
240
|
-
const taxInformationMetadata = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
241
|
-
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
242
|
-
companyType
|
|
243
|
-
}, taxInformationDefaultFieldMetadata);
|
|
244
|
-
const formUtils = createFormUtils(mergeFieldMetadataIntoProps("taxInformation", {
|
|
245
|
-
label: taxInformationMetadata.label,
|
|
246
|
-
mask: taxInformationMetadata.mask
|
|
247
|
-
}, {
|
|
248
|
-
requiredFields,
|
|
249
|
-
optionalFields,
|
|
250
|
-
trustedFields
|
|
251
|
-
}), commonT);
|
|
252
|
-
const legalCompanyNameFields = useLegalCompanyNameField({
|
|
253
|
-
data: data ?? {},
|
|
254
|
-
valid: valid ?? {},
|
|
255
|
-
errors: errors ?? {},
|
|
256
|
-
fieldProblems: fieldProblems ?? {},
|
|
257
|
-
country,
|
|
258
|
-
formUtils,
|
|
259
|
-
handleChange: handleChangeFor,
|
|
260
|
-
t: businessT
|
|
261
|
-
});
|
|
262
|
-
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
263
|
-
return /* @__PURE__ */ jsxs("form", {
|
|
264
|
-
id,
|
|
265
|
-
children: [
|
|
266
|
-
/* @__PURE__ */ jsx(Header, {
|
|
267
|
-
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
268
|
-
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
269
|
-
}),
|
|
270
|
-
/* @__PURE__ */ jsx(PaperworkQuestionnaire, {
|
|
271
|
-
data: { filedPaperwork: data.filedPaperwork },
|
|
272
|
-
valid: { filedPaperwork: valid.filedPaperwork },
|
|
273
|
-
errors: { filedPaperwork: formUtils.getErrorMessage("filedPaperwork", errors, fieldProblems) },
|
|
274
|
-
label: form.data.entityInformation.entitySetup === "organization" ? globalEntryT(($) => $["hasPaperworkBeenFiled"]) : globalEntryT(($) => $["areYourBusinessActivitiesRegisteredWithAGovernmentAuthority"]),
|
|
275
|
-
handleChangeFor
|
|
276
|
-
}),
|
|
277
|
-
showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx(CountryOfGoverningLawField, {
|
|
278
|
-
data: { countryOfGoverningLaw: data.countryOfGoverningLaw },
|
|
279
|
-
valid: { countryOfGoverningLaw: valid.countryOfGoverningLaw },
|
|
280
|
-
errors: { countryOfGoverningLaw: formUtils.getErrorMessage("countryOfGoverningLaw", errors, fieldProblems) },
|
|
281
|
-
country,
|
|
282
|
-
handleChangeFor
|
|
283
|
-
}),
|
|
284
|
-
showField(UNINCORPORATED_ORGANIZATION_TYPE_FIELD) && /* @__PURE__ */ jsx(UnincorporatedOrganizationTypeField, {
|
|
285
|
-
data: { unincorporatedOrganizationType: data.unincorporatedOrganizationType },
|
|
286
|
-
valid: { unincorporatedOrganizationType: valid.unincorporatedOrganizationType },
|
|
287
|
-
errors: { unincorporatedOrganizationType: formUtils.getErrorMessage("unincorporatedOrganizationType", errors, fieldProblems) },
|
|
288
|
-
handleChangeFor
|
|
289
|
-
}),
|
|
290
|
-
showField(LEGAL_COMPANY_NAME_FIELD) && legalCompanyNameFields.filter(Boolean).map((field) => /* @__PURE__ */ jsx(Field, {
|
|
291
|
-
name: field?.name ?? "",
|
|
292
|
-
label: field?.label,
|
|
293
|
-
formatGuidance: field?.guidance,
|
|
294
|
-
errorMessage: field?.errorMessage,
|
|
295
|
-
isValid: Boolean(field?.isValid),
|
|
296
|
-
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
297
|
-
...childProps,
|
|
298
|
-
"aria-required": true,
|
|
299
|
-
"aria-invalid": !field?.isValid,
|
|
300
|
-
name: field?.name,
|
|
301
|
-
value: field?.value,
|
|
302
|
-
readonly: field?.readonly,
|
|
303
|
-
onInput: field ? field.onInput : () => {},
|
|
304
|
-
transformInput: field?.transformInput,
|
|
305
|
-
transformMode: field?.transformMode,
|
|
306
|
-
onBlur: field?.onBlur,
|
|
307
|
-
onKeyDown: field?.onKeyDown
|
|
308
|
-
})
|
|
309
|
-
}, field?.name)),
|
|
310
|
-
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
311
|
-
data: {
|
|
312
|
-
taxInformation: data.taxInformation,
|
|
313
|
-
exemptedFromTax: data.exemptedFromTax,
|
|
314
|
-
isUen: data.isUen
|
|
315
|
-
},
|
|
316
|
-
valid: {
|
|
317
|
-
taxInformation: valid.taxInformation,
|
|
318
|
-
exemptedFromTax: valid.exemptedFromTax,
|
|
319
|
-
isUen: valid.isUen
|
|
320
|
-
},
|
|
321
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
322
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
323
|
-
placeholder: getTaxInformationPlaceholderText({
|
|
324
|
-
country,
|
|
325
|
-
companyType,
|
|
326
|
-
taxIdNumberType: data?.taxInformation?.find((tax) => tax.country === country)?.type
|
|
327
|
-
}),
|
|
328
|
-
mask: formUtils.getMask("taxInformation"),
|
|
329
|
-
shouldValidate,
|
|
330
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
331
|
-
handleChangeFor,
|
|
332
|
-
canExempt: showField(["exemptedFromTax"]),
|
|
333
|
-
country,
|
|
334
|
-
entityType: companyType,
|
|
335
|
-
defaultData: defaultData?.registrationInformation.taxInformation
|
|
336
|
-
})
|
|
337
|
-
]
|
|
338
|
-
});
|
|
339
|
-
};
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region src/components/GlobalEntry/constants.ts
|
|
342
|
-
var globalEntryForms = {
|
|
343
|
-
entityInformation: {
|
|
344
|
-
formId: "entityInformation",
|
|
345
|
-
formName: "entityInformationFormName",
|
|
346
|
-
fields: ENTITY_INFORMATION_FIELDS
|
|
347
|
-
},
|
|
348
|
-
registrationInformation: {
|
|
349
|
-
formId: "registrationInformation",
|
|
350
|
-
formName: "registrationInformationFormName",
|
|
351
|
-
fields: REGISTRATION_INFORMATION_FIELDS
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region src/components/GlobalEntry/rules.ts
|
|
356
|
-
var globalEntryFieldRuleConfigurations = {
|
|
357
|
-
entitySetup: { rule: "entitySetupRequired" },
|
|
358
|
-
country: { rule: "countryRequired" },
|
|
359
|
-
stateOrProvince: { rule: "requireStateOrProvinceForCompanySearch" },
|
|
360
|
-
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
361
|
-
filedPaperwork: { rule: "filedPaperworkRequired" },
|
|
362
|
-
unincorporatedOrganizationType: { rule: "unincorporatedOrganizationTypeRequired" },
|
|
363
|
-
legalCompanyName: { rule: "legalCompanyNameRequired" },
|
|
364
|
-
jaHaniLegalCompanyName: { rule: "jaHaniLegalCompanyName" },
|
|
365
|
-
jaKanaLegalCompanyName: { rule: "jaKanaLegalCompanyName" },
|
|
366
|
-
taxInformation: { rule: "taxInformationRequired" },
|
|
367
|
-
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
368
|
-
};
|
|
369
|
-
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, taskType }) => {
|
|
370
|
-
const filedPaperwork = data?.registrationInformation?.filedPaperwork === "yes";
|
|
371
|
-
const hasAnsweredPaperworkQuestion = data?.registrationInformation?.filedPaperwork !== null;
|
|
372
|
-
const isOrganization = data?.entityInformation?.entitySetup === "organization";
|
|
373
|
-
const isSoleProp = data?.entityInformation?.entitySetup === "individual" && filedPaperwork;
|
|
374
|
-
return createFormRules({
|
|
375
|
-
entitySetupRequired: () => "REQUIRED",
|
|
376
|
-
countryRequired: () => "REQUIRED",
|
|
377
|
-
requireStateOrProvinceForCompanySearch: () => {
|
|
378
|
-
if (isUsingCompanySearch(country, taskType) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
|
|
379
|
-
},
|
|
380
|
-
countryOfGoverningLawRequired: () => {
|
|
381
|
-
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && (isOrganization || isSoleProp) && hasAnsweredPaperworkQuestion) return "REQUIRED";
|
|
382
|
-
},
|
|
383
|
-
filedPaperworkRequired: () => "REQUIRED",
|
|
384
|
-
unincorporatedOrganizationTypeRequired: () => data?.entityInformation?.entitySetup === "organization" && data?.registrationInformation?.filedPaperwork === "no" ? "REQUIRED" : void 0,
|
|
385
|
-
legalCompanyNameRequired: () => filedPaperwork ? "REQUIRED" : void 0,
|
|
386
|
-
jaHaniLegalCompanyName: () => {
|
|
387
|
-
if (filedPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
388
|
-
},
|
|
389
|
-
jaKanaLegalCompanyName: () => {
|
|
390
|
-
if (filedPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
391
|
-
},
|
|
392
|
-
taxInformationRequired: () => filedPaperwork ? "REQUIRED" : void 0,
|
|
393
|
-
countryHasTaxExemptions: () => {
|
|
394
|
-
const isExemptFromTax = Boolean(data?.registrationInformation?.exemptedFromTax);
|
|
395
|
-
if (isSoleProp) {
|
|
396
|
-
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
397
|
-
return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
398
|
-
}
|
|
399
|
-
if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
400
|
-
if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
};
|
|
404
|
-
//#endregion
|
|
405
|
-
//#region src/components/GlobalEntry/validate.ts
|
|
406
|
-
var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () => false }) => {
|
|
407
|
-
const country = data?.entityInformation?.country ?? getLegalEntityCountry(legalEntity);
|
|
408
|
-
const countryOfGoverningLawValidators = CountryOfGoverningLawFieldValidation().countryOfGoverningLaw;
|
|
409
|
-
const useStrictNameValidation = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
410
|
-
const legalCompanyNameValidators = resolveFieldMetadata(useStrictNameValidation ? defaultFieldConfigV4[country] : defaultFieldConfig$1[country], {}, useStrictNameValidation ? defaultFieldMetadataV4 : defaultFieldMetadata$1).validators;
|
|
411
|
-
const stateValidators = resolveFieldMetadata(defaultFieldConfig[country], { isBusiness: true }, defaultFieldMetadata).validators;
|
|
412
|
-
const taxIdNumberType = data?.registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
413
|
-
const companyType = data ? getGlobalEntryCompanyType(legalEntity, data) : void 0;
|
|
414
|
-
const taxInformationValidators = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
415
|
-
taxIdNumberType,
|
|
416
|
-
companyType
|
|
417
|
-
}, taxInformationDefaultFieldMetadata).validators;
|
|
418
|
-
return {
|
|
419
|
-
entityInformation: { stateOrProvince: stateValidators },
|
|
420
|
-
registrationInformation: {
|
|
421
|
-
countryOfGoverningLaw: countryOfGoverningLawValidators,
|
|
422
|
-
legalCompanyName: legalCompanyNameValidators,
|
|
423
|
-
taxInformation: taxInformationValidators,
|
|
424
|
-
unincorporatedOrganizationType: {
|
|
425
|
-
validate: (value) => value !== "unincorporatedAssociation",
|
|
426
|
-
modes: ["blur", "input"]
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
|
|
433
|
-
var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
434
|
-
switch (activeForm.formId) {
|
|
435
|
-
case "entityInformation": return /* @__PURE__ */ jsx(EntityInformation, {
|
|
436
|
-
id: activeForm.formId,
|
|
437
|
-
country
|
|
438
|
-
});
|
|
439
|
-
case "registrationInformation": return /* @__PURE__ */ jsx(RegistrationInformation, {
|
|
440
|
-
id: activeForm.formId,
|
|
441
|
-
legalEntity,
|
|
442
|
-
shouldValidate,
|
|
443
|
-
country
|
|
444
|
-
});
|
|
445
|
-
default: return null;
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
//#endregion
|
|
449
|
-
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
450
|
-
var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
451
|
-
const { i18n } = useTranslation("globalEntry");
|
|
452
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
453
|
-
const { accountHolder } = useAccountHolder();
|
|
454
|
-
const [derivedProps, setDerivedProps] = useState();
|
|
455
|
-
addResourceBundles(i18n, [{
|
|
456
|
-
ns: "globalEntry",
|
|
457
|
-
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
458
|
-
"../language/bg-BG.json": () => import("./bg-BG-DpSUitm0.js"),
|
|
459
|
-
"../language/cs-CZ.json": () => import("./cs-CZ-C_VaBRMS.js"),
|
|
460
|
-
"../language/da-DK.json": () => import("./da-DK-BfaKncp5.js"),
|
|
461
|
-
"../language/de-DE.json": () => import("./de-DE-GUfA18ps.js"),
|
|
462
|
-
"../language/el-GR.json": () => import("./el-GR-CJqHd-CD.js"),
|
|
463
|
-
"../language/en-US.json": () => import("./en-US-Del1h5SS.js"),
|
|
464
|
-
"../language/es-ES.json": () => import("./es-ES-IobfbI71.js"),
|
|
465
|
-
"../language/es-LA.json": () => import("./es-LA--YYwwbVo.js"),
|
|
466
|
-
"../language/et-EE.json": () => import("./et-EE-DqYCOl2Y.js"),
|
|
467
|
-
"../language/fi-FI.json": () => import("./fi-FI-DSCFTLoG.js"),
|
|
468
|
-
"../language/fr-FR.json": () => import("./fr-FR-ZWnkRO7z.js"),
|
|
469
|
-
"../language/hr-HR.json": () => import("./hr-HR-2a3ywU0e.js"),
|
|
470
|
-
"../language/hu-HU.json": () => import("./hu-HU-BOXBLK1a.js"),
|
|
471
|
-
"../language/it-IT.json": () => import("./it-IT-Dj2NtH7G.js"),
|
|
472
|
-
"../language/ja-JP.json": () => import("./ja-JP-lXTbRXBb.js"),
|
|
473
|
-
"../language/lt-LT.json": () => import("./lt-LT-COUN4qC5.js"),
|
|
474
|
-
"../language/lv-LV.json": () => import("./lv-LV-DKbvF9t_.js"),
|
|
475
|
-
"../language/nl-NL.json": () => import("./nl-NL-CtK4OR3t.js"),
|
|
476
|
-
"../language/no-NO.json": () => import("./no-NO-CxZumo2p.js"),
|
|
477
|
-
"../language/pl-PL.json": () => import("./pl-PL-Csv1Lg5y.js"),
|
|
478
|
-
"../language/pt-BR.json": () => import("./pt-BR-IBsCApUj.js"),
|
|
479
|
-
"../language/pt-PT.json": () => import("./pt-PT-CYKk0WDI.js"),
|
|
480
|
-
"../language/ro-RO.json": () => import("./ro-RO-23qEGblz.js"),
|
|
481
|
-
"../language/sk-SK.json": () => import("./sk-SK-D8j8B4ng.js"),
|
|
482
|
-
"../language/sl-SI.json": () => import("./sl-SI-333ryFnM.js"),
|
|
483
|
-
"../language/sv-SE.json": () => import("./sv-SE-CwsP7bTA.js")
|
|
484
|
-
}), `../language/${lang}.json`, 3)
|
|
485
|
-
}]);
|
|
486
|
-
addResourceBundles(i18n, [{
|
|
487
|
-
ns: "business",
|
|
488
|
-
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
489
|
-
"../../Business/language/bg-BG.json": () => import("./bg-BG-CXqERnFH.js"),
|
|
490
|
-
"../../Business/language/cs-CZ.json": () => import("./cs-CZ-DAXMHrMi.js"),
|
|
491
|
-
"../../Business/language/da-DK.json": () => import("./da-DK-BVaEiAWd.js"),
|
|
492
|
-
"../../Business/language/de-DE.json": () => import("./de-DE-BqujMxXu.js"),
|
|
493
|
-
"../../Business/language/el-GR.json": () => import("./el-GR-B1NjHThy.js"),
|
|
494
|
-
"../../Business/language/en-US.json": () => import("./en-US-CJPD8qHc.js"),
|
|
495
|
-
"../../Business/language/es-ES.json": () => import("./es-ES-C64v4NJD.js"),
|
|
496
|
-
"../../Business/language/es-LA.json": () => import("./es-LA-B7pY2dp1.js"),
|
|
497
|
-
"../../Business/language/et-EE.json": () => import("./et-EE-wDQx9HoZ.js"),
|
|
498
|
-
"../../Business/language/fi-FI.json": () => import("./fi-FI-KMP96Qxc.js"),
|
|
499
|
-
"../../Business/language/fr-FR.json": () => import("./fr-FR-C8IPWMDL.js"),
|
|
500
|
-
"../../Business/language/hr-HR.json": () => import("./hr-HR-COvc9TZy.js"),
|
|
501
|
-
"../../Business/language/hu-HU.json": () => import("./hu-HU-DIjDe5aa.js"),
|
|
502
|
-
"../../Business/language/it-IT.json": () => import("./it-IT-BKTDLRBT.js"),
|
|
503
|
-
"../../Business/language/ja-JP.json": () => import("./ja-JP-DbLRpEVj.js"),
|
|
504
|
-
"../../Business/language/lt-LT.json": () => import("./lt-LT-Btr5el2q.js"),
|
|
505
|
-
"../../Business/language/lv-LV.json": () => import("./lv-LV-8wOWTo3r.js"),
|
|
506
|
-
"../../Business/language/nl-NL.json": () => import("./nl-NL-CdHkQcOS.js"),
|
|
507
|
-
"../../Business/language/no-NO.json": () => import("./no-NO-B-xCUkf4.js"),
|
|
508
|
-
"../../Business/language/pl-PL.json": () => import("./pl-PL-Cc09pXO8.js"),
|
|
509
|
-
"../../Business/language/pt-BR.json": () => import("./pt-BR-hMhyqixD.js"),
|
|
510
|
-
"../../Business/language/pt-PT.json": () => import("./pt-PT-D2qX_lOd.js"),
|
|
511
|
-
"../../Business/language/ro-RO.json": () => import("./ro-RO-CQjOM8e-.js"),
|
|
512
|
-
"../../Business/language/sk-SK.json": () => import("./sk-SK-2jlbtz2r.js"),
|
|
513
|
-
"../../Business/language/sl-SI.json": () => import("./sl-SI-Cyx0QtxG.js"),
|
|
514
|
-
"../../Business/language/sv-SE.json": () => import("./sv-SE-kbf3zbjX.js")
|
|
515
|
-
}), `../../Business/language/${lang}.json`, 5)
|
|
516
|
-
}]);
|
|
517
|
-
const handleClose = () => {
|
|
518
|
-
showGlobalEntryModal.value = false;
|
|
519
|
-
};
|
|
520
|
-
const buildFieldValidations = useCallback((data) => globalEntryValidationRules({
|
|
521
|
-
data,
|
|
522
|
-
legalEntity: rootLegalEntity,
|
|
523
|
-
isFeatureEnabled
|
|
524
|
-
}), [isFeatureEnabled, rootLegalEntity]);
|
|
525
|
-
const multiForm = useMultiForm({
|
|
526
|
-
defaultData: useMemo(() => mapLegalEntityToGlobalEntrySchema(rootLegalEntity), [rootLegalEntity]),
|
|
527
|
-
requiredFields: derivedProps?.requiredFields,
|
|
528
|
-
optionalFields: derivedProps?.optionalFields,
|
|
529
|
-
allFields: derivedProps?.allFields,
|
|
530
|
-
rules: buildFieldValidations
|
|
531
|
-
});
|
|
532
|
-
const { isValid: formValidity, data, triggerValidation } = multiForm;
|
|
533
|
-
const country = data.entityInformation?.country ?? getLegalEntityCountry(rootLegalEntity);
|
|
534
|
-
const rules = useMemo(() => globalEntryCustomRules({
|
|
535
|
-
data,
|
|
536
|
-
isFeatureEnabled,
|
|
537
|
-
country,
|
|
538
|
-
taskType: TaskTypes.GLOBAL_ENTRY,
|
|
539
|
-
accountHolder
|
|
540
|
-
}), [
|
|
541
|
-
accountHolder,
|
|
542
|
-
isFeatureEnabled,
|
|
543
|
-
country,
|
|
544
|
-
data
|
|
545
|
-
]);
|
|
546
|
-
useEffect(() => {
|
|
547
|
-
setDerivedProps(getPropsFromConfigurations({
|
|
548
|
-
scenarioConfiguration: globalEntryFieldRuleConfigurations,
|
|
549
|
-
forms: globalEntryForms,
|
|
550
|
-
remediationActions: [],
|
|
551
|
-
dataMissingErrors: [],
|
|
552
|
-
fieldsWithExistingData: [],
|
|
553
|
-
customRules: rules,
|
|
554
|
-
legalEntityType: rootLegalEntity?.type
|
|
555
|
-
}));
|
|
556
|
-
}, [rootLegalEntity?.type, rules]);
|
|
557
|
-
const forms = useMemo(() => addValidityToForms([...Object.values(globalEntryForms), summaryStep], formValidity, void 0), [formValidity]);
|
|
558
|
-
const { activeForm, handleNextClick, handleBackClick, steps, gotoFormByFormId, gotoFormByFormIndex, shouldValidate } = useFormComposer({
|
|
559
|
-
onSubmit: () => {
|
|
560
|
-
showGlobalEntryModal.value = false;
|
|
561
|
-
},
|
|
562
|
-
forms,
|
|
563
|
-
triggerValidation
|
|
564
|
-
});
|
|
565
|
-
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
566
|
-
form: multiForm,
|
|
567
|
-
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
568
|
-
asModal: true,
|
|
569
|
-
activeForm,
|
|
570
|
-
handleNextClick,
|
|
571
|
-
handleBackClick,
|
|
572
|
-
handleCancelClick: handleClose,
|
|
573
|
-
forms,
|
|
574
|
-
gotoFormByFormIndex,
|
|
575
|
-
gotoFormByFormId,
|
|
576
|
-
loadingStatus: "success",
|
|
577
|
-
currentStep: steps.current,
|
|
578
|
-
totalSteps: steps.total,
|
|
579
|
-
children: /* @__PURE__ */ jsx(GlobalEntry, {
|
|
580
|
-
activeForm,
|
|
581
|
-
shouldValidate,
|
|
582
|
-
legalEntity: rootLegalEntity,
|
|
583
|
-
country
|
|
584
|
-
})
|
|
585
|
-
})
|
|
586
|
-
});
|
|
587
|
-
};
|
|
588
|
-
//#endregion
|
|
589
|
-
export { showGlobalEntryModal as n, GlobalEntryModal as t };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "61ef2c6c-17d4-4b62-930c-ed539e468eff", e._sentryDebugIdIdentifier = "sentry-dbid-61ef2c6c-17d4-4b62-930c-ed539e468eff");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as InputBase } from "./InputText-BvrH0bId.js";
|
|
6
|
-
import { useMemo } from "preact/hooks";
|
|
7
|
-
import { jsx } from "preact/jsx-runtime";
|
|
8
|
-
//#region src/components/ui/molecules/InputDate/InputDate.utils.ts
|
|
9
|
-
/**
|
|
10
|
-
* Returns either the date input is supported or not in the current browser
|
|
11
|
-
*/
|
|
12
|
-
var checkDateInputSupport = () => {
|
|
13
|
-
const input = document.createElement("input");
|
|
14
|
-
input.setAttribute("type", "date");
|
|
15
|
-
return input.type === "date";
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Returns a formatted date
|
|
19
|
-
* @param value -
|
|
20
|
-
* @example
|
|
21
|
-
* formatDate('22111990');
|
|
22
|
-
* // '22/11/1990'
|
|
23
|
-
*/
|
|
24
|
-
var formatDate = (value) => {
|
|
25
|
-
const date = value.replace(/\D|\s/g, "").replace(/^(00)(.*)?/, "01$2").replace(/^(3[2-9])(.*)?/, "0$1$2").replace(/^([4-9])(.*)?/, "0$1").replace(/^([0-9]{2})(00)(.*)?/, "$101").replace(/^(3[01])(02)(.*)?/, "29$2").replace(/^([0-9]{2})([2-9]|1[3-9])(.*)?/, "$10$2").replace(/^([0-9]{2})([0-9]{2})([0-9])/, "$1/$2/$3").replace(/^([0-9]{2})([0-9])/, "$1/$2");
|
|
26
|
-
const [day = "", month = "", year = ""] = date.split("/");
|
|
27
|
-
if (year.length === 4 && day === "29" && month === "02" && (Number(year) % 4 !== 0 || year.substring(2, 4) === "00" && Number(year) % 400 !== 0)) return date.replace(/^29/, "28");
|
|
28
|
-
return date;
|
|
29
|
-
};
|
|
30
|
-
var formatDateObj = (date) => date.toJSON().slice(0, 10);
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/components/ui/molecules/InputDate/InputDate.tsx
|
|
33
|
-
function InputDate(props) {
|
|
34
|
-
const isDateInputSupported = useMemo(checkDateInputSupport, []);
|
|
35
|
-
const { onInput } = props;
|
|
36
|
-
const handleInput = (e) => {
|
|
37
|
-
const { value } = e.currentTarget;
|
|
38
|
-
e.currentTarget.value = formatDate(value);
|
|
39
|
-
onInput(e);
|
|
40
|
-
};
|
|
41
|
-
if (isDateInputSupported) return /* @__PURE__ */ jsx(InputBase, {
|
|
42
|
-
...props,
|
|
43
|
-
type: "date"
|
|
44
|
-
});
|
|
45
|
-
return /* @__PURE__ */ jsx(InputBase, {
|
|
46
|
-
...props,
|
|
47
|
-
onInput: handleInput,
|
|
48
|
-
maxLength: 10
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { formatDateObj as n, InputDate as t };
|