@adyen/kyc-components 4.30.0-beta.1 → 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-BHSmGpf2.js → AcceptTermsOfServiceWorkflow-BOmFS_f2.js} +4 -4
- package/dist/{Accordion-S_jsZpAF.js → Accordion-C0gcRu_3.js} +1 -1
- package/dist/{AccountSetupRejected-CTHJDTS5.js → AccountSetupRejected-CJ8m2ewF.js} +1 -1
- package/dist/{AdaptiveWorkflow-CdsbZOFS.js → AdaptiveWorkflow-B-oqoHeb.js} +28 -26
- package/dist/{AdaptiveWorkflowComponent-C1H2dAWi.js → AdaptiveWorkflowComponent-e4G7C8R2.js} +59 -100
- package/dist/{Address-BeQhmlZ-.js → Address-CrSN0Tzc.js} +10 -10
- package/dist/{AddressFieldGroup-DwYXcGac.js → AddressFieldGroup-Db1QLqMr.js} +6 -6
- package/dist/{Avatar-BJuZToXf.js → Avatar-DTJuz0ck.js} +1 -1
- package/dist/{BusinessFinancingDropin-DKdIfGih.js → BusinessFinancingDropin-DTz8n3Ww.js} +28 -28
- package/dist/{BusinessFinancingPage-QL7dTUXs.js → BusinessFinancingPage-C5lmo9pM.js} +30 -30
- package/dist/{BusinessRegistrationNumberField-y5xee1gZ.js → BusinessRegistrationNumberField-tL50O1WX.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-DqEKc1mL.js → BusinessRegistrationNumberFieldGroup-BUiYV6Uu.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-BMemYzmi.js → BusinessTypeSelectionPage-B5De7rfw.js} +14 -14
- package/dist/{Button-vp4Z9L5X.js → Button-DWI7t80R.js} +1 -1
- package/dist/{Checkbox-DKecA5LE.js → Checkbox-JHnvTPme.js} +2 -2
- package/dist/{CheckboxField-ClVJ5HR4.js → CheckboxField-DXFOPJrL.js} +3 -3
- package/dist/{ComponentGroup-C7tMPjsP.js → ComponentGroup-DwE_5uMn.js} +2 -2
- package/dist/{ConstitutionalDocument-DrmJf1cc.js → ConstitutionalDocument-GafuUs3Y.js} +51 -513
- package/dist/{ContactDetails-CIsBmEsI.js → ContactDetails-cOh28MdB.js} +5 -5
- package/dist/{ContextGuidance-CMCuX0bj.js → ContextGuidance-U6wXQ-Ch.js} +2 -2
- package/dist/{CountryField-CWyz2qBG.js → CountryField-DZmQcAi-.js} +4 -4
- package/dist/{Currency-Bu05_9Cr.js → Currency-CyQoyBs9.js} +7 -7
- package/dist/{CustomerSupport-Ba60Sz1q.js → CustomerSupport-CbTT3DAY.js} +17 -17
- package/dist/{DateField-CE9ddDiq.js → DateField-DQfDHqGW.js} +4 -4
- package/dist/{DebugModal-Dxo7XAWq.js → DebugModal-DEeDJsLE.js} +11 -11
- package/dist/{DecisionMakerDetails-DNma_biD.js → DecisionMakerDetails-BhgwAr3w.js} +15 -15
- package/dist/{DecisionMakerDetailsPage-3ZfcqXZc.js → DecisionMakerDetailsPage-zpiPnMIY.js} +11 -11
- package/dist/{DecisionMakers-DTuqQwci.js → DecisionMakers-vCoPfum5.js} +20 -20
- package/dist/{Dropzone-DyLzjmBe.js → Dropzone-CnJdk_vt.js} +7 -7
- package/dist/{EmailField-gYtyTDft.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-c2cmD5C0.js → EntityAssociation-BnEWmsAe.js} +5 -5
- package/dist/{ErrorPanel-yg1KWBCY.js → ErrorPanel-Bt2zTiVE.js} +4 -4
- package/dist/{GlobalEntryModal-CwY5jx6R.js → GlobalEntryModal-D3KEdn1-.js} +168 -223
- package/dist/{GlobalEntryPage-QfmbhGhL.js → GlobalEntryPage-sUKU-Btr.js} +8 -8
- package/dist/{Icon-BUUfrhKE.js → Icon-De8AgnGr.js} +1 -1
- package/dist/{IdentityNumber-CczL3icM.js → IdentityNumber-BNTInuKv.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-DsRyXH8w.js → IdentityNumberFieldGroup-BEznv21B.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-B05X2zmu.js → IdentityScreeningWorkflow-DhgqWJPy.js} +13 -13
- package/dist/{IndividualDropin-no4DjRxl.js → IndividualDropin-EajqrO6O.js} +42 -42
- package/dist/{IndustryCodeFieldGroup-CTyvqVFT.js → IndustryCodeFieldGroup-BiKWrwG_.js} +5 -5
- package/dist/{InputDate-BC49PX_b.js → InputDate-ByJHx9x7.js} +1 -1
- package/dist/{Introduction-BGfrZq7D.js → Introduction-BsL57nta.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-CkyjBd5W.js → InvitedDecisionMakerComponent-D1-Ul-td.js} +65 -65
- package/dist/{JpAddress-4jgn4BoH.js → JpAddress-CvS6Innz.js} +8 -8
- package/dist/{LegalCompanyNameField-CdgS3KWO.js → LegalCompanyNameField-D9idZiSu.js} +11 -11
- package/dist/{LegalRepresentativeDetailsPage-BNJpEJdH.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--EWDbl62.js → Name-BBqe5gUi.js} +3 -3
- package/dist/{NumberField-xuZU4gWX.js → NumberField-Cfuo-rcN.js} +4 -4
- package/dist/{PatriotActDisclosure-C8Q2P0VF.js → PatriotActDisclosure-oAXYq-jJ.js} +10 -10
- package/dist/{PayoutDetailsDropin-CmOPtr7I.js → PayoutDetailsDropin-BDoB1gy1.js} +29 -29
- package/dist/{PayoutDetailsPage-CGk9VU_P.js → PayoutDetailsPage-Cc4_w-2-.js} +6 -6
- package/dist/{PhoneField-CyPKYraF.js → PhoneField-ARTyYgWE.js} +4 -4
- package/dist/{PhoneNumberFieldGroup-CQb8jlnJ.js → PhoneNumberFieldGroup-DDvtSVKb.js} +4 -4
- package/dist/{RadioGroup-SGKrHedP.js → RadioGroup-T3-GTf8S.js} +2 -2
- package/dist/{Review-DBBX6Tzl.js → Review-D36nTWUI.js} +5 -5
- package/dist/{RootBusinessDetailsPage-Q6g_6YrL.js → RootBusinessDetailsPage-B3qjeFPi.js} +5 -5
- package/dist/{RootBusinessLinesPage-BWNF3W_S.js → RootBusinessLinesPage-DQvrpX3J.js} +24 -24
- package/dist/{RootIndividualDetailsPage-DOUih5TE.js → RootIndividualDetailsPage-Cp2Ai1KA.js} +8 -8
- package/dist/{Select-CMRrAFGD.js → Select-CffvApST.js} +4 -4
- package/dist/{SignPCIComponent-BSMVC46o.js → SignPCIComponent-BpHbgE2T.js} +66 -66
- package/dist/{SingpassSelection-CeyuaEUC.js → SingpassSelection-DRtQir20.js} +5 -5
- package/dist/{SingpassSelectionCTA-QVI_SPnZ.js → SingpassSelectionCTA-Cbpk58xO.js} +1 -1
- package/dist/{SoleProprietorshipPage-DXYDw5Ns.js → SoleProprietorshipPage-DsIiNL8Z.js} +6 -6
- package/dist/{SourceOfFundsPage-DIo0Mmow.js → SourceOfFundsPage-CjxfL8ku.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-BZ_tvbna.js → SourceOfFundsWorkflow-DPzP1fYl.js} +4 -4
- package/dist/{StateField-CzltvSFF.js → StateField-rhYSRgPZ.js} +4 -4
- package/dist/{Step-CYB6aRqy.js → Step-CeSDDtx8.js} +3 -3
- package/dist/{Summary-D8VzNzKX.js → Summary-BOPZrv9-.js} +1 -1
- package/dist/{SummarySection-CldYQGIg.js → SummarySection-DN7RIchf.js} +3 -3
- package/dist/{Task-CQ31gxqU.js → Task-CTvFHTXf.js} +7 -7
- package/dist/{TaskGroup-B89i_j20.js → TaskGroup-sR-LK6Gh.js} +2 -2
- package/dist/{TaskListItem-BxVrcwYu.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-Bv3_TAiN.js → TaxInformationField-DHhqCF-a.js} +7 -7
- package/dist/{TaxInformationFieldGroup-RrX2yAv5.js → TaxInformationFieldGroup-BkILOY2x.js} +6 -6
- package/dist/{TaxReportingDropin-CTg--9p_.js → TaxReportingDropin-C46YV9Pt.js} +16 -16
- package/dist/{TaxReportingWorkflow-DZv_9nep.js → TaxReportingWorkflow-BxbzI9wn.js} +4 -4
- package/dist/{TermsOfServiceManagement-C8AFvtaM.js → TermsOfServiceManagement-B2mg-L7j.js} +67 -67
- package/dist/{TextArea-CyswGmAQ.js → TextArea-CCKQviRj.js} +3 -3
- package/dist/{TextField-R41V4SyE.js → TextField-73k__CfA.js} +5 -5
- package/dist/{TrustDetailsPage-BhZuEiNP.js → TrustDetailsPage-Rv4wBxcB.js} +30 -29
- package/dist/{TrustMemberCompanyPage-D1z_xWys.js → TrustMemberCompanyPage-DGTDSWRR.js} +8 -8
- package/dist/{TrustMemberIndividualPage-CP1U5Xn4.js → TrustMemberIndividualPage-Dv2HZY_Y.js} +7 -7
- package/dist/{TrustMemberRoleAndTypePage-Ban1x-Ao.js → TrustMemberRoleAndTypePage-Dj4BEAMc.js} +23 -23
- package/dist/{TrustMembersOverview-wTGKh9eO.js → TrustMembersOverview-lBitwE7J.js} +18 -18
- package/dist/{UboTaskItem-rGEqaMWU.js → UboTaskItem-C7VS_u2t.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-bbeNpNjK.js → UnincorporatedPartnershipIndividualPage-Bsp72pvV.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-C46OA0jy.js → UnincorporatedPartnershipMemberCompanyPage-CQV1W0Il.js} +7 -7
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DMoZRxkg.js → UnincorporatedPartnershipMemberRoleAndTypePage-zQvIwB1w.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-I313EfEi.js → UnincorporatedPartnershipMembersOverview-BJmgOOCC.js} +9 -9
- package/dist/UpgradeWorkflowHarness-C6zNyNAY.js +343 -0
- package/dist/VatNumberField-DB8m0wwV.js +91 -0
- package/dist/{VerificationErrorAlert-BiCjcfjL.js → VerificationErrorAlert-JMzuKRFg.js} +2 -2
- package/dist/{WebsiteField-glKBVMNx.js → WebsiteField-BO3zqIoa.js} +5 -5
- package/dist/{Workflow-xWklBKEp.js → Workflow-CSl5dEle.js} +6 -6
- package/dist/WorkflowContextProvider-DeYgs5wy.js +50 -0
- package/dist/{accountHolderUtils-B9o-vtAY.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-DQnLPyfB.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-DZvObsB2.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-BX5DtEfh.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-D0sUoqoT.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-CRf8tP8K.js → fieldConfig-D_ze4riX.js} +2 -2
- package/dist/{formatDataForSummary-BeHY-w0l.js → formatDataForSummary-BwkDgVr0.js} +14 -14
- package/dist/{formatValidationError-B1YMU7p9.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-F5-wt95B.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-CfnPNvnH.js → getValidationError-vaT_A8DZ.js} +1 -1
- package/dist/{handleCompanyDataset-lBtScPz4.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-UHRUhCu5.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-DgYJJ8Nt.js → mapAddressLocalizationToJpAddressSchema-TVdxkgeI.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-CnLnpEi5.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-yathm2Kq.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-C4EmAAXo.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-DEvgBG1a.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-mfWC_OCp.js → unincorporatedPartnership-CAk8NeRm.js} +8 -8
- package/dist/{useBusinessDetailsData-yyRPzGxX.js → useBusinessDetailsData-B1YLuaNg.js} +205 -170
- package/dist/{useCanSeeIntroduction-B7k91pPa.js → useCanSeeIntroduction-I5nRjoyf.js} +3 -3
- package/dist/{useDataMissingRemediations-CiDQ9bWs.js → useDataMissingRemediations-BQsN40Ut.js} +2 -2
- package/dist/{useForm-fky37PsZ.js → useForm-CgIbTSF-.js} +3 -3
- package/dist/{useHideTaskStepper-BEWEJlrj.js → useHideTaskStepper-NxGjx00F.js} +1 -1
- package/dist/{useId-D33UkQzH.js → useId-DjQsMwwn.js} +3 -3
- package/dist/{useLegalEntity-XmloSXdF.js → useLegalEntity-BlicSpoi.js} +2 -2
- package/dist/{useNavigate-D_-1j3uu.js → useNavigate-CNujUq3N.js} +40 -35
- package/dist/{useSalesChannels-Dt4xZKSf.js → useSalesChannels-eKBtWAVg.js} +1 -1
- package/dist/{useSaveForLater-6Z0McXSm.js → useSaveForLater-BrR6SF98.js} +4 -4
- package/dist/{useTaskLandedEvent-ByPV8sX0.js → useTaskLandedEvent-B4N0fDSK.js} +1 -1
- package/dist/{useTrustMembers-DMSwzqc_.js → useTrustMembers-LQOhPauP.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-DxRoh9c7.js → useUnincorporatedPartnershipMembers-CCjQRxvK.js} +6 -6
- package/dist/{utils-D0n2UCLl.js → utils-BpgKY4PD.js} +1 -1
- package/dist/{utils-DDIXwUU8.js → utils-BsHIilEE.js} +2 -2
- package/dist/{utils-B03zqYHP.js → utils-Cm852wJo.js} +3 -3
- package/dist/{utils-CgOwebXJ.js → utils-D_4YJlrA.js} +1 -1
- package/dist/{validate-Ct4GGUvD.js → validate-B1TzDrrt.js} +12 -21
- package/dist/{validate-Bw6gDTd6.js → validate-Bp6T2dvm.js} +3 -3
- package/dist/{validate-ClHonwfI.js → validate-DBCoZpYi.js} +1 -1
- package/dist/{validate-Dn4dvqdh.js → validate-DjZ0CLLg.js} +3 -3
- package/dist/{validate.formats-BZ9uJteD.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
package/dist/{unincorporatedPartnership-mfWC_OCp.js → unincorporatedPartnership-CAk8NeRm.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
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] = "c183a94f-60ce-481c-9893-e42f2872e183", e._sentryDebugIdIdentifier = "sentry-dbid-c183a94f-60ce-481c-9893-e42f2872e183");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
6
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
9
9
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
10
|
-
import { T as dataMissingRemediationsToFieldsMap, h as businessDetailsApiKeyMapping, r as remediationHasFileUploadField, s as individualApiKeyMapping } from "./processCapabilities-
|
|
11
|
-
import { o as formDebugInfo } from "./RadioGroup-
|
|
10
|
+
import { T as dataMissingRemediationsToFieldsMap, h as businessDetailsApiKeyMapping, r as remediationHasFileUploadField, s as individualApiKeyMapping } from "./processCapabilities-CPLNSNGJ.js";
|
|
11
|
+
import { o as formDebugInfo } from "./RadioGroup-T3-GTf8S.js";
|
|
12
12
|
import { Suspense } from "preact/compat";
|
|
13
13
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
14
|
var LandingLayout_module_default = {
|
|
@@ -293,8 +293,8 @@ function getPropsFromConfigurations({ scenarioConfiguration, forms, remediationA
|
|
|
293
293
|
if (isFieldNeededToRemediateDataMissingError) reasons.push("Required to remediate dataMissing error");
|
|
294
294
|
const isRequiredByRemediationAction = !remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
295
295
|
const isOptionalByRemediationAction = remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
296
|
+
const isOptionalFieldPopulated = !isRequiredFromFieldConfig && formFieldsWithExistingData.includes(field);
|
|
297
|
+
if (isOptionalFieldPopulated) reasons.push("Optional because field is already populated");
|
|
298
298
|
const { isRequiredFromLinkedField, isOptionalFromLinkedField } = calculateLinkedRequiredFields({
|
|
299
299
|
field,
|
|
300
300
|
formId,
|
|
@@ -305,12 +305,12 @@ function getPropsFromConfigurations({ scenarioConfiguration, forms, remediationA
|
|
|
305
305
|
});
|
|
306
306
|
if (isRequiredFromLinkedField) reasons.push("Required by linked field");
|
|
307
307
|
if (isOptionalFromLinkedField) reasons.push("Optional by linked field");
|
|
308
|
-
const isRequired = (isRequiredFromFieldConfig || isRequiredByRemediationAction || isFieldNeededToRemediateDataMissingError ||
|
|
308
|
+
const isRequired = (isRequiredFromFieldConfig || isRequiredByRemediationAction || isFieldNeededToRemediateDataMissingError || isRequiredFromLinkedField) && !isOptionalFromLinkedField;
|
|
309
309
|
if (isRequired && !readonly.includes(field)) {
|
|
310
310
|
requiredFields[formId] = requiredFields[formId] ? [...requiredFields[formId], field] : [field];
|
|
311
311
|
allFields[formId] = allFields[formId] ? [...allFields[formId], field] : [field];
|
|
312
312
|
}
|
|
313
|
-
const isOptional = !isRequired && (isOptionalFromFieldConfig || isOptionalByRemediationAction || isOptionalFromLinkedField);
|
|
313
|
+
const isOptional = !isRequired && (isOptionalFromFieldConfig || isOptionalByRemediationAction || isOptionalFieldPopulated || isOptionalFromLinkedField);
|
|
314
314
|
if (isOptional) {
|
|
315
315
|
optionalFields[formId] = optionalFields[formId] ? [...optionalFields[formId], field] : [field];
|
|
316
316
|
allFields[formId] = allFields[formId] ? [...allFields[formId], field] : [field];
|
|
@@ -339,7 +339,7 @@ function getPropsFromConfigurations({ scenarioConfiguration, forms, remediationA
|
|
|
339
339
|
*/
|
|
340
340
|
var showRemediationField = (field, remediationActions) => remediationActions.some((rem) => rem.fields?.includes(field) && remediationHasFileUploadField(rem));
|
|
341
341
|
var makeTLDSFieldName = (formId, fieldName) => {
|
|
342
|
-
if (fieldName === "proofOfOrganizationTaxInfo") return `${formId}.taxDocument`;
|
|
342
|
+
if (fieldName === "proofOfOrganizationTaxInfo" || fieldName === "vatDocument") return `${formId}.taxDocument`;
|
|
343
343
|
return `${formId}.${fieldName}`;
|
|
344
344
|
};
|
|
345
345
|
var isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
|
|
@@ -1,78 +1,79 @@
|
|
|
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] = "87622f30-c77a-45da-8ee3-bcb4fcc9d9b9", e._sentryDebugIdIdentifier = "sentry-dbid-87622f30-c77a-45da-8ee3-bcb4fcc9d9b9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { A as useAllowedCountries, I as FeatureNames, N as Header, T as Alert,
|
|
6
|
+
import { A as useAllowedCountries, I as FeatureNames, N as Header, T as Alert, gt as useAccountHolder, k as datasetUtilities, lt as isUndefinedOrNull, ot as isEmpty, st as isISIN, vt as useVersionConfiguration } 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 } from "./http-62p0n9p6.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BlicSpoi.js";
|
|
13
13
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
14
|
import { a as objectsDeepEqual, n as doArraysMatch, o as entriesOf, s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
15
15
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
16
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
16
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-C0upgyS1.js";
|
|
17
17
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
18
18
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
19
|
-
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-
|
|
20
|
-
import { t as TaskTypes } from "./taskTypes-
|
|
21
|
-
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-
|
|
19
|
+
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-CPLNSNGJ.js";
|
|
20
|
+
import { t as TaskTypes } from "./taskTypes-DIxF6w12.js";
|
|
21
|
+
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-CRDwmwij.js";
|
|
22
22
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
23
|
-
import { i as useToggleContext, r as useDebouncedCallback, t as Checkbox } from "./Checkbox-
|
|
24
|
-
import { a as useAnalyticsContext, n as Modal, r as ModalContent } from "./useId-
|
|
23
|
+
import { i as useToggleContext, r as useDebouncedCallback, t as Checkbox } from "./Checkbox-JHnvTPme.js";
|
|
24
|
+
import { a as useAnalyticsContext, n as Modal, r as ModalContent } from "./useId-DjQsMwwn.js";
|
|
25
25
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
26
|
-
import { r as InputText, t as RadioGroup, u as SettingNames } from "./RadioGroup-
|
|
27
|
-
import { t as ListItem } from "./ListItem-
|
|
28
|
-
import { t as getFormSlice } from "./getFormSlice-
|
|
26
|
+
import { r as InputText, t as RadioGroup, u as SettingNames } from "./RadioGroup-T3-GTf8S.js";
|
|
27
|
+
import { t as ListItem } from "./ListItem-DRm59KnY.js";
|
|
28
|
+
import { t as getFormSlice } from "./getFormSlice-B-mNQVjl.js";
|
|
29
29
|
import { t as useBusinessLines } from "./useBusinessLines-BP2FMMue.js";
|
|
30
30
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
31
|
-
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
32
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-
|
|
33
|
-
import { o as Field, p as LoaderWrapper } from "./Select-
|
|
34
|
-
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-
|
|
35
|
-
import { a as
|
|
36
|
-
import { a as getKeyForField, d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, m as isEmpty$1, n as StateField, o as mapAddressLabels, p as isJapanLocalizationEnabled, r as stateFieldMetadata, s as addressFieldRule, t as STATE_FIELD } from "./StateField-
|
|
37
|
-
import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, H as FormContextProvider, I as useMultiForm, M as makeMask, O as uppercase, P as numericInputs, V as summaryStep, _ as mergeFieldMetadataIntoProps, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, k as alphaInputs, p as isValidationError, r as MaskedInput, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-
|
|
38
|
-
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, E as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, F as mapJapaneseLegalNamesToLocalization, H as taxIdNumberOptions, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, O as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, P as isUsingCompanySearch, S as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, 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, x as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, y as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, z as getTaxIdNumberOptions } from "./bafinUtils-
|
|
39
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
40
|
-
import { a as trackPerformance, i as useCompanySearch, r as companySearchQueryOptions } from "./handleCompanyDataset-
|
|
31
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-GCb1IVpG.js";
|
|
32
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-CAk8NeRm.js";
|
|
33
|
+
import { o as Field, p as LoaderWrapper } from "./Select-CffvApST.js";
|
|
34
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BsHIilEE.js";
|
|
35
|
+
import { a as useLegalCompanyNameField, c as useCompanySelection, d as useStoredStateOrProvince, f as useClearCompanyData, i as CountryOfGoverningLawField, l as useVerifyTin, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as localizedLegalCompanyNameFieldConfig, r as COUNTRY_OF_GOVERNING_LAW_FIELD, s as useCompanyTypeExamples, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-B1TzDrrt.js";
|
|
36
|
+
import { a as getKeyForField, d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, m as isEmpty$1, n as StateField, o as mapAddressLabels, p as isJapanLocalizationEnabled, r as stateFieldMetadata, s as addressFieldRule, t as STATE_FIELD } from "./StateField-rhYSRgPZ.js";
|
|
37
|
+
import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, H as FormContextProvider, I as useMultiForm, M as makeMask, O as uppercase, P as numericInputs, V as summaryStep, _ as mergeFieldMetadataIntoProps, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, k as alphaInputs, p as isValidationError, r as MaskedInput, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-Cg5l88N-.js";
|
|
38
|
+
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, E as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, F as mapJapaneseLegalNamesToLocalization, H as taxIdNumberOptions, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, O as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, P as isUsingCompanySearch, S as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, 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, x as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, y as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, z as getTaxIdNumberOptions } from "./bafinUtils-vl0iX269.js";
|
|
39
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-ZPxQo0qi.js";
|
|
40
|
+
import { a as trackPerformance, i as useCompanySearch, r as companySearchQueryOptions } from "./handleCompanyDataset-DapZoTWA.js";
|
|
41
41
|
import { r as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
42
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
43
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
44
|
-
import { n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-
|
|
42
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-D9idZiSu.js";
|
|
43
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-tL50O1WX.js";
|
|
44
|
+
import { n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-DHhqCF-a.js";
|
|
45
45
|
import { t as useScenarios } from "./useScenarios-Uu83w8kk.js";
|
|
46
46
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-Cb9e_Mdd.js";
|
|
47
47
|
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BlU6TQv-.js";
|
|
48
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
49
|
-
import { n as SaveForLaterButton, t as useSaveForLater } from "./useSaveForLater-
|
|
50
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
48
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-B4N0fDSK.js";
|
|
49
|
+
import { n as SaveForLaterButton, t as useSaveForLater } from "./useSaveForLater-BrR6SF98.js";
|
|
50
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DZQP1rOu.js";
|
|
51
51
|
import { a as getFileExtention, i as getDocuments, l as mergeProofOfOwnershipAttachments, n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-jCSXtiEU.js";
|
|
52
|
-
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
53
|
-
import { i as useAddressCleanseImperatively, n as formatAddressForCleanse } from "./validate.formats-
|
|
54
|
-
import { t as addressValidators } from "./validate-
|
|
55
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
52
|
+
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-oAXYq-jJ.js";
|
|
53
|
+
import { i as useAddressCleanseImperatively, n as formatAddressForCleanse } from "./validate.formats-CTmLjU1z.js";
|
|
54
|
+
import { t as addressValidators } from "./validate-Bp6T2dvm.js";
|
|
55
|
+
import { t as ErrorPanel } from "./ErrorPanel-Bt2zTiVE.js";
|
|
56
56
|
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
57
|
-
import { t as Link } from "./Link-
|
|
57
|
+
import { t as Link } from "./Link-CHOUFKjC.js";
|
|
58
58
|
import { r as formatDateObj } from "./InputDate.utils-D4Ov0KIl.js";
|
|
59
|
-
import { t as InputDate } from "./InputDate-
|
|
60
|
-
import { n as mapJpAddressSchemaToAddressLocalizations, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-
|
|
61
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
62
|
-
import { t as Summary } from "./Summary-
|
|
63
|
-
import { t as SummarySection } from "./SummarySection-
|
|
59
|
+
import { t as InputDate } from "./InputDate-ByJHx9x7.js";
|
|
60
|
+
import { n as mapJpAddressSchemaToAddressLocalizations, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-TVdxkgeI.js";
|
|
61
|
+
import { t as formatValidationError } from "./formatValidationError-BZ3p6URt.js";
|
|
62
|
+
import { t as Summary } from "./Summary-BOPZrv9-.js";
|
|
63
|
+
import { t as SummarySection } from "./SummarySection-DN7RIchf.js";
|
|
64
64
|
import { t as currencyByCountry } from "./types-C6doVa8_.js";
|
|
65
65
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
66
66
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
67
|
-
import { i as nestAddressSchema, t as flattenAddressSchema } from "./utils-
|
|
68
|
-
import { a as LegalFormField, c as legalEntityIdentifierFieldMetadata, d as isDateOlderThanAYear, f as mapAddressData, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
67
|
+
import { i as nestAddressSchema, t as flattenAddressSchema } from "./utils-D_4YJlrA.js";
|
|
68
|
+
import { a as LegalFormField, c as legalEntityIdentifierFieldMetadata, d as isDateOlderThanAYear, f as mapAddressData, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-CyQoyBs9.js";
|
|
69
69
|
import { t as useTaskStatus } from "./useTaskStatus-BNxDq4qA.js";
|
|
70
|
-
import { n as useIndustryCodes, t as industryCodeFieldMetadata } from "./fieldConfig-
|
|
70
|
+
import { n as useIndustryCodes, t as industryCodeFieldMetadata } from "./fieldConfig-D_ze4riX.js";
|
|
71
|
+
import { n as defaultFieldMetadata$1, r as vatAbsenceReasonMetadata, t as defaultFieldConfig$1 } from "./fieldConfig-BeA7aDHu.js";
|
|
71
72
|
import { n as formatCurrency } from "./formatCurrency-BetgkQKi.js";
|
|
72
|
-
import {
|
|
73
|
-
import { l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
73
|
+
import { a as doingBusinessAsAbsentFieldMetadata, c as DBA_NAME_FIELD, f as dateOfIncorporationFieldMetadata, i as getDefaultVatNumberType, l as DATE_OF_INCORPORATION_FIELD, m as RegistrationAndOperationalAddressFields, n as VAT_NUMBER_FIELD, o as doingBusinessAsFieldMetadata, p as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, r as VatNumberField, s as DBANameField, t as MemoizedConstitutionalDocument, u as DateOfIncorporationField } from "./ConstitutionalDocument-GafuUs3Y.js";
|
|
74
|
+
import { l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-_ugo8V-_.js";
|
|
74
75
|
import { n as useCreateBusinessLine, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-BHKXQKFp.js";
|
|
75
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
76
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-Cm852wJo.js";
|
|
76
77
|
import { lazy } from "preact/compat";
|
|
77
78
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
78
79
|
import cx from "classnames";
|
|
@@ -1873,7 +1874,10 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1873
1874
|
if (tinMatched === false && country === CountryCodes.UnitedStates) return "REQUIRED";
|
|
1874
1875
|
},
|
|
1875
1876
|
isRegistrationDocumentRequired: () => {
|
|
1876
|
-
return country === CountryCodes.Mexico ? "REQUIRED" : void 0;
|
|
1877
|
+
return taskType === TaskTypes.BUSINESS_DETAILS && country === CountryCodes.Mexico ? "REQUIRED" : void 0;
|
|
1878
|
+
},
|
|
1879
|
+
isConstitutionalDocumentRequired: () => {
|
|
1880
|
+
return taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && country === CountryCodes.Mexico ? "REQUIRED" : void 0;
|
|
1877
1881
|
},
|
|
1878
1882
|
businessRequiresCompanyType: () => {
|
|
1879
1883
|
if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY) return "REQUIRED";
|
|
@@ -1925,8 +1929,6 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1925
1929
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1926
1930
|
const userEvents = useAnalyticsContext();
|
|
1927
1931
|
const queryClient = useQueryClient();
|
|
1928
|
-
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
1929
|
-
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
1930
1932
|
const logger = createLogger();
|
|
1931
1933
|
const getInferredRegistrationNumberType = () => {
|
|
1932
1934
|
const selectedCompany = companySearchStateModel.selectedCompany.peek();
|
|
@@ -1961,68 +1963,31 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1961
1963
|
return formsWithoutSearchResults;
|
|
1962
1964
|
}
|
|
1963
1965
|
const tin = multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
|
|
1964
|
-
const registrationNumber = multiForm.data.basicInformation?.registrationNumber ?? "";
|
|
1965
1966
|
skipBusinessSelection.value = searchResponse.results.length === 0;
|
|
1966
1967
|
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
const verifyTinQueryInput = {
|
|
1971
|
-
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
1972
|
-
tin
|
|
1973
|
-
};
|
|
1974
|
-
const tinVerificationResponse = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), verifyTinQueryInput, userEvents));
|
|
1975
|
-
setLoadingStatus("success");
|
|
1976
|
-
const tinMatched = !!tinVerificationResponse.matched;
|
|
1977
|
-
companySearchStateModel.setVerificationMatched(tinMatched);
|
|
1978
|
-
if (companySearchStateModel.verificationMatched.value) return currentForms;
|
|
1979
|
-
tinMismatchModalOpen.value = true;
|
|
1980
|
-
return null;
|
|
1981
|
-
} catch (e) {
|
|
1982
|
-
logger.error(e);
|
|
1983
|
-
setLoadingStatus("error");
|
|
1984
|
-
return currentForms;
|
|
1985
|
-
}
|
|
1986
|
-
setLoadingStatus("success");
|
|
1987
|
-
return currentForms;
|
|
1988
|
-
case 1:
|
|
1989
|
-
if (!isNormalizedStringMatch(multiForm.data.basicInformation?.legalCompanyName, searchResponse.results[0].name)) {
|
|
1990
|
-
setLoadingStatus("success");
|
|
1991
|
-
return currentForms;
|
|
1992
|
-
}
|
|
1993
|
-
try {
|
|
1994
|
-
const companySelectionInput = {
|
|
1995
|
-
state: multiForm.data.basicInformation?.stateOrProvince,
|
|
1996
|
-
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
1997
|
-
tin,
|
|
1998
|
-
registrationNumber,
|
|
1999
|
-
id: searchResponse.results[0].resultId,
|
|
2000
|
-
country
|
|
2001
|
-
};
|
|
2002
|
-
const companySelectionResponse = await selectCompany(companySelectionInput);
|
|
2003
|
-
companySearchStateModel.selectCompany(companySelectionResponse, -1, country);
|
|
2004
|
-
setLoadingStatus("success");
|
|
2005
|
-
if (isVerificationFailed()) {
|
|
2006
|
-
await clearCompanyData();
|
|
2007
|
-
return currentForms;
|
|
2008
|
-
} else {
|
|
2009
|
-
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2010
|
-
skipBusinessSelection.value = true;
|
|
2011
|
-
return getRequiredForms({
|
|
2012
|
-
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2013
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType()
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
} catch (e) {
|
|
2017
|
-
logger.error(e);
|
|
2018
|
-
setLoadingStatus("error");
|
|
2019
|
-
await clearCompanyData();
|
|
2020
|
-
return formsWithoutSearchResults;
|
|
2021
|
-
}
|
|
2022
|
-
default:
|
|
2023
|
-
setLoadingStatus("success");
|
|
2024
|
-
return currentForms;
|
|
1968
|
+
if (searchResponse.results.length > 0) {
|
|
1969
|
+
setLoadingStatus("success");
|
|
1970
|
+
return currentForms;
|
|
2025
1971
|
}
|
|
1972
|
+
if (country === CountryCodes.UnitedStates) try {
|
|
1973
|
+
const verifyTinQueryInput = {
|
|
1974
|
+
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
1975
|
+
tin
|
|
1976
|
+
};
|
|
1977
|
+
const tinVerificationResponse = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), verifyTinQueryInput, userEvents));
|
|
1978
|
+
setLoadingStatus("success");
|
|
1979
|
+
const tinMatched = !!tinVerificationResponse.matched;
|
|
1980
|
+
companySearchStateModel.setVerificationMatched(tinMatched);
|
|
1981
|
+
if (companySearchStateModel.verificationMatched.value) return currentForms;
|
|
1982
|
+
tinMismatchModalOpen.value = true;
|
|
1983
|
+
return null;
|
|
1984
|
+
} catch (e) {
|
|
1985
|
+
logger.error(e);
|
|
1986
|
+
setLoadingStatus("error");
|
|
1987
|
+
return currentForms;
|
|
1988
|
+
}
|
|
1989
|
+
setLoadingStatus("success");
|
|
1990
|
+
return currentForms;
|
|
2026
1991
|
};
|
|
2027
1992
|
const confirmBusinessSelection = async () => {
|
|
2028
1993
|
const selectedBusinessId = multiForm.data.businessSelection.selectedBusinessId;
|
|
@@ -2285,78 +2250,147 @@ var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
2285
2250
|
})
|
|
2286
2251
|
])).filter(Boolean);
|
|
2287
2252
|
};
|
|
2288
|
-
|
|
2289
|
-
|
|
2253
|
+
/**
|
|
2254
|
+
* Removes `undefined` values, useful for keeping unit tests cleaner.
|
|
2255
|
+
* Network functions would've done this automatically themselves.
|
|
2256
|
+
*/
|
|
2257
|
+
var cleanResult = (value) => JSON.parse(JSON.stringify(value));
|
|
2258
|
+
var mapBusinessDetailsSchemaToLegalEntity = (data, isFeatureEnabled, taskType, matchingScenario, rootLegalEntity) => {
|
|
2259
|
+
const isSoleProp = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY;
|
|
2290
2260
|
const requestObj = { ...formatObject(data, isSoleProp ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping) };
|
|
2291
|
-
const
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2261
|
+
const ctx = {
|
|
2262
|
+
data,
|
|
2263
|
+
isFeatureEnabled,
|
|
2264
|
+
taskType,
|
|
2265
|
+
matchingScenario,
|
|
2266
|
+
rootLegalEntity,
|
|
2267
|
+
canSaveRegNumberAbsentState: isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.basicInformation?.country, data.companyStructure?.entityType)
|
|
2268
|
+
};
|
|
2269
|
+
if (isSoleProp) return cleanResult({
|
|
2270
|
+
...requestObj,
|
|
2271
|
+
type: "soleProprietorship",
|
|
2272
|
+
soleProprietorship: requestObj.soleProprietorship && buildSoleProprietorship(ctx, requestObj.soleProprietorship)
|
|
2273
|
+
});
|
|
2274
|
+
return cleanResult({
|
|
2275
|
+
...requestObj,
|
|
2276
|
+
type: "organization",
|
|
2277
|
+
organization: requestObj.organization && buildOrganization(ctx, requestObj.organization)
|
|
2278
|
+
});
|
|
2279
|
+
};
|
|
2280
|
+
function buildSoleProprietorship(ctx, entityObject) {
|
|
2281
|
+
return {
|
|
2282
|
+
...entityObject,
|
|
2283
|
+
...resolveSharedFields(ctx, entityObject),
|
|
2284
|
+
countryOfGoverningLaw: entityObject.countryOfGoverningLaw || ctx.data.basicInformation?.country
|
|
2285
|
+
};
|
|
2286
|
+
}
|
|
2287
|
+
function buildOrganization(ctx, entityObject) {
|
|
2288
|
+
const shared = resolveSharedFields(ctx, entityObject);
|
|
2289
|
+
const localization = mapJapaneseLegalNamesToLocalization(ctx.data.basicInformation ?? {});
|
|
2290
|
+
const countryOfGoverningLaw = getCountryOfGoverningLaw(ctx.isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies"), ctx.data.basicInformation);
|
|
2291
|
+
return {
|
|
2292
|
+
...entityObject,
|
|
2293
|
+
...shared,
|
|
2294
|
+
countryOfGoverningLaw,
|
|
2295
|
+
localization: localization.length > 0 ? localization : entityObject.localization,
|
|
2296
|
+
registrationNumberAbsent: resolveRegistrationNumberAbsent(ctx, entityObject.registrationNumberAbsent),
|
|
2297
|
+
support: resolveSupport(ctx, entityObject, shared.registeredAddress?.country)
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
function resolveSharedFields(ctx, entityObject) {
|
|
2301
|
+
const registeredAddress = resolveRegisteredAddress(ctx, entityObject.registeredAddress);
|
|
2302
|
+
return {
|
|
2303
|
+
...resolveDoingBusinessAs(ctx, entityObject),
|
|
2304
|
+
taxInformation: resolveTaxInformation(ctx),
|
|
2305
|
+
vatAbsenceReason: resolveVatAbsenceReason(ctx, entityObject.vatAbsenceReason),
|
|
2306
|
+
vatNumber: ctx.data.additionalInformation?.vatAbsenceReason ? "" : entityObject.vatNumber,
|
|
2307
|
+
registrationNumber: resolveRegistrationNumber(ctx, entityObject.registrationNumber, registeredAddress.country),
|
|
2308
|
+
residentialAddressIndicator: ctx.isFeatureEnabled("EnableResidentialAddressIndicator") ? entityObject.residentialAddressIndicator : void 0,
|
|
2309
|
+
registeredAddress,
|
|
2310
|
+
principalPlaceOfBusiness: resolvePrincipalPlaceOfBusiness(ctx, entityObject),
|
|
2311
|
+
financialReports: resolveFinancialReports(ctx, entityObject.financialReports)
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
function resolveTaxInformation(ctx) {
|
|
2315
|
+
const { basicInformation } = ctx.data;
|
|
2316
|
+
const taxData = basicInformation?.taxInformation, registrationNumber = basicInformation?.registrationNumber;
|
|
2317
|
+
if (ctx.rootLegalEntity?.type === "organization" && keysOf(ctx.rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && ctx.matchingScenario?.includes(Scenarios.L) && registrationNumber && basicInformation?.country && shouldReuseRegistrationNumberAsTaxId(basicInformation.country, basicInformation.registrationNumberType)) {
|
|
2318
|
+
const taxCountry = basicInformation.country;
|
|
2319
|
+
const privateCompanyTaxOptions = getTaxIdNumberOptions(taxCountry, "privateCompany");
|
|
2320
|
+
return [{
|
|
2321
|
+
country: taxCountry,
|
|
2322
|
+
number: registrationNumber,
|
|
2323
|
+
type: privateCompanyTaxOptions && privateCompanyTaxOptions.length > 0 ? privateCompanyTaxOptions[0]["id"] : ""
|
|
2324
|
+
}];
|
|
2325
|
+
}
|
|
2326
|
+
return taxData?.length ? taxData : void 0;
|
|
2327
|
+
}
|
|
2328
|
+
function resolveVatAbsenceReason(ctx, vatAbsenceReason) {
|
|
2329
|
+
if (ctx.taskType !== TaskTypes.BUSINESS_DETAILS && vatAbsenceReason === "") return null;
|
|
2330
|
+
return vatAbsenceReason;
|
|
2331
|
+
}
|
|
2332
|
+
function resolveRegistrationNumber(ctx, registrationNumber, registeredCountry) {
|
|
2333
|
+
if (registeredCountry === "US") return void 0;
|
|
2334
|
+
return ctx.data.basicInformation?.registrationNumber || registrationNumber;
|
|
2335
|
+
}
|
|
2336
|
+
function resolveRegistrationNumberAbsent(ctx, registrationNumberAbsent) {
|
|
2337
|
+
const { basicInformation } = ctx.data;
|
|
2338
|
+
if (ctx.canSaveRegNumberAbsentState) {
|
|
2339
|
+
if (basicInformation?.exemptedFromRegistrationNumber) return basicInformation.exemptedFromRegistrationNumber;
|
|
2340
|
+
if (basicInformation?.registrationNumber) return false;
|
|
2341
|
+
return registrationNumberAbsent;
|
|
2340
2342
|
}
|
|
2341
|
-
requestObj.type = isSoleProp ? "soleProprietorship" : "organization";
|
|
2342
|
-
if (entityObject?.registeredAddress.country === "US") delete entityObject.registrationNumber;
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Only include registrationNumberAbsent in request payload when feature is enabled
|
|
2345
2345
|
* and for applicable scenarios or if it exists already on the LE.
|
|
2346
2346
|
* This allows users who have the property set on their LE to switch to another type
|
|
2347
2347
|
* For example: AU governmental org w/ registrationNumberAbsent true -> private company w/ registration number
|
|
2348
2348
|
*/
|
|
2349
|
-
if (
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2349
|
+
if (ctx.rootLegalEntity?.organization?.registrationNumberAbsent === void 0 || ctx.rootLegalEntity?.organization?.registrationNumberAbsent === null) return;
|
|
2350
|
+
return registrationNumberAbsent;
|
|
2351
|
+
}
|
|
2352
|
+
function resolveDoingBusinessAs(ctx, entityObject) {
|
|
2353
|
+
const { basicInformation, additionalInformation } = ctx.data;
|
|
2354
|
+
if (ctx.isFeatureEnabled("EnableDoingBusinessAsNameV4")) return {
|
|
2355
|
+
doingBusinessAs: entityObject.doingBusinessAs,
|
|
2356
|
+
doingBusinessAsAbsent: typeof additionalInformation?.hasDoingBusinessAs !== "undefined" ? !additionalInformation.hasDoingBusinessAs : entityObject.doingBusinessAsAbsent
|
|
2357
|
+
};
|
|
2358
|
+
return {
|
|
2359
|
+
doingBusinessAs: additionalInformation?.doingBusinessAs || basicInformation?.legalCompanyName,
|
|
2360
|
+
doingBusinessAsAbsent: void 0
|
|
2361
|
+
};
|
|
2362
|
+
}
|
|
2363
|
+
function resolveRegisteredAddress(ctx, registeredAddress) {
|
|
2364
|
+
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(nestAddressSchema("registrationAddress", ctx.data.additionalInformation));
|
|
2365
|
+
return {
|
|
2366
|
+
...registeredAddress,
|
|
2367
|
+
localization: addressLocalizations.length > 0 ? addressLocalizations : registeredAddress.localization,
|
|
2368
|
+
stateOrProvince: registeredAddress.country && registeredAddress.stateOrProvince && !COUNTRIES_WITH_STATES_DATASET.includes(registeredAddress.country) ? "" : registeredAddress.stateOrProvince
|
|
2369
|
+
};
|
|
2370
|
+
}
|
|
2371
|
+
function resolvePrincipalPlaceOfBusiness(ctx, entityObject) {
|
|
2372
|
+
let address = entityObject.principalPlaceOfBusiness;
|
|
2373
|
+
if (ctx.data.additionalInformation?.operationalAddressIsSame && address) address = structuredClone(entityObject.registeredAddress);
|
|
2374
|
+
if (!address) return void 0;
|
|
2375
|
+
const { localization: _localization, ...addressWithoutLocalization } = address;
|
|
2376
|
+
return addressWithoutLocalization;
|
|
2377
|
+
}
|
|
2378
|
+
function resolveFinancialReports(ctx, financialReports) {
|
|
2379
|
+
if (isEmpty$1(ctx.data.companyFinancialInformation)) return financialReports;
|
|
2380
|
+
return [mapFinancialInformationToFinancialReport(ctx.data.companyFinancialInformation, ctx.data.additionalInformation?.dateOfIncorporation)];
|
|
2381
|
+
}
|
|
2382
|
+
function resolveSupport(ctx, organization, registeredCountry) {
|
|
2383
|
+
const existing = ctx.rootLegalEntity?.organization;
|
|
2384
|
+
if (existing?.support && (existing.registeredAddress.country !== registeredCountry || existing.countryOfGoverningLaw !== organization.countryOfGoverningLaw)) return determineCustomerSupport(existing.support, registeredCountry);
|
|
2385
|
+
return organization.support;
|
|
2386
|
+
}
|
|
2387
|
+
function determineCustomerSupport(customerSupport, country) {
|
|
2354
2388
|
switch (country) {
|
|
2355
2389
|
case CountryCodes.Japan: return unsetCustomerSupportNumber(customerSupport);
|
|
2356
2390
|
default: return;
|
|
2357
2391
|
}
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2392
|
+
}
|
|
2393
|
+
function unsetCustomerSupportNumber(customerSupport) {
|
|
2360
2394
|
return customerSupport ? {
|
|
2361
2395
|
email: customerSupport.email,
|
|
2362
2396
|
phone: {
|
|
@@ -2364,7 +2398,7 @@ var unsetCustomerSupportNumber = (customerSupport) => {
|
|
|
2364
2398
|
type: "mobile"
|
|
2365
2399
|
}
|
|
2366
2400
|
} : void 0;
|
|
2367
|
-
}
|
|
2401
|
+
}
|
|
2368
2402
|
//#endregion
|
|
2369
2403
|
//#region src/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.ts
|
|
2370
2404
|
var mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
@@ -2610,7 +2644,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2610
2644
|
}));
|
|
2611
2645
|
try {
|
|
2612
2646
|
const mappedLegalEntity = {
|
|
2613
|
-
...mapBusinessDetailsSchemaToLegalEntity(filteredData,
|
|
2647
|
+
...mapBusinessDetailsSchemaToLegalEntity(filteredData, isFeatureEnabled, taskType, matchingScenario, legalEntityResponse),
|
|
2614
2648
|
entityAssociations: filterOutUnwantedAssociationsIfRootLE(taskType, entityToUpdate, accountHolder)
|
|
2615
2649
|
};
|
|
2616
2650
|
const legalEntity = await stepWrapper("submitLegalEntity", () => submitLegalEntity({
|
|
@@ -3096,6 +3130,7 @@ var businessDetailsBase = {
|
|
|
3096
3130
|
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
3097
3131
|
taxDocument: { rule: "isTaxDocumentRequired" },
|
|
3098
3132
|
registrationDocument: { rule: "isRegistrationDocumentRequired" },
|
|
3133
|
+
constitutionalDocument: { rule: "isConstitutionalDocumentRequired" },
|
|
3099
3134
|
registrationAddressStreet: { rule: "registrationAddressStreetRequired" },
|
|
3100
3135
|
registrationAddressStreet2: { rule: "registrationAddressStreet2Required" },
|
|
3101
3136
|
registrationAddressDependentLocality: { rule: "registrationAddressDependentLocalityRequired" },
|
|
@@ -3511,7 +3546,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3511
3546
|
flowName: taskType,
|
|
3512
3547
|
isEnabled: taskType === TaskTypes.BUSINESS_DETAILS && Boolean(legalEntityResponse),
|
|
3513
3548
|
onDraftSaved: () => handleHomeClick?.(),
|
|
3514
|
-
mapFormDataToDraft: (formData) => mapBusinessDetailsSchemaToLegalEntity(formData,
|
|
3549
|
+
mapFormDataToDraft: (formData) => mapBusinessDetailsSchemaToLegalEntity(formData, isFeatureEnabled, taskType, void 0, legalEntityResponse),
|
|
3515
3550
|
mapSavedDraftToFormData: (draft) => mapLegalEntityToBusinessDetailsSchema({
|
|
3516
3551
|
legalEntity: draft,
|
|
3517
3552
|
taskType,
|
|
@@ -2,10 +2,10 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "88e849f5-8a54-4002-9cf8-ac3b5efb835a", e._sentryDebugIdIdentifier = "sentry-dbid-88e849f5-8a54-4002-9cf8-ac3b5efb835a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { _ as isPartOfTrustFromLegalEntity } from "./registerEmbed-
|
|
5
|
+
import { _ as isPartOfTrustFromLegalEntity } from "./registerEmbed-By-mMjLz.js";
|
|
6
6
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
7
|
-
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-
|
|
8
|
-
import { u as SettingNames } from "./RadioGroup-
|
|
7
|
+
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CRDwmwij.js";
|
|
8
|
+
import { u as SettingNames } from "./RadioGroup-T3-GTf8S.js";
|
|
9
9
|
//#region src/hooks/useLegalEntityType.ts
|
|
10
10
|
var useLegalEntityType = ({ legalEntity }) => {
|
|
11
11
|
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
package/dist/{useDataMissingRemediations-CiDQ9bWs.js → useDataMissingRemediations-BQsN40Ut.js}
RENAMED
|
@@ -3,8 +3,8 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5983c0b1-b7e7-42e5-a690-9f2133806862", e._sentryDebugIdIdentifier = "sentry-dbid-5983c0b1-b7e7-42e5-a690-9f2133806862");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-
|
|
7
|
-
import { t as TaskTypes } from "./taskTypes-
|
|
6
|
+
import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-CPLNSNGJ.js";
|
|
7
|
+
import { t as TaskTypes } from "./taskTypes-DIxF6w12.js";
|
|
8
8
|
import { useMemo } from "preact/hooks";
|
|
9
9
|
//#region src/hooks/useDataMissingRemediations.ts
|
|
10
10
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
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] = "0837ad38-2ba8-4b3c-a6c1-9b491d1c6816", e._sentryDebugIdIdentifier = "sentry-dbid-0837ad38-2ba8-4b3c-a6c1-9b491d1c6816");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { ot as isEmpty } from "./registerEmbed-By-mMjLz.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
7
|
import { n as doArraysMatch } from "./genUtils-nphCwt1A.js";
|
|
8
|
-
import { d as omitKeys, f as ValidationResult, l as addKeys } from "./Select-
|
|
8
|
+
import { d as omitKeys, f as ValidationResult, l as addKeys } from "./Select-CffvApST.js";
|
|
9
9
|
import { useCallback, useEffect, useMemo, useReducer, useState } from "preact/hooks";
|
|
10
10
|
//#region src/hooks/useAsyncValidator.ts
|
|
11
11
|
var logger = createLogger();
|
|
@@ -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] = "f46d8271-dacd-41fb-a6c3-af06a6403010", e._sentryDebugIdIdentifier = "sentry-dbid-f46d8271-dacd-41fb-a6c3-af06a6403010");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
6
6
|
import { useRef } from "preact/hooks";
|