@adyen/kyc-components 4.30.0 → 4.31.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-CWWWUerA.js → AcceptTermsOfServiceWorkflow-BOmFS_f2.js} +4 -4
- package/dist/{Accordion-S_jsZpAF.js → Accordion-C0gcRu_3.js} +1 -1
- package/dist/{AccountSetupRejected-C4OsabS9.js → AccountSetupRejected-CJ8m2ewF.js} +1 -1
- package/dist/{AdaptiveWorkflow-S2GeT5qn.js → AdaptiveWorkflow-B-oqoHeb.js} +28 -26
- package/dist/{AdaptiveWorkflowComponent-C4oTF9yd.js → AdaptiveWorkflowComponent-e4G7C8R2.js} +59 -100
- package/dist/{Address-DDgwHNJf.js → Address-CrSN0Tzc.js} +10 -10
- package/dist/{AddressFieldGroup-WEGTyvkH.js → AddressFieldGroup-Db1QLqMr.js} +6 -6
- package/dist/{Avatar-BJuZToXf.js → Avatar-DTJuz0ck.js} +1 -1
- package/dist/{BusinessFinancingDropin-B7AYovvB.js → BusinessFinancingDropin-DTz8n3Ww.js} +28 -28
- package/dist/{BusinessFinancingPage-BtF5XDxw.js → BusinessFinancingPage-C5lmo9pM.js} +30 -30
- package/dist/{BusinessRegistrationNumberField-CxTbBtPY.js → BusinessRegistrationNumberField-tL50O1WX.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-DGqg0-CN.js → BusinessRegistrationNumberFieldGroup-BUiYV6Uu.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-Co_HiNtN.js → BusinessTypeSelectionPage-B5De7rfw.js} +14 -14
- package/dist/{Button-vp4Z9L5X.js → Button-DWI7t80R.js} +1 -1
- package/dist/{Checkbox-sLYY_7rw.js → Checkbox-JHnvTPme.js} +2 -2
- package/dist/{CheckboxField-DnXPfhn-.js → CheckboxField-DXFOPJrL.js} +3 -3
- package/dist/{ComponentGroup-D9qbj9S4.js → ComponentGroup-DwE_5uMn.js} +2 -2
- package/dist/{ConstitutionalDocument-bi1jXr7Y.js → ConstitutionalDocument-GafuUs3Y.js} +51 -513
- package/dist/{ContactDetails-0iFvuqMf.js → ContactDetails-cOh28MdB.js} +5 -5
- package/dist/{ContextGuidance-DCR6CiDu.js → ContextGuidance-U6wXQ-Ch.js} +2 -2
- package/dist/{CountryField-CNHNl66N.js → CountryField-DZmQcAi-.js} +4 -4
- package/dist/{Currency-BGgGN-46.js → Currency-CyQoyBs9.js} +7 -7
- package/dist/{CustomerSupport-Db77ed_U.js → CustomerSupport-CbTT3DAY.js} +17 -17
- package/dist/{DateField-B0KBFo2X.js → DateField-DQfDHqGW.js} +4 -4
- package/dist/{DebugModal-4mydgFnH.js → DebugModal-DEeDJsLE.js} +11 -11
- package/dist/{DecisionMakerDetails-Pjs0fWLW.js → DecisionMakerDetails-BhgwAr3w.js} +15 -15
- package/dist/{DecisionMakerDetailsPage-DJAOahfC.js → DecisionMakerDetailsPage-zpiPnMIY.js} +11 -11
- package/dist/{DecisionMakers-nWpN0PBp.js → DecisionMakers-vCoPfum5.js} +20 -20
- package/dist/{Dropzone-DhE_OS1B.js → Dropzone-CnJdk_vt.js} +7 -7
- package/dist/{EmailField-DZSAhb9E.js → EmailField-Lyqy_ECa.js} +4 -4
- package/dist/{EmbeddedStatus-CcpWHXh2.js → EmbeddedStatus-CeEHfc6_.js} +1 -1
- package/dist/{EndStateLayout-BOwRY9BY.js → EndStateLayout-Cimb5t8g.js} +2 -2
- package/dist/{EntityAssociation-Bc4hELRD.js → EntityAssociation-BnEWmsAe.js} +5 -5
- package/dist/{ErrorPanel-IxCFwWiH.js → ErrorPanel-Bt2zTiVE.js} +4 -4
- package/dist/{GlobalEntryModal-CFuPhARY.js → GlobalEntryModal-D3KEdn1-.js} +168 -223
- package/dist/{GlobalEntryPage-C6sVz-_2.js → GlobalEntryPage-sUKU-Btr.js} +8 -8
- package/dist/{Icon-BUUfrhKE.js → Icon-De8AgnGr.js} +1 -1
- package/dist/{IdentityNumber-BXEyoxAP.js → IdentityNumber-BNTInuKv.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-DNrfFdHD.js → IdentityNumberFieldGroup-BEznv21B.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-Do7K-PMQ.js → IdentityScreeningWorkflow-DhgqWJPy.js} +13 -13
- package/dist/{IndividualDropin-B5-uplEa.js → IndividualDropin-EajqrO6O.js} +42 -42
- package/dist/{IndustryCodeFieldGroup-BE7ATsMh.js → IndustryCodeFieldGroup-BiKWrwG_.js} +5 -5
- package/dist/{InputDate-N1IkNng2.js → InputDate-ByJHx9x7.js} +1 -1
- package/dist/{Introduction-C7Wys5IW.js → Introduction-BsL57nta.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-DZwCUtav.js → InvitedDecisionMakerComponent-D1-Ul-td.js} +65 -65
- package/dist/{JpAddress-B34ycvlA.js → JpAddress-CvS6Innz.js} +8 -8
- package/dist/{LegalCompanyNameField-wP-dBOg_.js → LegalCompanyNameField-D9idZiSu.js} +11 -11
- package/dist/{LegalRepresentativeDetailsPage-CeaeYzbN.js → LegalRepresentativeDetailsPage-J2GXSkXd.js} +6 -6
- package/dist/{Link-k2lK2k_D.js → Link-CHOUFKjC.js} +1 -1
- package/dist/{ListItem-x7YV4uwv.js → ListItem-DRm59KnY.js} +2 -2
- package/dist/{Name-CqnlZ0s1.js → Name-BBqe5gUi.js} +3 -3
- package/dist/{NumberField-CmlNKCtC.js → NumberField-Cfuo-rcN.js} +4 -4
- package/dist/{PatriotActDisclosure-DrzLipYG.js → PatriotActDisclosure-oAXYq-jJ.js} +10 -10
- package/dist/{PayoutDetailsDropin-C4k7hSiO.js → PayoutDetailsDropin-BDoB1gy1.js} +29 -29
- package/dist/{PayoutDetailsPage-B0l5h-tk.js → PayoutDetailsPage-Cc4_w-2-.js} +6 -6
- package/dist/{PhoneField-CSi9JPJ1.js → PhoneField-ARTyYgWE.js} +4 -4
- package/dist/{PhoneNumberFieldGroup-9SNt3GXi.js → PhoneNumberFieldGroup-DDvtSVKb.js} +4 -4
- package/dist/{RadioGroup-BNp0YodN.js → RadioGroup-T3-GTf8S.js} +2 -2
- package/dist/{Review-BekwQ1-b.js → Review-D36nTWUI.js} +5 -5
- package/dist/{RootBusinessDetailsPage-DkyTEqWb.js → RootBusinessDetailsPage-B3qjeFPi.js} +5 -5
- package/dist/{RootBusinessLinesPage-CPui_QJm.js → RootBusinessLinesPage-DQvrpX3J.js} +24 -24
- package/dist/{RootIndividualDetailsPage-DB2nBPZh.js → RootIndividualDetailsPage-Cp2Ai1KA.js} +8 -8
- package/dist/{Select-BYM1s0SR.js → Select-CffvApST.js} +4 -4
- package/dist/{SignPCIComponent-95iGCFka.js → SignPCIComponent-BpHbgE2T.js} +66 -66
- package/dist/{SingpassSelection-ByICeafs.js → SingpassSelection-DRtQir20.js} +5 -5
- package/dist/{SingpassSelectionCTA-QVI_SPnZ.js → SingpassSelectionCTA-Cbpk58xO.js} +1 -1
- package/dist/{SoleProprietorshipPage-BDCARnz8.js → SoleProprietorshipPage-DsIiNL8Z.js} +6 -6
- package/dist/{SourceOfFundsPage-DNOtZApe.js → SourceOfFundsPage-CjxfL8ku.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-DoUV5kuZ.js → SourceOfFundsWorkflow-DPzP1fYl.js} +4 -4
- package/dist/{StateField-pfHJ3wc0.js → StateField-rhYSRgPZ.js} +4 -4
- package/dist/{Step-BDdVAaUB.js → Step-CeSDDtx8.js} +3 -3
- package/dist/{Summary-BGJg2N2d.js → Summary-BOPZrv9-.js} +1 -1
- package/dist/{SummarySection-B8UrHjRz.js → SummarySection-DN7RIchf.js} +3 -3
- package/dist/{Task-D9pMZvHp.js → Task-CTvFHTXf.js} +7 -7
- package/dist/{TaskGroup-BGomYm3T.js → TaskGroup-sR-LK6Gh.js} +2 -2
- package/dist/{TaskListItem-Cf0xjUUF.js → TaskListItem-DxM_5HTL.js} +9 -9
- package/dist/{TaskStepperContextProvider-BsSwuAhK.js → TaskStepperContextProvider-Dbvk2y8P.js} +1 -1
- package/dist/{TaskVerificationStatus-CD4crHO5.js → TaskVerificationStatus-C0upgyS1.js} +1 -1
- package/dist/{TaxInformationField-BzIH2FfA.js → TaxInformationField-DHhqCF-a.js} +7 -7
- package/dist/{TaxInformationFieldGroup-BiThmZhY.js → TaxInformationFieldGroup-BkILOY2x.js} +6 -6
- package/dist/{TaxReportingDropin-zPF3kMOR.js → TaxReportingDropin-C46YV9Pt.js} +16 -16
- package/dist/{TaxReportingWorkflow-Do0HKfIR.js → TaxReportingWorkflow-BxbzI9wn.js} +4 -4
- package/dist/{TermsOfServiceManagement-C8FAXlkm.js → TermsOfServiceManagement-B2mg-L7j.js} +67 -67
- package/dist/{TextArea-DMdihMip.js → TextArea-CCKQviRj.js} +3 -3
- package/dist/{TextField-BVvG-P7B.js → TextField-73k__CfA.js} +5 -5
- package/dist/{TrustDetailsPage-BcJoXRJs.js → TrustDetailsPage-Rv4wBxcB.js} +30 -29
- package/dist/{TrustMemberCompanyPage-CvieeIw3.js → TrustMemberCompanyPage-DGTDSWRR.js} +8 -8
- package/dist/{TrustMemberIndividualPage-DPzyZI6B.js → TrustMemberIndividualPage-Dv2HZY_Y.js} +7 -7
- package/dist/{TrustMemberRoleAndTypePage-CeCah30G.js → TrustMemberRoleAndTypePage-Dj4BEAMc.js} +23 -23
- package/dist/{TrustMembersOverview-BrOqQ46k.js → TrustMembersOverview-lBitwE7J.js} +18 -18
- package/dist/{UboTaskItem-tNvXCuPv.js → UboTaskItem-C7VS_u2t.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-BPrZeROd.js → UnincorporatedPartnershipIndividualPage-Bsp72pvV.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-VXyg0_m_.js → UnincorporatedPartnershipMemberCompanyPage-CQV1W0Il.js} +7 -7
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dpa9Inis.js → UnincorporatedPartnershipMemberRoleAndTypePage-zQvIwB1w.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-CdfTYswG.js → UnincorporatedPartnershipMembersOverview-BJmgOOCC.js} +9 -9
- package/dist/UpgradeWorkflowHarness-C6zNyNAY.js +343 -0
- package/dist/VatNumberField-DB8m0wwV.js +91 -0
- package/dist/{VerificationErrorAlert-Bz_3OAd2.js → VerificationErrorAlert-JMzuKRFg.js} +2 -2
- package/dist/{WebsiteField-hmouBO45.js → WebsiteField-BO3zqIoa.js} +5 -5
- package/dist/{Workflow-DBQJmngz.js → Workflow-CSl5dEle.js} +6 -6
- package/dist/WorkflowContextProvider-DeYgs5wy.js +50 -0
- package/dist/{accountHolderUtils-CXc6TCt3.js → accountHolderUtils-DZRQLXkt.js} +15 -5
- package/dist/adyen-business-financing.js +56 -56
- package/dist/adyen-individual-configuration.js +57 -57
- package/dist/adyen-individual-status.js +30 -30
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +116 -83
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +28 -28
- package/dist/adyen-transfer-instrument-configuration.js +56 -56
- package/dist/adyen-transfer-instrument-management.js +61 -61
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-B_pmmlnO.js → bafinUtils-vl0iX269.js} +13 -13
- package/dist/{bg-BG-CzXoDIev.js → bg-BG-Bs9UD_76.js} +1 -2
- package/dist/{bg-BG-DebonNJt.js → bg-BG-g5L9hXxZ.js} +2 -2
- package/dist/{constants-DejfEMlT.js → constants-_ugo8V-_.js} +4 -4
- package/dist/{cs-CZ-JUprtMsH.js → cs-CZ-BT362m-5.js} +1 -2
- package/dist/cs-CZ-DbEK00TR.js +7 -0
- package/dist/{da-DK-D2RrHm98.js → da-DK-94-4BlJ1.js} +1 -2
- package/dist/da-DK-DbPVTdZA.js +7 -0
- package/dist/de-DE-D6FSbvz5.js +7 -0
- package/dist/{de-DE-o8i-cfnA.js → de-DE-jfNFZmBX.js} +1 -2
- package/dist/{decisionMakerRoles-DA8MK9Dh.js → decisionMakerRoles-C7nyyNlQ.js} +2 -2
- package/dist/{dropinUtils-B2xvCIno.js → dropinUtils-Cg5l88N-.js} +8 -8
- package/dist/{el-GR-B1hmNhai.js → el-GR-BRGYMKtU.js} +2 -2
- package/dist/{el-GR-BAhj1djs.js → el-GR-D6PNRFM6.js} +1 -2
- package/dist/{en-US-CO9xzDL5.js → en-US-C2SKoh7u.js} +7 -1
- package/dist/en-US-CrZ7wUat.js +7 -0
- package/dist/{en-US-B7V_rOZV.js → en-US-CyWOSDHS.js} +8 -1
- package/dist/{en-US-7Uo1OcXR.js → en-US-DF69ko1f.js} +2 -1
- package/dist/{entityAssociationUtil-BlfcBl3i.js → entityAssociationUtil-CRDwmwij.js} +1 -1
- package/dist/{error-Bjcwqp65.js → error-Bbj8Nvxz.js} +2 -2
- package/dist/{es-ES-BNjxmV8Q.js → es-ES-DHaG98qJ.js} +1 -2
- package/dist/es-ES-DqBZFIGq.js +7 -0
- package/dist/{es-LA-BIPVrwXX.js → es-LA-BaTWuGkU.js} +1 -2
- package/dist/es-LA-BuqtxO_H.js +7 -0
- package/dist/et-EE-CWVrHqpJ.js +7 -0
- package/dist/{et-EE-Dl6n-Am8.js → et-EE-Cfy8GsHl.js} +1 -2
- package/dist/{fi-FI-T33BAikx.js → fi-FI-1hQjycvC.js} +1 -2
- package/dist/fi-FI-BREWmeq-.js +7 -0
- package/dist/fieldConfig-BeA7aDHu.js +493 -0
- package/dist/{fieldConfig-uzagYJgr.js → fieldConfig-D_ze4riX.js} +2 -2
- package/dist/{formatDataForSummary-BEqe_mIp.js → formatDataForSummary-BwkDgVr0.js} +14 -14
- package/dist/{formatValidationError-Dq1117uY.js → formatValidationError-BZ3p6URt.js} +1 -1
- package/dist/{fr-FR-CXeNPDQd.js → fr-FR-B-v9MOMJ.js} +2 -2
- package/dist/{fr-FR-CRO4taJU.js → fr-FR-Cr8g5esP.js} +1 -2
- package/dist/{getDefaultRegistrationNumberType-DRhp_dwJ.js → getDefaultRegistrationNumberType-ZPxQo0qi.js} +4 -4
- package/dist/{getFormSlice-BgJ8RcQi.js → getFormSlice-B-mNQVjl.js} +2 -2
- package/dist/{getName-Cii7OyRd.js → getName-Cp2NR9mO.js} +1 -1
- package/dist/{getProblemsForEntity-DcaoqelX.js → getProblemsForEntity-CC3MwC_t.js} +3 -3
- package/dist/{getTrustedDecisionMakers-Bnta4qQy.js → getTrustedDecisionMakers-DuvbxMfO.js} +1 -1
- package/dist/{getValidationError-CZ_yHMCc.js → getValidationError-vaT_A8DZ.js} +1 -1
- package/dist/{handleCompanyDataset-Dbqw3gJA.js → handleCompanyDataset-DapZoTWA.js} +1 -1
- package/dist/{hr-HR-CbEXwWeO.js → hr-HR-DutOZxI6.js} +1 -2
- package/dist/hr-HR-XfLd6Unz.js +7 -0
- package/dist/{hu-HU-B9JCbRow.js → hu-HU-D2tnSSHX.js} +1 -2
- package/dist/hu-HU-kGMN_cUC.js +7 -0
- package/dist/{invalidateRootLegalEntity-CGVbKyHP.js → invalidateRootLegalEntity-GCb1IVpG.js} +1 -1
- package/dist/{it-IT-tRPXH6lL.js → it-IT-DHPpjEW5.js} +2 -2
- package/dist/{it-IT-DE_Dkl_X.js → it-IT-T1oxWO_8.js} +1 -2
- package/dist/ja-JP-FF6js874.js +7 -0
- package/dist/{ja-JP-BaD-vLXo.js → ja-JP-OwVmVzBT.js} +1 -2
- package/dist/lt-LT-8EaiWMuc.js +7 -0
- package/dist/{lt-LT-5OY6az4F.js → lt-LT-CMPaSRJP.js} +1 -2
- package/dist/lv-LV-BtlmePQP.js +7 -0
- package/dist/{lv-LV-DjAUG4pi.js → lv-LV-kV4YvLbr.js} +1 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-BJYqPUdi.js → mapAddressLocalizationToJpAddressSchema-TVdxkgeI.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-DjhuDoHf.js → mapTransferInstrumentToPayoutAccount-gnaahuyt.js} +2 -2
- package/dist/{nl-NL-C3cXv5PD.js → nl-NL-BKKrxXgX.js} +1 -2
- package/dist/nl-NL-DrlRcYtb.js +7 -0
- package/dist/no-NO-BP1C84Xm.js +7 -0
- package/dist/{no-NO-DyMlgewS.js → no-NO-Bnaxpdi9.js} +1 -2
- package/dist/{pl-PL-ClUTW9pd.js → pl-PL-CH45L3wZ.js} +1 -2
- package/dist/pl-PL-sert1luk.js +7 -0
- package/dist/{processCapabilities-CutEW5Qr.js → processCapabilities-CPLNSNGJ.js} +3 -1
- package/dist/{processValidationErrors-UKpdxcdP.js → processValidationErrors-DZQP1rOu.js} +4 -4
- package/dist/pt-BR-Dgep8Iig.js +7 -0
- package/dist/{pt-BR-Bk2xOhdi.js → pt-BR-IssZVQBa.js} +1 -2
- package/dist/pt-PT-CLZ7sArD.js +7 -0
- package/dist/{pt-PT-5O7ohkQD.js → pt-PT-Cw30Oeni.js} +1 -2
- package/dist/{registerEmbed-CB38-4Qc.js → registerEmbed-By-mMjLz.js} +53 -46
- package/dist/ro-RO-CdF6jNH_.js +7 -0
- package/dist/{ro-RO-BOV_LMAu.js → ro-RO-Cj6ecr81.js} +1 -2
- package/dist/{roleMetadata-2KdSNgp2.js → roleMetadata-Vi3bD0If.js} +2 -2
- package/dist/{sk-SK-BUGTKkOC.js → sk-SK-C26VGn8D.js} +1 -2
- package/dist/sk-SK-DE2IMutK.js +7 -0
- package/dist/{sl-SI-DffYWi9P.js → sl-SI-B-_Pi92n.js} +1 -2
- package/dist/sl-SI-CH_4-fxJ.js +7 -0
- package/dist/sv-SE-BzKAgv9l.js +7 -0
- package/dist/{sv-SE-D_bagacj.js → sv-SE-dsMtqJhC.js} +1 -2
- package/dist/{taskTypes-3vSkMBDm.js → taskTypes-DIxF6w12.js} +3 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/components/Fields/VatNumberField/VatNumberField.d.ts +8 -0
- package/dist/types/adaptiveWorkflow/components/Fields/VatNumberField/contextMap.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/context/FormSubmissionContext/implementations/RemediationSubmissionProvider.d.ts +9 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +1 -0
- package/dist/types/api/transferInstruments/accountIdentification.types.d.ts +1 -4
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -2
- package/dist/types/components/EFP/upgradeFlow/UpgradeWorkflowHarness.d.ts +6 -0
- package/dist/types/components/EFP/upgradeFlow/hooks/useUpgradeWorkflowState.d.ts +6 -0
- package/dist/types/components/EFP/upgradeFlow/logic/issues/missingOrganizationTaxInfo.d.ts +2 -0
- package/dist/types/components/EFP/upgradeFlow/logic/models/accessors.d.ts +6 -0
- package/dist/types/components/EFP/upgradeFlow/logic/models/issueDef.d.ts +16 -0
- package/dist/types/components/EFP/upgradeFlow/logic/models/mutators.d.ts +4 -0
- package/dist/types/components/EFP/upgradeFlow/logic/models/remediationDef.d.ts +26 -0
- package/dist/types/components/EFP/upgradeFlow/logic/models/workflow.d.ts +35 -0
- package/dist/types/components/EFP/upgradeFlow/logic/remediations/provideOrganizationTaxInfo.d.ts +9 -0
- package/dist/types/components/EFP/upgradeFlow/logic/resolveWorkflow.d.ts +9 -0
- package/dist/types/components/EFP/upgradeFlow/logic/workflows/businessBankAccountUpgradeWorkflow.d.ts +2 -0
- package/dist/types/components/EFP/upgradeFlow/utils/canUseBbaUpgradeFlow.d.ts +5 -0
- package/dist/types/components/EFP/upgradeFlow/utils/findMatchingProblems.d.ts +10 -0
- package/dist/types/components/EFP/upgradeFlow/utils/makeInstanceId.d.ts +2 -0
- package/dist/types/components/EFP/upgradeFlow/utils/mapExistingDataToProperties.d.ts +6 -0
- package/dist/types/components/EmbeddedDropins/AdaptiveWorkflowComponent/AdaptiveWorkflowComponent.d.ts +1 -2
- package/dist/types/components/GlobalEntry/constants.d.ts +27 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -2
- package/dist/types/components/GlobalEntry/utils/globalEntryState.d.ts +52 -0
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +0 -6
- package/dist/types/components/Shared/fields/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -0
- package/dist/types/context/ToggleContext/types.d.ts +9 -0
- package/dist/types/embeds/upgrade-flow/adyen-upgrade-flow.d.ts +2 -0
- package/dist/types/embeds/upgrade-flow/adyen-upgrade-flow.types.d.ts +39 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/router/routeConfig.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/utils/accountHolderUtils.d.ts +5 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/idGenerator.d.ts +1 -0
- package/dist/{unincorporatedPartnership-CmafpKdG.js → unincorporatedPartnership-CAk8NeRm.js} +8 -8
- package/dist/{useBusinessDetailsData-ugUqj9kJ.js → useBusinessDetailsData-B1YLuaNg.js} +205 -170
- package/dist/{useCanSeeIntroduction-DEbDOHiC.js → useCanSeeIntroduction-I5nRjoyf.js} +3 -3
- package/dist/{useDataMissingRemediations-CiDQ9bWs.js → useDataMissingRemediations-BQsN40Ut.js} +2 -2
- package/dist/{useForm-B2wfliMN.js → useForm-CgIbTSF-.js} +3 -3
- package/dist/{useHideTaskStepper-BEWEJlrj.js → useHideTaskStepper-NxGjx00F.js} +1 -1
- package/dist/{useId-Csq0yceQ.js → useId-DjQsMwwn.js} +3 -3
- package/dist/{useLegalEntity-XmloSXdF.js → useLegalEntity-BlicSpoi.js} +2 -2
- package/dist/{useNavigate-DXpJ9PZ_.js → useNavigate-CNujUq3N.js} +40 -35
- package/dist/{useSalesChannels-DbCmR2ZX.js → useSalesChannels-eKBtWAVg.js} +1 -1
- package/dist/{useSaveForLater-DnHbnXCZ.js → useSaveForLater-BrR6SF98.js} +4 -4
- package/dist/{useTaskLandedEvent-DwKrUHAw.js → useTaskLandedEvent-B4N0fDSK.js} +1 -1
- package/dist/{useTrustMembers--E-NhCCa.js → useTrustMembers-LQOhPauP.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-B0McelXe.js → useUnincorporatedPartnershipMembers-CCjQRxvK.js} +6 -6
- package/dist/{utils-D0n2UCLl.js → utils-BpgKY4PD.js} +1 -1
- package/dist/{utils-Q_3MQdG-.js → utils-BsHIilEE.js} +2 -2
- package/dist/{utils-DTWirvuh.js → utils-Cm852wJo.js} +3 -3
- package/dist/{utils-1qkRmosy.js → utils-D_4YJlrA.js} +1 -1
- package/dist/{validate-BYH_qNgv.js → validate-B1TzDrrt.js} +12 -21
- package/dist/{validate-Fq0C4N4w.js → validate-Bp6T2dvm.js} +3 -3
- package/dist/{validate-vDVa_21W.js → validate-DBCoZpYi.js} +1 -1
- package/dist/{validate-duA5vubQ.js → validate-DjZ0CLLg.js} +3 -3
- package/dist/{validate.formats-BcL4s_mZ.js → validate.formats-CTmLjU1z.js} +1 -14
- package/dist/{validateExtractionResult-CKjL85oa.js → validateExtractionResult-BAlwYNgf.js} +1 -1
- package/package.json +1 -1
- package/dist/cs-CZ-DZw5yF5p.js +0 -7
- package/dist/da-DK-Bg5S27B5.js +0 -7
- package/dist/de-DE-BlFZCv36.js +0 -7
- package/dist/en-US-D4ffwlYG.js +0 -7
- package/dist/es-ES-Pc7SzK91.js +0 -7
- package/dist/es-LA-CoKhKLd8.js +0 -7
- package/dist/et-EE-8p53PPiJ.js +0 -7
- package/dist/fi-FI-BKW6_uF2.js +0 -7
- package/dist/hr-HR-C1FO7Gqx.js +0 -7
- package/dist/hu-HU-BFFHvdsS.js +0 -7
- package/dist/ja-JP-Cj0-3WHB.js +0 -7
- package/dist/lt-LT-DnZjntxM.js +0 -7
- package/dist/lv-LV-DJ5m9APR.js +0 -7
- package/dist/nl-NL-C2StlYO8.js +0 -7
- package/dist/no-NO-B2PID5rL.js +0 -7
- package/dist/pl-PL-BQWqNeBg.js +0 -7
- package/dist/pt-BR-Cf9Buwoz.js +0 -7
- package/dist/pt-PT-DBxpPLNB.js +0 -7
- package/dist/ro-RO-BOoXk4qI.js +0 -7
- package/dist/sk-SK-DT4GAvrm.js +0 -7
- package/dist/sl-SI-JkM-GOon.js +0 -7
- package/dist/sv-SE-Ccuk2Owm.js +0 -7
- package/dist/types/utils/isNormalizedStringMatch.d.ts +0 -1
- package/dist/types/utils/stripWhitespace.d.ts +0 -1
- package/dist/types/utils/toNormalizedString.d.ts +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "333e9a12-594f-4113-90dd-e2a982486242", e._sentryDebugIdIdentifier = "sentry-dbid-333e9a12-594f-4113-90dd-e2a982486242");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, S as isPartOfUnincorporatedPartnership, T as Alert, _ as isPartOfTrustFromLegalEntity,
|
|
6
|
+
import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, S as isPartOfUnincorporatedPartnership, T as Alert, _ as isPartOfTrustFromLegalEntity, gt as useAccountHolder, ot as isEmpty } from "./registerEmbed-By-mMjLz.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
10
|
+
import { t as Button } from "./Button-DWI7t80R.js";
|
|
11
11
|
import { c as useApiContext, i as httpPost } from "./http-62p0n9p6.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
13
13
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
14
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
15
15
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
16
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
|
-
import { y as reverseMapping } from "./processCapabilities-
|
|
18
|
-
import { t as TaskTypes } from "./taskTypes-
|
|
19
|
-
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-
|
|
20
|
-
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-
|
|
21
|
-
import { a as useAnalyticsContext } from "./useId-
|
|
22
|
-
import { r as InputText } from "./RadioGroup-
|
|
23
|
-
import { i as getTrustedFieldsProvider, t as ListItem } from "./ListItem-
|
|
24
|
-
import { t as getFormSlice } from "./getFormSlice-
|
|
17
|
+
import { y as reverseMapping } from "./processCapabilities-CPLNSNGJ.js";
|
|
18
|
+
import { t as TaskTypes } from "./taskTypes-DIxF6w12.js";
|
|
19
|
+
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-CRDwmwij.js";
|
|
20
|
+
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-JHnvTPme.js";
|
|
21
|
+
import { a as useAnalyticsContext } from "./useId-DjQsMwwn.js";
|
|
22
|
+
import { r as InputText } from "./RadioGroup-T3-GTf8S.js";
|
|
23
|
+
import { i as getTrustedFieldsProvider, t as ListItem } from "./ListItem-DRm59KnY.js";
|
|
24
|
+
import { t as getFormSlice } from "./getFormSlice-B-mNQVjl.js";
|
|
25
25
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
26
|
-
import { n as useToastContext } from "./invalidateRootLegalEntity-
|
|
27
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-
|
|
28
|
-
import { o as Field, p as LoaderWrapper } from "./Select-
|
|
29
|
-
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-
|
|
30
|
-
import { a as
|
|
31
|
-
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-
|
|
32
|
-
import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-
|
|
33
|
-
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, C as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as mapJapaneseLegalNamesToLocalization, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, T as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, U as TileGroup, V as getValidCompanyTypesForTaxIdNumberType, _ as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, h as getTaxInformationPlaceholderText, j as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as COUNTRIES_USING_COMPANY_SEARCH } from "./bafinUtils-
|
|
34
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
35
|
-
import { a as trackPerformance, i as useCompanySearch, r as companySearchQueryOptions } from "./handleCompanyDataset-
|
|
26
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-GCb1IVpG.js";
|
|
27
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-CAk8NeRm.js";
|
|
28
|
+
import { o as Field, p as LoaderWrapper } from "./Select-CffvApST.js";
|
|
29
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BsHIilEE.js";
|
|
30
|
+
import { a as useLegalCompanyNameField, c as useCompanySelection, d as useStoredStateOrProvince, f as useClearCompanyData, i as CountryOfGoverningLawField, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, r as COUNTRY_OF_GOVERNING_LAW_FIELD, s as useCompanyTypeExamples, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-B1TzDrrt.js";
|
|
31
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-rhYSRgPZ.js";
|
|
32
|
+
import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-Cg5l88N-.js";
|
|
33
|
+
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, C as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as mapJapaneseLegalNamesToLocalization, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, T as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, U as TileGroup, V as getValidCompanyTypesForTaxIdNumberType, _ as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, h as getTaxInformationPlaceholderText, j as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as COUNTRIES_USING_COMPANY_SEARCH } from "./bafinUtils-vl0iX269.js";
|
|
34
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-ZPxQo0qi.js";
|
|
35
|
+
import { a as trackPerformance, i as useCompanySearch, r as companySearchQueryOptions } from "./handleCompanyDataset-DapZoTWA.js";
|
|
36
36
|
import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, n as INDIVIDUALS_WHO_TRADE_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
37
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
38
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
39
|
-
import { n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-
|
|
37
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-D9idZiSu.js";
|
|
38
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-tL50O1WX.js";
|
|
39
|
+
import { n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-DHhqCF-a.js";
|
|
40
40
|
import { Suspense, lazy } from "preact/compat";
|
|
41
41
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
42
42
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -354,7 +354,7 @@ function CompanyNotListedCard({ isSelected, handleSelectBusiness, fetching }) {
|
|
|
354
354
|
//#region src/components/GlobalEntry/forms/BusinessSelection/BusinessSelection.tsx
|
|
355
355
|
var BUSINESS_SELECTION_FIELDS = ["selectedBusinessId"];
|
|
356
356
|
function BusinessSelection({ id, country }) {
|
|
357
|
-
const { t:
|
|
357
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
358
358
|
const { t: commonT } = useTranslation("common");
|
|
359
359
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
360
360
|
const { form } = useFormContext();
|
|
@@ -454,7 +454,7 @@ function BusinessSelection({ id, country }) {
|
|
|
454
454
|
children: /* @__PURE__ */ jsxs(LoaderWrapper, {
|
|
455
455
|
loaderSize: "large",
|
|
456
456
|
status: searching ? "loading" : "success",
|
|
457
|
-
children: [/* @__PURE__ */ jsx(Header, { title:
|
|
457
|
+
children: [/* @__PURE__ */ jsx(Header, { title: globalEntryT(($) => $["businessSelectionFormHeading"]) }), /* @__PURE__ */ jsx(Field, {
|
|
458
458
|
el: "fieldset",
|
|
459
459
|
name: "selectedBusinessId",
|
|
460
460
|
errorMessage: formUtils.getErrorMessage("selectedBusinessId", errors, fieldProblems),
|
|
@@ -523,73 +523,56 @@ function getAvailableCompanyStructures({ country, registrationNumberType, regist
|
|
|
523
523
|
return constrainedCompanyTypeRadioOptions.length > 0 ? constrainedCompanyTypeRadioOptions : companyTypeRadioOptions;
|
|
524
524
|
}
|
|
525
525
|
//#endregion
|
|
526
|
-
//#region src/components/GlobalEntry/utils/
|
|
527
|
-
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
528
|
-
if (data.entityInformation.entitySetup === "partOfABusiness" || isSingleMemberLLC(data)) return data.companyStructure?.organizationType ?? legalEntity?.organization?.type;
|
|
529
|
-
if (data.entityInformation.entitySetup === "justMe") {
|
|
530
|
-
const hasSoleProprietorshipAssociation = legalEntity && hasSolePropInLegalEntity(legalEntity);
|
|
531
|
-
return data.registrationInformation?.filedPaperwork === "yes" || hasSoleProprietorshipAssociation ? "soleProprietorship" : void 0;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
var isPaperworkQuestionAsked = (data) => {
|
|
535
|
-
const { country, entitySetup } = data.entityInformation ?? {};
|
|
536
|
-
if (!country) return false;
|
|
537
|
-
if (entitySetup === "partOfABusiness") return ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES.includes(country);
|
|
538
|
-
return entitySetup === "justMe" && SOLE_PROP_COUNTRIES.includes(country);
|
|
539
|
-
};
|
|
540
|
-
var getFiledPaperwork = (data) => {
|
|
541
|
-
if (isPaperworkQuestionAsked(data)) return data.registrationInformation?.filedPaperwork ?? null;
|
|
542
|
-
return data.entityInformation?.entitySetup === "partOfABusiness" ? "yes" : "no";
|
|
543
|
-
};
|
|
544
|
-
var isTrustQuestionAsked = (data) => data.entityInformation.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "yes" && !!data.entityInformation.country && TRUST_COUNTRIES.includes(data.entityInformation.country);
|
|
545
|
-
var isSingleMemberLLC = (data) => data.entityInformation?.entitySetup === "justMe" && data.entityInformation.country === CountryCodes.UnitedStates && data.registrationInformation?.isLimitedLiabilityCorporation === "yes";
|
|
546
|
-
var isUsingCompanySearch = (data) => {
|
|
547
|
-
const country = data.entityInformation.country;
|
|
548
|
-
return !!country && COUNTRIES_USING_COMPANY_SEARCH.includes(country) && (data.entityInformation.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "yes" || isSingleMemberLLC(data));
|
|
549
|
-
};
|
|
550
|
-
var isUnincorporatedPartnership = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "no" && data.registrationInformation?.unincorporatedOrganizationType === "unincorporatedPartnership";
|
|
551
|
-
var isTrust = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "yes" && data.registrationInformation?.isTrust === "yes";
|
|
552
|
-
/**
|
|
553
|
-
* `justMe` is a natural person unless they represent a single-member LLC. Being part of a business
|
|
554
|
-
* only makes the entity an `organization` when the primary partner is not an individual, because an
|
|
555
|
-
* individual partner in an unincorporated partnership stays an individual legal entity.
|
|
556
|
-
*/
|
|
557
|
-
var determineLegalEntityType = (data) => isSingleMemberLLC(data) || data.entityInformation?.entitySetup === "partOfABusiness" && data.primaryPartner?.primaryPartnerType !== "individual" ? "organization" : "individual";
|
|
526
|
+
//#region src/components/GlobalEntry/utils/globalEntryState.ts
|
|
558
527
|
/**
|
|
559
|
-
*
|
|
528
|
+
* Resolves the current Global Entry state from the questionnaire answers.
|
|
560
529
|
*/
|
|
561
|
-
var
|
|
530
|
+
var resolveGlobalEntryState = (data) => {
|
|
562
531
|
const entitySetup = data.entityInformation?.entitySetup;
|
|
563
|
-
|
|
532
|
+
const country = data.entityInformation?.country;
|
|
564
533
|
const filedPaperwork = getFiledPaperwork(data);
|
|
565
|
-
if (
|
|
566
|
-
if (
|
|
534
|
+
if (!country || entitySetup !== "justMe" && entitySetup !== "partOfABusiness") return "undetermined";
|
|
535
|
+
if (filedPaperwork === null) return "awaitingPaperworkAnswer";
|
|
567
536
|
if (entitySetup === "justMe") {
|
|
568
|
-
if (
|
|
569
|
-
|
|
537
|
+
if (filedPaperwork !== "yes") {
|
|
538
|
+
if (!INDIVIDUALS_WHO_TRADE_COUNTRIES.includes(country)) return "individual";
|
|
539
|
+
if (data.registrationInformation.hasDoingBusinessAs === "yes") return "individualWhoTrades";
|
|
540
|
+
return data.registrationInformation.hasDoingBusinessAs === "no" ? "individual" : "awaitingDoingBusinessAsAnswer";
|
|
541
|
+
}
|
|
542
|
+
if (country !== CountryCodes.UnitedStates) return "soleProprietor";
|
|
543
|
+
if (data.registrationInformation.isLimitedLiabilityCorporation === "yes") return "singleMemberLlc";
|
|
544
|
+
return data.registrationInformation.isLimitedLiabilityCorporation === "no" ? "usSoleProprietor" : "awaitingLlcAnswer";
|
|
570
545
|
}
|
|
571
|
-
if (
|
|
572
|
-
|
|
573
|
-
if (isTrust
|
|
574
|
-
if (
|
|
546
|
+
if (filedPaperwork === "no") return "unincorporatedOrganization";
|
|
547
|
+
if (TRUST_COUNTRIES.includes(country)) {
|
|
548
|
+
if (data.registrationInformation.isTrust === "yes") return "trust";
|
|
549
|
+
if (data.registrationInformation.isTrust !== "no") return "awaitingTrustAnswer";
|
|
575
550
|
}
|
|
551
|
+
return "registeredOrganization";
|
|
576
552
|
};
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
553
|
+
/**
|
|
554
|
+
* An organization whose registration details are collected: a company or a single-member LLC.
|
|
555
|
+
*/
|
|
556
|
+
var isRegisteredOrganization = (globalEntryState) => globalEntryState === "registeredOrganization" || globalEntryState === "singleMemberLlc";
|
|
557
|
+
var isUsingCompanySearch = (globalEntryState, country) => COUNTRIES_USING_COMPANY_SEARCH.includes(country) && (isRegisteredOrganization(globalEntryState) || globalEntryState === "awaitingTrustAnswer" || globalEntryState === "trust");
|
|
558
|
+
/**
|
|
559
|
+
* The LLC question is put to US individuals who have filed paperwork.
|
|
560
|
+
*/
|
|
561
|
+
var isLlcQuestionRequired = (globalEntryState) => globalEntryState === "awaitingLlcAnswer" || globalEntryState === "usSoleProprietor" || globalEntryState === "singleMemberLlc";
|
|
562
|
+
var isTrustQuestionRequired = (globalEntryState, country) => TRUST_COUNTRIES.includes(country) && (globalEntryState === "awaitingTrustAnswer" || globalEntryState === "trust" || globalEntryState === "registeredOrganization");
|
|
563
|
+
/**
|
|
564
|
+
* The DBA question is put to individuals without paperwork in supported countries.
|
|
565
|
+
*/
|
|
566
|
+
var isHasDoingBusinessAsRequired = (globalEntryState, country) => INDIVIDUALS_WHO_TRADE_COUNTRIES.includes(country) && (globalEntryState === "awaitingDoingBusinessAsAnswer" || globalEntryState === "individual" || globalEntryState === "individualWhoTrades");
|
|
567
|
+
var isPaperworkQuestionRequired = (data) => {
|
|
568
|
+
const { country, entitySetup } = data.entityInformation ?? {};
|
|
569
|
+
if (!country) return false;
|
|
570
|
+
if (entitySetup === "partOfABusiness") return ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES.includes(country);
|
|
571
|
+
return entitySetup === "justMe" && SOLE_PROP_COUNTRIES.includes(country);
|
|
581
572
|
};
|
|
582
|
-
var
|
|
583
|
-
if (
|
|
584
|
-
|
|
585
|
-
type: "organization"
|
|
586
|
-
});
|
|
587
|
-
if (rootLegalEntity.organization?.registeredAddress?.country !== CountryCodes.Singapore) await updateLegalEntity({
|
|
588
|
-
id: rootLegalEntity.id,
|
|
589
|
-
organization: { registeredAddress: { country: CountryCodes.Singapore } }
|
|
590
|
-
});
|
|
591
|
-
onComplete("theCompanyIWorkFor");
|
|
592
|
-
await handleInitiateSingpassMyInfoLogin();
|
|
573
|
+
var getFiledPaperwork = (data) => {
|
|
574
|
+
if (isPaperworkQuestionRequired(data)) return data.registrationInformation?.filedPaperwork ?? null;
|
|
575
|
+
return data.entityInformation?.entitySetup === "partOfABusiness" ? "yes" : "no";
|
|
593
576
|
};
|
|
594
577
|
//#endregion
|
|
595
578
|
//#region src/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.tsx
|
|
@@ -610,7 +593,7 @@ function CompanyStructure({ id, country, legalEntity }) {
|
|
|
610
593
|
registrationNumberExempt: registrationInformation?.exemptedFromRegistrationNumber,
|
|
611
594
|
taxIdNumberType: registrationInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type,
|
|
612
595
|
legalEntity,
|
|
613
|
-
isSingleMemberLlc:
|
|
596
|
+
isSingleMemberLlc: resolveGlobalEntryState(form.data) === "singleMemberLlc"
|
|
614
597
|
});
|
|
615
598
|
const companyTypeExamples = useCompanyTypeExamples(country);
|
|
616
599
|
const tiles = options.filter((option) => !!companyTypeMetadata[option]).map((option) => {
|
|
@@ -1034,8 +1017,56 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
1034
1017
|
})] });
|
|
1035
1018
|
};
|
|
1036
1019
|
//#endregion
|
|
1020
|
+
//#region src/components/GlobalEntry/utils/utils.ts
|
|
1021
|
+
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
1022
|
+
if (data.entityInformation.entitySetup === "partOfABusiness" || resolveGlobalEntryState(data) === "singleMemberLlc") return data.companyStructure?.organizationType ?? legalEntity?.organization?.type;
|
|
1023
|
+
if (data.entityInformation.entitySetup === "justMe") {
|
|
1024
|
+
const hasSoleProprietorshipAssociation = legalEntity && hasSolePropInLegalEntity(legalEntity);
|
|
1025
|
+
return data.registrationInformation?.filedPaperwork === "yes" || hasSoleProprietorshipAssociation ? "soleProprietorship" : void 0;
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* `justMe` is a natural person unless they represent a single-member LLC. Being part of a business
|
|
1030
|
+
* only makes the entity an `organization` when the primary partner is not an individual, because an
|
|
1031
|
+
* individual partner in an unincorporated partnership stays an individual legal entity.
|
|
1032
|
+
*/
|
|
1033
|
+
var determineLegalEntityType = (data) => resolveGlobalEntryState(data) === "singleMemberLlc" || data.entityInformation?.entitySetup === "partOfABusiness" && data.primaryPartner?.primaryPartnerType !== "individual" ? "organization" : "individual";
|
|
1034
|
+
/**
|
|
1035
|
+
* The account holder is derived from the form data, not sent to the API and is kept client-side.
|
|
1036
|
+
*/
|
|
1037
|
+
var determineAccountHolder = (data) => {
|
|
1038
|
+
switch (resolveGlobalEntryState(data)) {
|
|
1039
|
+
case "singleMemberLlc":
|
|
1040
|
+
case "registeredOrganization": return "theCompanyIWorkFor";
|
|
1041
|
+
case "trust": return "aTrust";
|
|
1042
|
+
case "individualWhoTrades":
|
|
1043
|
+
case "soleProprietor":
|
|
1044
|
+
case "usSoleProprietor": return "mySoleProprietorName";
|
|
1045
|
+
case "individual": return "myName";
|
|
1046
|
+
case "unincorporatedOrganization": return data.registrationInformation.unincorporatedOrganizationType === "unincorporatedPartnership" ? "anUnincorporatedPartnership" : void 0;
|
|
1047
|
+
default: return;
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
var determineEntityAssociations = (data, accountHolder, legalEntity) => {
|
|
1051
|
+
const ownAssociations = getOwnEntityAssociations(legalEntity);
|
|
1052
|
+
if (!ownAssociations || ownAssociations.length === 0) return;
|
|
1053
|
+
return accountHolder !== determineAccountHolder(data) ? [] : void 0;
|
|
1054
|
+
};
|
|
1055
|
+
var completeWithSingpass = async ({ rootLegalEntity, updateLegalEntity, onComplete, handleInitiateSingpassMyInfoLogin }) => {
|
|
1056
|
+
if (rootLegalEntity.type !== "organization") await updateLegalEntity({
|
|
1057
|
+
id: rootLegalEntity.id,
|
|
1058
|
+
type: "organization"
|
|
1059
|
+
});
|
|
1060
|
+
if (rootLegalEntity.organization?.registeredAddress?.country !== CountryCodes.Singapore) await updateLegalEntity({
|
|
1061
|
+
id: rootLegalEntity.id,
|
|
1062
|
+
organization: { registeredAddress: { country: CountryCodes.Singapore } }
|
|
1063
|
+
});
|
|
1064
|
+
onComplete("theCompanyIWorkFor");
|
|
1065
|
+
await handleInitiateSingpassMyInfoLogin();
|
|
1066
|
+
};
|
|
1067
|
+
//#endregion
|
|
1037
1068
|
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
1038
|
-
var LazySingpassSelectionCTA = lazy(async () => (await import("./SingpassSelectionCTA-
|
|
1069
|
+
var LazySingpassSelectionCTA = lazy(async () => (await import("./SingpassSelectionCTA-Cbpk58xO.js")).SingpassSelectionCTA);
|
|
1039
1070
|
var REGISTRATION_INFORMATION_FIELDS = [
|
|
1040
1071
|
...PAPERWORK_QUESTIONNAIRE_FIELD,
|
|
1041
1072
|
...DBA_QUESTIONNAIRE_FIELD,
|
|
@@ -1054,7 +1085,6 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country, onSin
|
|
|
1054
1085
|
const { form } = useFormContext();
|
|
1055
1086
|
const { t: commonT } = useTranslation("common");
|
|
1056
1087
|
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
1057
|
-
const { t: businessT } = useTranslation("business");
|
|
1058
1088
|
const { defaultData } = form;
|
|
1059
1089
|
const { data, errors, valid, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "registrationInformation");
|
|
1060
1090
|
const companyType = getGlobalEntryCompanyType(legalEntity, form.data);
|
|
@@ -1071,7 +1101,7 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country, onSin
|
|
|
1071
1101
|
country,
|
|
1072
1102
|
formUtils,
|
|
1073
1103
|
handleChange: handleChangeFor,
|
|
1074
|
-
t:
|
|
1104
|
+
t: globalEntryT
|
|
1075
1105
|
});
|
|
1076
1106
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
1077
1107
|
const showSingpassCta = country === CountryCodes.Singapore && form.data.entityInformation.entitySetup === "partOfABusiness" && data?.filedPaperwork === "yes";
|
|
@@ -1250,8 +1280,6 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1250
1280
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1251
1281
|
const userEvents = useAnalyticsContext();
|
|
1252
1282
|
const queryClient = useQueryClient();
|
|
1253
|
-
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
1254
|
-
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
1255
1283
|
const logger = createLogger();
|
|
1256
1284
|
const getInferredRegistrationNumberType = () => {
|
|
1257
1285
|
const selectedCompany = companySearchStateModel.selectedCompany.peek();
|
|
@@ -1288,64 +1316,30 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1288
1316
|
return formsWithoutSearchResults;
|
|
1289
1317
|
}
|
|
1290
1318
|
const tin = multiForm.data.registrationInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
|
|
1291
|
-
const registrationNumber = multiForm.data.registrationInformation?.registrationNumber ?? "";
|
|
1292
1319
|
skipBusinessSelection.value = searchResponse.results.length === 0;
|
|
1293
1320
|
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
return currentForms;
|
|
1314
|
-
case 1:
|
|
1315
|
-
if (!isNormalizedStringMatch(legalCompanyName, searchResponse.results[0].name)) {
|
|
1316
|
-
setLoadingStatus("success");
|
|
1317
|
-
return currentForms;
|
|
1318
|
-
}
|
|
1319
|
-
try {
|
|
1320
|
-
const companySelectionResponse = await selectCompany({
|
|
1321
|
-
name: legalCompanyName,
|
|
1322
|
-
tin,
|
|
1323
|
-
registrationNumber,
|
|
1324
|
-
id: searchResponse.results[0].resultId,
|
|
1325
|
-
country
|
|
1326
|
-
});
|
|
1327
|
-
companySearchStateModel.selectCompany(companySelectionResponse, -1, country);
|
|
1328
|
-
setLoadingStatus("success");
|
|
1329
|
-
if (isVerificationFailed()) {
|
|
1330
|
-
await clearCompanyData();
|
|
1331
|
-
return currentForms;
|
|
1332
|
-
}
|
|
1333
|
-
confirmSelection();
|
|
1334
|
-
skipBusinessSelection.value = true;
|
|
1335
|
-
return getRequiredForms({
|
|
1336
|
-
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
1337
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType()
|
|
1338
|
-
});
|
|
1339
|
-
} catch (e) {
|
|
1340
|
-
logger.error(e);
|
|
1341
|
-
setLoadingStatus("error");
|
|
1342
|
-
await clearCompanyData();
|
|
1343
|
-
return formsWithoutSearchResults;
|
|
1344
|
-
}
|
|
1345
|
-
default:
|
|
1346
|
-
setLoadingStatus("success");
|
|
1347
|
-
return currentForms;
|
|
1321
|
+
if (searchResponse.results.length > 0) {
|
|
1322
|
+
setLoadingStatus("success");
|
|
1323
|
+
return currentForms;
|
|
1324
|
+
}
|
|
1325
|
+
if (country === CountryCodes.UnitedStates) try {
|
|
1326
|
+
const verifyTinQueryInput = {
|
|
1327
|
+
name: legalCompanyName,
|
|
1328
|
+
tin
|
|
1329
|
+
};
|
|
1330
|
+
const tinVerificationResponse = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), verifyTinQueryInput, userEvents));
|
|
1331
|
+
setLoadingStatus("success");
|
|
1332
|
+
companySearchStateModel.setVerificationMatched(!!tinVerificationResponse.matched);
|
|
1333
|
+
if (companySearchStateModel.verificationMatched.value) return currentForms;
|
|
1334
|
+
tinMismatchModalOpen.value = true;
|
|
1335
|
+
return null;
|
|
1336
|
+
} catch (e) {
|
|
1337
|
+
logger.error(e);
|
|
1338
|
+
setLoadingStatus("error");
|
|
1339
|
+
return currentForms;
|
|
1348
1340
|
}
|
|
1341
|
+
setLoadingStatus("success");
|
|
1342
|
+
return currentForms;
|
|
1349
1343
|
};
|
|
1350
1344
|
const confirmBusinessSelection = async () => {
|
|
1351
1345
|
const selectedBusinessId = multiForm.data.businessSelection?.selectedBusinessId;
|
|
@@ -1472,7 +1466,7 @@ var mapLegalEntityToGlobalEntrySchema = (legalEntity, accountHolder) => {
|
|
|
1472
1466
|
country,
|
|
1473
1467
|
companyType
|
|
1474
1468
|
}) ? true : legalEntity.organization?.registrationNumberAbsent;
|
|
1475
|
-
const
|
|
1469
|
+
const registeredAddress = legalEntity.organization?.registeredAddress ?? legalEntity.individual?.residentialAddress;
|
|
1476
1470
|
return {
|
|
1477
1471
|
entityInformation: {
|
|
1478
1472
|
entitySetup: determineEntitySetup(legalEntity, accountHolder),
|
|
@@ -1480,7 +1474,7 @@ var mapLegalEntityToGlobalEntrySchema = (legalEntity, accountHolder) => {
|
|
|
1480
1474
|
},
|
|
1481
1475
|
registrationInformation: {
|
|
1482
1476
|
...mapLocalizationToJapaneseLegalNames(legalEntity.organization?.localization),
|
|
1483
|
-
stateOrProvince,
|
|
1477
|
+
stateOrProvince: registeredAddress?.stateOrProvince,
|
|
1484
1478
|
filedPaperwork: accountHolder === "anUnincorporatedPartnership" ? "no" : taxInformation && taxInformation.length > 0 || registrationNumber ? "yes" : void 0,
|
|
1485
1479
|
unincorporatedOrganizationType: accountHolder === "anUnincorporatedPartnership" ? "unincorporatedPartnership" : void 0,
|
|
1486
1480
|
legalCompanyName: legalEntity.organization?.legalName,
|
|
@@ -1584,49 +1578,30 @@ var globalEntryFieldRuleConfigurations = {
|
|
|
1584
1578
|
taxInformation: { rule: "taxInformationRequired" },
|
|
1585
1579
|
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
1586
1580
|
};
|
|
1581
|
+
var requiredIf = (...conditions) => {
|
|
1582
|
+
return conditions.every((condition) => condition) ? "REQUIRED" : void 0;
|
|
1583
|
+
};
|
|
1587
1584
|
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, isSettingEnabled = () => false, country, rootLegalEntity }) => {
|
|
1588
|
-
const
|
|
1589
|
-
const isUsIndividual = data.entityInformation?.entitySetup === "justMe" && country === CountryCodes.UnitedStates;
|
|
1590
|
-
const llcAnswer = data.registrationInformation?.isLimitedLiabilityCorporation;
|
|
1591
|
-
const isLlcQuestionRequired = isUsIndividual && filedPaperwork === "yes";
|
|
1592
|
-
const hasDeterminedBusinessType = !isLlcQuestionRequired || !!llcAnswer;
|
|
1593
|
-
const isSingleMemberLlc = isSingleMemberLLC(data);
|
|
1594
|
-
const isTrustQuestionRequired = isTrustQuestionAsked(data);
|
|
1595
|
-
const isTrust = isTrustQuestionRequired && data.registrationInformation.isTrust === "yes";
|
|
1596
|
-
const canCollectOrganizationDetails = !isTrustQuestionRequired || data.registrationInformation.isTrust === "no";
|
|
1597
|
-
const hasFiledPaperwork = filedPaperwork === "yes" && hasDeterminedBusinessType;
|
|
1598
|
-
const hasAnsweredPaperworkQuestion = !!filedPaperwork;
|
|
1599
|
-
const isPartOfABusiness = data.entityInformation?.entitySetup === "partOfABusiness";
|
|
1600
|
-
const isOrganization = isPartOfABusiness || isSingleMemberLlc;
|
|
1585
|
+
const globalEntryState = resolveGlobalEntryState(data);
|
|
1601
1586
|
const isExemptFromRegistrationNumber = Boolean(data.registrationInformation?.exemptedFromRegistrationNumber);
|
|
1602
1587
|
const existingRegistrationNumber = rootLegalEntity?.type === "soleProprietorship" ? rootLegalEntity.soleProprietorship?.registrationNumber : rootLegalEntity?.organization?.registrationNumber;
|
|
1603
|
-
const isUnincorporatedOrganization = isPartOfABusiness && filedPaperwork === "no";
|
|
1604
|
-
const isRegisteredOrganization = isOrganization && hasFiledPaperwork && canCollectOrganizationDetails;
|
|
1605
1588
|
return createFormRules({
|
|
1606
1589
|
entitySetupRequired: () => "REQUIRED",
|
|
1607
1590
|
countryRequired: () => "REQUIRED",
|
|
1608
|
-
businessSelectionRequired: () => isUsingCompanySearch(
|
|
1609
|
-
organizationTypeRequired: () => isRegisteredOrganization
|
|
1610
|
-
countryOfGoverningLawRequired: () =>
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
unincorporatedOrganizationTypeRequired: () => isUnincorporatedOrganization ? "REQUIRED" : void 0,
|
|
1621
|
-
legalCompanyNameRequired: () => isRegisteredOrganization ? "REQUIRED" : void 0,
|
|
1622
|
-
jaHaniLegalCompanyName: () => {
|
|
1623
|
-
if (isRegisteredOrganization && isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1624
|
-
},
|
|
1625
|
-
jaKanaLegalCompanyName: () => {
|
|
1626
|
-
if (isRegisteredOrganization && isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1627
|
-
},
|
|
1591
|
+
businessSelectionRequired: () => requiredIf(isUsingCompanySearch(globalEntryState, country)),
|
|
1592
|
+
organizationTypeRequired: () => requiredIf(isRegisteredOrganization(globalEntryState)),
|
|
1593
|
+
countryOfGoverningLawRequired: () => requiredIf(isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies"), COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country), isRegisteredOrganization(globalEntryState)),
|
|
1594
|
+
filedPaperworkRequired: () => requiredIf(isPaperworkQuestionRequired(data)),
|
|
1595
|
+
hasDoingBusinessAsRequired: () => requiredIf(isHasDoingBusinessAsRequired(globalEntryState, country)),
|
|
1596
|
+
isTrustRequired: () => requiredIf(isTrustQuestionRequired(globalEntryState, country)),
|
|
1597
|
+
requireStateOrProvinceForCompanySearch: () => requiredIf(isUsingCompanySearch(globalEntryState, country), COUNTRIES_WITH_STATES_DATASET.includes(country)),
|
|
1598
|
+
isLimitedLiabilityCorporationRequired: () => requiredIf(isLlcQuestionRequired(globalEntryState)),
|
|
1599
|
+
unincorporatedOrganizationTypeRequired: () => requiredIf(globalEntryState === "unincorporatedOrganization"),
|
|
1600
|
+
legalCompanyNameRequired: () => requiredIf(isRegisteredOrganization(globalEntryState)),
|
|
1601
|
+
jaHaniLegalCompanyName: () => requiredIf(isRegisteredOrganization(globalEntryState), isJapanLocalizationEnabled(isSettingEnabled, country)),
|
|
1602
|
+
jaKanaLegalCompanyName: () => requiredIf(isRegisteredOrganization(globalEntryState), isJapanLocalizationEnabled(isSettingEnabled, country)),
|
|
1628
1603
|
countryRequiresRegistrationNumber: () => {
|
|
1629
|
-
if (!isRegisteredOrganization) return;
|
|
1604
|
+
if (!isRegisteredOrganization(globalEntryState)) return;
|
|
1630
1605
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
1631
1606
|
if (country === CountryCodes.HongKong) {
|
|
1632
1607
|
if (!existingRegistrationNumber) return;
|
|
@@ -1635,13 +1610,13 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
1635
1610
|
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
1636
1611
|
},
|
|
1637
1612
|
registrationNumberType: () => {
|
|
1638
|
-
if (!isRegisteredOrganization) return;
|
|
1613
|
+
if (!isRegisteredOrganization(globalEntryState)) return;
|
|
1639
1614
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
1640
1615
|
if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
|
|
1641
1616
|
return "OPTIONAL";
|
|
1642
1617
|
},
|
|
1643
1618
|
companyRegistrationNumberExemptionAllowed: () => {
|
|
1644
|
-
if (!isRegisteredOrganization) return;
|
|
1619
|
+
if (!isRegisteredOrganization(globalEntryState)) return;
|
|
1645
1620
|
if (!isRegistrationExemptionAllowed({ country })) return;
|
|
1646
1621
|
/**
|
|
1647
1622
|
* Country-specific guard checks before applying the shared exemption rule result.
|
|
@@ -1663,7 +1638,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
1663
1638
|
taxInformationRequired: () => {
|
|
1664
1639
|
const requiredUnlessExempt = Boolean(data.registrationInformation?.exemptedFromTax) ? "OPTIONAL" : "REQUIRED";
|
|
1665
1640
|
const usesTaxIdInsteadOfVat = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country);
|
|
1666
|
-
if (!isRegisteredOrganization) return;
|
|
1641
|
+
if (!isRegisteredOrganization(globalEntryState)) return;
|
|
1667
1642
|
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount")) {
|
|
1668
1643
|
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country)) return requiredUnlessExempt;
|
|
1669
1644
|
if (country === CountryCodes.Italy && data.registrationInformation?.registrationNumberType === "CCIAA") return requiredUnlessExempt;
|
|
@@ -1671,12 +1646,12 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
1671
1646
|
if (usesTaxIdInsteadOfVat) return requiredUnlessExempt;
|
|
1672
1647
|
},
|
|
1673
1648
|
countryHasTaxExemptions: () => {
|
|
1674
|
-
if (!isRegisteredOrganization) return;
|
|
1649
|
+
if (!isRegisteredOrganization(globalEntryState)) return;
|
|
1675
1650
|
const isExemptFromTax = Boolean(data.registrationInformation?.exemptedFromTax);
|
|
1676
1651
|
if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
1677
1652
|
if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
1678
1653
|
},
|
|
1679
|
-
primaryPartnerTypeRequired: () =>
|
|
1654
|
+
primaryPartnerTypeRequired: () => requiredIf(globalEntryState === "trust" || globalEntryState === "unincorporatedOrganization" && data.registrationInformation.unincorporatedOrganizationType === "unincorporatedPartnership")
|
|
1680
1655
|
});
|
|
1681
1656
|
};
|
|
1682
1657
|
//#endregion
|
|
@@ -1968,7 +1943,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1968
1943
|
"../language/da-DK.json": () => import("./da-DK-CgAKZR1b.js"),
|
|
1969
1944
|
"../language/de-DE.json": () => import("./de-DE-BN8Ih-Wn.js"),
|
|
1970
1945
|
"../language/el-GR.json": () => import("./el-GR-BwDT17Rm.js"),
|
|
1971
|
-
"../language/en-US.json": () => import("./en-US-
|
|
1946
|
+
"../language/en-US.json": () => import("./en-US-CyWOSDHS.js"),
|
|
1972
1947
|
"../language/es-ES.json": () => import("./es-ES-Dap0tTqf.js"),
|
|
1973
1948
|
"../language/es-LA.json": () => import("./es-LA-B7P0akIl.js"),
|
|
1974
1949
|
"../language/et-EE.json": () => import("./et-EE-DxSFMLSV.js"),
|
|
@@ -1991,37 +1966,6 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1991
1966
|
"../language/sv-SE.json": () => import("./sv-SE-Df6M0fXZ.js")
|
|
1992
1967
|
}), `../language/${lang}.json`, 3)
|
|
1993
1968
|
}]);
|
|
1994
|
-
addResourceBundles(i18n, [{
|
|
1995
|
-
ns: "business",
|
|
1996
|
-
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
|
|
1997
|
-
"../../Business/language/bg-BG.json": () => import("./bg-BG-e8JlqtcS.js"),
|
|
1998
|
-
"../../Business/language/cs-CZ.json": () => import("./cs-CZ-tKocyG3G.js"),
|
|
1999
|
-
"../../Business/language/da-DK.json": () => import("./da-DK-DC2I_NSA.js"),
|
|
2000
|
-
"../../Business/language/de-DE.json": () => import("./de-DE-DWId5baZ.js"),
|
|
2001
|
-
"../../Business/language/el-GR.json": () => import("./el-GR-Dl9zGLYp.js"),
|
|
2002
|
-
"../../Business/language/en-US.json": () => import("./en-US-BLUu-I1a.js"),
|
|
2003
|
-
"../../Business/language/es-ES.json": () => import("./es-ES-C0b1gdED.js"),
|
|
2004
|
-
"../../Business/language/es-LA.json": () => import("./es-LA-16nc9520.js"),
|
|
2005
|
-
"../../Business/language/et-EE.json": () => import("./et-EE-mBjbpUQ-.js"),
|
|
2006
|
-
"../../Business/language/fi-FI.json": () => import("./fi-FI-Cakae90Z.js"),
|
|
2007
|
-
"../../Business/language/fr-FR.json": () => import("./fr-FR-BfutG-sJ.js"),
|
|
2008
|
-
"../../Business/language/hr-HR.json": () => import("./hr-HR-DDvRwGS1.js"),
|
|
2009
|
-
"../../Business/language/hu-HU.json": () => import("./hu-HU-DA3EGmy5.js"),
|
|
2010
|
-
"../../Business/language/it-IT.json": () => import("./it-IT-t55KiTLg.js"),
|
|
2011
|
-
"../../Business/language/ja-JP.json": () => import("./ja-JP-DbZFwhB_.js"),
|
|
2012
|
-
"../../Business/language/lt-LT.json": () => import("./lt-LT-88XEumlr.js"),
|
|
2013
|
-
"../../Business/language/lv-LV.json": () => import("./lv-LV-Bfvq51ND.js"),
|
|
2014
|
-
"../../Business/language/nl-NL.json": () => import("./nl-NL-C9gGLSV7.js"),
|
|
2015
|
-
"../../Business/language/no-NO.json": () => import("./no-NO-DsklLKBo.js"),
|
|
2016
|
-
"../../Business/language/pl-PL.json": () => import("./pl-PL-Bfzlad_L.js"),
|
|
2017
|
-
"../../Business/language/pt-BR.json": () => import("./pt-BR-CmKh5X7L.js"),
|
|
2018
|
-
"../../Business/language/pt-PT.json": () => import("./pt-PT-D1yQGXDI.js"),
|
|
2019
|
-
"../../Business/language/ro-RO.json": () => import("./ro-RO-CMBamDPu.js"),
|
|
2020
|
-
"../../Business/language/sk-SK.json": () => import("./sk-SK-CkbJdpIO.js"),
|
|
2021
|
-
"../../Business/language/sl-SI.json": () => import("./sl-SI-D5xmoc2h.js"),
|
|
2022
|
-
"../../Business/language/sv-SE.json": () => import("./sv-SE-Bf-UrD6e.js")
|
|
2023
|
-
}), `../../Business/language/${lang}.json`, 5)
|
|
2024
|
-
}]);
|
|
2025
1969
|
const handleClose = () => {
|
|
2026
1970
|
showGlobalEntryModal.value = false;
|
|
2027
1971
|
};
|
|
@@ -2050,6 +1994,8 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2050
1994
|
});
|
|
2051
1995
|
const { isValid: formValidity, data, triggerValidation } = multiForm;
|
|
2052
1996
|
const country = data.entityInformation?.country ?? getLegalEntityCountry(rootLegalEntity);
|
|
1997
|
+
const globalEntryState = resolveGlobalEntryState(data);
|
|
1998
|
+
const isSingleMemberLlc = globalEntryState === "singleMemberLlc";
|
|
2053
1999
|
const rules = useMemo$1(() => globalEntryCustomRules({
|
|
2054
2000
|
data,
|
|
2055
2001
|
isFeatureEnabled,
|
|
@@ -2078,7 +2024,6 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2078
2024
|
});
|
|
2079
2025
|
setDerivedProps(props);
|
|
2080
2026
|
}, [rootLegalEntity?.type, rules]);
|
|
2081
|
-
const isSingleMemberLlc = isSingleMemberLLC(data);
|
|
2082
2027
|
/**
|
|
2083
2028
|
* The company structures that are still valid given the registration number type and tax ID
|
|
2084
2029
|
* number type currently in the form.
|
|
@@ -2176,7 +2121,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2176
2121
|
country,
|
|
2177
2122
|
multiForm,
|
|
2178
2123
|
activeFormId: activeForm.formId,
|
|
2179
|
-
isUsingCompanySearch: isUsingCompanySearch(
|
|
2124
|
+
isUsingCompanySearch: isUsingCompanySearch(globalEntryState, country)
|
|
2180
2125
|
});
|
|
2181
2126
|
const { attemptBusinessSearch, confirmBusinessSelection } = useCompanySearchNextClickOverrides({
|
|
2182
2127
|
country,
|
|
@@ -2226,7 +2171,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
2226
2171
|
const overrideNextClick = async () => {
|
|
2227
2172
|
pendingSubmitData.current = data;
|
|
2228
2173
|
if (!activeForm.isValid) return handleNextClick();
|
|
2229
|
-
if (!isUsingCompanySearch(
|
|
2174
|
+
if (!isUsingCompanySearch(globalEntryState, country)) return handleNextClick();
|
|
2230
2175
|
switch (activeForm.formId) {
|
|
2231
2176
|
case globalEntryForms.registrationInformation.formId: {
|
|
2232
2177
|
if (rootLegalEntity.type === "individual") try {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e87eb949-e4ea-41ed-895e-53760dae7ac5", e._sentryDebugIdIdentifier = "sentry-dbid-e87eb949-e4ea-41ed-895e-53760dae7ac5");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-
|
|
6
|
+
import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-By-mMjLz.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
9
|
-
import {
|
|
10
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
11
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
12
|
-
import { t as Link } from "./Link-
|
|
8
|
+
import { t as Button } from "./Button-DWI7t80R.js";
|
|
9
|
+
import { a as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BlicSpoi.js";
|
|
10
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-D3KEdn1-.js";
|
|
11
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-CAk8NeRm.js";
|
|
12
|
+
import { t as Link } from "./Link-CHOUFKjC.js";
|
|
13
13
|
import { lazy } from "preact/compat";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
15
15
|
import { Show } from "@preact/signals/utils";
|
|
@@ -26,7 +26,7 @@ var GlobalEntryPage = ({ onComplete }) => {
|
|
|
26
26
|
"../language/da-DK.json": () => import("./da-DK-CgAKZR1b.js"),
|
|
27
27
|
"../language/de-DE.json": () => import("./de-DE-BN8Ih-Wn.js"),
|
|
28
28
|
"../language/el-GR.json": () => import("./el-GR-BwDT17Rm.js"),
|
|
29
|
-
"../language/en-US.json": () => import("./en-US-
|
|
29
|
+
"../language/en-US.json": () => import("./en-US-CyWOSDHS.js"),
|
|
30
30
|
"../language/es-ES.json": () => import("./es-ES-Dap0tTqf.js"),
|
|
31
31
|
"../language/es-LA.json": () => import("./es-LA-B7P0akIl.js"),
|
|
32
32
|
"../language/et-EE.json": () => import("./et-EE-DxSFMLSV.js"),
|