@adyen/kyc-components 4.23.0 → 4.24.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/4-people-DKuivE0m.js +35 -0
- package/dist/AcceptTermsOfServiceWorkflow-C3JrMbt5.js +28 -0
- package/dist/Accordion-Dgdxfe-d.js +112 -0
- package/dist/AccountSetupRejected-D63dyojj.js +19 -0
- package/dist/AdaptiveWorkflow-XhWdnJv-.js +33 -0
- package/dist/AdaptiveWorkflowComponent-pMWy1Vig.js +166 -0
- package/dist/AddressFields-BC3QHs2u.js +468 -0
- package/dist/Alert-Cc7p0N5h.js +172 -0
- package/dist/AnalyticsContext-CpimDlw4.js +21 -0
- package/dist/Avatar-oTPu6Ejy.js +54 -0
- package/dist/BusinessFinancingDropin-CxHK6KY3.js +1870 -0
- package/dist/BusinessFinancingPage-teAAjQl8.js +89 -0
- package/dist/BusinessRegistrationNumberField-DKka8aVU.js +103 -0
- package/dist/BusinessRegistrationNumberFieldGroup-Df6_sDA0.js +173 -0
- package/dist/BusinessTypeSelectionPage-BETJH6LZ.js +457 -0
- package/dist/Button-DPJ1k02w.js +108 -0
- package/dist/Checkbox-qfdF12cF.js +60 -0
- package/dist/ComponentGroup-SozxzKWw.js +32 -0
- package/dist/Confirm-DoN9R9Z3.js +77 -0
- package/dist/ConstitutionalDocument-Bxsr1hQb.js +1229 -0
- package/dist/ContactDetails-CiWftLi4.js +516 -0
- package/dist/ContextGuidance-BQPwRscq.js +29 -0
- package/dist/ContractViewer-CG9UNGz1.js +1030 -0
- package/dist/CountryField-DT6-Jr_b.js +38 -0
- package/dist/Currency-oeXHRWzy.js +211 -0
- package/dist/CustomerSupport-D0bE0zga.js +141 -0
- package/dist/DataConflictsModal-CCaMgguu.js +238 -0
- package/dist/DebugModal-Cvp7_Z-i.js +456 -0
- package/dist/DecisionMakerDetails-Bbb_8up2.js +569 -0
- package/dist/DecisionMakerDetailsPage-BDTMzs1X.js +121 -0
- package/dist/DecisionMakers-maoFXpGe.js +594 -0
- package/dist/Dropzone-ttbRg2LI.js +250 -0
- package/dist/EmbeddedStatus-CYd2p4sP.js +129 -0
- package/dist/EndStateLayout-zZPm8S5M.js +83 -0
- package/dist/EntityAssociation-C2_Xuvf5.js +163 -0
- package/dist/ErrorPanel-D4JNFkvi.js +205 -0
- package/dist/Field-DwDJQVSS.js +154 -0
- package/dist/FormFlow.module-DqMxjYHl.js +20 -0
- package/dist/GlobalEntryModal-CLoPJXFE.js +1203 -0
- package/dist/GlobalEntryPage-DNPSSZ3M.js +78 -0
- package/dist/Header-DVLlJ6we.js +93 -0
- package/dist/Icon-4XR6gZzk.js +175 -0
- package/dist/IdentityNumber-3V6ZqvHB.js +540 -0
- package/dist/IdentityNumberFieldGroup-CAjlgTWn.js +57 -0
- package/dist/IdentityScreeningWorkflow-CBStT1hs.js +307 -0
- package/dist/Image-Bn_Yyuof.js +33 -0
- package/dist/IndividualDropin-0t7Oj71F.js +4175 -0
- package/dist/IndustryCodeFieldGroup-C3Zro2ds.js +189 -0
- package/dist/InputDate-Bq3Sb-ZW.js +211 -0
- package/dist/InputText-CFDEmEtp.js +119 -0
- package/dist/Introduction-z2SqIq1W.js +326 -0
- package/dist/InvitedDecisionMakerComponent-CZOVc-t9.js +481 -0
- package/dist/JpAddressFields-F1YCOcbO.js +288 -0
- package/dist/LandingLayout-BsIoIFzs.js +76 -0
- package/dist/LegalCompanyNameField-Cosyjk52.js +108 -0
- package/dist/LegalName-CtqIpsfy.js +33 -0
- package/dist/LegalRepresentativeDetailsPage-DwIARCpj.js +73 -0
- package/dist/Link-CvYhseSD.js +32 -0
- package/dist/ListItem-CYTpdOMa.js +70 -0
- package/dist/Loader-BVtlpTeo.js +92 -0
- package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
- package/dist/MaybeModal-C4ySaA8A.js +24 -0
- package/dist/Modal-CHES6970.js +109 -0
- package/dist/Name-CdCsijr5.js +61 -0
- package/dist/NewSummary-D55f70wB.js +73 -0
- package/dist/NodeRenderer-B3G7pvjG.js +185 -0
- package/dist/PatriotActDisclosure-DqUZeLms.js +266 -0
- package/dist/PayoutDetailsDropin-LKMpfono.js +4104 -0
- package/dist/PayoutDetailsPage-KNHCeXgk.js +69 -0
- package/dist/ProgressBar-DWFxLMUA.js +38 -0
- package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
- package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
- package/dist/Review-CS_-zAlg.js +99 -0
- package/dist/RootBusinessDetailsPage-1z2_FAb6.js +67 -0
- package/dist/RootBusinessLinesPage-BgbkJaW8.js +1464 -0
- package/dist/RootIndividualDetailsPage-DA4hh_gc.js +82 -0
- package/dist/Select-phAxjMBQ.js +782 -0
- package/dist/SignPCIComponent-tBnZMn1u.js +373 -0
- package/dist/SingpassSelection-B6_DsZtn.js +156 -0
- package/dist/SoleProprietorshipPage-2s1kA9ZV.js +69 -0
- package/dist/SourceOfFundsPage-CTjUdOWK.js +2800 -0
- package/dist/SourceOfFundsWorkflow-BZabOpi_.js +28 -0
- package/dist/StateContext-B2_Pqd_y.js +9 -0
- package/dist/StateField-BpMwetvd.js +55 -0
- package/dist/Step-C6XxGAda.js +191 -0
- package/dist/StructuredList-nPasiuLi.js +56 -0
- package/dist/Summary-DM31WxLr.js +235 -0
- package/dist/Task-DwGA1eXE.js +129 -0
- package/dist/TaskGroup-T594JSYM.js +46 -0
- package/dist/TaskListItem-Dx3hKOqG.js +123 -0
- package/dist/TaskStepperContextProvider-DdcsqXT7.js +26 -0
- package/dist/TaskVerificationStatus-DEXk_ndE.js +125 -0
- package/dist/TaxInformationField-CV7SpMH1.js +242 -0
- package/dist/TaxInformationFieldGroup-DI2LzuNr.js +290 -0
- package/dist/TaxReportingDropin-xYwJ-ju7.js +480 -0
- package/dist/TaxReportingWorkflow-BHyHgiI-.js +28 -0
- package/dist/TermsOfServiceManagement-CNQ4J5Gn.js +644 -0
- package/dist/TextArea-qGEo3PFG.js +81 -0
- package/dist/TileGroup-D1-M64Ul.js +172 -0
- package/dist/ToastContext-B_wd2IY2.js +13 -0
- package/dist/ToastContextProvider-DjYKMflX.js +103 -0
- package/dist/TrustDetailsPage-Byj68n3F.js +1172 -0
- package/dist/TrustMemberCompanyPage-Bcz4Ql7s.js +108 -0
- package/dist/TrustMemberIndividualPage-D6CgWF88.js +108 -0
- package/dist/TrustMemberRoleAndTypePage-IUp5FVRW.js +937 -0
- package/dist/TrustMembersOverview-7EoKoSMg.js +453 -0
- package/dist/UboTaskItem-BmcGj5_U.js +115 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BKpJDhhU.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-D8VliL0i.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-D00bHhyf.js +256 -0
- package/dist/UnincorporatedPartnershipMembersOverview-Dw5IMSkd.js +160 -0
- package/dist/VerificationErrorAlert-CixajVtq.js +38 -0
- package/dist/Workflow-CWzMRGHX.js +228 -0
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
- package/dist/accountHolderUtils-CAu4V0ed.js +43 -0
- package/dist/adyen-business-financing.js +38 -37
- package/dist/adyen-individual-configuration.js +65 -65
- package/dist/adyen-individual-status.js +35 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +109 -101
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +9 -8
- package/dist/adyen-transfer-instrument-configuration.js +62 -61
- package/dist/adyen-transfer-instrument-management.js +76 -70
- package/dist/adyen-verification-status.js +10 -8
- package/dist/arrow-right-D2hul7WG.js +20 -0
- package/dist/bafinUtils-DDrD6bfK.js +96 -0
- package/dist/bag-CRRS1aow.js +20 -0
- package/dist/bank-BoirCLLW.js +20 -0
- package/dist/bg-BG-B0Ia8sQm.js +7 -0
- package/dist/bg-BG-B2xaZ3wB.js +7 -0
- package/dist/bg-BG-DAR7_x2a.js +7 -0
- package/dist/bg-BG-DqfAUTUt.js +7 -0
- package/dist/bg-BG-ivZjQNJZ.js +7 -0
- package/dist/bin-BOmfqfrr.js +30 -0
- package/dist/birthDateUtils-D6uk7zwm.js +84 -0
- package/dist/businessRegistrationNumberPatterns-A08SLm03.js +982 -0
- package/dist/capital-DTjbiurV.js +23 -0
- package/dist/cash-stack-7KpYpBek.js +33 -0
- package/dist/certificate-BPuoJ6Ip.js +23 -0
- package/dist/checkmark-BiSLf8M1.js +20 -0
- package/dist/checkmark-circle-Ams7bSve.js +28 -0
- package/dist/checkmark-circle-fill-_p4ss4ac.js +30 -0
- package/dist/checkmark-small-3bw4ftPV.js +20 -0
- package/dist/chevron-down-GgZawvoy.js +20 -0
- package/dist/chevron-left-TeZTTvo5.js +20 -0
- package/dist/chevron-right-Cg8XlTxx.js +20 -0
- package/dist/chevron-up-COQUTli0.js +20 -0
- package/dist/circle-CypWzg83.js +30 -0
- package/dist/circle-small-filled-DfdK2A35.js +20 -0
- package/dist/clock-DmfGJ2r9.js +28 -0
- package/dist/coins-CBvbB8_X.js +30 -0
- package/dist/constants-C8yo0_RA.js +233 -0
- package/dist/contract-D1_RJ_xh.js +20 -0
- package/dist/countries-BGMTpyJv.js +41 -0
- package/dist/country-BEZkohEO.js +25 -0
- package/dist/cross-BORHADVQ.js +20 -0
- package/dist/cross-circle-fill-CUXdo1x-.js +30 -0
- package/dist/cross-circle-fill-small-DdoPZZeo.js +20 -0
- package/dist/cs-CZ-BwO4yrI4.js +7 -0
- package/dist/cs-CZ-CHMQYoMF.js +7 -0
- package/dist/cs-CZ-DsKlW7_D.js +7 -0
- package/dist/cs-CZ-NVntX32n.js +7 -0
- package/dist/cs-CZ-ywYpJk1F.js +7 -0
- package/dist/da-DK-BvT8Ob4A.js +7 -0
- package/dist/da-DK-BzBfkSME.js +7 -0
- package/dist/da-DK-CE7jnGea.js +7 -0
- package/dist/da-DK-DH5YNYFM.js +7 -0
- package/dist/da-DK-LPtdP8h0.js +7 -0
- package/dist/datasetUtil-BdHPWsxZ.js +45 -0
- package/dist/de-DE-C9cUCFOi.js +7 -0
- package/dist/de-DE-Cn866nnd.js +7 -0
- package/dist/de-DE-DA4LpyZI.js +7 -0
- package/dist/de-DE-DKkoZQ0X.js +7 -0
- package/dist/de-DE-DY_EJohI.js +7 -0
- package/dist/de-DE-vdy64knk.js +7 -0
- package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
- package/dist/debugStore-Dwn1FXrh.js +9 -0
- package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
- package/dist/decisionMakerRoles-C6LMC4mh.js +185 -0
- package/dist/document-1-qvV57JdS.js +20 -0
- package/dist/document-person-DiJ7M8-D.js +28 -0
- package/dist/download-Ca4w0Yfr.js +23 -0
- package/dist/dropinUtils-DTBezwYT.js +491 -0
- package/dist/edit-1-D8VhDchs.js +20 -0
- package/dist/el-GR-ChapyKa7.js +7 -0
- package/dist/el-GR-Cvms0L4K.js +7 -0
- package/dist/el-GR-D9PjIB9j.js +7 -0
- package/dist/el-GR-Ov9hqMNe.js +7 -0
- package/dist/el-GR-aelq5Q0a.js +7 -0
- package/dist/el-GR-zFv0QxMR.js +7 -0
- package/dist/en-US-B7HQdrn_.js +7 -0
- package/dist/en-US-CI7y0UEH.js +7 -0
- package/dist/en-US-C_VjFvk_.js +7 -0
- package/dist/en-US-Cz4JoU20.js +41 -0
- package/dist/en-US-DPr5RN3e.js +7 -0
- package/dist/en-US-U0d3NI20.js +7 -0
- package/dist/en-US-tFsDZf7y.js +7 -0
- package/dist/entityAssociationUtil-CY0grcyH.js +58 -0
- package/dist/error-BvgoQFEI.js +36 -0
- package/dist/es-ES-BQrdtEfn.js +7 -0
- package/dist/es-ES-BdByhG4y.js +7 -0
- package/dist/es-ES-BzlHKYJK.js +7 -0
- package/dist/es-ES-DCUvAmKI.js +7 -0
- package/dist/es-ES-DdrA8McY.js +7 -0
- package/dist/es-ES-DhkTbihW.js +7 -0
- package/dist/es-LA-3WgncmHx.js +7 -0
- package/dist/es-LA-BxtxM3Ty.js +7 -0
- package/dist/es-LA-ChRHGYJP.js +7 -0
- package/dist/es-LA-JRuDva0n.js +7 -0
- package/dist/es-LA-i7tKJmA8.js +7 -0
- package/dist/et-EE-BXY66vAz.js +7 -0
- package/dist/et-EE-D8TSvkoE.js +7 -0
- package/dist/et-EE-DOgb4q9o.js +7 -0
- package/dist/et-EE-HHgM0CfO.js +7 -0
- package/dist/et-EE-V-YOCgoh.js +7 -0
- package/dist/external-link-Dy4le-8Q.js +20 -0
- package/dist/fi-FI-B-eTv4bG.js +7 -0
- package/dist/fi-FI-CClpbvJJ.js +7 -0
- package/dist/fi-FI-CVBmM-U1.js +7 -0
- package/dist/fi-FI-DCYPQ6vS.js +7 -0
- package/dist/fi-FI-DCbhu29J.js +7 -0
- package/dist/fieldConfigurations-CZCFghnK.js +11 -0
- package/dist/form-rules-B0RwhsVw.js +284 -0
- package/dist/formFieldsUtils-CnDkgahc.js +7 -0
- package/dist/formUtils-BHgG8yQZ.js +52 -0
- package/dist/formUtils-DVDcdZsP.js +84 -0
- package/dist/formatCurrency-BetgkQKi.js +23 -0
- package/dist/formatValidationError-q_w9DTrl.js +23 -0
- package/dist/fr-FR-B-jA_cbo.js +7 -0
- package/dist/fr-FR-BIyJL6Jj.js +7 -0
- package/dist/fr-FR-BzyefnBh.js +7 -0
- package/dist/fr-FR-C1xYwHeC.js +7 -0
- package/dist/fr-FR-D0hY9V44.js +7 -0
- package/dist/fr-FR-Doo1FVx-.js +7 -0
- package/dist/genUtils-nphCwt1A.js +60 -0
- package/dist/getDefaultRegistrationNumberType-CIu4WMln.js +1056 -0
- package/dist/getFormSlice-C1ma6Xd4.js +21 -0
- package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
- package/dist/getName-DgxRqagk.js +34 -0
- package/dist/getProblemsForEntity-Bn6dXidE.js +16 -0
- package/dist/getTrustedDecisionMakers-Ta-pURcL.js +25 -0
- package/dist/getTrustedFields-BJ88GlM-.js +28 -0
- package/dist/gift-Bs_mAgul.js +20 -0
- package/dist/globalStore-WASei98w.js +418 -0
- package/dist/graph-Co0JhGiY.js +32 -0
- package/dist/graph-up-DIvH9haf.js +38 -0
- package/dist/headquarter-BESfDGKh.js +42 -0
- package/dist/hotel-Vne7G5M6.js +33 -0
- package/dist/hr-HR-6Wj5Tf60.js +7 -0
- package/dist/hr-HR-B4FRVzrd.js +7 -0
- package/dist/hr-HR-B6z7-PYE.js +7 -0
- package/dist/hr-HR-BOYktLQ2.js +7 -0
- package/dist/hr-HR-Ct_41fWV.js +7 -0
- package/dist/http-fdIO--pH.js +204 -0
- package/dist/hu-HU-B7ofWKn_.js +7 -0
- package/dist/hu-HU-Bwm4UqZz.js +7 -0
- package/dist/hu-HU-CO_7jvk9.js +7 -0
- package/dist/hu-HU-CgJ_F3l2.js +7 -0
- package/dist/hu-HU-DXK7B0r_.js +7 -0
- package/dist/image-BQM21XCk.js +23 -0
- package/dist/info-DExoPRH5.js +32 -0
- package/dist/info-filled-11KMeUso.js +32 -0
- package/dist/invalidateRootLegalEntity-BHaVREw-.js +45 -0
- package/dist/isEmpty-Uewyl-r6.js +14 -0
- package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
- package/dist/it-IT-BFIW0DCO.js +7 -0
- package/dist/it-IT-CNr6PIu3.js +7 -0
- package/dist/it-IT-CQVFYSVx.js +7 -0
- package/dist/it-IT-DfGdOsTs.js +7 -0
- package/dist/it-IT-DgRuEpeD.js +7 -0
- package/dist/it-IT-tZ7dP-Ia.js +7 -0
- package/dist/ja-JP--tMJF7eu.js +7 -0
- package/dist/ja-JP-BjMyxZiN.js +7 -0
- package/dist/ja-JP-Ct54-uwM.js +7 -0
- package/dist/ja-JP-CtX9NZKD.js +7 -0
- package/dist/ja-JP-DAClbueM.js +7 -0
- package/dist/ja-JP-DOuEAOlh.js +7 -0
- package/dist/keys-Ce8YnRP2.js +20 -0
- package/dist/legalArrangementUtils-C68JdH6I.js +114 -0
- package/dist/listToRecord-DumSkYDz.js +10 -0
- package/dist/location-zRH5zJ8c.js +23 -0
- package/dist/lt-LT-BUuouq_-.js +7 -0
- package/dist/lt-LT-Cs3cvyKf.js +7 -0
- package/dist/lt-LT-DQp7UGdC.js +7 -0
- package/dist/lt-LT-DoYCfhZU.js +7 -0
- package/dist/lt-LT-DqtpAjOg.js +7 -0
- package/dist/lv-LV-BCXqSzkk.js +7 -0
- package/dist/lv-LV-BW0BscAd.js +7 -0
- package/dist/lv-LV-C3p57pZV.js +7 -0
- package/dist/lv-LV-ZmyUvPst.js +7 -0
- package/dist/lv-LV-cKvnQI3j.js +7 -0
- package/dist/mail-i1-zg-cv.js +20 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js +26 -0
- package/dist/mapExistingFile-BkwRTTRm.js +55 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js +74 -0
- package/dist/mapLegalEntityToIndividualSchema-CBKR-InO.js +251 -0
- package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
- package/dist/mapTransferInstrumentToPayoutAccount-ROfaTly6.js +44 -0
- package/dist/maskHelpers-C0wnCoJl.js +719 -0
- package/dist/minus-circle-filled-CxUdRO8J.js +30 -0
- package/dist/nl-NL-B77Xr99l.js +7 -0
- package/dist/nl-NL-BUwMAW5C.js +7 -0
- package/dist/nl-NL-B_MaTF5h.js +7 -0
- package/dist/nl-NL-CePL3t7P.js +7 -0
- package/dist/nl-NL-DR5SCDAF.js +7 -0
- package/dist/nl-NL-DqGE4Nz5.js +7 -0
- package/dist/no-NO-BePxpMbr.js +7 -0
- package/dist/no-NO-DGCfRiU8.js +7 -0
- package/dist/no-NO-DdI2BI_e.js +7 -0
- package/dist/no-NO-P8SZ1t-h.js +7 -0
- package/dist/no-NO-oL1v_O9N.js +7 -0
- package/dist/options-horizontal-D86T_xAF.js +30 -0
- package/dist/partner-Dje0ykF6.js +30 -0
- package/dist/patternValidators-DsrZkuOO.js +73 -0
- package/dist/pay-by-link-plane-DAiddPu6.js +33 -0
- package/dist/payout-DKiGv3F9.js +38 -0
- package/dist/pdf-CC8vqpTo.js +22320 -0
- package/dist/pdf.worker.min-CdKJICZZ.js +75124 -0
- package/dist/person-DgALGIIz.js +23 -0
- package/dist/pl-PL-6Q3Ue3F5.js +7 -0
- package/dist/pl-PL-B5PBixAB.js +7 -0
- package/dist/pl-PL-BCkw9R28.js +7 -0
- package/dist/pl-PL-BY6KUTBO.js +7 -0
- package/dist/pl-PL-D-s-JI6X.js +7 -0
- package/dist/plus-DlQKP2C9.js +20 -0
- package/dist/plus-circle-filled-BntUOVIJ.js +30 -0
- package/dist/processCapabilities-CWE5UFt8.js +870 -0
- package/dist/processValidationErrors-CjsNfiRK.js +62 -0
- package/dist/pt-BR-B_XHiDCU.js +7 -0
- package/dist/pt-BR-BvNR77Ru.js +7 -0
- package/dist/pt-BR-CrLCMcSz2.js +7 -0
- package/dist/pt-BR-MrUfWW4a.js +7 -0
- package/dist/pt-BR-vwt2tE7H.js +7 -0
- package/dist/pt-PT-B17is9TY.js +7 -0
- package/dist/pt-PT-BZNPd_Tb.js +7 -0
- package/dist/pt-PT-DDYnXawl.js +7 -0
- package/dist/pt-PT-DhF8wwYH.js +7 -0
- package/dist/pt-PT-Du2K44jh.js +7 -0
- package/dist/pt-PT-qAzFgjvF.js +7 -0
- package/dist/recurring-DZgT_ekJ.js +23 -0
- package/dist/resolveEnvironment-B3aGkYuN.js +1000 -0
- package/dist/revenue-accelerate-aMLYFVW6.js +30 -0
- package/dist/ro-RO-B3Fcn95o.js +7 -0
- package/dist/ro-RO-BA5GhaCE.js +7 -0
- package/dist/ro-RO-BmHe4pZ-.js +7 -0
- package/dist/ro-RO-DChAv29z.js +7 -0
- package/dist/ro-RO-W1t7Mnbn.js +7 -0
- package/dist/roleMetadata-Dm1FVuPT.js +56 -0
- package/dist/save-uDNye08N.js +20 -0
- package/dist/search-0OS6oe8N.js +30 -0
- package/dist/show-BWoS9-Y1.js +23 -0
- package/dist/sk-SK-BeNF_m_j.js +7 -0
- package/dist/sk-SK-C9CiQLgt.js +7 -0
- package/dist/sk-SK-CISCMQ2G.js +7 -0
- package/dist/sk-SK-CcoUWnJ4.js +7 -0
- package/dist/sk-SK-D10Kpths.js +7 -0
- package/dist/sl-SI-Bxu4m_5e.js +7 -0
- package/dist/sl-SI-DCMml0lX.js +7 -0
- package/dist/sl-SI-DmYiMn91.js +7 -0
- package/dist/sl-SI-DxomO9JQ.js +7 -0
- package/dist/sl-SI-Qe4hzx5a.js +7 -0
- package/dist/solution-payments-BMal7uJZ.js +20 -0
- package/dist/store-N7ZA4FKy.js +20 -0
- package/dist/style.css +2341 -2252
- package/dist/styles-DYaAeu4q.js +2337 -2248
- package/dist/summaryItem-uDWmtYtt.js +16 -0
- package/dist/sv-SE-B-CXDaXM.js +7 -0
- package/dist/sv-SE-BzPNBHOj.js +7 -0
- package/dist/sv-SE-C9SgeFv6.js +7 -0
- package/dist/sv-SE-DESDUMyu.js +7 -0
- package/dist/sv-SE-Dq6oK7B5.js +7 -0
- package/dist/sv-SE-issaSBHd.js +7 -0
- package/dist/terminal-1-0RlQpbUC.js +30 -0
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/translation-DbATp_35.js +684 -0
- package/dist/trustUtil-5cyXiJnX.js +98 -0
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
- package/dist/types/api/documents/documents.types.d.ts +9 -0
- package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +10 -2
- package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
- package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
- package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
- package/dist/types/components/Business/utils/utils.d.ts +2 -15
- package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
- package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
- package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
- package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
- package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
- package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
- package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +0 -4
- package/dist/types/core/errorMapping.d.ts +3 -4
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
- package/dist/types/core/process-field-configurations.d.ts +4 -6
- package/dist/types/core/user-events.d.ts +2 -4
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
- package/dist/types/router/OnboardingRouter.d.ts +1 -2
- package/dist/types/router/getDefaultTask.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
- package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
- package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +1 -2
- package/dist/types/types/errors/capability-problems.d.ts +5 -1
- package/dist/types/types/errors/entity-problems.d.ts +8 -5
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
- package/dist/types/utils/api/documentUtils.d.ts +21 -10
- package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
- package/dist/types/utils/api/processCapabilities.d.ts +11 -4
- package/dist/types/utils/bankUtils.d.ts +5 -0
- package/dist/types/utils/birthDateUtils.d.ts +6 -1
- package/dist/types/utils/businessUtils.d.ts +21 -6
- package/dist/types/utils/customerSupportUtils.d.ts +2 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
- package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +3 -3
- package/dist/types/utils/getTrustedFields.d.ts +4 -5
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
- package/dist/types/utils/mapping/getPage.d.ts +3 -4
- package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
- package/dist/types-B9zXzag-.js +18 -0
- package/dist/types-BA3bcGAv.js +58 -0
- package/dist/types-CZAHRt31.js +147 -0
- package/dist/types-Cwq1JAWT.js +31 -0
- package/dist/upload-C5NC1E4N.js +23 -0
- package/dist/uppercase-DvjwUM0n.js +7 -0
- package/dist/useAccountHolder-DDto9d9n.js +102 -0
- package/dist/useAdaptiveWorkflow-DryNv0zI.js +28 -0
- package/dist/useAllowedCountries-C-nqVePW.js +80 -0
- package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
- package/dist/useAssociatedLegalEntity-DtZtKlls.js +35 -0
- package/dist/useBusinessDetailsData-DFU0dLxw.js +4732 -0
- package/dist/useBusinessLines-BZfFqvS_.js +27 -0
- package/dist/useCanSeeIntroduction-DQbanJNE.js +38 -0
- package/dist/useCreateLegalEntity-qP7MeAmi.js +24 -0
- package/dist/useDataMissingRemediations-ttUrk09_.js +39 -0
- package/dist/useDataset-CdLBLq98.js +98 -0
- package/dist/useDeleteTransferInstrument-Dtv14H9I.js +31 -0
- package/dist/useForm-CWrbJG44.js +504 -0
- package/dist/useHideTaskStepper-Dk7ZQ3U8.js +26 -0
- package/dist/useId-BkDhUta2.js +28 -0
- package/dist/useIndustryCodes-BMK6IMiW.js +32 -0
- package/dist/useLegalEntity-DHA8TJeV.js +48 -0
- package/dist/useMultiForm-BxASst0O.js +790 -0
- package/dist/useNavigate-CO1Mcekp.js +246 -0
- package/dist/useOnboardingStatus-Cz6-hSX4.js +23 -0
- package/dist/usePciQuestionnaireList-CWz7Ngs6.js +26 -0
- package/dist/useSalesChannels-bV9DgyLW.js +47 -0
- package/dist/useScenarios-Bn93htbx.js +55 -0
- package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
- package/dist/useTaskLandedEvent-DwZHcMEQ.js +26 -0
- package/dist/useTaskStatus-DJxOWvuN.js +23 -0
- package/dist/useTermsOfServiceStatus-CyVxYqpg.js +39 -0
- package/dist/useToastContext-B6Mqc2HY.js +12 -0
- package/dist/useToggleContext-B_YexrbT.js +21 -0
- package/dist/useTrustMembers-DWo3WU8M.js +151 -0
- package/dist/useUnincorporatedPartnershipMembers-DwFPW09D.js +69 -0
- package/dist/useUpdateBusinessLines-JRPjqoe9.js +43 -0
- package/dist/useUpdateLegalEntity-CqmqXsbR.js +29 -0
- package/dist/utils-BWumuCvl.js +210 -0
- package/dist/utils-CJcGZvj1.js +178 -0
- package/dist/utils-CYUYe54m.js +24 -0
- package/dist/utils-Ck_mZapQ.js +1755 -0
- package/dist/utils-DdHbAadK.js +80 -0
- package/dist/utils-SKYT7xU4.js +52 -0
- package/dist/validate-BZ1-ZeKr.js +430 -0
- package/dist/validate-DTz70AWN.js +224 -0
- package/dist/validate-DUcT-JGF.js +178 -0
- package/dist/validate-Dr8UKZCX.js +126 -0
- package/dist/validateExtractionResult-CntKbt8c.js +343 -0
- package/dist/validationError-DV6t8Ubb.js +55 -0
- package/dist/validationResult-bjYBDjbU.js +29 -0
- package/dist/validatorUtils-D2O6AAZn.js +106 -0
- package/dist/warning-circle-fill-C2lMYPJW.js +30 -0
- package/dist/warning-diamond-filled-CQ2DdW5g.js +30 -0
- package/dist/webinar-BpZWqd-g.js +33 -0
- package/package.json +26 -26
- package/dist/4-people-Dxu4nHSX.js +0 -35
- package/dist/AcceptTermsOfServiceWorkflow-CvKbU2WY.js +0 -28
- package/dist/Accordion-Sjyj7C_t.js +0 -112
- package/dist/AccountSetupRejected-Cq_nlmLn.js +0 -18
- package/dist/AdaptiveWorkflow-CM7ZVGXv.js +0 -210
- package/dist/AdaptiveWorkflowComponent-tM1hJ1zF.js +0 -165
- package/dist/AddressFields-BsxEdBvQ.js +0 -464
- package/dist/Avatar-Zp1T9qAL.js +0 -54
- package/dist/BusinessFinancingDropin-vugW4Vvi.js +0 -1857
- package/dist/BusinessFinancingPage-0J_LImeN.js +0 -89
- package/dist/BusinessRegistrationNumberField-qdC_srMn.js +0 -101
- package/dist/BusinessRegistrationNumberFieldGroup-BvC9n4ou.js +0 -171
- package/dist/BusinessTypeSelectionPage-WCEqP4G2.js +0 -457
- package/dist/Button-DfRmINzF.js +0 -108
- package/dist/Checkbox-B730k3Yy.js +0 -108
- package/dist/ComponentGroup-CsnkYMbT.js +0 -32
- package/dist/ConstitutionalDocument-D92EPGmG.js +0 -1224
- package/dist/ContactDetails-DDSd6X0z.js +0 -511
- package/dist/ContextGuidance-B2ew1lzC.js +0 -29
- package/dist/ContractViewer-JtnAXSDa.js +0 -979
- package/dist/Currency-BKTf95Wp.js +0 -210
- package/dist/CustomerSupport-CCFayyJG.js +0 -140
- package/dist/DataConflictsModal-D-fP_eNs.js +0 -237
- package/dist/DebugModal-CG6CvUnj.js +0 -450
- package/dist/DecisionMakerDetails-DWC1nORL.js +0 -565
- package/dist/DecisionMakerDetailsPage-BVXA74FO.js +0 -122
- package/dist/DecisionMakers-Cvm_i6Uf.js +0 -589
- package/dist/Dropzone-CNHxDEc3.js +0 -250
- package/dist/EmbeddedStatus-tbJfdxm8.js +0 -129
- package/dist/EndStateLayout-BK1Hh02g.js +0 -83
- package/dist/EntityAssociation-i903L9Dh.js +0 -163
- package/dist/ErrorPanel-tnFOlOZU.js +0 -205
- package/dist/GlobalEntryModal-DQoIIvGS.js +0 -975
- package/dist/GlobalEntryPage-DLRGPpAu.js +0 -78
- package/dist/Icon-C3S5_kkS.js +0 -175
- package/dist/IdentityNumber-B8MXzXsO.js +0 -536
- package/dist/IdentityNumberFieldGroup-D7xb2TY7.js +0 -57
- package/dist/IdentityScreeningWorkflow-BdGXtdns.js +0 -307
- package/dist/Image-D82terx4.js +0 -33
- package/dist/IndividualDropin-C0vTSDYU.js +0 -4138
- package/dist/IndustryCodeFieldGroup-CGcE5yYR.js +0 -188
- package/dist/InputDate-Ci60MBrH.js +0 -211
- package/dist/InputText-CTpVF0Mu.js +0 -154
- package/dist/Introduction-Dx6DDaL7.js +0 -327
- package/dist/InvitedDecisionMakerComponent-Ckd26d6Y.js +0 -481
- package/dist/JpAddressFields-C9MbL5XV.js +0 -287
- package/dist/LegalCompanyNameField-D0jM5LDT.js +0 -108
- package/dist/LegalName-TjhII9_p.js +0 -33
- package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
- package/dist/Link-c2jAgGgc.js +0 -32
- package/dist/ListItem-C35r8558.js +0 -93
- package/dist/Loader-BEpMlKm2.js +0 -92
- package/dist/Modal-BsivDPTd.js +0 -129
- package/dist/Name-DMf8Uyof.js +0 -61
- package/dist/NewSummary-DxWLTnJy.js +0 -73
- package/dist/PatriotActDisclosure-ChZ_ePr2.js +0 -265
- package/dist/PayoutDetailsDropin-BhtJSFAS.js +0 -4073
- package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
- package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
- package/dist/Review-DImhCvoG.js +0 -99
- package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
- package/dist/RootBusinessLinesPage-C_p-CtCH.js +0 -1455
- package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
- package/dist/Select-ByVcS_J2.js +0 -1093
- package/dist/SignPCIComponent-CAwp2xCC.js +0 -370
- package/dist/SingpassSelection-Txx3gp_g.js +0 -157
- package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
- package/dist/SourceOfFundsPage-B22iW1ow.js +0 -2781
- package/dist/SourceOfFundsWorkflow-BKHZbLR_.js +0 -28
- package/dist/StateField-CsO_28Co.js +0 -296
- package/dist/Step-BUMarnLL.js +0 -191
- package/dist/Task-Bj_CjiHG.js +0 -129
- package/dist/TaskGroup-BMXhoq1Y.js +0 -46
- package/dist/TaskListItem-BIKdDEzU.js +0 -123
- package/dist/TaskStepperContextProvider-D0tKJplv.js +0 -26
- package/dist/TaskVerificationStatus-DPA4ZEPa.js +0 -125
- package/dist/TaxInformationFieldGroup-D_6IRGj9.js +0 -287
- package/dist/TaxReportingDropin-DA475crP.js +0 -475
- package/dist/TaxReportingWorkflow-kcto0Ysw.js +0 -28
- package/dist/TermsOfServiceManagement-HDnaIeWZ.js +0 -635
- package/dist/TextArea-qbFhi8Az.js +0 -81
- package/dist/TrustDetailsPage-BqVS0xOU.js +0 -1155
- package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
- package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
- package/dist/TrustMemberRoleAndTypePage-GXWuitmt.js +0 -927
- package/dist/TrustMembersOverview-BjJ5fPcC.js +0 -449
- package/dist/UboTaskItem-Aq3iNKX0.js +0 -115
- package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
- package/dist/UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js +0 -79
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js +0 -254
- package/dist/UnincorporatedPartnershipMembersOverview-CUczPfUl.js +0 -158
- package/dist/VerificationErrorAlert-BBfoLMwb.js +0 -64
- package/dist/Workflow-Do7P-qDn.js +0 -228
- package/dist/accountHolderUtils-DMi_DHCU.js +0 -44
- package/dist/arrow-right-Bk-ewsex.js +0 -20
- package/dist/bafinUtils-M2AASP_e.js +0 -1963
- package/dist/bag-9BNq_QQO.js +0 -20
- package/dist/bank-BRbxxVK5.js +0 -20
- package/dist/bg-BG-BtgA44Ui.js +0 -7
- package/dist/bg-BG-DX5QKxJz.js +0 -7
- package/dist/bg-BG-DYkxVgeJ.js +0 -7
- package/dist/bg-BG-K6LIkCdf.js +0 -7
- package/dist/bg-BG-uuNDTOoN.js +0 -7
- package/dist/bin-DE1613_5.js +0 -30
- package/dist/businessRegistrationNumberPatterns-C_MSKHlF.js +0 -981
- package/dist/capital-aNk7ragc.js +0 -23
- package/dist/cash-stack-DuKKc4Qj.js +0 -33
- package/dist/certificate-9gDKvXCm.js +0 -23
- package/dist/checkmark-BuqDN4WO.js +0 -20
- package/dist/checkmark-circle-OqcwA6N6.js +0 -28
- package/dist/checkmark-circle-fill-BfcUovCf.js +0 -30
- package/dist/checkmark-small-CBORXg_J.js +0 -20
- package/dist/chevron-down-CjRta08O.js +0 -20
- package/dist/chevron-left-BEm04mIh.js +0 -20
- package/dist/chevron-right-B2GkHG0J.js +0 -20
- package/dist/chevron-up-BKfe5Btb.js +0 -20
- package/dist/circle-C-uuRI8F.js +0 -30
- package/dist/circle-small-filled-Bkh5_ZEu.js +0 -20
- package/dist/clock-BWfWiMxz.js +0 -28
- package/dist/coins-Cw-jDTUz.js +0 -30
- package/dist/constants-BSBlqXY7.js +0 -231
- package/dist/contract-PFVBW8xa.js +0 -20
- package/dist/countries-BE4iGVAo.js +0 -41
- package/dist/country-zZC2TAQB.js +0 -25
- package/dist/cross-B37j1-r4.js +0 -20
- package/dist/cross-circle-fill-CcjwpLj2.js +0 -30
- package/dist/cross-circle-fill-small-CJ4fddNo.js +0 -20
- package/dist/cs-CZ-BJSrh3Vp.js +0 -7
- package/dist/cs-CZ-CMXGY6Ep.js +0 -7
- package/dist/cs-CZ-Ci8c58xJ.js +0 -7
- package/dist/cs-CZ-Cu1v5FA8.js +0 -7
- package/dist/cs-CZ-lJQmuyHq.js +0 -7
- package/dist/da-DK-B9O3xbY6.js +0 -7
- package/dist/da-DK-BNwXg4DX.js +0 -7
- package/dist/da-DK-C1kmOHvo.js +0 -7
- package/dist/da-DK-D53M_d04.js +0 -7
- package/dist/da-DK-DjAV5d9A.js +0 -7
- package/dist/de-DE-B3sSNcDv.js +0 -7
- package/dist/de-DE-C9N6F5oM.js +0 -7
- package/dist/de-DE-CjMOQMqQ.js +0 -7
- package/dist/de-DE-qJPTCQlG.js +0 -7
- package/dist/de-DE-qSBQE-6M.js +0 -7
- package/dist/de-DE-w4l6boYT.js +0 -7
- package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
- package/dist/decisionMakerRoles-APTR-Ah_.js +0 -185
- package/dist/document-1-B3vw8uuK.js +0 -20
- package/dist/document-person-CERdIfH0.js +0 -28
- package/dist/download-CthdK4dV.js +0 -23
- package/dist/edit-1-BW7NwWP7.js +0 -20
- package/dist/el-GR-BLNCX9mm.js +0 -7
- package/dist/el-GR-Bx996PXx.js +0 -7
- package/dist/el-GR-CgoxpC-Q.js +0 -7
- package/dist/el-GR-DaAMIpOR.js +0 -7
- package/dist/el-GR-DqTetsjB.js +0 -7
- package/dist/el-GR-pGsVWsOm.js +0 -7
- package/dist/en-US-B82BbZaB.js +0 -7
- package/dist/en-US-BUmtG-Wj.js +0 -27
- package/dist/en-US-C3i5Oge2.js +0 -7
- package/dist/en-US-C8karqc5.js +0 -7
- package/dist/en-US-CJPD8qHc.js +0 -7
- package/dist/en-US-D0fscfsz.js +0 -7
- package/dist/en-US-DapC--Cs.js +0 -7
- package/dist/entityAssociationUtil-CLBR9osP.js +0 -59
- package/dist/error-CpJV-CLa.js +0 -36
- package/dist/es-ES-C14ZT-97.js +0 -7
- package/dist/es-ES-DeT4zIDW.js +0 -7
- package/dist/es-ES-DyB2KXfT.js +0 -7
- package/dist/es-ES-U4-lDfZq.js +0 -7
- package/dist/es-ES-tVQDUTJN.js +0 -7
- package/dist/es-ES-wvcyuTNN.js +0 -7
- package/dist/es-LA-B5IRDCf_.js +0 -7
- package/dist/es-LA-B_hzWiiE.js +0 -7
- package/dist/es-LA-CG_cu1hM.js +0 -7
- package/dist/es-LA-ChLRkx-r.js +0 -7
- package/dist/es-LA-mFT_9PL_.js +0 -7
- package/dist/et-EE-4_ZUNt3W.js +0 -7
- package/dist/et-EE-BCWBT8XN.js +0 -7
- package/dist/et-EE-BQEyJFZb.js +0 -7
- package/dist/et-EE-DSK7kb3n.js +0 -7
- package/dist/et-EE-DWVzz1wR.js +0 -7
- package/dist/external-link-CFgynH5A.js +0 -20
- package/dist/fi-FI-B-7uBAf5.js +0 -7
- package/dist/fi-FI-BeJtSWIh.js +0 -7
- package/dist/fi-FI-Caa9ydMd.js +0 -7
- package/dist/fi-FI-D06EzKrW.js +0 -7
- package/dist/fi-FI-DgMsQBRO.js +0 -7
- package/dist/form-rules-zzbZ2bV6.js +0 -1089
- package/dist/formatCurrency-Cq3WFpdZ.js +0 -23
- package/dist/formatValidationError-BHvKLMYZ.js +0 -23
- package/dist/fr-FR-8a-RK9xd.js +0 -7
- package/dist/fr-FR-BCfqr4jm.js +0 -7
- package/dist/fr-FR-BTJoQq71.js +0 -7
- package/dist/fr-FR-CDv300-8.js +0 -7
- package/dist/fr-FR-D7DTFYe4.js +0 -7
- package/dist/fr-FR-Dl4NL-Nc.js +0 -7
- package/dist/genUtils-Ce61IJs8.js +0 -60
- package/dist/getDefaultRegistrationNumberType-CI1NVzJR.js +0 -1055
- package/dist/getFormSlice-DzRO0UUx.js +0 -52
- package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
- package/dist/getName-s7qmFean.js +0 -35
- package/dist/getProblemsForEntity-Bh9nSdOW.js +0 -16
- package/dist/getTrustedDecisionMakers-DX3nImM5.js +0 -25
- package/dist/gift-0jLCte2h.js +0 -20
- package/dist/graph-DrxuzQF7.js +0 -32
- package/dist/graph-up-4qLbS2Ds.js +0 -38
- package/dist/headquarter-3o2GHW5H.js +0 -42
- package/dist/hotel-pZlrEAK8.js +0 -33
- package/dist/hr-HR-B11sggmG.js +0 -7
- package/dist/hr-HR-BjxPRJ1o.js +0 -7
- package/dist/hr-HR-COdiWKoq.js +0 -7
- package/dist/hr-HR-CXH5M5JZ.js +0 -7
- package/dist/hr-HR-me1zsMas.js +0 -7
- package/dist/http-DsJtugN1.js +0 -204
- package/dist/hu-HU-BNlsrO-l.js +0 -7
- package/dist/hu-HU-BQ5310Yi.js +0 -7
- package/dist/hu-HU-D1ZZwcl0.js +0 -7
- package/dist/hu-HU-DkSsL94T.js +0 -7
- package/dist/hu-HU-Dp6xOBN_.js +0 -7
- package/dist/image-tfgNnE3G.js +0 -23
- package/dist/info-DJW5JooY.js +0 -32
- package/dist/info-filled-C5mP6T4Z.js +0 -32
- package/dist/it-IT-BORQC-7u.js +0 -7
- package/dist/it-IT-BlaVymCj.js +0 -7
- package/dist/it-IT-CawjvBDX.js +0 -7
- package/dist/it-IT-Cnk7j_gC.js +0 -7
- package/dist/it-IT-DIIRAF4_.js +0 -7
- package/dist/it-IT-x4LV31GV.js +0 -7
- package/dist/ja-JP-CyXnoIu3.js +0 -7
- package/dist/ja-JP-DBne3dbI.js +0 -7
- package/dist/ja-JP-DS8zN3mY.js +0 -7
- package/dist/ja-JP-Dpe9Odla.js +0 -7
- package/dist/ja-JP-DrHQO_Se.js +0 -7
- package/dist/ja-JP-h3E8hgLv.js +0 -7
- package/dist/legal-entity-type-0MfCGzUf.js +0 -13
- package/dist/legalArrangementUtils-xvCxpgzJ.js +0 -113
- package/dist/location-Dk0rAiaT.js +0 -23
- package/dist/lt-LT-8kOI6QVq.js +0 -7
- package/dist/lt-LT-B18sQY9g.js +0 -7
- package/dist/lt-LT-Byl8QeWO.js +0 -7
- package/dist/lt-LT-D3ZUJfjr.js +0 -7
- package/dist/lt-LT-Fc1lOUlz.js +0 -7
- package/dist/lv-LV-C70c94CI.js +0 -7
- package/dist/lv-LV-CXifQKfG.js +0 -7
- package/dist/lv-LV-DctYQmfH.js +0 -7
- package/dist/lv-LV-Mj_iV56f.js +0 -7
- package/dist/lv-LV-adiXoKhv.js +0 -7
- package/dist/mail-DG7MBDNE.js +0 -20
- package/dist/mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js +0 -26
- package/dist/mapExistingFile-CwGW1ru4.js +0 -55
- package/dist/mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js +0 -73
- package/dist/mapLegalEntityToIndividualSchema-ByhXwZqs.js +0 -214
- package/dist/mapTransferInstrumentToPayoutAccount-6eLKhumO.js +0 -44
- package/dist/minus-circle-filled-DglqAgJW.js +0 -30
- package/dist/nl-NL-BIpptPn4.js +0 -7
- package/dist/nl-NL-BWGCqpWp.js +0 -7
- package/dist/nl-NL-Bv8Zk-6e.js +0 -7
- package/dist/nl-NL-DOB0b0m4.js +0 -7
- package/dist/nl-NL-ehxkZFQd.js +0 -7
- package/dist/nl-NL-jt4eYGEY.js +0 -7
- package/dist/no-NO-BG1sYkpp.js +0 -7
- package/dist/no-NO-CeZQnyyD.js +0 -7
- package/dist/no-NO-Chwg5Roi.js +0 -7
- package/dist/no-NO-Dx_Z3uoZ.js +0 -7
- package/dist/no-NO-P5tRWhV9.js +0 -7
- package/dist/options-horizontal-CTUn7IEx.js +0 -30
- package/dist/partner-1StoI4_W.js +0 -30
- package/dist/pay-by-link-plane-Sa_qkL8C.js +0 -33
- package/dist/payout-BAYSxSqU.js +0 -38
- package/dist/pdf-uNYg4Mqz.js +0 -22315
- package/dist/pdf.worker.min-gK7UJW5a.js +0 -74644
- package/dist/person-Da15_s3G.js +0 -23
- package/dist/pl-PL-BsXtscoI.js +0 -7
- package/dist/pl-PL-CWFdZf24.js +0 -7
- package/dist/pl-PL-DSbuyzBx.js +0 -7
- package/dist/pl-PL-J9S3_lCf.js +0 -7
- package/dist/pl-PL-_KG-ZD1N.js +0 -7
- package/dist/plus-BQccvKkd.js +0 -20
- package/dist/plus-circle-filled-CqC30FRL.js +0 -30
- package/dist/processCapabilities-DRD0Aq2i.js +0 -874
- package/dist/processValidationErrors-oxuCOsth.js +0 -62
- package/dist/pt-BR-B2q9Nl16.js +0 -7
- package/dist/pt-BR-BYbyk6xS.js +0 -7
- package/dist/pt-BR-Cph-P8oH.js +0 -7
- package/dist/pt-BR-D1yTuXWd2.js +0 -7
- package/dist/pt-BR-fKlNUybd.js +0 -7
- package/dist/pt-PT-C1gtp2_N.js +0 -7
- package/dist/pt-PT-CQQkh5PS.js +0 -7
- package/dist/pt-PT-D8ldyR-j.js +0 -7
- package/dist/pt-PT-DAvsI-Tr.js +0 -7
- package/dist/pt-PT-DhokEMPi.js +0 -7
- package/dist/pt-PT-IPhkbQvT.js +0 -7
- package/dist/recurring-DSR1fNMh.js +0 -23
- package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
- package/dist/revenue-accelerate-CPhAVpPK.js +0 -30
- package/dist/ro-RO-C6xoaASq.js +0 -7
- package/dist/ro-RO-CP_IrOlX.js +0 -7
- package/dist/ro-RO-CQJk7Cpo.js +0 -7
- package/dist/ro-RO-CnMe6Mfw.js +0 -7
- package/dist/ro-RO-_BLhsnIB.js +0 -7
- package/dist/save-DQ-mJX8e.js +0 -20
- package/dist/search-DWqWTW_K.js +0 -30
- package/dist/show-BbhlD3IY.js +0 -23
- package/dist/sk-SK-BOc9IqyW.js +0 -7
- package/dist/sk-SK-Bb1CdAzD.js +0 -7
- package/dist/sk-SK-Br1Y4_CN.js +0 -7
- package/dist/sk-SK-Bx2_85dW.js +0 -7
- package/dist/sk-SK-C889qQFo.js +0 -7
- package/dist/sl-SI-B-Xa0hlk.js +0 -7
- package/dist/sl-SI-BQc61Sz2.js +0 -7
- package/dist/sl-SI-DHPadSTy.js +0 -7
- package/dist/sl-SI-DO9c7geI.js +0 -7
- package/dist/sl-SI-bkhhInrg.js +0 -7
- package/dist/solution-payments-D4BORMsX.js +0 -20
- package/dist/store-DWaq3ZiC.js +0 -20
- package/dist/sv-SE-BXrlr0X5.js +0 -7
- package/dist/sv-SE-Dk81lopg.js +0 -7
- package/dist/sv-SE-DzsWB30f.js +0 -7
- package/dist/sv-SE-IBYnJfbW.js +0 -7
- package/dist/sv-SE-X89Q6ZAq.js +0 -7
- package/dist/sv-SE-l_UVgmVu.js +0 -7
- package/dist/terminal-1-crR-pS_R.js +0 -30
- package/dist/translation-BOm4lmPx.js +0 -657
- package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +0 -15
- package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
- package/dist/types/core/models/api/attachment.d.ts +0 -7
- package/dist/types/core/models/api/document.d.ts +0 -25
- package/dist/types/core/models/api/entity-type.d.ts +0 -5
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
- package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
- package/dist/types/core/models/api/legal-entity.d.ts +0 -36
- package/dist/types/core/models/api/problem.d.ts +0 -12
- package/dist/types/core/models/api/remediating-action.d.ts +0 -5
- package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
- package/dist/types/core/models/api/verification-error.d.ts +0 -19
- package/dist/types-BeveNAZK.js +0 -19
- package/dist/types-wRlt8bxb.js +0 -58
- package/dist/upload-D85xAAAm.js +0 -23
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +0 -28
- package/dist/useBusinessDetailsData-Bja80UYy.js +0 -4722
- package/dist/useBusinessLines-BhSN6qCH.js +0 -27
- package/dist/useCanSeeIntroduction-BcfQC4IP.js +0 -38
- package/dist/useDataMissingRemediations-msU1AJvo.js +0 -39
- package/dist/useForm-DbDFfb2S.js +0 -502
- package/dist/useHideTaskStepper-CbMcV9mk.js +0 -26
- package/dist/useId-oOIS1nsj.js +0 -73
- package/dist/useIndustryCodes-uAj90IyS.js +0 -32
- package/dist/useLegalEntity-QQXN6YOm.js +0 -48
- package/dist/useNavigate-CiKOI5QV.js +0 -246
- package/dist/useOnboardingStatus-CsGUjkm-.js +0 -23
- package/dist/usePciQuestionnaireList-CFNJD8pS.js +0 -26
- package/dist/useSalesChannels-BvGJ9PT6.js +0 -47
- package/dist/useScenarios-CGcmXgJv.js +0 -55
- package/dist/useTaskLandedEvent-pmN03gtI.js +0 -26
- package/dist/useTaskStatus-CgrhdaE_.js +0 -23
- package/dist/useTermsOfServiceStatus-DbJDklA2.js +0 -39
- package/dist/useTrustMembers-f13Kf1Zk.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-K5jkCKfJ.js +0 -70
- package/dist/useUpdateBusinessLines-DCKYTzxd.js +0 -43
- package/dist/utils-2tir5QtF.js +0 -52
- package/dist/utils-BUOt0VrX.js +0 -179
- package/dist/utils-DBIDcVUN.js +0 -214
- package/dist/validate-BpZBKknS.js +0 -224
- package/dist/validate-CPTQceEQ.js +0 -151
- package/dist/validate-YBDlgvjy.js +0 -429
- package/dist/validate-u6nDNwf1.js +0 -126
- package/dist/validateExtractionResult-dH4TewHf.js +0 -343
- package/dist/validationError-B-B3GC86.js +0 -55
- package/dist/warning-circle-fill-BDTmKU1s.js +0 -30
- package/dist/warning-diamond-filled-BjDL-xa8.js +0 -30
- package/dist/webinar-YMbPoCx3.js +0 -33
|
@@ -0,0 +1,1203 @@
|
|
|
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] = "5f5a2983-bc2f-448b-bece-ce62f084780e", e._sentryDebugIdIdentifier = "sentry-dbid-5f5a2983-bc2f-448b-bece-ce62f084780e");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
+
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
+
import { t as Button } from "./Button-DPJ1k02w.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
10
|
+
import { t as useAccountHolder } from "./useAccountHolder-DDto9d9n.js";
|
|
11
|
+
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
12
|
+
import { t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
|
|
13
|
+
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
|
|
14
|
+
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
15
|
+
import { t as Header } from "./Header-DVLlJ6we.js";
|
|
16
|
+
import { t as useAllowedCountries } from "./useAllowedCountries-C-nqVePW.js";
|
|
17
|
+
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
18
|
+
import { t as Alert } from "./Alert-Cc7p0N5h.js";
|
|
19
|
+
import { y as reverseMapping } from "./processCapabilities-CWE5UFt8.js";
|
|
20
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
21
|
+
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-CY0grcyH.js";
|
|
22
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DtZtKlls.js";
|
|
23
|
+
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
24
|
+
import { t as useToastContext } from "./useToastContext-B6Mqc2HY.js";
|
|
25
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-qP7MeAmi.js";
|
|
26
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CqmqXsbR.js";
|
|
27
|
+
import { a as useFormComposer, i as FormFlow, o as FormContextProvider, r as useFormContext, t as addValidityToForms } from "./dropinUtils-DTBezwYT.js";
|
|
28
|
+
import { i as getPropsFromConfigurations, t as createFormRules } from "./form-rules-B0RwhsVw.js";
|
|
29
|
+
import { t as List } from "./List-ywoRPg-q.js";
|
|
30
|
+
import { n as summaryStep } from "./Summary-DM31WxLr.js";
|
|
31
|
+
import { t as createFormUtils } from "./formUtils-DVDcdZsP.js";
|
|
32
|
+
import { t as useMultiForm } from "./useMultiForm-BxASst0O.js";
|
|
33
|
+
import { t as Field } from "./Field-DwDJQVSS.js";
|
|
34
|
+
import { t as TileGroup } from "./TileGroup-D1-M64Ul.js";
|
|
35
|
+
import { a as useLegalCompanyNameField, i as CountryOfGoverningLawField, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, r as COUNTRY_OF_GOVERNING_LAW_FIELD, s as useCompanyTypeExamples, t as CountryOfGoverningLawFieldValidation } from "./validate-DUcT-JGF.js";
|
|
36
|
+
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
37
|
+
import { c as registrationNumberDefaultFieldMetadata, s as registrationNumberDefaultFieldConfig, u as getValidCompanyTypesForRegistrationNumberType } from "./getDefaultRegistrationNumberType-CIu4WMln.js";
|
|
38
|
+
import { C as isRegistrationNumberAbsentStateV4Scenario, E as mapLocalizationToJapaneseLegalNames, S as isRegistrationExemptionAllowed, T as mapJapaneseLegalNamesToLocalization, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as taxInformationDefaultFieldConfig, d as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, f as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, g as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, h as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, k as getValidCompanyTypesForTaxIdNumberType, l as taxInformationDefaultFieldMetadata, m as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, p as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, s as getTaxInformationPlaceholderText, v as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, w as isUsingCompanySearch, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 } from "./utils-Ck_mZapQ.js";
|
|
39
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-DT6-Jr_b.js";
|
|
40
|
+
import { c as COUNTRIES_WITH_STATES_DATASET } from "./utils-BWumuCvl.js";
|
|
41
|
+
import { n as StateField, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-BpMwetvd.js";
|
|
42
|
+
import { t as ListItem } from "./ListItem-CYTpdOMa.js";
|
|
43
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Cosyjk52.js";
|
|
44
|
+
import { t as InputText } from "./InputText-CFDEmEtp.js";
|
|
45
|
+
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
46
|
+
import { n as TaxInformationField, r as isJapanLocalizationEnabled, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-CV7SpMH1.js";
|
|
47
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-DKka8aVU.js";
|
|
48
|
+
import { r as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-C68JdH6I.js";
|
|
49
|
+
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
50
|
+
import { useCallback, useEffect, useMemo, useState } from "preact/compat";
|
|
51
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
52
|
+
import { signal } from "@preact/signals";
|
|
53
|
+
//#region src/components/GlobalEntry/globalEntryStore.ts
|
|
54
|
+
var showGlobalEntryModal = signal(false);
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/GlobalEntry/companyTypeMetadata.ts
|
|
57
|
+
var companyTypeMetadata = {
|
|
58
|
+
privateCompany: {
|
|
59
|
+
id: "privateCompany",
|
|
60
|
+
name: "privateCompany",
|
|
61
|
+
description: "yourCompanyIsOwnedPrivately"
|
|
62
|
+
},
|
|
63
|
+
listedPublicCompany: {
|
|
64
|
+
id: "listedPublicCompany",
|
|
65
|
+
name: "publicCompany",
|
|
66
|
+
description: "yourCompanyIsTradedOnAPublicStockExchange"
|
|
67
|
+
},
|
|
68
|
+
partnershipIncorporated: {
|
|
69
|
+
id: "partnershipIncorporated",
|
|
70
|
+
name: "partnershipIncorporated",
|
|
71
|
+
description: "youAndYourPartnersHaveLimitedLiabilityForBusinessDebts"
|
|
72
|
+
},
|
|
73
|
+
nonProfit: {
|
|
74
|
+
id: "nonProfit",
|
|
75
|
+
name: "nonProfitOrCharitableOrganization",
|
|
76
|
+
description: "yourOrganizationHasOfficialNonProfitOrTaxExemptStatus"
|
|
77
|
+
},
|
|
78
|
+
governmentalOrganization: {
|
|
79
|
+
id: "governmentalOrganization",
|
|
80
|
+
name: "governmentalOrganization",
|
|
81
|
+
description: "yourOrganizationIsOwnedByTheGovernmentOrState"
|
|
82
|
+
},
|
|
83
|
+
associationIncorporated: {
|
|
84
|
+
id: "associationIncorporated",
|
|
85
|
+
name: "associationIncorporated",
|
|
86
|
+
description: "aRegisteredEntityWithoutProfit"
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var companyTypeOptions = Object.keys(companyTypeMetadata);
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/GlobalEntry/utils/getAvailableCompanyStructures.ts
|
|
92
|
+
function getAvailableCompanyStructures({ country, registrationNumberType, registrationNumberExempt, taxIdNumberType, legalEntity }) {
|
|
93
|
+
const companyTypeRadioOptions = !!legalEntity.capabilities?.issueBankAccount?.requested ? companyTypeOptions.filter((companyType) => companyType !== "governmentalOrganization") : companyTypeOptions;
|
|
94
|
+
const validCompanyTypesByRegistrationNumber = registrationNumberExempt && isRegistrationExemptionAllowed({ country }) ? REGISTRATION_NUMBER_EXEMPTION_RULES[country] ?? [] : getValidCompanyTypesForRegistrationNumberType(country, registrationNumberType);
|
|
95
|
+
const validCompanyTypesForRegistrationNumber = new Set(validCompanyTypesByRegistrationNumber);
|
|
96
|
+
const validCompanyTypesForTaxId = new Set(getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType));
|
|
97
|
+
const constrainedCompanyTypeRadioOptions = companyTypeRadioOptions.filter((companyType) => (!validCompanyTypesForRegistrationNumber.size || validCompanyTypesForRegistrationNumber.has(companyType)) && (!validCompanyTypesForTaxId.size || validCompanyTypesForTaxId.has(companyType)));
|
|
98
|
+
return constrainedCompanyTypeRadioOptions.length > 0 ? constrainedCompanyTypeRadioOptions : companyTypeRadioOptions;
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.tsx
|
|
102
|
+
var COMPANY_STRUCTURE_FIELDS = ["organizationType"];
|
|
103
|
+
function CompanyStructure({ id, country, legalEntity }) {
|
|
104
|
+
const { t } = useTranslation([
|
|
105
|
+
"common",
|
|
106
|
+
"globalEntry",
|
|
107
|
+
"ui"
|
|
108
|
+
]);
|
|
109
|
+
const { form } = useFormContext();
|
|
110
|
+
const { data, valid, errors, fieldProblems, requiredFields, handleChange: handleChangeFor } = getFormSlice(form, "companyStructure");
|
|
111
|
+
const formUtils = createFormUtils({ requiredFields: requiredFields ?? [] }, t);
|
|
112
|
+
const registrationInformation = form.data.registrationInformation;
|
|
113
|
+
const options = getAvailableCompanyStructures({
|
|
114
|
+
country,
|
|
115
|
+
registrationNumberType: registrationInformation?.registrationNumberType,
|
|
116
|
+
registrationNumberExempt: registrationInformation?.exemptedFromRegistrationNumber,
|
|
117
|
+
taxIdNumberType: registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type,
|
|
118
|
+
legalEntity
|
|
119
|
+
});
|
|
120
|
+
const companyTypeExamples = useCompanyTypeExamples(country);
|
|
121
|
+
const tiles = options.filter((option) => !!companyTypeMetadata[option]).map((option) => {
|
|
122
|
+
const metadata = companyTypeMetadata[option];
|
|
123
|
+
const description = t(($) => $[metadata.description], { ns: "globalEntry" });
|
|
124
|
+
const examples = companyTypeExamples?.[option];
|
|
125
|
+
const subTitle = examples ? `${description} ${t(($) => $["forExample_"], {
|
|
126
|
+
examples: examples.join(", "),
|
|
127
|
+
interpolation: { escapeValue: false },
|
|
128
|
+
ns: "ui"
|
|
129
|
+
})}` : description;
|
|
130
|
+
return {
|
|
131
|
+
value: option,
|
|
132
|
+
label: t(($) => $[metadata.name], { ns: "globalEntry" }),
|
|
133
|
+
subTitle
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
137
|
+
id,
|
|
138
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
139
|
+
title: t(($) => $["companyStructure"], { ns: "globalEntry" }),
|
|
140
|
+
description: t(($) => $["whatTypeOfCompanyDoYouHave"], { ns: "globalEntry" })
|
|
141
|
+
}), /* @__PURE__ */ jsx(Field, {
|
|
142
|
+
el: "fieldset",
|
|
143
|
+
name: "organizationType",
|
|
144
|
+
errorMessage: formUtils.getErrorMessage("organizationType", errors, fieldProblems),
|
|
145
|
+
isValid: valid?.organizationType,
|
|
146
|
+
children: (childProps) => /* @__PURE__ */ jsx(TileGroup, {
|
|
147
|
+
...childProps,
|
|
148
|
+
name: "entityType",
|
|
149
|
+
tiles,
|
|
150
|
+
selected: data?.organizationType ?? "",
|
|
151
|
+
onChange: (value) => handleChangeFor("organizationType")(value),
|
|
152
|
+
isHorizontal: true,
|
|
153
|
+
"aria-required": true,
|
|
154
|
+
"aria-invalid": !valid?.organizationType
|
|
155
|
+
})
|
|
156
|
+
})]
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
var EntitySetupField_module_default = {
|
|
160
|
+
"entity-setup-option": "_entity-setup-option_1ykiv_1",
|
|
161
|
+
entitySetupOption: "_entity-setup-option_1ykiv_1"
|
|
162
|
+
};
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.tsx
|
|
165
|
+
var ENTITY_SETUP_FIELD = ["entitySetup"];
|
|
166
|
+
/**
|
|
167
|
+
* Determines whether an organization exists at all, rather than what the legal entity is.
|
|
168
|
+
* `partOfABusiness` does not imply an organization legal entity: an individual in an
|
|
169
|
+
* Unincorporated Partnership or Trust picks it too.
|
|
170
|
+
*/
|
|
171
|
+
var EntitySetupField = ({ data, valid, errors, handleChangeFor }) => {
|
|
172
|
+
const { t: globalT } = useTranslation("globalEntry");
|
|
173
|
+
const entitySetupOptions = [{
|
|
174
|
+
value: "justMe",
|
|
175
|
+
label: globalT(($) => $["itsJustMe"]),
|
|
176
|
+
iconName: "user"
|
|
177
|
+
}, {
|
|
178
|
+
value: "partOfABusiness",
|
|
179
|
+
label: globalT(($) => $["imPartOfABusinessOrOrganization"]),
|
|
180
|
+
iconName: "company"
|
|
181
|
+
}];
|
|
182
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
183
|
+
el: "fieldset",
|
|
184
|
+
name: "entitySetup",
|
|
185
|
+
errorMessage: errors.entitySetup,
|
|
186
|
+
isValid: valid?.entitySetup,
|
|
187
|
+
label: globalT(($) => $["howIsYourBusinessSetup"]),
|
|
188
|
+
children: () => /* @__PURE__ */ jsx(List, {
|
|
189
|
+
dividers: false,
|
|
190
|
+
padding: "large",
|
|
191
|
+
children: entitySetupOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
192
|
+
className: EntitySetupField_module_default.entitySetupOption,
|
|
193
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
194
|
+
selected: data?.entitySetup === option.value,
|
|
195
|
+
onClick: () => handleChangeFor("entitySetup")(option.value),
|
|
196
|
+
children: /* @__PURE__ */ jsx(ListItem, {
|
|
197
|
+
title: option.label,
|
|
198
|
+
avatar: {
|
|
199
|
+
iconName: option.iconName,
|
|
200
|
+
circle: true
|
|
201
|
+
}
|
|
202
|
+
})
|
|
203
|
+
})
|
|
204
|
+
}, option.value))
|
|
205
|
+
})
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/components/GlobalEntry/forms/EntityInformation/EntityInformation.tsx
|
|
210
|
+
var ENTITY_INFORMATION_FIELDS = [
|
|
211
|
+
...COUNTRY_FIELD,
|
|
212
|
+
...STATE_FIELD,
|
|
213
|
+
...ENTITY_SETUP_FIELD
|
|
214
|
+
];
|
|
215
|
+
var EntityInformation = ({ id, country }) => {
|
|
216
|
+
const { form } = useFormContext();
|
|
217
|
+
const { t: commonT } = useTranslation("common");
|
|
218
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
219
|
+
const allowedCountries = useAllowedCountries();
|
|
220
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "entityInformation");
|
|
221
|
+
const formUtils = createFormUtils({
|
|
222
|
+
requiredFields,
|
|
223
|
+
optionalFields,
|
|
224
|
+
trustedFields
|
|
225
|
+
}, commonT);
|
|
226
|
+
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
227
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
228
|
+
id,
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ jsx(Header, {
|
|
231
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
232
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
233
|
+
}),
|
|
234
|
+
/* @__PURE__ */ jsx(CountryField, {
|
|
235
|
+
data: { country: data?.country },
|
|
236
|
+
valid: { country: valid?.country },
|
|
237
|
+
errors: { country: formUtils.getErrorMessage("country", errors, fieldProblems) },
|
|
238
|
+
labels: { country: globalEntryT(($) => $["whereIsYourBusinessLocated"]) },
|
|
239
|
+
readonly: false,
|
|
240
|
+
allowedCountries,
|
|
241
|
+
handleChangeFor
|
|
242
|
+
}),
|
|
243
|
+
showField(STATE_FIELD) && /* @__PURE__ */ jsx(StateField, {
|
|
244
|
+
data: { stateOrProvince: data?.stateOrProvince },
|
|
245
|
+
valid: { stateOrProvince: valid?.stateOrProvince },
|
|
246
|
+
errors: { stateOrProvince: formUtils.getErrorMessage("stateOrProvince", errors, fieldProblems) },
|
|
247
|
+
selectedCountry: country,
|
|
248
|
+
readonly: false,
|
|
249
|
+
handleChangeFor,
|
|
250
|
+
labelOverride: commonT(($) => $["whereIsYourBusinessRegistered"])
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsx(EntitySetupField, {
|
|
253
|
+
data: { entitySetup: data?.entitySetup },
|
|
254
|
+
valid: { entitySetup: valid?.entitySetup },
|
|
255
|
+
errors: { entitySetup: formUtils.getErrorMessage("entitySetup", errors, fieldProblems) },
|
|
256
|
+
handleChangeFor
|
|
257
|
+
})
|
|
258
|
+
]
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
var PrimaryPartnerTypeField_module_default = {
|
|
262
|
+
"primary-partner-type": "_primary-partner-type_1omkz_1",
|
|
263
|
+
primaryPartnerType: "_primary-partner-type_1omkz_1"
|
|
264
|
+
};
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.tsx
|
|
267
|
+
var PRIMARY_PARTNER_TYPE_FIELD = ["primaryPartnerType"];
|
|
268
|
+
var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
269
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
270
|
+
const partnerTypeOptions = [{
|
|
271
|
+
value: "individual",
|
|
272
|
+
label: globalEntryT(($) => $["anIndividual"]),
|
|
273
|
+
iconName: "user"
|
|
274
|
+
}, {
|
|
275
|
+
value: "organization",
|
|
276
|
+
label: globalEntryT(($) => $["aBusinessEntity"]),
|
|
277
|
+
iconName: "company"
|
|
278
|
+
}];
|
|
279
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
280
|
+
el: "fieldset",
|
|
281
|
+
name: "primaryPartnerType",
|
|
282
|
+
errorMessage: errors.primaryPartnerType,
|
|
283
|
+
isValid: valid?.primaryPartnerType,
|
|
284
|
+
label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryPartner"]),
|
|
285
|
+
formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOnePartner"]),
|
|
286
|
+
children: () => /* @__PURE__ */ jsx(List, {
|
|
287
|
+
dividers: false,
|
|
288
|
+
padding: "large",
|
|
289
|
+
children: partnerTypeOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
290
|
+
className: PrimaryPartnerTypeField_module_default.primaryPartnerType,
|
|
291
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
292
|
+
selected: data?.primaryPartnerType === option.value,
|
|
293
|
+
onClick: () => handleChangeFor("primaryPartnerType")(option.value),
|
|
294
|
+
children: /* @__PURE__ */ jsx(ListItem, {
|
|
295
|
+
title: option.label,
|
|
296
|
+
avatar: {
|
|
297
|
+
iconName: option.iconName,
|
|
298
|
+
circle: true
|
|
299
|
+
}
|
|
300
|
+
})
|
|
301
|
+
})
|
|
302
|
+
}, option.value))
|
|
303
|
+
})
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.tsx
|
|
308
|
+
var PRIMARY_PARTNER_FIELDS = [...PRIMARY_PARTNER_TYPE_FIELD];
|
|
309
|
+
var PrimaryPartner = ({ id }) => {
|
|
310
|
+
const { form } = useFormContext();
|
|
311
|
+
const { t: commonT } = useTranslation("common");
|
|
312
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
313
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "primaryPartner");
|
|
314
|
+
const formUtils = createFormUtils({
|
|
315
|
+
requiredFields,
|
|
316
|
+
optionalFields,
|
|
317
|
+
trustedFields
|
|
318
|
+
}, commonT);
|
|
319
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
320
|
+
id,
|
|
321
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
322
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
323
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
324
|
+
}), /* @__PURE__ */ jsx(PrimaryPartnerTypeField, {
|
|
325
|
+
data: { primaryPartnerType: data?.primaryPartnerType },
|
|
326
|
+
valid: { primaryPartnerType: valid?.primaryPartnerType },
|
|
327
|
+
errors: { primaryPartnerType: formUtils.getErrorMessage("primaryPartnerType", errors, fieldProblems) },
|
|
328
|
+
handleChangeFor
|
|
329
|
+
})]
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.tsx
|
|
334
|
+
var PAPERWORK_QUESTIONNAIRE_FIELD = ["filedPaperwork"];
|
|
335
|
+
/**
|
|
336
|
+
* The paperwork answer dictates whether the entity is:
|
|
337
|
+
* A) a pure individual or a sole prop, or
|
|
338
|
+
* B) a registered business or an unincorporated partnership.
|
|
339
|
+
*/
|
|
340
|
+
function PaperworkQuestionnaire({ data, valid, handleChangeFor, errors, label }) {
|
|
341
|
+
const { t } = useTranslation(["globalEntry", "common"]);
|
|
342
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
343
|
+
el: "fieldset",
|
|
344
|
+
name: "PaperworkQuestionnaire",
|
|
345
|
+
label,
|
|
346
|
+
isValid: valid.filedPaperwork,
|
|
347
|
+
errorMessage: errors.filedPaperwork,
|
|
348
|
+
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
349
|
+
variant: "link",
|
|
350
|
+
onClick: () => {},
|
|
351
|
+
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
352
|
+
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
353
|
+
name: "filedPaperwork",
|
|
354
|
+
selected: data.filedPaperwork ?? "",
|
|
355
|
+
isHorizontal: true,
|
|
356
|
+
onChange: (value) => handleChangeFor("filedPaperwork")(value),
|
|
357
|
+
tiles: [{
|
|
358
|
+
label: t(($) => $["yes"], { ns: "common" }),
|
|
359
|
+
value: "yes"
|
|
360
|
+
}, {
|
|
361
|
+
label: t(($) => $["no"], { ns: "common" }),
|
|
362
|
+
value: "no"
|
|
363
|
+
}]
|
|
364
|
+
})] })
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region src/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.tsx
|
|
369
|
+
var UNINCORPORATED_ORGANIZATION_TYPE_FIELD = ["unincorporatedOrganizationType"];
|
|
370
|
+
var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
371
|
+
const { t } = useTranslation("globalEntry");
|
|
372
|
+
const tiles = [{
|
|
373
|
+
label: t(($) => $["unincorporatedPartnership"]),
|
|
374
|
+
value: "unincorporatedPartnership",
|
|
375
|
+
icon: "trust"
|
|
376
|
+
}, {
|
|
377
|
+
label: t(($) => $["unincorporatedAssociation"]),
|
|
378
|
+
value: "unincorporatedAssociation",
|
|
379
|
+
icon: "trust"
|
|
380
|
+
}];
|
|
381
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
382
|
+
el: "fieldset",
|
|
383
|
+
name: "unincorporatedOrganizationType",
|
|
384
|
+
label: t(($) => $["whichBestDescribesYourOrganization"]),
|
|
385
|
+
errorMessage: errors.unincorporatedOrganizationType,
|
|
386
|
+
isValid: valid?.unincorporatedOrganizationType,
|
|
387
|
+
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
388
|
+
variant: "link",
|
|
389
|
+
onClick: () => {},
|
|
390
|
+
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
391
|
+
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
392
|
+
name: "unincorporatedOrganizationType",
|
|
393
|
+
selected: data?.unincorporatedOrganizationType ?? "",
|
|
394
|
+
onChange: (value) => handleChangeFor("unincorporatedOrganizationType")(value),
|
|
395
|
+
tiles,
|
|
396
|
+
isHorizontal: true
|
|
397
|
+
})] })
|
|
398
|
+
}), data?.unincorporatedOrganizationType === "unincorporatedAssociation" && /* @__PURE__ */ jsx(Alert, {
|
|
399
|
+
variant: "error",
|
|
400
|
+
title: t(($) => $["unincorporatedAssociationsArentSupported"]),
|
|
401
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
402
|
+
variant: "body",
|
|
403
|
+
children: t(($) => $["contactYourPlatformsSupportForHelp"])
|
|
404
|
+
})
|
|
405
|
+
})] });
|
|
406
|
+
};
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region src/components/GlobalEntry/utils/utils.ts
|
|
409
|
+
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
410
|
+
if (data.entityInformation.entitySetup === "partOfABusiness") return data.companyStructure?.organizationType ?? legalEntity?.organization?.type;
|
|
411
|
+
if (data.entityInformation.entitySetup === "justMe") {
|
|
412
|
+
const hasSoleProprietorshipAssociation = legalEntity && hasSolePropInLegalEntity(legalEntity);
|
|
413
|
+
return data.registrationInformation?.filedPaperwork === "yes" || hasSoleProprietorshipAssociation ? "soleProprietorship" : void 0;
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
var isPaperworkQuestionAsked = (data) => {
|
|
417
|
+
const { country, entitySetup } = data.entityInformation ?? {};
|
|
418
|
+
if (!country) return false;
|
|
419
|
+
if (entitySetup === "partOfABusiness") return ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES.includes(country);
|
|
420
|
+
return entitySetup === "justMe" && SOLE_PROP_COUNTRIES.includes(country);
|
|
421
|
+
};
|
|
422
|
+
var getFiledPaperwork = (data) => {
|
|
423
|
+
if (isPaperworkQuestionAsked(data)) return data.registrationInformation?.filedPaperwork ?? null;
|
|
424
|
+
return data.entityInformation?.entitySetup === "partOfABusiness" ? "yes" : "no";
|
|
425
|
+
};
|
|
426
|
+
var isSoleProprietorship = (data) => data.entityInformation?.entitySetup === "justMe" && getFiledPaperwork(data) === "yes";
|
|
427
|
+
var isUnincorporatedPartnership = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "no" && data.registrationInformation?.unincorporatedOrganizationType === "unincorporatedPartnership";
|
|
428
|
+
/**
|
|
429
|
+
* `justMe` is always a natural person. Being part of a business only makes the entity an
|
|
430
|
+
* `organization` when the primary partner is not an individual, because an individual partner in an
|
|
431
|
+
* unincorporated partnership stays an individual legal entity.
|
|
432
|
+
*/
|
|
433
|
+
var determineLegalEntityType = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && data.primaryPartner?.primaryPartnerType !== "individual" ? "organization" : "individual";
|
|
434
|
+
/**
|
|
435
|
+
* The account holder is derived from the form data, not sent to the API and is kept client-side.
|
|
436
|
+
*/
|
|
437
|
+
var determineAccountHolder = (data) => {
|
|
438
|
+
const entitySetup = data.entityInformation?.entitySetup;
|
|
439
|
+
/** Derived, because the question is not put to the user in every country */
|
|
440
|
+
const filedPaperwork = getFiledPaperwork(data);
|
|
441
|
+
if (entitySetup === "justMe") return filedPaperwork === "yes" ? "mySoleProprietorName" : "myName";
|
|
442
|
+
if (entitySetup === "partOfABusiness") {
|
|
443
|
+
if (isUnincorporatedPartnership(data)) return "anUnincorporatedPartnership";
|
|
444
|
+
if (filedPaperwork === "yes") return "theCompanyIWorkFor";
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
var determineEntityAssociations = (data, accountHolder, legalEntity, newSoleProp) => {
|
|
448
|
+
/** Sole props are the only association we create and associate in Global Entry */
|
|
449
|
+
if (newSoleProp) return [{
|
|
450
|
+
type: "soleProprietorship",
|
|
451
|
+
legalEntityId: newSoleProp.id
|
|
452
|
+
}];
|
|
453
|
+
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
454
|
+
if (!ownAssociations || ownAssociations.length === 0) return;
|
|
455
|
+
return accountHolder !== determineAccountHolder(data) ? [] : void 0;
|
|
456
|
+
};
|
|
457
|
+
//#endregion
|
|
458
|
+
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
459
|
+
var REGISTRATION_INFORMATION_FIELDS = [
|
|
460
|
+
...PAPERWORK_QUESTIONNAIRE_FIELD,
|
|
461
|
+
...UNINCORPORATED_ORGANIZATION_TYPE_FIELD,
|
|
462
|
+
...LEGAL_COMPANY_NAME_FIELD,
|
|
463
|
+
"jaHaniLegalCompanyName",
|
|
464
|
+
"jaKanaLegalCompanyName",
|
|
465
|
+
...COUNTRY_OF_GOVERNING_LAW_FIELD,
|
|
466
|
+
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
467
|
+
...TAX_INFORMATION_FIELD
|
|
468
|
+
];
|
|
469
|
+
var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) => {
|
|
470
|
+
const { form } = useFormContext();
|
|
471
|
+
const { t: commonT } = useTranslation("common");
|
|
472
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
473
|
+
const { t: businessT } = useTranslation("business");
|
|
474
|
+
const { defaultData } = form;
|
|
475
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "registrationInformation");
|
|
476
|
+
const companyType = getGlobalEntryCompanyType(legalEntity, form.data);
|
|
477
|
+
const formUtils = createFormUtils({
|
|
478
|
+
requiredFields,
|
|
479
|
+
optionalFields,
|
|
480
|
+
trustedFields
|
|
481
|
+
}, commonT);
|
|
482
|
+
const legalCompanyNameFields = useLegalCompanyNameField({
|
|
483
|
+
data: data ?? {},
|
|
484
|
+
valid: valid ?? {},
|
|
485
|
+
errors: errors ?? {},
|
|
486
|
+
fieldProblems: fieldProblems ?? {},
|
|
487
|
+
country,
|
|
488
|
+
formUtils,
|
|
489
|
+
handleChange: handleChangeFor,
|
|
490
|
+
t: businessT
|
|
491
|
+
});
|
|
492
|
+
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
493
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
494
|
+
id,
|
|
495
|
+
children: [
|
|
496
|
+
/* @__PURE__ */ jsx(Header, {
|
|
497
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
498
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
499
|
+
}),
|
|
500
|
+
showField(PAPERWORK_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(PaperworkQuestionnaire, {
|
|
501
|
+
data: { filedPaperwork: data.filedPaperwork },
|
|
502
|
+
valid: { filedPaperwork: valid.filedPaperwork },
|
|
503
|
+
errors: { filedPaperwork: formUtils.getErrorMessage("filedPaperwork", errors, fieldProblems) },
|
|
504
|
+
label: form.data.entityInformation.entitySetup === "partOfABusiness" ? globalEntryT(($) => $["hasPaperworkBeenFiled"]) : globalEntryT(($) => $["areYourBusinessActivitiesRegisteredWithAGovernmentAuthority"]),
|
|
505
|
+
handleChangeFor
|
|
506
|
+
}),
|
|
507
|
+
showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx(CountryOfGoverningLawField, {
|
|
508
|
+
data: { countryOfGoverningLaw: data.countryOfGoverningLaw },
|
|
509
|
+
valid: { countryOfGoverningLaw: valid.countryOfGoverningLaw },
|
|
510
|
+
errors: { countryOfGoverningLaw: formUtils.getErrorMessage("countryOfGoverningLaw", errors, fieldProblems) },
|
|
511
|
+
country,
|
|
512
|
+
handleChangeFor
|
|
513
|
+
}),
|
|
514
|
+
showField(UNINCORPORATED_ORGANIZATION_TYPE_FIELD) && /* @__PURE__ */ jsx(UnincorporatedOrganizationTypeField, {
|
|
515
|
+
data: { unincorporatedOrganizationType: data.unincorporatedOrganizationType },
|
|
516
|
+
valid: { unincorporatedOrganizationType: valid.unincorporatedOrganizationType },
|
|
517
|
+
errors: { unincorporatedOrganizationType: formUtils.getErrorMessage("unincorporatedOrganizationType", errors, fieldProblems) },
|
|
518
|
+
handleChangeFor
|
|
519
|
+
}),
|
|
520
|
+
showField(LEGAL_COMPANY_NAME_FIELD) && legalCompanyNameFields.filter(Boolean).map((field) => /* @__PURE__ */ jsx(Field, {
|
|
521
|
+
name: field?.name ?? "",
|
|
522
|
+
label: field?.label,
|
|
523
|
+
formatGuidance: field?.guidance,
|
|
524
|
+
errorMessage: field?.errorMessage,
|
|
525
|
+
isValid: Boolean(field?.isValid),
|
|
526
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
527
|
+
...childProps,
|
|
528
|
+
"aria-required": true,
|
|
529
|
+
"aria-invalid": !field?.isValid,
|
|
530
|
+
name: field?.name,
|
|
531
|
+
value: field?.value,
|
|
532
|
+
readonly: field?.readonly,
|
|
533
|
+
onInput: field ? field.onInput : () => {},
|
|
534
|
+
transformInput: field?.transformInput,
|
|
535
|
+
transformMode: field?.transformMode,
|
|
536
|
+
onBlur: field?.onBlur,
|
|
537
|
+
onKeyDown: field?.onKeyDown
|
|
538
|
+
})
|
|
539
|
+
}, field?.name)),
|
|
540
|
+
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
541
|
+
data: {
|
|
542
|
+
taxInformation: data.taxInformation,
|
|
543
|
+
exemptedFromTax: data.exemptedFromTax,
|
|
544
|
+
isUen: data.isUen
|
|
545
|
+
},
|
|
546
|
+
valid: {
|
|
547
|
+
taxInformation: valid.taxInformation,
|
|
548
|
+
exemptedFromTax: valid.exemptedFromTax,
|
|
549
|
+
isUen: valid.isUen
|
|
550
|
+
},
|
|
551
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
552
|
+
placeholder: getTaxInformationPlaceholderText({
|
|
553
|
+
country,
|
|
554
|
+
companyType,
|
|
555
|
+
taxIdNumberType: data?.taxInformation?.find((tax) => tax.country === country)?.type
|
|
556
|
+
}),
|
|
557
|
+
shouldValidate,
|
|
558
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
559
|
+
handleChangeFor,
|
|
560
|
+
canExempt: showField(["exemptedFromTax"]),
|
|
561
|
+
registrationNumber: data.registrationNumber,
|
|
562
|
+
country,
|
|
563
|
+
entityType: companyType,
|
|
564
|
+
defaultData: defaultData?.registrationInformation.taxInformation
|
|
565
|
+
}),
|
|
566
|
+
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
567
|
+
data: {
|
|
568
|
+
registrationNumber: data.registrationNumber,
|
|
569
|
+
registrationNumberType: data.registrationNumberType,
|
|
570
|
+
exemptedFromRegistrationNumber: data.exemptedFromRegistrationNumber
|
|
571
|
+
},
|
|
572
|
+
valid: {
|
|
573
|
+
registrationNumber: valid.registrationNumber,
|
|
574
|
+
registrationNumberType: valid.registrationNumberType,
|
|
575
|
+
exemptedFromRegistrationNumber: valid.exemptedFromRegistrationNumber
|
|
576
|
+
},
|
|
577
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
578
|
+
shouldValidate,
|
|
579
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
580
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
581
|
+
handleChangeFor,
|
|
582
|
+
country,
|
|
583
|
+
state: form.data.entityInformation.stateOrProvince,
|
|
584
|
+
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
585
|
+
companyType
|
|
586
|
+
})
|
|
587
|
+
]
|
|
588
|
+
});
|
|
589
|
+
};
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/components/GlobalEntry/constants.ts
|
|
592
|
+
var globalEntryForms = {
|
|
593
|
+
entityInformation: {
|
|
594
|
+
formId: "entityInformation",
|
|
595
|
+
formName: "entityInformationFormName",
|
|
596
|
+
fields: ENTITY_INFORMATION_FIELDS
|
|
597
|
+
},
|
|
598
|
+
registrationInformation: {
|
|
599
|
+
formId: "registrationInformation",
|
|
600
|
+
formName: "registrationInformationFormName",
|
|
601
|
+
fields: REGISTRATION_INFORMATION_FIELDS
|
|
602
|
+
},
|
|
603
|
+
companyStructure: {
|
|
604
|
+
formId: "companyStructure",
|
|
605
|
+
formName: "companyStructureFormName",
|
|
606
|
+
fields: COMPANY_STRUCTURE_FIELDS
|
|
607
|
+
},
|
|
608
|
+
primaryPartner: {
|
|
609
|
+
formId: "primaryPartner",
|
|
610
|
+
formName: "primaryPartnerFormName",
|
|
611
|
+
fields: PRIMARY_PARTNER_FIELDS
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region src/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.ts
|
|
616
|
+
var determineEntitySetup = (legalEntity, accountHolder) => {
|
|
617
|
+
if (accountHolder === "anUnincorporatedPartnership" && legalEntity.type === "individual") return "partOfABusiness";
|
|
618
|
+
if (legalEntity.type === "individual") return "justMe";
|
|
619
|
+
return "partOfABusiness";
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* @param legalEntity the root entity
|
|
623
|
+
* @param associatedSoleProp the proprietorship associated to the root, when there is one. It holds
|
|
624
|
+
* the registration details the root does not, so editing an existing proprietorship prefills.
|
|
625
|
+
*/
|
|
626
|
+
var mapLegalEntityToGlobalEntrySchema = (legalEntity, accountHolder, associatedSoleProp) => {
|
|
627
|
+
const soleProprietorship = associatedSoleProp?.soleProprietorship ?? (legalEntity.type === "soleProprietorship" ? legalEntity.soleProprietorship : void 0);
|
|
628
|
+
const isSoleProprietorship = !!soleProprietorship;
|
|
629
|
+
const taxInformation = isSoleProprietorship ? soleProprietorship.taxInformation : legalEntity.organization?.taxInformation;
|
|
630
|
+
const registrationNumber = isSoleProprietorship ? soleProprietorship.registrationNumber : legalEntity.organization?.registrationNumber;
|
|
631
|
+
const currentCountryTaxInformation = taxInformation?.find((taxInformationItem) => taxInformationItem.country === getLegalEntityCountry(legalEntity));
|
|
632
|
+
const isUen = currentCountryTaxInformation?.type === "UEN";
|
|
633
|
+
const country = getLegalEntityCountry(legalEntity);
|
|
634
|
+
const companyType = legalEntity.organization?.type ? legalEntity.organization?.type : "soleProprietorship";
|
|
635
|
+
const registrationNumberExemption = !registrationNumber && !!companyType && isRegistrationExemptionAllowed({
|
|
636
|
+
country,
|
|
637
|
+
companyType
|
|
638
|
+
}) ? true : legalEntity.organization?.registrationNumberAbsent;
|
|
639
|
+
return {
|
|
640
|
+
entityInformation: {
|
|
641
|
+
entitySetup: determineEntitySetup(legalEntity, accountHolder),
|
|
642
|
+
country: getLegalEntityCountry(legalEntity)
|
|
643
|
+
},
|
|
644
|
+
registrationInformation: {
|
|
645
|
+
...mapLocalizationToJapaneseLegalNames(legalEntity.organization?.localization),
|
|
646
|
+
filedPaperwork: accountHolder === "anUnincorporatedPartnership" ? "no" : taxInformation && taxInformation.length > 0 || registrationNumber ? "yes" : void 0,
|
|
647
|
+
unincorporatedOrganizationType: accountHolder === "anUnincorporatedPartnership" ? "unincorporatedPartnership" : void 0,
|
|
648
|
+
legalCompanyName: isSoleProprietorship ? soleProprietorship.name : legalEntity.organization?.legalName,
|
|
649
|
+
registrationNumber: isUen ? currentCountryTaxInformation?.number : registrationNumber,
|
|
650
|
+
exemptedFromRegistrationNumber: isSoleProprietorship ? soleProprietorship.taxAbsent : registrationNumberExemption,
|
|
651
|
+
countryOfGoverningLaw: isSoleProprietorship ? soleProprietorship.countryOfGoverningLaw : legalEntity.organization?.countryOfGoverningLaw,
|
|
652
|
+
taxInformation,
|
|
653
|
+
isUen
|
|
654
|
+
},
|
|
655
|
+
companyStructure: { organizationType: legalEntity.organization?.type },
|
|
656
|
+
primaryPartner: { primaryPartnerType: accountHolder === "anUnincorporatedPartnership" ? legalEntity.type === "individual" ? "individual" : "organization" : void 0 }
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region src/components/GlobalEntry/rules.ts
|
|
661
|
+
var globalEntryFieldRuleConfigurations = {
|
|
662
|
+
entitySetup: { rule: "entitySetupRequired" },
|
|
663
|
+
organizationType: { rule: "organizationTypeRequired" },
|
|
664
|
+
primaryPartnerType: { rule: "primaryPartnerTypeRequired" },
|
|
665
|
+
country: { rule: "countryRequired" },
|
|
666
|
+
stateOrProvince: { rule: "requireStateOrProvinceForCompanySearch" },
|
|
667
|
+
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
668
|
+
filedPaperwork: { rule: "filedPaperworkRequired" },
|
|
669
|
+
unincorporatedOrganizationType: { rule: "unincorporatedOrganizationTypeRequired" },
|
|
670
|
+
legalCompanyName: { rule: "legalCompanyNameRequired" },
|
|
671
|
+
jaHaniLegalCompanyName: { rule: "jaHaniLegalCompanyName" },
|
|
672
|
+
jaKanaLegalCompanyName: { rule: "jaKanaLegalCompanyName" },
|
|
673
|
+
registrationNumber: { rule: "countryRequiresRegistrationNumber" },
|
|
674
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
675
|
+
exemptedFromRegistrationNumber: { rule: "companyRegistrationNumberExemptionAllowed" },
|
|
676
|
+
taxInformation: { rule: "taxInformationRequired" },
|
|
677
|
+
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
678
|
+
};
|
|
679
|
+
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, taskType, rootLegalEntity }) => {
|
|
680
|
+
const filedPaperwork = getFiledPaperwork(data);
|
|
681
|
+
const hasFiledPaperwork = filedPaperwork === "yes";
|
|
682
|
+
const hasAnsweredPaperworkQuestion = !!filedPaperwork;
|
|
683
|
+
const isPartOfABusiness = data.entityInformation?.entitySetup === "partOfABusiness";
|
|
684
|
+
const isSoleProp = isSoleProprietorship(data);
|
|
685
|
+
const isExemptFromRegistrationNumber = Boolean(data.registrationInformation?.exemptedFromRegistrationNumber);
|
|
686
|
+
const existingRegistrationNumber = rootLegalEntity?.type === "soleProprietorship" ? rootLegalEntity.soleProprietorship?.registrationNumber : rootLegalEntity?.organization?.registrationNumber;
|
|
687
|
+
const isUnincorporatedOrganization = isPartOfABusiness && filedPaperwork === "no";
|
|
688
|
+
const isRegisteredOrganization = isPartOfABusiness && hasFiledPaperwork;
|
|
689
|
+
return createFormRules({
|
|
690
|
+
entitySetupRequired: () => "REQUIRED",
|
|
691
|
+
countryRequired: () => "REQUIRED",
|
|
692
|
+
requireStateOrProvinceForCompanySearch: () => {
|
|
693
|
+
if (isPartOfABusiness && isUsingCompanySearch(country, taskType) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
|
|
694
|
+
},
|
|
695
|
+
organizationTypeRequired: () => isRegisteredOrganization ? "REQUIRED" : void 0,
|
|
696
|
+
countryOfGoverningLawRequired: () => {
|
|
697
|
+
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && (isPartOfABusiness || isSoleProp) && hasAnsweredPaperworkQuestion) return "REQUIRED";
|
|
698
|
+
},
|
|
699
|
+
filedPaperworkRequired: () => isPaperworkQuestionAsked(data) ? "REQUIRED" : void 0,
|
|
700
|
+
unincorporatedOrganizationTypeRequired: () => isUnincorporatedOrganization ? "REQUIRED" : void 0,
|
|
701
|
+
legalCompanyNameRequired: () => hasFiledPaperwork ? "REQUIRED" : void 0,
|
|
702
|
+
jaHaniLegalCompanyName: () => {
|
|
703
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
704
|
+
},
|
|
705
|
+
jaKanaLegalCompanyName: () => {
|
|
706
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
707
|
+
},
|
|
708
|
+
countryRequiresRegistrationNumber: () => {
|
|
709
|
+
if (!hasFiledPaperwork) return;
|
|
710
|
+
if (isSoleProp) {
|
|
711
|
+
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
712
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) return "OPTIONAL";
|
|
713
|
+
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
714
|
+
}
|
|
715
|
+
if (isPartOfABusiness) {
|
|
716
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
717
|
+
if (country === CountryCodes.HongKong) {
|
|
718
|
+
if (!existingRegistrationNumber) return;
|
|
719
|
+
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
720
|
+
}
|
|
721
|
+
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
registrationNumberType: () => {
|
|
725
|
+
if (!hasFiledPaperwork) return;
|
|
726
|
+
if (isSoleProp) return COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country) ? void 0 : "OPTIONAL";
|
|
727
|
+
if (isPartOfABusiness) {
|
|
728
|
+
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
729
|
+
if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
|
|
730
|
+
return "OPTIONAL";
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
companyRegistrationNumberExemptionAllowed: () => {
|
|
734
|
+
if (!hasFiledPaperwork) return;
|
|
735
|
+
if (isSoleProp) {
|
|
736
|
+
if (!isRegistrationExemptionAllowed({
|
|
737
|
+
country,
|
|
738
|
+
companyType: "soleProprietorship"
|
|
739
|
+
})) return;
|
|
740
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
741
|
+
}
|
|
742
|
+
if (isPartOfABusiness) {
|
|
743
|
+
if (!isRegistrationExemptionAllowed({ country })) return;
|
|
744
|
+
/**
|
|
745
|
+
* Country-specific guard checks before applying the shared exemption rule result.
|
|
746
|
+
*
|
|
747
|
+
* - HK first enforces the legacy registration-number presence guard for existing entities.
|
|
748
|
+
* - AU/NZ then enforce the absent-state V4 feature flag gate.
|
|
749
|
+
*/
|
|
750
|
+
switch (country) {
|
|
751
|
+
case CountryCodes.HongKong:
|
|
752
|
+
if (!existingRegistrationNumber) return;
|
|
753
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
754
|
+
case CountryCodes.Australia:
|
|
755
|
+
case CountryCodes.NewZealand:
|
|
756
|
+
if (!isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4")) return;
|
|
757
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
758
|
+
default: return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
taxInformationRequired: () => {
|
|
763
|
+
const requiredUnlessExempt = Boolean(data.registrationInformation?.exemptedFromTax) ? "OPTIONAL" : "REQUIRED";
|
|
764
|
+
const usesTaxIdInsteadOfVat = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country);
|
|
765
|
+
if (!hasFiledPaperwork) return;
|
|
766
|
+
if (isPartOfABusiness) {
|
|
767
|
+
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount")) {
|
|
768
|
+
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country)) return requiredUnlessExempt;
|
|
769
|
+
if (country === CountryCodes.Italy && data.registrationInformation?.registrationNumberType === "CCIAA") return requiredUnlessExempt;
|
|
770
|
+
}
|
|
771
|
+
if (usesTaxIdInsteadOfVat) return requiredUnlessExempt;
|
|
772
|
+
}
|
|
773
|
+
if (isSoleProp) {
|
|
774
|
+
if (COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country)) return;
|
|
775
|
+
if (usesTaxIdInsteadOfVat) return requiredUnlessExempt;
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
countryHasTaxExemptions: () => {
|
|
779
|
+
if (!hasFiledPaperwork) return;
|
|
780
|
+
const isExemptFromTax = Boolean(data.registrationInformation?.exemptedFromTax);
|
|
781
|
+
if (isSoleProp) {
|
|
782
|
+
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
783
|
+
return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
784
|
+
}
|
|
785
|
+
if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
786
|
+
if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
787
|
+
},
|
|
788
|
+
primaryPartnerTypeRequired: () => isUnincorporatedOrganization && data.registrationInformation.unincorporatedOrganizationType === "unincorporatedPartnership" ? "REQUIRED" : void 0
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region src/components/GlobalEntry/utils/buildRequiredForms.ts
|
|
793
|
+
function buildRequiredForms({ config: { forms, requiredFields, optionalFields, isValid }, options }) {
|
|
794
|
+
/**
|
|
795
|
+
* Skip company structure if:
|
|
796
|
+
* - Only a single company structure is available
|
|
797
|
+
*/
|
|
798
|
+
const filteredForms = [];
|
|
799
|
+
for (const formId in forms) {
|
|
800
|
+
const form = forms[formId];
|
|
801
|
+
if (formId === "companyStructure" && options?.skipCompanyStructure) continue;
|
|
802
|
+
if (requiredFields || optionalFields) {
|
|
803
|
+
if (!requiredFields?.[formId] && !optionalFields?.[formId]) continue;
|
|
804
|
+
}
|
|
805
|
+
filteredForms.push(form);
|
|
806
|
+
}
|
|
807
|
+
return addValidityToForms(options?.skipSummary ? filteredForms : [...filteredForms, summaryStep], isValid, void 0);
|
|
808
|
+
}
|
|
809
|
+
//#endregion
|
|
810
|
+
//#region src/components/GlobalEntry/mapping/globalEntryKeyMapping.ts
|
|
811
|
+
/**
|
|
812
|
+
* Schema-keyed mapping, for reading a legal entity into the form schema.
|
|
813
|
+
*/
|
|
814
|
+
var globalEntryKeyMappingForOrgs = {
|
|
815
|
+
"entityInformation.country": "organization.registeredAddress.country",
|
|
816
|
+
"entityInformation.stateOrProvince": "organization.registeredAddress.stateOrProvince",
|
|
817
|
+
"registrationInformation.legalCompanyName": "organization.legalName",
|
|
818
|
+
"registrationInformation.registrationNumber": "organization.registrationNumber",
|
|
819
|
+
"registrationInformation.exemptedFromRegistrationNumber": "organization.registrationNumberAbsent",
|
|
820
|
+
"registrationInformation.taxInformation": "organization.taxInformation",
|
|
821
|
+
"registrationInformation.countryOfGoverningLaw": "organization.countryOfGoverningLaw",
|
|
822
|
+
"companyStructure.organizationType": "organization.type"
|
|
823
|
+
};
|
|
824
|
+
var globalEntryKeyMappingForIndividuals = {
|
|
825
|
+
"entityInformation.country": "individual.residentialAddress.country",
|
|
826
|
+
"entityInformation.stateOrProvince": "individual.residentialAddress.stateOrProvince"
|
|
827
|
+
};
|
|
828
|
+
var globalEntryKeyMappingForSoleProps = {
|
|
829
|
+
"entityInformation.country": "soleProprietorship.registeredAddress.country",
|
|
830
|
+
"entityInformation.stateOrProvince": "soleProprietorship.registeredAddress.stateOrProvince",
|
|
831
|
+
"registrationInformation.legalCompanyName": "soleProprietorship.name",
|
|
832
|
+
"registrationInformation.registrationNumber": "soleProprietorship.registrationNumber",
|
|
833
|
+
"registrationInformation.taxInformation": "soleProprietorship.taxInformation",
|
|
834
|
+
"registrationInformation.exemptedFromTax": "soleProprietorship.taxAbsent",
|
|
835
|
+
"registrationInformation.countryOfGoverningLaw": "soleProprietorship.countryOfGoverningLaw"
|
|
836
|
+
};
|
|
837
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
838
|
+
var globalEntryApiKeyMappingForOrgs = reverseMapping(globalEntryKeyMappingForOrgs);
|
|
839
|
+
/** Api-keyed mapping, for building the sole proprietorship request from the form schema */
|
|
840
|
+
var globalEntryApiKeyMappingForSoleProps = reverseMapping(globalEntryKeyMappingForSoleProps);
|
|
841
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
842
|
+
var globalEntryApiKeyMappingForIndividuals = reverseMapping(globalEntryKeyMappingForIndividuals);
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region src/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.ts
|
|
845
|
+
var mapGlobalEntrySchemaToSoleProp = (data) => {
|
|
846
|
+
const { soleProprietorship } = formatObject(data, globalEntryApiKeyMappingForSoleProps);
|
|
847
|
+
return {
|
|
848
|
+
type: "soleProprietorship",
|
|
849
|
+
soleProprietorship: {
|
|
850
|
+
...soleProprietorship,
|
|
851
|
+
/**
|
|
852
|
+
* A proprietorship always has a governing law, but the field is only put to the user in the
|
|
853
|
+
* countries that can differ from where they registered, so the rest fall back to that.
|
|
854
|
+
*/
|
|
855
|
+
countryOfGoverningLaw: data.registrationInformation?.countryOfGoverningLaw ?? data.entityInformation?.country
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
var mapGlobalEntrySchemaToLegalEntity = (data, legalEntity, accountHolder, isFeatureEnabled, newSoleProp) => {
|
|
860
|
+
const isOrg = determineLegalEntityType(data) === "organization";
|
|
861
|
+
const mapping = isOrg ? globalEntryApiKeyMappingForOrgs : globalEntryApiKeyMappingForIndividuals;
|
|
862
|
+
const entityAssociations = determineEntityAssociations(data, accountHolder, legalEntity, newSoleProp);
|
|
863
|
+
const entity = {
|
|
864
|
+
...formatObject(data, mapping),
|
|
865
|
+
id: legalEntity.id,
|
|
866
|
+
type: determineLegalEntityType(data),
|
|
867
|
+
...entityAssociations && { entityAssociations }
|
|
868
|
+
};
|
|
869
|
+
if (entity.organization) {
|
|
870
|
+
if (!(isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.entityInformation.country, data.companyStructure?.organizationType))) delete entity.organization.registrationNumberAbsent;
|
|
871
|
+
else if (data.registrationInformation.exemptedFromRegistrationNumber) entity.organization.registrationNumberAbsent = true;
|
|
872
|
+
else if (data.registrationInformation.registrationNumber) entity.organization.registrationNumberAbsent = false;
|
|
873
|
+
}
|
|
874
|
+
/** Only an organization holds these, the api has nowhere to put them on the other entity types */
|
|
875
|
+
const localization = isOrg ? mapJapaneseLegalNamesToLocalization(data.registrationInformation ?? {}) : void 0;
|
|
876
|
+
if (entity.organization && localization?.length) entity.organization.localization = localization;
|
|
877
|
+
return entity;
|
|
878
|
+
};
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region src/components/GlobalEntry/utils/submitGlobalEntry.ts
|
|
881
|
+
var submitGlobalEntry = async ({ legalEntity, associatedSoleProp, data, updateLegalEntity, createLegalEntity, accountHolder, isFeatureEnabled }) => {
|
|
882
|
+
let newSoleProp;
|
|
883
|
+
if (isSoleProprietorship(data)) {
|
|
884
|
+
const mappedSolePropData = mapGlobalEntrySchemaToSoleProp(data);
|
|
885
|
+
if (associatedSoleProp?.id) {
|
|
886
|
+
const { type: _type, ...soleProprietorshipDetails } = mappedSolePropData;
|
|
887
|
+
await updateLegalEntity({
|
|
888
|
+
...soleProprietorshipDetails,
|
|
889
|
+
id: associatedSoleProp.id
|
|
890
|
+
});
|
|
891
|
+
} else
|
|
892
|
+
/**
|
|
893
|
+
* Created first so the entity can be associated to it below, which keeps this to a single
|
|
894
|
+
* write against the entity itself.
|
|
895
|
+
*/
|
|
896
|
+
newSoleProp = await createLegalEntity(mappedSolePropData);
|
|
897
|
+
}
|
|
898
|
+
const { type: targetType, ...legalEntityData } = mapGlobalEntrySchemaToLegalEntity(data, legalEntity, accountHolder, isFeatureEnabled, newSoleProp ? newSoleProp : void 0);
|
|
899
|
+
/**
|
|
900
|
+
* LEM rejects a change of type in the same request as the data
|
|
901
|
+
*/
|
|
902
|
+
if (targetType !== legalEntity.type) await updateLegalEntity({
|
|
903
|
+
id: legalEntity.id,
|
|
904
|
+
type: targetType
|
|
905
|
+
});
|
|
906
|
+
await updateLegalEntity(legalEntityData);
|
|
907
|
+
return determineAccountHolder(data);
|
|
908
|
+
};
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region src/components/GlobalEntry/validate.ts
|
|
911
|
+
var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () => false }) => {
|
|
912
|
+
const country = data?.entityInformation?.country ?? getLegalEntityCountry(legalEntity);
|
|
913
|
+
const countryOfGoverningLawValidators = CountryOfGoverningLawFieldValidation().countryOfGoverningLaw;
|
|
914
|
+
const useStrictNameValidation = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
915
|
+
const legalCompanyNameValidators = resolveFieldMetadata(useStrictNameValidation ? defaultFieldConfigV4[country] : defaultFieldConfig[country], {}, useStrictNameValidation ? defaultFieldMetadataV4 : defaultFieldMetadata).validators;
|
|
916
|
+
const stateValidators = stateFieldMetadata.validators;
|
|
917
|
+
const taxIdNumberType = data?.registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
918
|
+
const companyType = data ? getGlobalEntryCompanyType(legalEntity, data) : void 0;
|
|
919
|
+
const taxInformationValidators = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
920
|
+
taxIdNumberType,
|
|
921
|
+
companyType
|
|
922
|
+
}, taxInformationDefaultFieldMetadata).validators;
|
|
923
|
+
const registrationNumberValidators = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
924
|
+
registrationNumberType: data?.registrationInformation?.registrationNumberType,
|
|
925
|
+
state: data?.entityInformation?.stateOrProvince
|
|
926
|
+
}, registrationNumberDefaultFieldMetadata).validators;
|
|
927
|
+
return {
|
|
928
|
+
companyStructure: { organizationType: {
|
|
929
|
+
validate: (value) => !!value,
|
|
930
|
+
modes: ["blur", "input"]
|
|
931
|
+
} },
|
|
932
|
+
entityInformation: { stateOrProvince: stateValidators },
|
|
933
|
+
primaryPartner: { primaryPartnerType: {
|
|
934
|
+
validate: (value) => !!value,
|
|
935
|
+
modes: ["blur", "input"]
|
|
936
|
+
} },
|
|
937
|
+
registrationInformation: {
|
|
938
|
+
countryOfGoverningLaw: countryOfGoverningLawValidators,
|
|
939
|
+
legalCompanyName: legalCompanyNameValidators,
|
|
940
|
+
registrationNumber: registrationNumberValidators,
|
|
941
|
+
taxInformation: taxInformationValidators,
|
|
942
|
+
unincorporatedOrganizationType: {
|
|
943
|
+
validate: (value) => !!value && value !== "unincorporatedAssociation",
|
|
944
|
+
modes: ["blur", "input"]
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
//#endregion
|
|
950
|
+
//#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
|
|
951
|
+
var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
952
|
+
switch (activeForm.formId) {
|
|
953
|
+
case globalEntryForms.entityInformation.formId: return /* @__PURE__ */ jsx(EntityInformation, {
|
|
954
|
+
id: activeForm.formId,
|
|
955
|
+
country
|
|
956
|
+
});
|
|
957
|
+
case globalEntryForms.registrationInformation.formId: return /* @__PURE__ */ jsx(RegistrationInformation, {
|
|
958
|
+
id: activeForm.formId,
|
|
959
|
+
legalEntity,
|
|
960
|
+
shouldValidate,
|
|
961
|
+
country
|
|
962
|
+
});
|
|
963
|
+
case globalEntryForms.companyStructure.formId: return /* @__PURE__ */ jsx(CompanyStructure, {
|
|
964
|
+
id: activeForm.formId,
|
|
965
|
+
country,
|
|
966
|
+
legalEntity
|
|
967
|
+
});
|
|
968
|
+
case globalEntryForms.primaryPartner.formId: return /* @__PURE__ */ jsx(PrimaryPartner, { id: activeForm.formId });
|
|
969
|
+
default: return null;
|
|
970
|
+
}
|
|
971
|
+
};
|
|
972
|
+
//#endregion
|
|
973
|
+
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
974
|
+
var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
975
|
+
const { i18n, t } = useTranslation(["common", "globalEntry"]);
|
|
976
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
977
|
+
const logger = createLogger();
|
|
978
|
+
const { showToast } = useToastContext();
|
|
979
|
+
const { accountHolder: accountHolderMaybe } = useAccountHolder();
|
|
980
|
+
const [derivedProps, setDerivedProps] = useState();
|
|
981
|
+
const accountHolder = accountHolderMaybe ?? (rootLegalEntity.type === "individual" ? "myName" : "theCompanyIWorkFor");
|
|
982
|
+
addResourceBundles(i18n, [{
|
|
983
|
+
ns: "globalEntry",
|
|
984
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
|
|
985
|
+
"../language/bg-BG.json": () => import("./bg-BG-BPzEcioF.js"),
|
|
986
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-D4ml1o2f.js"),
|
|
987
|
+
"../language/da-DK.json": () => import("./da-DK-BoINgPRU.js"),
|
|
988
|
+
"../language/de-DE.json": () => import("./de-DE-By2U6vch.js"),
|
|
989
|
+
"../language/el-GR.json": () => import("./el-GR-CdTXa4cP.js"),
|
|
990
|
+
"../language/en-US.json": () => import("./en-US-Cz4JoU20.js"),
|
|
991
|
+
"../language/es-ES.json": () => import("./es-ES-DT39ZlR7.js"),
|
|
992
|
+
"../language/es-LA.json": () => import("./es-LA-DQGPNeqX.js"),
|
|
993
|
+
"../language/et-EE.json": () => import("./et-EE-S_MAXUF8.js"),
|
|
994
|
+
"../language/fi-FI.json": () => import("./fi-FI-ThDP-8F8.js"),
|
|
995
|
+
"../language/fr-FR.json": () => import("./fr-FR-D3maHIWS.js"),
|
|
996
|
+
"../language/hr-HR.json": () => import("./hr-HR-BUI-Ac0o.js"),
|
|
997
|
+
"../language/hu-HU.json": () => import("./hu-HU-BPjEsgnX.js"),
|
|
998
|
+
"../language/it-IT.json": () => import("./it-IT-W1FjGb6L.js"),
|
|
999
|
+
"../language/ja-JP.json": () => import("./ja-JP-avJECfKw.js"),
|
|
1000
|
+
"../language/lt-LT.json": () => import("./lt-LT-wP0YuKeO.js"),
|
|
1001
|
+
"../language/lv-LV.json": () => import("./lv-LV-DW_mgZjM.js"),
|
|
1002
|
+
"../language/nl-NL.json": () => import("./nl-NL-7kT4I7Tj.js"),
|
|
1003
|
+
"../language/no-NO.json": () => import("./no-NO-BoEKDB8U.js"),
|
|
1004
|
+
"../language/pl-PL.json": () => import("./pl-PL-B6DeEX-m.js"),
|
|
1005
|
+
"../language/pt-BR.json": () => import("./pt-BR-CsQI9W3I.js"),
|
|
1006
|
+
"../language/pt-PT.json": () => import("./pt-PT-i_EH0CM6.js"),
|
|
1007
|
+
"../language/ro-RO.json": () => import("./ro-RO-B7CJDsKz.js"),
|
|
1008
|
+
"../language/sk-SK.json": () => import("./sk-SK-NU95U8E2.js"),
|
|
1009
|
+
"../language/sl-SI.json": () => import("./sl-SI-B6Kv1DgA.js"),
|
|
1010
|
+
"../language/sv-SE.json": () => import("./sv-SE-DKTrk_eI.js")
|
|
1011
|
+
}), `../language/${lang}.json`, 3)
|
|
1012
|
+
}]);
|
|
1013
|
+
addResourceBundles(i18n, [{
|
|
1014
|
+
ns: "business",
|
|
1015
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
|
|
1016
|
+
"../../Business/language/bg-BG.json": () => import("./bg-BG-ivZjQNJZ.js"),
|
|
1017
|
+
"../../Business/language/cs-CZ.json": () => import("./cs-CZ-NVntX32n.js"),
|
|
1018
|
+
"../../Business/language/da-DK.json": () => import("./da-DK-BzBfkSME.js"),
|
|
1019
|
+
"../../Business/language/de-DE.json": () => import("./de-DE-C9cUCFOi.js"),
|
|
1020
|
+
"../../Business/language/el-GR.json": () => import("./el-GR-aelq5Q0a.js"),
|
|
1021
|
+
"../../Business/language/en-US.json": () => import("./en-US-DPr5RN3e.js"),
|
|
1022
|
+
"../../Business/language/es-ES.json": () => import("./es-ES-DhkTbihW.js"),
|
|
1023
|
+
"../../Business/language/es-LA.json": () => import("./es-LA-JRuDva0n.js"),
|
|
1024
|
+
"../../Business/language/et-EE.json": () => import("./et-EE-D8TSvkoE.js"),
|
|
1025
|
+
"../../Business/language/fi-FI.json": () => import("./fi-FI-CClpbvJJ.js"),
|
|
1026
|
+
"../../Business/language/fr-FR.json": () => import("./fr-FR-B-jA_cbo.js"),
|
|
1027
|
+
"../../Business/language/hr-HR.json": () => import("./hr-HR-B6z7-PYE.js"),
|
|
1028
|
+
"../../Business/language/hu-HU.json": () => import("./hu-HU-DXK7B0r_.js"),
|
|
1029
|
+
"../../Business/language/it-IT.json": () => import("./it-IT-CQVFYSVx.js"),
|
|
1030
|
+
"../../Business/language/ja-JP.json": () => import("./ja-JP-CtX9NZKD.js"),
|
|
1031
|
+
"../../Business/language/lt-LT.json": () => import("./lt-LT-BUuouq_-.js"),
|
|
1032
|
+
"../../Business/language/lv-LV.json": () => import("./lv-LV-BCXqSzkk.js"),
|
|
1033
|
+
"../../Business/language/nl-NL.json": () => import("./nl-NL-DqGE4Nz5.js"),
|
|
1034
|
+
"../../Business/language/no-NO.json": () => import("./no-NO-DdI2BI_e.js"),
|
|
1035
|
+
"../../Business/language/pl-PL.json": () => import("./pl-PL-BCkw9R28.js"),
|
|
1036
|
+
"../../Business/language/pt-BR.json": () => import("./pt-BR-vwt2tE7H.js"),
|
|
1037
|
+
"../../Business/language/pt-PT.json": () => import("./pt-PT-DhF8wwYH.js"),
|
|
1038
|
+
"../../Business/language/ro-RO.json": () => import("./ro-RO-DChAv29z.js"),
|
|
1039
|
+
"../../Business/language/sk-SK.json": () => import("./sk-SK-CISCMQ2G.js"),
|
|
1040
|
+
"../../Business/language/sl-SI.json": () => import("./sl-SI-DCMml0lX.js"),
|
|
1041
|
+
"../../Business/language/sv-SE.json": () => import("./sv-SE-C9SgeFv6.js")
|
|
1042
|
+
}), `../../Business/language/${lang}.json`, 5)
|
|
1043
|
+
}]);
|
|
1044
|
+
const handleClose = () => {
|
|
1045
|
+
showGlobalEntryModal.value = false;
|
|
1046
|
+
};
|
|
1047
|
+
const buildFieldValidations = useCallback((data) => globalEntryValidationRules({
|
|
1048
|
+
data,
|
|
1049
|
+
legalEntity: rootLegalEntity,
|
|
1050
|
+
isFeatureEnabled
|
|
1051
|
+
}), [isFeatureEnabled, rootLegalEntity]);
|
|
1052
|
+
/** Holds the registration details when the user already trades as a sole proprietor */
|
|
1053
|
+
const { data: associatedSoleProp, isLoading: isLoadingAssociatedSoleProp } = useAssociatedLegalEntity(rootLegalEntity, "soleProprietorship");
|
|
1054
|
+
const multiForm = useMultiForm({
|
|
1055
|
+
defaultData: useMemo(() => mapLegalEntityToGlobalEntrySchema(rootLegalEntity, accountHolder, associatedSoleProp), [
|
|
1056
|
+
rootLegalEntity,
|
|
1057
|
+
associatedSoleProp,
|
|
1058
|
+
accountHolder
|
|
1059
|
+
]),
|
|
1060
|
+
requiredFields: derivedProps?.requiredFields,
|
|
1061
|
+
optionalFields: derivedProps?.optionalFields,
|
|
1062
|
+
allFields: derivedProps?.allFields,
|
|
1063
|
+
rules: buildFieldValidations
|
|
1064
|
+
});
|
|
1065
|
+
const { isValid: formValidity, data, triggerValidation } = multiForm;
|
|
1066
|
+
const country = data.entityInformation?.country ?? getLegalEntityCountry(rootLegalEntity);
|
|
1067
|
+
const rules = useMemo(() => globalEntryCustomRules({
|
|
1068
|
+
data,
|
|
1069
|
+
isFeatureEnabled,
|
|
1070
|
+
country,
|
|
1071
|
+
taskType: TaskTypes.GLOBAL_ENTRY,
|
|
1072
|
+
accountHolder,
|
|
1073
|
+
rootLegalEntity
|
|
1074
|
+
}), [
|
|
1075
|
+
accountHolder,
|
|
1076
|
+
isFeatureEnabled,
|
|
1077
|
+
country,
|
|
1078
|
+
data,
|
|
1079
|
+
rootLegalEntity
|
|
1080
|
+
]);
|
|
1081
|
+
useEffect(() => {
|
|
1082
|
+
const props = getPropsFromConfigurations({
|
|
1083
|
+
scenarioConfiguration: globalEntryFieldRuleConfigurations,
|
|
1084
|
+
forms: globalEntryForms,
|
|
1085
|
+
remediationActions: [],
|
|
1086
|
+
dataMissingErrors: [],
|
|
1087
|
+
fieldsWithExistingData: [],
|
|
1088
|
+
customRules: rules,
|
|
1089
|
+
legalEntityType: rootLegalEntity?.type
|
|
1090
|
+
});
|
|
1091
|
+
setDerivedProps(props);
|
|
1092
|
+
}, [rootLegalEntity?.type, rules]);
|
|
1093
|
+
/**
|
|
1094
|
+
* The company structures that are still valid given the registration number type and tax ID
|
|
1095
|
+
* number type currently in the form.
|
|
1096
|
+
*/
|
|
1097
|
+
const availableCompanyStructures = useMemo(() => getAvailableCompanyStructures({
|
|
1098
|
+
country,
|
|
1099
|
+
registrationNumberType: data.registrationInformation?.registrationNumberType,
|
|
1100
|
+
registrationNumberExempt: data.registrationInformation?.exemptedFromRegistrationNumber,
|
|
1101
|
+
taxIdNumberType: data.registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type,
|
|
1102
|
+
legalEntity: rootLegalEntity
|
|
1103
|
+
}), [
|
|
1104
|
+
country,
|
|
1105
|
+
data.registrationInformation?.exemptedFromRegistrationNumber,
|
|
1106
|
+
data.registrationInformation?.registrationNumberType,
|
|
1107
|
+
data.registrationInformation?.taxInformation,
|
|
1108
|
+
rootLegalEntity
|
|
1109
|
+
]);
|
|
1110
|
+
/**
|
|
1111
|
+
* Infer the company structure based on the registration number type and tax ID number type
|
|
1112
|
+
* This is used to automatically select the company structure when the user has already provided
|
|
1113
|
+
* the necessary information to uniquely identify the company structure
|
|
1114
|
+
*/
|
|
1115
|
+
const inferredCompanyStructure = useMemo(() => {
|
|
1116
|
+
return availableCompanyStructures.length === 1 ? availableCompanyStructures[0] : void 0;
|
|
1117
|
+
}, [availableCompanyStructures]);
|
|
1118
|
+
const [companyStructure, setCompanyStructure] = useState(data.companyStructure?.organizationType);
|
|
1119
|
+
if (inferredCompanyStructure && companyStructure !== inferredCompanyStructure) {
|
|
1120
|
+
setCompanyStructure(inferredCompanyStructure);
|
|
1121
|
+
multiForm.handleChangeFor("companyStructure", "organizationType")(inferredCompanyStructure);
|
|
1122
|
+
}
|
|
1123
|
+
const forms = useMemo(() => {
|
|
1124
|
+
return buildRequiredForms({
|
|
1125
|
+
config: {
|
|
1126
|
+
forms: globalEntryForms,
|
|
1127
|
+
requiredFields: derivedProps?.requiredFields,
|
|
1128
|
+
optionalFields: derivedProps?.optionalFields,
|
|
1129
|
+
isValid: formValidity ?? {},
|
|
1130
|
+
legalEntityResponse: rootLegalEntity
|
|
1131
|
+
},
|
|
1132
|
+
options: {
|
|
1133
|
+
skipSummary: true,
|
|
1134
|
+
skipCompanyStructure: !!inferredCompanyStructure
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}, [
|
|
1138
|
+
derivedProps?.optionalFields,
|
|
1139
|
+
derivedProps?.requiredFields,
|
|
1140
|
+
formValidity,
|
|
1141
|
+
rootLegalEntity,
|
|
1142
|
+
inferredCompanyStructure
|
|
1143
|
+
]);
|
|
1144
|
+
const { mutateAsync: updateLegalEntity, isPending: isUpdatingLegalEntity } = useUpdateLegalEntity();
|
|
1145
|
+
const { mutateAsync: createLegalEntity, isPending: isCreatingLegalEntity } = useCreateLegalEntity();
|
|
1146
|
+
const isLoading = isUpdatingLegalEntity || isCreatingLegalEntity || isLoadingAssociatedSoleProp;
|
|
1147
|
+
const handleSubmit = async () => {
|
|
1148
|
+
try {
|
|
1149
|
+
const newAccountHolder = await submitGlobalEntry({
|
|
1150
|
+
legalEntity: rootLegalEntity,
|
|
1151
|
+
associatedSoleProp,
|
|
1152
|
+
data,
|
|
1153
|
+
updateLegalEntity,
|
|
1154
|
+
createLegalEntity,
|
|
1155
|
+
accountHolder,
|
|
1156
|
+
isFeatureEnabled
|
|
1157
|
+
});
|
|
1158
|
+
if (newAccountHolder) onComplete(newAccountHolder);
|
|
1159
|
+
showGlobalEntryModal.value = false;
|
|
1160
|
+
} catch (err) {
|
|
1161
|
+
logger.error(err);
|
|
1162
|
+
showToast({
|
|
1163
|
+
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
1164
|
+
variant: "error"
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
const { activeForm, handleNextClick, handleBackClick, steps, gotoFormByFormId, gotoFormByFormIndex, shouldValidate } = useFormComposer({
|
|
1169
|
+
onSubmit: handleSubmit,
|
|
1170
|
+
forms,
|
|
1171
|
+
triggerValidation
|
|
1172
|
+
});
|
|
1173
|
+
const overrideNextClick = async () => {
|
|
1174
|
+
if (!activeForm.isValid) return handleNextClick();
|
|
1175
|
+
return handleNextClick();
|
|
1176
|
+
};
|
|
1177
|
+
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
1178
|
+
form: multiForm,
|
|
1179
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
1180
|
+
asModal: true,
|
|
1181
|
+
activeForm,
|
|
1182
|
+
handleNextClick: overrideNextClick,
|
|
1183
|
+
handleBackClick,
|
|
1184
|
+
handleCancelClick: handleClose,
|
|
1185
|
+
forms,
|
|
1186
|
+
gotoFormByFormIndex,
|
|
1187
|
+
gotoFormByFormId,
|
|
1188
|
+
loadingStatus: isLoading ? "loading" : "success",
|
|
1189
|
+
currentStep: steps.current,
|
|
1190
|
+
totalSteps: steps.total,
|
|
1191
|
+
isGlobalEntry: true,
|
|
1192
|
+
disableNextButton: data?.registrationInformation?.unincorporatedOrganizationType === "unincorporatedAssociation",
|
|
1193
|
+
children: /* @__PURE__ */ jsx(GlobalEntry, {
|
|
1194
|
+
activeForm,
|
|
1195
|
+
shouldValidate,
|
|
1196
|
+
legalEntity: rootLegalEntity,
|
|
1197
|
+
country
|
|
1198
|
+
})
|
|
1199
|
+
})
|
|
1200
|
+
});
|
|
1201
|
+
};
|
|
1202
|
+
//#endregion
|
|
1203
|
+
export { showGlobalEntryModal as n, GlobalEntryModal as t };
|