@adyen/kyc-components 4.24.1 → 4.25.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-CyMefc3t.js → AcceptTermsOfServiceWorkflow-DVUes-ba.js} +2 -2
- package/dist/{AccountSetupRejected-D63dyojj.js → AccountSetupRejected-B19onnyG.js} +1 -1
- package/dist/{AdaptiveWorkflow-DC4QviLh.js → AdaptiveWorkflow-q5TVr4ET.js} +1 -1
- package/dist/{AdaptiveWorkflowComponent-CsNPizq0.js → AdaptiveWorkflowComponent-CBxlKnJq.js} +54 -54
- package/dist/{AddressFields-BeeqIqdc.js → AddressFields-DR4xhVNv.js} +9 -9
- package/dist/{Alert-Cc7p0N5h.js → Alert-Bv9M3wLb.js} +1 -1
- package/dist/{BusinessFinancingDropin-DYJS13vd.js → BusinessFinancingDropin-B71xoa3g.js} +95 -57
- package/dist/{BusinessFinancingPage-DbTrQ1kt.js → BusinessFinancingPage-DlttycNJ.js} +27 -27
- package/dist/{BusinessRegistrationNumberField-DKka8aVU.js → BusinessRegistrationNumberField-CpRV1Keg.js} +4 -4
- package/dist/{BusinessRegistrationNumberFieldGroup-Df6_sDA0.js → BusinessRegistrationNumberFieldGroup-BBOUoIDC.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-C0xUipfe.js → BusinessTypeSelectionPage-DiZhzyXz.js} +7 -7
- package/dist/{Button-DPJ1k02w.js → Button-DpPFIUJx.js} +34 -29
- package/dist/{ComponentGroup-Cw_2w0Rf.js → ComponentGroup-BcVd3jTE.js} +1 -1
- package/dist/{Confirm-DoN9R9Z3.js → Confirm-D8WH4e1L.js} +2 -2
- package/dist/{ConstitutionalDocument-Bbo7P_gi.js → ConstitutionalDocument-BBXjyAH3.js} +14 -14
- package/dist/{ContactDetails-CUjFd94x.js → ContactDetails-e8rkZO7f.js} +6 -6
- package/dist/{ContextGuidance-BQPwRscq.js → ContextGuidance-DPPaigJE.js} +1 -1
- package/dist/{CountryField-DT6-Jr_b.js → CountryField-C7eHHmYk.js} +4 -4
- package/dist/{Currency-C-sSDMn7.js → Currency-BEr0RDjy.js} +83 -6
- package/dist/{CustomerSupport-C2DrnwDs.js → CustomerSupport-DVMEfZdZ.js} +6 -6
- package/dist/{DataConflictsModal-CCaMgguu.js → DataConflictsModal-BqfTUq4v.js} +6 -6
- package/dist/{DebugModal-QeIdCXu5.js → DebugModal-CGPSu2md.js} +16 -16
- package/dist/{DecisionMakerDetails-Dhi6hsrv.js → DecisionMakerDetails-mi5oGeCi.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-DLgKrPA3.js → DecisionMakerDetailsPage-BUvvs6i9.js} +28 -28
- package/dist/{DecisionMakers-B6Qd9fuT.js → DecisionMakers-B2dpzHQ-.js} +32 -32
- package/dist/{Dropzone-BhMYy4nr.js → Dropzone-DAKOThpd.js} +4 -4
- package/dist/{EndStateLayout-zZPm8S5M.js → EndStateLayout-BOdEeTDy.js} +9 -9
- package/dist/{EntityAssociation-C2_Xuvf5.js → EntityAssociation-ty8DqPkJ.js} +5 -5
- package/dist/{ErrorPanel-D4JNFkvi.js → ErrorPanel-D1ygAX21.js} +2 -2
- package/dist/{Field-DwDJQVSS.js → Field-CBvXkDKh.js} +1 -1
- package/dist/{GlobalEntryModal-iZSUeMQf.js → GlobalEntryModal-DLC7METR.js} +783 -86
- package/dist/{GlobalEntryPage-w4KJOeYb.js → GlobalEntryPage-C2vMcR6i.js} +28 -28
- package/dist/{IdentityNumber-3V6ZqvHB.js → IdentityNumber-DhO403_T.js} +6 -6
- package/dist/{IdentityNumberFieldGroup-CAjlgTWn.js → IdentityNumberFieldGroup-CqAj0moi.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-Bx89cmUF.js → IdentityScreeningWorkflow-Dm2p1_2e.js} +7 -7
- package/dist/{IndividualDropin-BgOmBeoT.js → IndividualDropin-CKnMrjDj.js} +161 -54
- package/dist/{IndustryCodeFieldGroup-BDtoeaUz.js → IndustryCodeFieldGroup-DEYxiu_j.js} +4 -4
- package/dist/{InputDate-ANdv1rKt.js → InputDate-B0RNGCq2.js} +2 -3
- package/dist/{InputText-CFDEmEtp.js → InputText-CwPK55J0.js} +1 -1
- package/dist/{Introduction-D8hMB7Wb.js → Introduction-CTVUoae1.js} +3 -3
- package/dist/{InvitedDecisionMakerComponent-DZZe5Ruk.js → InvitedDecisionMakerComponent-XVUjKp4X.js} +55 -55
- package/dist/{JpAddressFields-BIh4120-.js → JpAddressFields-DWDTt4lQ.js} +5 -5
- package/dist/{LegalCompanyNameField-Cosyjk52.js → LegalCompanyNameField-C3zITaw1.js} +3 -3
- package/dist/{LegalName-CtqIpsfy.js → LegalName-DsYl9ReT.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-Mpm8AjdQ.js → LegalRepresentativeDetailsPage-CYHPpiXJ.js} +28 -28
- package/dist/{maskHelpers-C0wnCoJl.js → MaskedInput-W1FzWAVl.js} +68 -68
- package/dist/{MaybeModal-C4ySaA8A.js → MaybeModal-DJ-s5rk2.js} +2 -2
- package/dist/{Modal-CHES6970.js → Modal-DeXa4MBg.js} +1 -1
- package/dist/{Name-CdCsijr5.js → Name-C1GAvkWn.js} +4 -4
- package/dist/{NewSummary-D55f70wB.js → NewSummary-C9CV9wJk.js} +4 -4
- package/dist/{NodeRenderer-smgxe7Ni.js → NodeRenderer-CnaWNStD.js} +15 -15
- package/dist/{PatriotActDisclosure-DA6nqTmC.js → PatriotActDisclosure-CnVpPsAg.js} +8 -8
- package/dist/{PayoutDetailsDropin-CPK9u_TO.js → PayoutDetailsDropin-BPms6ZOq.js} +32 -32
- package/dist/{PayoutDetailsPage-LH-4BMk7.js → PayoutDetailsPage-BTBHMzw7.js} +3 -3
- package/dist/{RadioGroup-Bf3DlQnZ.js → RadioGroup-CY33MT83.js} +2 -2
- package/dist/{RadioWithLabel-DQIOEYpF.js → RadioWithLabel-BmUFWDxq.js} +1 -1
- package/dist/{Review-9sjGKoQu.js → Review-CGI0RQO6.js} +2 -2
- package/dist/{RootBusinessDetailsPage-DRN6p6wB.js → RootBusinessDetailsPage-BswHBSIN.js} +1 -1
- package/dist/{RootBusinessLinesPage-uxn9f5K8.js → RootBusinessLinesPage-BQxhfHmx.js} +18 -18
- package/dist/{RootIndividualDetailsPage-BDoKkhcN.js → RootIndividualDetailsPage-CFxtnnY4.js} +28 -28
- package/dist/{Select-phAxjMBQ.js → Select-prMx73V9.js} +35 -36
- package/dist/{SignPCIComponent-BNlTxxJz.js → SignPCIComponent-B1kmyOe5.js} +34 -34
- package/dist/{SingpassSelection-B6_DsZtn.js → SingpassSelection-GiZOYWUI.js} +4 -4
- package/dist/{SoleProprietorshipPage-Dx-pfSwo.js → SoleProprietorshipPage-D84M0iEW.js} +1 -1
- package/dist/{SourceOfFundsPage-ChO-R9o4.js → SourceOfFundsPage-B0SzrryD.js} +22 -22
- package/dist/{SourceOfFundsWorkflow-DuU_n82x.js → SourceOfFundsWorkflow-j-GhdsMt.js} +2 -2
- package/dist/{StateField-BpMwetvd.js → StateField-BYoE_vV0.js} +5 -5
- package/dist/{Step-CctAUYbs.js → Step-BWQnXZ9F.js} +2 -2
- package/dist/{StructuredList-nPasiuLi.js → StructuredList-BHUmeWeh.js} +1 -1
- package/dist/{Summary-DM31WxLr.js → Summary-BxGf1dI5.js} +6 -6
- package/dist/{Task-C12uuPWD.js → Task-B5aOUY4b.js} +23 -14
- package/dist/{TaskGroup-z3ONGLnB.js → TaskGroup-DJXCb94w.js} +1 -1
- package/dist/{TaskListItem-Dx3hKOqG.js → TaskListItem-0-jRJAy9.js} +4 -4
- package/dist/{TaxInformationField-Cc-NDAVo.js → TaxInformationField-DUjQEF-s.js} +4 -4
- package/dist/{TaxInformationFieldGroup-DI2LzuNr.js → TaxInformationFieldGroup-CrTl9kqF.js} +5 -5
- package/dist/{TaxReportingDropin-LNgisxBc.js → TaxReportingDropin-DAdIs3_N.js} +8 -8
- package/dist/{TaxReportingWorkflow-9_9ECX6A.js → TaxReportingWorkflow-P9mRynVj.js} +2 -2
- package/dist/{TermsOfServiceManagement-BGrBal0j.js → TermsOfServiceManagement-BnyyCgPN.js} +34 -34
- package/dist/{TextArea-qGEo3PFG.js → TextArea-C12oXMzX.js} +1 -1
- package/dist/{TileGroup-D1-M64Ul.js → TileGroup-DKwpyGqw.js} +1 -1
- package/dist/{ToastContextProvider-DjYKMflX.js → ToastContextProvider-D2doAiSZ.js} +1 -1
- package/dist/{TrustDetailsPage-cx6yEd6Q.js → TrustDetailsPage-CfjP1Q7K.js} +25 -25
- package/dist/{TrustMemberCompanyPage-DZh9Wn9-.js → TrustMemberCompanyPage-taBHdjIB.js} +3 -3
- package/dist/{TrustMemberIndividualPage--tTWII4G.js → TrustMemberIndividualPage-DdwlWwLJ.js} +28 -28
- package/dist/{TrustMemberRoleAndTypePage-DEzesajA.js → TrustMemberRoleAndTypePage-DAeIxczv.js} +15 -17
- package/dist/{TrustMembersOverview-BpJGWVT5.js → TrustMembersOverview-Bb_rf907.js} +7 -7
- package/dist/{UboTaskItem-DP5LOGom.js → UboTaskItem-RFRcZeJr.js} +23 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DelW_XAz.js → UnincorporatedPartnershipIndividualPage-lWGiysru.js} +28 -28
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BdnBsGK9.js → UnincorporatedPartnershipMemberCompanyPage-oo1cNUHe.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DpdTiLc-.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cqus5hkL.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-BBeans9j.js → UnincorporatedPartnershipMembersOverview-hzs-FlQ0.js} +5 -5
- package/dist/{VerificationErrorAlert-CixajVtq.js → VerificationErrorAlert-B-WILibe.js} +1 -1
- package/dist/{Workflow-BJbKhY38.js → Workflow-CymBPsE3.js} +27 -17
- package/dist/adyen-business-financing.js +33 -31
- package/dist/adyen-individual-configuration.js +57 -55
- package/dist/adyen-individual-status.js +31 -29
- package/dist/adyen-invited-decision-maker.js +7 -5
- package/dist/adyen-onboarding.js +41 -39
- package/dist/adyen-terms-of-service-management.js +6 -4
- package/dist/adyen-terms-of-service-status.js +6 -4
- package/dist/adyen-transfer-instrument-configuration.js +31 -29
- package/dist/adyen-transfer-instrument-management.js +39 -37
- package/dist/adyen-verification-status.js +7 -5
- package/dist/{bg-BG-DqfAUTUt.js → bg-BG-Cdrkwxmc.js} +2 -2
- package/dist/{bg-BG-BPzEcioF.js → bg-BG-ClMsmcda.js} +16 -2
- package/dist/bg-BG-DfbtcqF4.js +7 -0
- package/dist/{businessRegistrationNumberPatterns-A08SLm03.js → businessRegistrationNumberPatterns-Bd2bazr4.js} +2 -2
- package/dist/{constants-C8yo0_RA.js → constants-C7-xFqmm.js} +4 -4
- package/dist/cs-CZ-CajuRLo4.js +7 -0
- package/dist/{cs-CZ-BwO4yrI4.js → cs-CZ-DpiH1UkS.js} +2 -2
- package/dist/{cs-CZ-D4ml1o2f.js → cs-CZ-DyLd-erd.js} +16 -2
- package/dist/{da-DK-CE7jnGea.js → da-DK-B-BJLcqw.js} +2 -2
- package/dist/da-DK-BEwmSejn.js +7 -0
- package/dist/{da-DK-BoINgPRU.js → da-DK-Dhr4p-qj.js} +16 -2
- package/dist/{de-DE-DKkoZQ0X.js → de-DE-BxTGFyOs.js} +2 -2
- package/dist/de-DE-PyK3jl-6.js +7 -0
- package/dist/{de-DE-By2U6vch.js → de-DE-QDT6VVq9.js} +16 -2
- package/dist/{dropinUtils-DTBezwYT.js → dropinUtils-DaA6mmQp.js} +16 -11
- package/dist/{el-GR-Cvms0L4K.js → el-GR-IQwyd9ws.js} +2 -2
- package/dist/el-GR-KPFghikv.js +7 -0
- package/dist/{el-GR-CdTXa4cP.js → el-GR-V2cZ5gjl.js} +16 -2
- package/dist/en-US-BRCWc67V.js +7 -0
- package/dist/{error-BvgoQFEI.js → error-CQMSa-H_.js} +2 -2
- package/dist/{es-ES-BQrdtEfn.js → es-ES-Cg2IadcX.js} +2 -2
- package/dist/{es-ES-DT39ZlR7.js → es-ES-SsReQJzQ.js} +16 -2
- package/dist/es-ES-z4jLCvkJ.js +7 -0
- package/dist/{es-LA-DQGPNeqX.js → es-LA-DTXCg1tj.js} +16 -2
- package/dist/{es-LA-BxtxM3Ty.js → es-LA-DvMpG4FP.js} +2 -2
- package/dist/es-LA-Dx4QymCh.js +7 -0
- package/dist/et-EE-1EhDxtTe.js +7 -0
- package/dist/{et-EE-S_MAXUF8.js → et-EE-Bg3WOS9m.js} +16 -2
- package/dist/{et-EE-V-YOCgoh.js → et-EE-eGeytyQh.js} +2 -2
- package/dist/{fi-FI-ThDP-8F8.js → fi-FI-B1RyWVH2.js} +16 -2
- package/dist/{fi-FI-CVBmM-U1.js → fi-FI-C02wZfgW.js} +2 -2
- package/dist/fi-FI-Dc2RMc_u.js +7 -0
- package/dist/{form-rules-B0RwhsVw.js → form-rules-DhuNdiqF.js} +1 -1
- package/dist/{formUtils-DVDcdZsP.js → formUtils-DAKrWwgL.js} +1 -1
- package/dist/{formatValidationError-q_w9DTrl.js → formatValidationError-z2D5oU1e.js} +1 -1
- package/dist/{fr-FR-D3maHIWS.js → fr-FR-C3Zi7-JE.js} +16 -2
- package/dist/{fr-FR-BIyJL6Jj.js → fr-FR-CE7k9H5_.js} +2 -2
- package/dist/fr-FR-DswL4wQ1.js +7 -0
- package/dist/{getDefaultRegistrationNumberType-CIu4WMln.js → getDefaultRegistrationNumberType-BzOpwR5x.js} +214 -214
- package/dist/{hr-HR-BOYktLQ2.js → hr-HR-B12DcJ3l.js} +2 -2
- package/dist/{hr-HR-BUI-Ac0o.js → hr-HR-CH9yGEPn.js} +16 -2
- package/dist/hr-HR-DI2D_V50.js +7 -0
- package/dist/{hu-HU-BPjEsgnX.js → hu-HU-DpUG3GwC.js} +16 -2
- package/dist/{hu-HU-CO_7jvk9.js → hu-HU-cosbDuos.js} +2 -2
- package/dist/hu-HU-lyRcZjGI.js +7 -0
- package/dist/individualdetails-UIslI4gf.js +34 -0
- package/dist/{it-IT-W1FjGb6L.js → it-IT-BEEsgu4Z.js} +16 -2
- package/dist/it-IT-Bn4CEcmI.js +7 -0
- package/dist/{it-IT-CNr6PIu3.js → it-IT-CiKoOxzk.js} +2 -2
- package/dist/ja-JP-CAX_xwUx.js +7 -0
- package/dist/{ja-JP-avJECfKw.js → ja-JP-CcXk7Gcc.js} +16 -2
- package/dist/{ja-JP-DAClbueM.js → ja-JP-D7PEVMmT.js} +2 -2
- package/dist/lt-LT-BdgYuJW7.js +7 -0
- package/dist/{lt-LT-DoYCfhZU.js → lt-LT-C2oxTakB.js} +2 -2
- package/dist/{lt-LT-wP0YuKeO.js → lt-LT-CGgbFwbx.js} +16 -2
- package/dist/lv-LV-Bz5c0Psg.js +7 -0
- package/dist/{lv-LV-BW0BscAd.js → lv-LV-C_KVkpid.js} +2 -2
- package/dist/{lv-LV-DW_mgZjM.js → lv-LV-Ck_aQ4ML.js} +16 -2
- package/dist/{mapExistingFile-2QXrkhqJ.js → mapExistingFile-BrDc9SLg.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js → mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-Crz7aXZB.js → mapLegalEntityToIndividualSchema-Cs24QJ_x.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-BrbrK2wk.js → mapTransferInstrumentToPayoutAccount-BpXU-nP1.js} +1 -1
- package/dist/nl-NL-BE2cQh0x.js +7 -0
- package/dist/{nl-NL-DR5SCDAF.js → nl-NL-CwNBy0Ku.js} +2 -2
- package/dist/{nl-NL-7kT4I7Tj.js → nl-NL-_hbzuQ0h.js} +16 -2
- package/dist/{no-NO-BoEKDB8U.js → no-NO-B_ijkAtf.js} +16 -2
- package/dist/{no-NO-P8SZ1t-h.js → no-NO-VqkeNhzB.js} +2 -2
- package/dist/no-NO-vgzpp44v.js +7 -0
- package/dist/{pl-PL-BY6KUTBO.js → pl-PL-Bp218jDD.js} +2 -2
- package/dist/pl-PL-DgDSRVmp.js +7 -0
- package/dist/{pl-PL-B6DeEX-m.js → pl-PL-u6DrL8IY.js} +16 -2
- package/dist/{processValidationErrors-CjsNfiRK.js → processValidationErrors-DsZ6_OXy.js} +2 -2
- package/dist/pt-BR-BaKp-J8F.js +7 -0
- package/dist/{pt-BR-CsQI9W3I.js → pt-BR-CPS77pGy.js} +16 -2
- package/dist/{pt-BR-CrLCMcSz2.js → pt-BR-CPbFPNwq2.js} +2 -2
- package/dist/{pt-PT-DDYnXawl.js → pt-PT-Bz39smeX.js} +2 -2
- package/dist/{pt-PT-i_EH0CM6.js → pt-PT-DIKqQR6V.js} +16 -2
- package/dist/pt-PT-Df48oeP5.js +7 -0
- package/dist/{resolveEnvironment-CAymXEQ9.js → resolveEnvironment-g21Gu4Y_.js} +38 -39
- package/dist/ro-RO-CTMsv_EY.js +7 -0
- package/dist/{ro-RO-B7CJDsKz.js → ro-RO-Cg1nG9ns.js} +16 -2
- package/dist/{ro-RO-BA5GhaCE.js → ro-RO-jNItoBZk.js} +2 -2
- package/dist/{roleMetadata-Dm1FVuPT.js → roleMetadata-CQeuOFRE.js} +1 -1
- package/dist/{sk-SK-NU95U8E2.js → sk-SK-CRfiVN3e.js} +16 -2
- package/dist/{sk-SK-BeNF_m_j.js → sk-SK-CsSqXqf_.js} +2 -2
- package/dist/sk-SK-oqO5I3Aw.js +7 -0
- package/dist/sl-SI-CQhJFnpj.js +7 -0
- package/dist/{sl-SI-B6Kv1DgA.js → sl-SI-Dpr3StsS.js} +16 -2
- package/dist/{sl-SI-Bxu4m_5e.js → sl-SI-PRqWis0E.js} +2 -2
- package/dist/style.css +965 -704
- package/dist/styles-DYaAeu4q.js +965 -704
- package/dist/{sv-SE-DKTrk_eI.js → sv-SE-CH4wMrUZ.js} +16 -2
- package/dist/sv-SE-CmevESLi.js +7 -0
- package/dist/{sv-SE-B-CXDaXM.js → sv-SE-Dv-rMOdB.js} +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/WorkflowEndState/WorkflowEndState.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/context/WorkflowContext/WorkflowContextProvider.d.ts +2 -0
- package/dist/types/api/createLegalEntity/createLegalEntity.types.d.ts +3 -0
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +14 -11
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +10 -30
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +80 -66
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +15 -15
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +0 -3
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +524 -7805
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +1 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +22 -5
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -0
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/GlobalEntry/companySearchStore.d.ts +22 -0
- package/dist/types/components/GlobalEntry/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +20 -0
- package/dist/types/components/GlobalEntry/forms/BusinessSelection/BusinessSelection.d.ts +3 -0
- package/dist/types/components/GlobalEntry/forms/BusinessSelection/types.d.ts +8 -0
- package/dist/types/components/GlobalEntry/hooks/useCompanySearchNextClickOverrides.d.ts +26 -0
- package/dist/types/components/GlobalEntry/modals/LegalArrangementModal.d.ts +10 -0
- package/dist/types/components/GlobalEntry/modals/RegistrationNumberMismatchModal.d.ts +16 -0
- package/dist/types/components/GlobalEntry/modals/TinMismatchModal.d.ts +6 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +3 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +2 -0
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils/applyVerifiedCompanyData.d.ts +19 -0
- package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +1 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +12 -10
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualGettingStarted/IndividualGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualGettingStarted/IndividualGettingStartedModalContent.d.ts +1 -0
- package/dist/types/components/Shared/fields/Name/validate.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/validate.formats.d.ts +1 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -1
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -1
- package/dist/types/context/SettingsContext/types.d.ts +0 -2
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -1
- package/dist/types/embeds/baseEmbedProps.d.ts +3 -0
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +1 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +1 -1
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +1 -1
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
- package/dist/types/embeds/onboarding-workflow/adyen-onboarding-workflow.d.ts +1 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +1 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +1 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +1 -1
- package/dist/types/utils/decodeJwt.d.ts +0 -5
- package/dist/types/utils/genUtils.d.ts +0 -9
- package/dist/types/utils/getProps.d.ts +0 -8
- package/dist/{types-Cwq1JAWT.js → types-B28r2lAW.js} +1 -2
- package/dist/{useBusinessDetailsData-sWGe796Y.js → useBusinessDetailsData-FHWhosZj.js} +69 -413
- package/dist/{useCanSeeIntroduction-DQbanJNE.js → useCanSeeIntroduction-X0L-NhMZ.js} +1 -1
- package/dist/{useDataset-CdLBLq98.js → useDataset-BMitsLFp.js} +1 -1
- package/dist/{useForm-CWrbJG44.js → useForm-BFeaSvlP.js} +1 -1
- package/dist/{useMultiForm-BxASst0O.js → useMultiForm-CM3lpilP.js} +1 -1
- package/dist/{useNavigate-n4tia10x.js → useNavigate-BqrdWTzq.js} +32 -32
- package/dist/{useSalesChannels-B06_h460.js → useSalesChannels-huIL6Dhk.js} +1 -1
- package/dist/{useTrustMembers-DtOJPaaV.js → useTrustMembers-CurK1nMF.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-CxDZCOte.js → useUnincorporatedPartnershipMembers-DLGY4jqB.js} +1 -1
- package/dist/{utils-CJcGZvj1.js → utils-D8pwjFm5.js} +1 -1
- package/dist/{utils-Ck_mZapQ.js → utils-Dnwr-Kc0.js} +207 -207
- package/dist/{utils-BWumuCvl.js → utils-lIizXlcC.js} +1 -1
- package/dist/validate-C1ZPhUgV.js +443 -0
- package/dist/{validate-D-l4YRka.js → validate-D8sQbtil.js} +1 -1
- package/dist/{validate-BCNnfwPW.js → validate-k6dACmjX.js} +2 -2
- package/dist/{validate-96E_RrNB.js → validate-t6pT7AaZ.js} +2 -2
- package/dist/{validateExtractionResult-D3d0xx90.js → validateExtractionResult-D41PgEa-.js} +2 -2
- package/dist/{validationError-DV6t8Ubb.js → validationError-CLDQ0Qwt.js} +2 -2
- package/package.json +1 -1
- package/dist/bg-BG-B2xaZ3wB.js +0 -7
- package/dist/cs-CZ-ywYpJk1F.js +0 -7
- package/dist/da-DK-DH5YNYFM.js +0 -7
- package/dist/de-DE-vdy64knk.js +0 -7
- package/dist/el-GR-ChapyKa7.js +0 -7
- package/dist/en-US-B7HQdrn_.js +0 -7
- package/dist/es-ES-DCUvAmKI.js +0 -7
- package/dist/es-LA-ChRHGYJP.js +0 -7
- package/dist/et-EE-HHgM0CfO.js +0 -7
- package/dist/fi-FI-DCYPQ6vS.js +0 -7
- package/dist/fr-FR-BzyefnBh.js +0 -7
- package/dist/hr-HR-6Wj5Tf60.js +0 -7
- package/dist/hu-HU-Bwm4UqZz.js +0 -7
- package/dist/it-IT-DgRuEpeD.js +0 -7
- package/dist/ja-JP--tMJF7eu.js +0 -7
- package/dist/lt-LT-DqtpAjOg.js +0 -7
- package/dist/lv-LV-ZmyUvPst.js +0 -7
- package/dist/nl-NL-CePL3t7P.js +0 -7
- package/dist/no-NO-DGCfRiU8.js +0 -7
- package/dist/pl-PL-D-s-JI6X.js +0 -7
- package/dist/pt-BR-BvNR77Ru.js +0 -7
- package/dist/pt-PT-qAzFgjvF.js +0 -7
- package/dist/ro-RO-B3Fcn95o.js +0 -7
- package/dist/sk-SK-CcoUWnJ4.js +0 -7
- package/dist/sl-SI-DxomO9JQ.js +0 -7
- package/dist/sv-SE-BzPNBHOj.js +0 -7
- package/dist/validate-DKwCZSlM.js +0 -178
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c5e98955-1bf2-4032-aa03-ebd853d96cde", e._sentryDebugIdIdentifier = "sentry-dbid-c5e98955-1bf2-4032-aa03-ebd853d96cde");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as FeatureNames } from "./types-CZAHRt31.js";
|
|
6
6
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
@@ -26,37 +26,37 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/router/routeConfig.ts
|
|
29
|
-
var Introduction = lazy(async () => (await import("./Introduction-
|
|
30
|
-
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-
|
|
31
|
-
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-
|
|
32
|
-
var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-
|
|
33
|
-
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-
|
|
34
|
-
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-
|
|
35
|
-
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-
|
|
36
|
-
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-
|
|
37
|
-
var Review = lazy(async () => (await import("./Review-
|
|
38
|
-
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-
|
|
39
|
-
var AcceptTermsOfService = lazy(async () => (await import("./TermsOfServiceManagement-
|
|
40
|
-
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-
|
|
41
|
-
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-
|
|
42
|
-
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-
|
|
43
|
-
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-
|
|
44
|
-
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-
|
|
45
|
-
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-
|
|
46
|
-
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage
|
|
47
|
-
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-
|
|
48
|
-
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-
|
|
49
|
-
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
50
|
-
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
51
|
-
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
52
|
-
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
53
|
-
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-
|
|
54
|
-
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-
|
|
55
|
-
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-
|
|
56
|
-
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-
|
|
57
|
-
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-
|
|
58
|
-
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-
|
|
59
|
-
lazy(async () => (await import("./InvitedDecisionMakerComponent-
|
|
29
|
+
var Introduction = lazy(async () => (await import("./Introduction-CTVUoae1.js")).Introduction);
|
|
30
|
+
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-q5TVr4ET.js")).AdaptiveWorkflow);
|
|
31
|
+
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-DiZhzyXz.js")).BusinessTypeSelectionPage);
|
|
32
|
+
var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-C2vMcR6i.js")).GlobalEntryPage);
|
|
33
|
+
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-GiZOYWUI.js")).SingpassSelection);
|
|
34
|
+
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-B19onnyG.js")).AccountSetupRejected);
|
|
35
|
+
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-B2dpzHQ-.js")).DecisionMakers);
|
|
36
|
+
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-DVMEfZdZ.js")).CustomerSupport);
|
|
37
|
+
var Review = lazy(async () => (await import("./Review-CGI0RQO6.js")).Review);
|
|
38
|
+
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-B1kmyOe5.js").then((n) => n.n)).SignPCIComponent);
|
|
39
|
+
var AcceptTermsOfService = lazy(async () => (await import("./TermsOfServiceManagement-BnyyCgPN.js").then((n) => n.n)).TermsOfServiceManagement);
|
|
40
|
+
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-DAdIs3_N.js")).TaxReportingDropin);
|
|
41
|
+
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-BTBHMzw7.js")).PayoutDetailsPage);
|
|
42
|
+
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-BswHBSIN.js")).RootBusinessDetailsPage);
|
|
43
|
+
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-BQxhfHmx.js")).RootBusinessLinesPage);
|
|
44
|
+
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-D84M0iEW.js")).SoleProprietorshipPage);
|
|
45
|
+
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-taBHdjIB.js")).TrustMemberCompanyPage);
|
|
46
|
+
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-DdwlWwLJ.js")).TrustMemberIndividualPage);
|
|
47
|
+
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-DAeIxczv.js")).TrustMemberRoleAndTypePage);
|
|
48
|
+
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-Bb_rf907.js")).TrustMembersOverview);
|
|
49
|
+
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-oo1cNUHe.js")).UnincorporatedPartnershipMemberCompanyPage);
|
|
50
|
+
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-lWGiysru.js")).UnincorporatedPartnershipIndividualPage);
|
|
51
|
+
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-Cqus5hkL.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
|
|
52
|
+
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-hzs-FlQ0.js")).UnincorporatedPartnershipMembersOverview);
|
|
53
|
+
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-DlttycNJ.js")).BusinessFinancingPage);
|
|
54
|
+
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-CfjP1Q7K.js")).TrustDetailsPage);
|
|
55
|
+
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-B0SzrryD.js")).SourceOfFundsPage);
|
|
56
|
+
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-CFxtnnY4.js")).RootIndividualDetailsPage);
|
|
57
|
+
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-CYHPpiXJ.js")).LegalRepresentativeDetailsPage);
|
|
58
|
+
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-BUvvs6i9.js")).DecisionMakerDetailsPage);
|
|
59
|
+
lazy(async () => (await import("./InvitedDecisionMakerComponent-XVUjKp4X.js").then((n) => n.n)).InvitedDecisionMakerComponent);
|
|
60
60
|
var ROUTE_CONFIG = {
|
|
61
61
|
[TaskTypes.ADAPTIVE]: {
|
|
62
62
|
path: "/adaptive",
|
|
@@ -4,7 +4,7 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
|
|
6
6
|
import { t as useSettingsContext } from "./useSettingsContext-9O3Aqpfq.js";
|
|
7
|
-
import { t as SettingNames } from "./types-
|
|
7
|
+
import { t as SettingNames } from "./types-B28r2lAW.js";
|
|
8
8
|
import { t as useBusinessLines } from "./useBusinessLines-BhSN6qCH.js";
|
|
9
9
|
import { useMemo } from "preact/hooks";
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6e5e0b05-b8cf-43d0-b9a4-6fa01d48f1df", e._sentryDebugIdIdentifier = "sentry-dbid-6e5e0b05-b8cf-43d0-b9a4-6fa01d48f1df");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
6
6
|
import { t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "679465e5-77d0-4c0d-b71c-9b4f7defb156", e._sentryDebugIdIdentifier = "sentry-dbid-679465e5-77d0-4c0d-b71c-9b4f7defb156");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
6
6
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CY0grcyH.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "236a25ea-3eb0-4035-b1a8-2355787bbd4e", e._sentryDebugIdIdentifier = "sentry-dbid-236a25ea-3eb0-4035-b1a8-2355787bbd4e");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
@@ -1,20 +1,219 @@
|
|
|
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] = "cc76836f-e6d8-471c-9a02-f3f751f477c9", e._sentryDebugIdIdentifier = "sentry-dbid-cc76836f-e6d8-471c-9a02-f3f751f477c9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
7
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-W1FzWAVl.js";
|
|
9
|
+
import { n as businessRegistrationNumberMasks, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-Bd2bazr4.js";
|
|
10
|
+
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
11
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
|
|
9
12
|
import { n as mapSchemaFieldsToApiScriptLocalization, t as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-BCfkZo1y.js";
|
|
10
13
|
import { t as isEmpty } from "./isEmpty-Uewyl-r6.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as businessRegistrationNumberMasks, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-A08SLm03.js";
|
|
14
|
-
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
15
|
-
import { t as RadioGroup } from "./RadioGroup-Bf3DlQnZ.js";
|
|
14
|
+
import { t as Field } from "./Field-CBvXkDKh.js";
|
|
15
|
+
import { t as RadioGroup } from "./RadioGroup-CY33MT83.js";
|
|
16
16
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
17
17
|
import { jsx } from "preact/jsx-runtime";
|
|
18
|
+
//#region src/utils/businessUtils.ts
|
|
19
|
+
/**
|
|
20
|
+
* @description Countries in this list use the provider-backed company search flow.
|
|
21
|
+
* For these countries, business details can be prefilled from provider results,
|
|
22
|
+
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
23
|
+
* in addition to company name/registration details.
|
|
24
|
+
*
|
|
25
|
+
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
26
|
+
* If the api doesnt have a provider for that country, it will return no results like below
|
|
27
|
+
* ```
|
|
28
|
+
* {
|
|
29
|
+
* "results": [],
|
|
30
|
+
* "provider": "NO_PROVIDER"
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
35
|
+
CountryCodes.UnitedStates,
|
|
36
|
+
CountryCodes.UnitedKingdom,
|
|
37
|
+
CountryCodes.Germany,
|
|
38
|
+
CountryCodes.France
|
|
39
|
+
];
|
|
40
|
+
/**
|
|
41
|
+
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
42
|
+
*
|
|
43
|
+
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
44
|
+
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
45
|
+
* across form rules.
|
|
46
|
+
*
|
|
47
|
+
* Interpretation:
|
|
48
|
+
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
49
|
+
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
53
|
+
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
54
|
+
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
55
|
+
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
56
|
+
[CountryCodes.Denmark]: ["nonProfit"],
|
|
57
|
+
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
58
|
+
[CountryCodes.Germany]: [
|
|
59
|
+
"governmentalOrganization",
|
|
60
|
+
"nonProfit",
|
|
61
|
+
"soleProprietorship"
|
|
62
|
+
],
|
|
63
|
+
[CountryCodes.HongKong]: [
|
|
64
|
+
"privateCompany",
|
|
65
|
+
"nonProfit",
|
|
66
|
+
"listedPublicCompany",
|
|
67
|
+
"unlistedPublicCompany",
|
|
68
|
+
"governmentalOrganization",
|
|
69
|
+
"partnershipIncorporated",
|
|
70
|
+
"associationIncorporated"
|
|
71
|
+
],
|
|
72
|
+
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
73
|
+
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
74
|
+
[CountryCodes.NewZealand]: [],
|
|
75
|
+
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
76
|
+
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
77
|
+
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
81
|
+
*
|
|
82
|
+
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
83
|
+
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
84
|
+
* for all company types in that country; it is then available only when at least one
|
|
85
|
+
* non-sole-proprietorship type is eligible.
|
|
86
|
+
*
|
|
87
|
+
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
88
|
+
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
89
|
+
*/
|
|
90
|
+
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
91
|
+
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
92
|
+
if (!allowedCompanyTypes) return false;
|
|
93
|
+
if (allowedCompanyTypes.length === 0) return true;
|
|
94
|
+
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
95
|
+
};
|
|
96
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
97
|
+
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
98
|
+
CountryCodes.HongKong,
|
|
99
|
+
CountryCodes.Mexico,
|
|
100
|
+
CountryCodes.PuertoRico,
|
|
101
|
+
CountryCodes.UnitedStates
|
|
102
|
+
];
|
|
103
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
104
|
+
/**
|
|
105
|
+
* Also used to determine what documenttype needs to be used
|
|
106
|
+
* when uploading tax document in mapping.ts
|
|
107
|
+
* */
|
|
108
|
+
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
109
|
+
CountryCodes.Australia,
|
|
110
|
+
CountryCodes.Canada,
|
|
111
|
+
CountryCodes.Gibraltar,
|
|
112
|
+
CountryCodes.HongKong,
|
|
113
|
+
CountryCodes.NewZealand,
|
|
114
|
+
CountryCodes.PuertoRico,
|
|
115
|
+
CountryCodes.Singapore,
|
|
116
|
+
CountryCodes.UnitedStates,
|
|
117
|
+
CountryCodes.Guernsey,
|
|
118
|
+
CountryCodes.Jersey,
|
|
119
|
+
CountryCodes.IsleOfMan,
|
|
120
|
+
CountryCodes.Mexico,
|
|
121
|
+
CountryCodes.Brazil,
|
|
122
|
+
CountryCodes.Japan
|
|
123
|
+
];
|
|
124
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
125
|
+
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
126
|
+
CountryCodes.Austria,
|
|
127
|
+
CountryCodes.Belgium,
|
|
128
|
+
CountryCodes.Croatia,
|
|
129
|
+
CountryCodes.Cyprus,
|
|
130
|
+
CountryCodes.Estonia,
|
|
131
|
+
CountryCodes.Finland,
|
|
132
|
+
CountryCodes.France,
|
|
133
|
+
CountryCodes.Germany,
|
|
134
|
+
CountryCodes.Greece,
|
|
135
|
+
CountryCodes.Ireland,
|
|
136
|
+
CountryCodes.Italy,
|
|
137
|
+
CountryCodes.Latvia,
|
|
138
|
+
CountryCodes.Lithuania,
|
|
139
|
+
CountryCodes.Luxembourg,
|
|
140
|
+
CountryCodes.Malta,
|
|
141
|
+
CountryCodes.Netherlands,
|
|
142
|
+
CountryCodes.Portugal,
|
|
143
|
+
CountryCodes.Slovakia,
|
|
144
|
+
CountryCodes.Slovenia,
|
|
145
|
+
CountryCodes.Spain,
|
|
146
|
+
CountryCodes.UnitedKingdom
|
|
147
|
+
];
|
|
148
|
+
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
149
|
+
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
150
|
+
CountryCodes.Austria,
|
|
151
|
+
CountryCodes.Belgium,
|
|
152
|
+
CountryCodes.Croatia,
|
|
153
|
+
CountryCodes.Cyprus,
|
|
154
|
+
CountryCodes.Germany,
|
|
155
|
+
CountryCodes.Greece,
|
|
156
|
+
CountryCodes.Ireland,
|
|
157
|
+
CountryCodes.Luxembourg,
|
|
158
|
+
CountryCodes.Malta,
|
|
159
|
+
CountryCodes.Netherlands,
|
|
160
|
+
CountryCodes.Slovakia,
|
|
161
|
+
CountryCodes.Slovenia
|
|
162
|
+
];
|
|
163
|
+
/**
|
|
164
|
+
* Sole proprietorship specific rules
|
|
165
|
+
*/
|
|
166
|
+
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
167
|
+
CountryCodes.Australia,
|
|
168
|
+
CountryCodes.Gibraltar,
|
|
169
|
+
CountryCodes.Guernsey,
|
|
170
|
+
CountryCodes.HongKong,
|
|
171
|
+
CountryCodes.Ireland,
|
|
172
|
+
CountryCodes.IsleOfMan,
|
|
173
|
+
CountryCodes.Jersey,
|
|
174
|
+
CountryCodes.Malta,
|
|
175
|
+
CountryCodes.Mexico,
|
|
176
|
+
CountryCodes.PuertoRico,
|
|
177
|
+
CountryCodes.Spain,
|
|
178
|
+
CountryCodes.UnitedKingdom,
|
|
179
|
+
CountryCodes.UnitedStates
|
|
180
|
+
];
|
|
181
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
182
|
+
CountryCodes.Canada,
|
|
183
|
+
CountryCodes.PuertoRico,
|
|
184
|
+
CountryCodes.UnitedStates
|
|
185
|
+
];
|
|
186
|
+
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
187
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
188
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
189
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS && taskType !== TaskTypes.GLOBAL_ENTRY) return false;
|
|
190
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
194
|
+
* derived from the roman one, so they travel beside it as script localizations.
|
|
195
|
+
*
|
|
196
|
+
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
197
|
+
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
198
|
+
*/
|
|
199
|
+
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
200
|
+
script,
|
|
201
|
+
fields: { legalName: fields.legalCompanyName }
|
|
202
|
+
}));
|
|
203
|
+
/**
|
|
204
|
+
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
205
|
+
* prefill the fields they came from.
|
|
206
|
+
*
|
|
207
|
+
* @param localization the organization's script localizations, when it has any
|
|
208
|
+
*/
|
|
209
|
+
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
210
|
+
...schemaFields,
|
|
211
|
+
...mapApiScriptLocalizationToSchemaFields({
|
|
212
|
+
script,
|
|
213
|
+
fields: { legalCompanyName: fields?.legalName }
|
|
214
|
+
})
|
|
215
|
+
}), {});
|
|
216
|
+
//#endregion
|
|
18
217
|
//#region src/components/Shared/fields/TaxInformationField/taxIdNumberTypes.ts
|
|
19
218
|
var restrictedEntityTypes = [
|
|
20
219
|
"soleProprietorship",
|
|
@@ -426,205 +625,6 @@ function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
|
426
625
|
return validCompanyTypes.length > 0 ? validCompanyTypes : void 0;
|
|
427
626
|
}
|
|
428
627
|
//#endregion
|
|
429
|
-
//#region src/utils/businessUtils.ts
|
|
430
|
-
/**
|
|
431
|
-
* @description Countries in this list use the provider-backed company search flow.
|
|
432
|
-
* For these countries, business details can be prefilled from provider results,
|
|
433
|
-
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
434
|
-
* in addition to company name/registration details.
|
|
435
|
-
*
|
|
436
|
-
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
437
|
-
* If the api doesnt have a provider for that country, it will return no results like below
|
|
438
|
-
* ```
|
|
439
|
-
* {
|
|
440
|
-
* "results": [],
|
|
441
|
-
* "provider": "NO_PROVIDER"
|
|
442
|
-
* }
|
|
443
|
-
* ```
|
|
444
|
-
*/
|
|
445
|
-
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
446
|
-
CountryCodes.UnitedStates,
|
|
447
|
-
CountryCodes.UnitedKingdom,
|
|
448
|
-
CountryCodes.Germany,
|
|
449
|
-
CountryCodes.France
|
|
450
|
-
];
|
|
451
|
-
/**
|
|
452
|
-
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
453
|
-
*
|
|
454
|
-
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
455
|
-
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
456
|
-
* across form rules.
|
|
457
|
-
*
|
|
458
|
-
* Interpretation:
|
|
459
|
-
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
460
|
-
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
461
|
-
*
|
|
462
|
-
*/
|
|
463
|
-
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
464
|
-
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
465
|
-
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
466
|
-
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
467
|
-
[CountryCodes.Denmark]: ["nonProfit"],
|
|
468
|
-
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
469
|
-
[CountryCodes.Germany]: [
|
|
470
|
-
"governmentalOrganization",
|
|
471
|
-
"nonProfit",
|
|
472
|
-
"soleProprietorship"
|
|
473
|
-
],
|
|
474
|
-
[CountryCodes.HongKong]: [
|
|
475
|
-
"privateCompany",
|
|
476
|
-
"nonProfit",
|
|
477
|
-
"listedPublicCompany",
|
|
478
|
-
"unlistedPublicCompany",
|
|
479
|
-
"governmentalOrganization",
|
|
480
|
-
"partnershipIncorporated",
|
|
481
|
-
"associationIncorporated"
|
|
482
|
-
],
|
|
483
|
-
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
484
|
-
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
485
|
-
[CountryCodes.NewZealand]: [],
|
|
486
|
-
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
487
|
-
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
488
|
-
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
489
|
-
};
|
|
490
|
-
/**
|
|
491
|
-
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
492
|
-
*
|
|
493
|
-
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
494
|
-
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
495
|
-
* for all company types in that country; it is then available only when at least one
|
|
496
|
-
* non-sole-proprietorship type is eligible.
|
|
497
|
-
*
|
|
498
|
-
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
499
|
-
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
500
|
-
*/
|
|
501
|
-
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
502
|
-
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
503
|
-
if (!allowedCompanyTypes) return false;
|
|
504
|
-
if (allowedCompanyTypes.length === 0) return true;
|
|
505
|
-
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
506
|
-
};
|
|
507
|
-
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
508
|
-
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
509
|
-
CountryCodes.HongKong,
|
|
510
|
-
CountryCodes.Mexico,
|
|
511
|
-
CountryCodes.PuertoRico,
|
|
512
|
-
CountryCodes.UnitedStates
|
|
513
|
-
];
|
|
514
|
-
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
515
|
-
/**
|
|
516
|
-
* Also used to determine what documenttype needs to be used
|
|
517
|
-
* when uploading tax document in mapping.ts
|
|
518
|
-
* */
|
|
519
|
-
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
520
|
-
CountryCodes.Australia,
|
|
521
|
-
CountryCodes.Canada,
|
|
522
|
-
CountryCodes.Gibraltar,
|
|
523
|
-
CountryCodes.HongKong,
|
|
524
|
-
CountryCodes.NewZealand,
|
|
525
|
-
CountryCodes.PuertoRico,
|
|
526
|
-
CountryCodes.Singapore,
|
|
527
|
-
CountryCodes.UnitedStates,
|
|
528
|
-
CountryCodes.Guernsey,
|
|
529
|
-
CountryCodes.Jersey,
|
|
530
|
-
CountryCodes.IsleOfMan,
|
|
531
|
-
CountryCodes.Mexico,
|
|
532
|
-
CountryCodes.Brazil,
|
|
533
|
-
CountryCodes.Japan
|
|
534
|
-
];
|
|
535
|
-
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
536
|
-
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
537
|
-
CountryCodes.Austria,
|
|
538
|
-
CountryCodes.Belgium,
|
|
539
|
-
CountryCodes.Croatia,
|
|
540
|
-
CountryCodes.Cyprus,
|
|
541
|
-
CountryCodes.Estonia,
|
|
542
|
-
CountryCodes.Finland,
|
|
543
|
-
CountryCodes.France,
|
|
544
|
-
CountryCodes.Germany,
|
|
545
|
-
CountryCodes.Greece,
|
|
546
|
-
CountryCodes.Ireland,
|
|
547
|
-
CountryCodes.Italy,
|
|
548
|
-
CountryCodes.Latvia,
|
|
549
|
-
CountryCodes.Lithuania,
|
|
550
|
-
CountryCodes.Luxembourg,
|
|
551
|
-
CountryCodes.Malta,
|
|
552
|
-
CountryCodes.Netherlands,
|
|
553
|
-
CountryCodes.Portugal,
|
|
554
|
-
CountryCodes.Slovakia,
|
|
555
|
-
CountryCodes.Slovenia,
|
|
556
|
-
CountryCodes.Spain,
|
|
557
|
-
CountryCodes.UnitedKingdom
|
|
558
|
-
];
|
|
559
|
-
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
560
|
-
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
561
|
-
CountryCodes.Austria,
|
|
562
|
-
CountryCodes.Belgium,
|
|
563
|
-
CountryCodes.Croatia,
|
|
564
|
-
CountryCodes.Cyprus,
|
|
565
|
-
CountryCodes.Germany,
|
|
566
|
-
CountryCodes.Greece,
|
|
567
|
-
CountryCodes.Ireland,
|
|
568
|
-
CountryCodes.Luxembourg,
|
|
569
|
-
CountryCodes.Malta,
|
|
570
|
-
CountryCodes.Netherlands,
|
|
571
|
-
CountryCodes.Slovakia,
|
|
572
|
-
CountryCodes.Slovenia
|
|
573
|
-
];
|
|
574
|
-
/**
|
|
575
|
-
* Sole proprietorship specific rules
|
|
576
|
-
*/
|
|
577
|
-
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
578
|
-
CountryCodes.Australia,
|
|
579
|
-
CountryCodes.Gibraltar,
|
|
580
|
-
CountryCodes.Guernsey,
|
|
581
|
-
CountryCodes.HongKong,
|
|
582
|
-
CountryCodes.Ireland,
|
|
583
|
-
CountryCodes.IsleOfMan,
|
|
584
|
-
CountryCodes.Jersey,
|
|
585
|
-
CountryCodes.Malta,
|
|
586
|
-
CountryCodes.Mexico,
|
|
587
|
-
CountryCodes.PuertoRico,
|
|
588
|
-
CountryCodes.Spain,
|
|
589
|
-
CountryCodes.UnitedKingdom,
|
|
590
|
-
CountryCodes.UnitedStates
|
|
591
|
-
];
|
|
592
|
-
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
593
|
-
CountryCodes.Canada,
|
|
594
|
-
CountryCodes.PuertoRico,
|
|
595
|
-
CountryCodes.UnitedStates
|
|
596
|
-
];
|
|
597
|
-
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
598
|
-
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
599
|
-
var isUsingCompanySearch = (country, taskType) => {
|
|
600
|
-
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
601
|
-
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
602
|
-
};
|
|
603
|
-
/**
|
|
604
|
-
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
605
|
-
* derived from the roman one, so they travel beside it as script localizations.
|
|
606
|
-
*
|
|
607
|
-
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
608
|
-
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
609
|
-
*/
|
|
610
|
-
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
611
|
-
script,
|
|
612
|
-
fields: { legalName: fields.legalCompanyName }
|
|
613
|
-
}));
|
|
614
|
-
/**
|
|
615
|
-
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
616
|
-
* prefill the fields they came from.
|
|
617
|
-
*
|
|
618
|
-
* @param localization the organization's script localizations, when it has any
|
|
619
|
-
*/
|
|
620
|
-
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
621
|
-
...schemaFields,
|
|
622
|
-
...mapApiScriptLocalizationToSchemaFields({
|
|
623
|
-
script,
|
|
624
|
-
fields: { legalCompanyName: fields?.legalName }
|
|
625
|
-
})
|
|
626
|
-
}), {});
|
|
627
|
-
//#endregion
|
|
628
628
|
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
629
629
|
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
630
630
|
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
@@ -1752,4 +1752,4 @@ function removeTaxInfoForCountry(taxInformation, country) {
|
|
|
1752
1752
|
return taxInformation?.filter((t) => t.country !== country);
|
|
1753
1753
|
}
|
|
1754
1754
|
//#endregion
|
|
1755
|
-
export {
|
|
1755
|
+
export { mapLocalizationToJapaneseLegalNames as A, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as C, isRegistrationNumberAbsentStateV4Scenario as D, isRegistrationExemptionAllowed as E, isUsingCompanySearch as O, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as S, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as T, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as _, exemptedFromTaxDefaultFieldConfig as a, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as b, taxInformationDefaultFieldConfig as c, getTaxIdNumberSelectorOptions as d, getValidCompanyTypesForTaxIdNumberType as f, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as g, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as h, findExistingTaxInformation as i, mapJapaneseLegalNamesToLocalization as k, taxInformationDefaultFieldMetadata as l, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as m, upsertTaxInfoForCountry as n, exemptedFromTaxDefaultFieldMetadata as o, taxIdNumberOptions as p, TaxIdNumberTypeSelector as r, getTaxInformationPlaceholderText as s, removeTaxInfoForCountry as t, getTaxIdNumberOptions as u, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as v, REGISTRATION_NUMBER_EXEMPTION_RULES as w, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as x, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c9a4dd42-63c8-4e94-bafe-fa065cb20d2f", e._sentryDebugIdIdentifier = "sentry-dbid-c9a4dd42-63c8-4e94-bafe-fa065cb20d2f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
6
6
|
import { r as summaryItem } from "./summaryItem-uDWmtYtt.js";
|