@adyen/kyc-components 4.27.0 → 4.28.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-CAxQpi_3.js → 4-people-C_-N5Vvz.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-CLTk8Oyx.js → AcceptTermsOfServiceWorkflow-BHLj18cI.js} +4 -4
- package/dist/{Accordion-CTQfC17W.js → Accordion-DyU-Pxob.js} +1 -1
- package/dist/{AccountSetupRejected-DaFbhfSI.js → AccountSetupRejected-DrzCd1ET.js} +2 -2
- package/dist/{AdaptiveWorkflow-42UsUwm-.js → AdaptiveWorkflow-DmZF4G5t.js} +117 -48
- package/dist/{AdaptiveWorkflowComponent-DZwG4TmA.js → AdaptiveWorkflowComponent-Bv5fIffv.js} +29 -29
- package/dist/{AddressFields-D78Szxmw.js → AddressFields-CF-UaSiA.js} +10 -10
- package/dist/{Avatar-yJfk9A6l.js → Avatar-BBJO6JWY.js} +1 -1
- package/dist/{BusinessFinancingDropin-Sxpsw1Ib.js → BusinessFinancingDropin-DxUscJnz.js} +34 -34
- package/dist/{BusinessFinancingPage-DBIhC8Us.js → BusinessFinancingPage-aNSrpxqt.js} +54 -54
- package/dist/{BusinessRegistrationNumberField-BdMxV-Tb.js → BusinessRegistrationNumberField-ByWbtuPm.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-Cj8O_z1t.js → BusinessRegistrationNumberFieldGroup-BsaKq6cn.js} +12 -7
- package/dist/{BusinessTypeSelectionPage-qHvILw07.js → BusinessTypeSelectionPage-C8BtZX8K.js} +12 -12
- package/dist/{Button-BYafPrZH.js → Button-EhGM-oCO.js} +1 -1
- package/dist/{Checkbox-CEkD-Lpm.js → Checkbox-Ec4wyyJQ.js} +3 -3
- package/dist/{ComponentGroup-DVHVDBTY.js → ComponentGroup-DnbvXojQ.js} +10 -9
- package/dist/{ConstitutionalDocument-CRmlhFeL.js → ConstitutionalDocument-B4rf4Lt3.js} +16 -15
- package/dist/{ContactDetails-Cqfks3uk.js → ContactDetails-CZgDXYqx.js} +5 -5
- package/dist/{ContextGuidance-DfK3CyBg.js → ContextGuidance-C8FlwEPA.js} +3 -3
- package/dist/{CountryField-BjQOdWzz.js → CountryField-8KwVjSwx.js} +8 -6
- package/dist/{Currency-CbDX0TMX.js → Currency-DyE49bKs.js} +8 -8
- package/dist/{CustomerSupport-DhHfxyq-.js → CustomerSupport-CvTI3Snc.js} +34 -13
- package/dist/{DateField-B2QaXKJu.js → DateField-l6H-nmfS.js} +13 -9
- package/dist/{DebugModal-Bg9rzwSn.js → DebugModal-xkdniRzn.js} +154 -109
- package/dist/{DecisionMakerDetails-AoJgg4cg.js → DecisionMakerDetails-CykBZZ9U.js} +13 -13
- package/dist/{DecisionMakerDetailsPage-C_AdIcGC.js → DecisionMakerDetailsPage-BnjOq-R1.js} +7 -7
- package/dist/{DecisionMakers-C6l8bABC.js → DecisionMakers-B-4h5Vw_.js} +14 -14
- package/dist/{Dropzone-DgxhMiDp.js → Dropzone-D7Z9PsqG.js} +7 -7
- package/dist/{EmailField-CXN3LYZ2.js → EmailField-B-g3-z2A.js} +12 -9
- package/dist/{EmbeddedStatus-mdQsQfof.js → EmbeddedStatus-aQaNHawQ.js} +2 -2
- package/dist/{EndStateLayout-B-M90Rnh.js → EndStateLayout-CBzxX67s.js} +2 -2
- package/dist/{EntityAssociation-D_q0Wc3i.js → EntityAssociation-CPRU3Nzl.js} +6 -6
- package/dist/{ErrorPanel-CPEt21Se.js → ErrorPanel-DUI1R5Sq.js} +4 -4
- package/dist/{GlobalEntryModal-BLcLbtbY.js → GlobalEntryModal-Fszy2PMv.js} +312 -100
- package/dist/{GlobalEntryPage-DWOIX03S.js → GlobalEntryPage-GMRCmYj1.js} +32 -32
- package/dist/Icon-D2IGgB2L.js +175 -0
- package/dist/{IdentityNumber-B9Jnp2Kq.js → IdentityNumber-M8NzdW3O.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-BSl7SDIS.js → IdentityNumberFieldGroup-nOlB5kOW.js} +38 -16
- package/dist/{IdentityScreeningWorkflow-GYt_zgUF.js → IdentityScreeningWorkflow-kYczDRbc.js} +14 -13
- package/dist/{IndividualDropin-Diyiw3Hi.js → IndividualDropin-C9bKZu8q.js} +60 -39
- package/dist/{IndustryCodeFieldGroup-C2-FCfpN.js → IndustryCodeFieldGroup-ULwwyMfV.js} +8 -10
- package/dist/{InputDate-BHrNsorX.js → InputDate-fc3bdvdZ.js} +3 -3
- package/dist/{Introduction-DYn_jO1o.js → Introduction-BymKbaBE.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CUe2AxiZ.js → InvitedDecisionMakerComponent-CLBrLaip.js} +36 -36
- package/dist/{JpAddressFields-C4qtHjp0.js → JpAddressFields-Dhe_cQhr.js} +9 -9
- package/dist/{LegalCompanyNameField-DFo-ZOZk.js → LegalCompanyNameField-Ch1VrlJs.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BOfRTyqK.js → LegalRepresentativeDetailsPage-ZsBdOW-Y.js} +3 -3
- package/dist/{Link-DwPkGikd.js → Link-BtWj5mVH.js} +1 -1
- package/dist/{ListItem-n927geYb.js → ListItem-aX6AyCay.js} +3 -3
- package/dist/{Name-DOj6CpgZ.js → Name-r1ugrnWU.js} +4 -4
- package/dist/{NumberField-CkdysfUI.js → NumberField-DzM3ge0J.js} +12 -9
- package/dist/{PatriotActDisclosure-DkqbHOFx.js → PatriotActDisclosure-O5TlzUXU.js} +10 -10
- package/dist/{PayoutDetailsDropin-CF7itBsp.js → PayoutDetailsDropin-J0pS_4a9.js} +30 -28
- package/dist/{PayoutDetailsPage-Dc_D071R.js → PayoutDetailsPage-COLJyIQ-.js} +4 -4
- package/dist/{InputText-BwXmy0Yr.js → RadioGroup-SDQSOsEf.js} +80 -5
- package/dist/{Review-Ku4iYkp6.js → Review-PhQYqPF4.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CTSZl23n.js → RootBusinessDetailsPage-BI7ryRjt.js} +4 -4
- package/dist/{RootBusinessLinesPage-TqlW5o-4.js → RootBusinessLinesPage-mvoHQZD_.js} +21 -21
- package/dist/{RootIndividualDetailsPage-DG6IUpC8.js → RootIndividualDetailsPage-Cpm0vnKV.js} +4 -4
- package/dist/{Select-DPJ8234F.js → Select-DtO-GvLp.js} +5 -6
- package/dist/{SignPCIComponent-DHIPpLKT.js → SignPCIComponent-Dvmu4-hc.js} +38 -38
- package/dist/{SingpassSelection-BRJCTmKj.js → SingpassSelection-np9ZfMrZ.js} +5 -5
- package/dist/SingpassSelectionCTA-sVs1ou1t.js +71 -0
- package/dist/{SoleProprietorshipPage-JOV_QddZ.js → SoleProprietorshipPage-CwKtif4U.js} +4 -4
- package/dist/{SourceOfFundsPage-DxQADTn7.js → SourceOfFundsPage-waLLSQf2.js} +22 -22
- package/dist/{SourceOfFundsWorkflow-fFGA8BYS.js → SourceOfFundsWorkflow-Cat3HvUT.js} +4 -4
- package/dist/{StateField-LcRkkvIH.js → StateField-DxKg7Ea-.js} +6 -6
- package/dist/{Step-DaFQX--s.js → Step-ZD1CeO4b.js} +15 -9
- package/dist/{Summary-DgLYHPLg.js → Summary-BJnh9lZz.js} +2 -2
- package/dist/{SummarySection-CLaB0E12.js → SummarySection-D91P7H2B.js} +4 -4
- package/dist/{Task-CkhQ3vzl.js → Task-_WDQUdM0.js} +41 -31
- package/dist/{TaskGroup-BSPFdlu9.js → TaskGroup-C20Kri7W.js} +10 -6
- package/dist/{TaskListItem-B87Vgx8N.js → TaskListItem-BRTxzrek.js} +10 -10
- package/dist/{TaskStepperContextProvider-DiMf4UV6.js → TaskStepperContextProvider-C36jSigo.js} +1 -1
- package/dist/{TaskVerificationStatus-C1CllzL1.js → TaskVerificationStatus-Br7t30ur.js} +1 -1
- package/dist/{TaxInformationFieldGroup-BBASFehB.js → TaxInformationFieldGroup-BiNe6-D4.js} +68 -111
- package/dist/{TaxReportingDropin-BvJ-hNA-.js → TaxReportingDropin-DuZpEzKn.js} +14 -13
- package/dist/{TaxReportingWorkflow-BrlpMImh.js → TaxReportingWorkflow-CMhxj0jx.js} +4 -4
- package/dist/{TermsOfServiceManagement-B4H2Aia2.js → TermsOfServiceManagement-Cp6-BOaT.js} +38 -37
- package/dist/{TextArea-CAZrG_yC.js → TextArea-DD-KMQbg.js} +4 -4
- package/dist/{TextField-DTv1BPA3.js → TextField-Bdu0Wm6_.js} +13 -10
- package/dist/{TrustDetailsPage-DYXIzcxJ.js → TrustDetailsPage-IGLuJZUE.js} +30 -23
- package/dist/{TrustMemberCompanyPage-pvj9sHs2.js → TrustMemberCompanyPage-CNIDzOte.js} +5 -5
- package/dist/{TrustMemberIndividualPage-Dm4S4Vhu.js → TrustMemberIndividualPage-Q_IDqWsr.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-HY6FQpRj.js → TrustMemberRoleAndTypePage-B2EtfK6g.js} +20 -20
- package/dist/{TrustMembersOverview-Bcs79IWP.js → TrustMembersOverview-hDVqCUbB.js} +12 -12
- package/dist/{UboTaskItem-BYQusWWl.js → UboTaskItem-Bt45kkQu.js} +15 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-sBN7kPiI.js → UnincorporatedPartnershipIndividualPage-hkrLvEZw.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DHgq0TLx.js → UnincorporatedPartnershipMemberCompanyPage-B8e9E2t2.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx5UGEcg.js → UnincorporatedPartnershipMemberRoleAndTypePage-Rey_F44n.js} +10 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-DxIfkkY7.js → UnincorporatedPartnershipMembersOverview-DPO8TjP4.js} +6 -6
- package/dist/{VerificationErrorAlert-C_qKEwHw.js → VerificationErrorAlert-Lim_NsJO.js} +3 -3
- package/dist/{WebsiteField-BYZAR8k8.js → WebsiteField-BLgq-_me.js} +13 -10
- package/dist/{Workflow-ty27ZzKS.js → Workflow-CnkirZOn.js} +11 -8
- package/dist/{accountHolderUtils-CVX0JkJf.js → accountHolderUtils-D6wEBsLQ.js} +2 -2
- package/dist/adyen-business-financing.js +56 -57
- package/dist/adyen-individual-configuration.js +30 -31
- package/dist/adyen-individual-status.js +30 -31
- package/dist/adyen-invited-decision-maker.js +4 -5
- package/dist/adyen-onboarding.js +52 -178
- package/dist/adyen-terms-of-service-management.js +4 -5
- package/dist/adyen-terms-of-service-status.js +4 -5
- package/dist/adyen-transfer-instrument-configuration.js +30 -31
- package/dist/adyen-transfer-instrument-management.js +37 -38
- package/dist/adyen-verification-status.js +4 -5
- package/dist/{arrow-right-BwP9nNDE.js → arrow-right-3zKAXB3D.js} +2 -2
- package/dist/{bafinUtils-DNq-JBP5.js → bafinUtils-TT8a0y7q.js} +91 -34
- package/dist/{bag-Cnk9dcZg.js → bag-B8b-Jb8Y.js} +2 -2
- package/dist/{bank-UssyP-aG.js → bank-CQrF7P3r.js} +2 -2
- package/dist/bg-BG-CdDdNATP.js +7 -0
- package/dist/{bg-BG-CmuahJEZ.js → bg-BG-g1moSV5i.js} +8 -2
- package/dist/{bg-BG-ClMsmcda.js → bg-BG-s01xQ0IE.js} +16 -2
- package/dist/{bin--Ft4cPCj.js → bin-C4Fu9PHF.js} +2 -2
- package/dist/{capital-BbOFhTHY.js → capital-C1L-Fbue.js} +2 -2
- package/dist/{cash-stack-LTzc8hQZ.js → cash-stack-BpmsCe5x.js} +2 -2
- package/dist/{certificate-CswNcwlI.js → certificate-CEXTu9K7.js} +2 -2
- package/dist/{checkmark-DH1abKZn.js → checkmark-CuqH-tPn.js} +2 -2
- package/dist/{checkmark-circle-VWM-JsI6.js → checkmark-circle-LpY4tMPD.js} +2 -2
- package/dist/{checkmark-circle-fill-AuW2DQDT.js → checkmark-circle-fill-Cp6YFYCT.js} +2 -2
- package/dist/{checkmark-small-B6vsnsSO.js → checkmark-small-DFtNt2po.js} +2 -2
- package/dist/{chevron-down-BGAMP7CF.js → chevron-down-DhQJv6Ph.js} +2 -2
- package/dist/{chevron-left-EjFIt8Cd.js → chevron-left-DkLDfa2Z.js} +2 -2
- package/dist/{chevron-right-B5zb9mkt.js → chevron-right-BZFBWefp.js} +2 -2
- package/dist/{chevron-up-DZiittpJ.js → chevron-up-DRtWAeDd.js} +2 -2
- package/dist/{circle-CygvxRY_.js → circle-KULHbBX2.js} +2 -2
- package/dist/{circle-small-filled-PeElhgJU.js → circle-small-filled-CcOlAzmF.js} +2 -2
- package/dist/{clock-CQXEE5jK.js → clock-DEbxrDAd.js} +2 -2
- package/dist/{coins-C7syygUR.js → coins-C0-5yKat.js} +2 -2
- package/dist/{constants-D2FD75EZ.js → constants-DsYpJv_6.js} +6 -17
- package/dist/{contract-BWEAd7e-.js → contract-B91Vhtk_.js} +2 -2
- package/dist/{cross-vK6qh9R0.js → cross-DX3n6F6N.js} +2 -2
- package/dist/{cross-circle-fill-Bxj_fgQE.js → cross-circle-fill-CrWmQTCZ.js} +2 -2
- package/dist/{cross-circle-fill-small-DwUKcL9P.js → cross-circle-fill-small-BnYkSjuU.js} +2 -2
- package/dist/cs-CZ-CQoPRxwA.js +7 -0
- package/dist/{cs-CZ-DUNmRoYr.js → cs-CZ-CX7RYS3J.js} +8 -2
- package/dist/{cs-CZ-DyLd-erd.js → cs-CZ-DfKxKCsI.js} +16 -2
- package/dist/{da-DK-Dhr4p-qj.js → da-DK-BrKeONXP.js} +16 -2
- package/dist/da-DK-CEe5TTUa.js +7 -0
- package/dist/{da-DK-CWWLFjfT.js → da-DK-Cs_2K6Rd.js} +8 -2
- package/dist/{de-DE-QDT6VVq9.js → de-DE-CaVZKsmT.js} +16 -2
- package/dist/{de-DE-LLIuFER0.js → de-DE-oR2bSTbA.js} +8 -2
- package/dist/de-DE-ut0CGES0.js +7 -0
- package/dist/{document-1-BPWF8zKf.js → document-1-CEBgjg1t.js} +2 -2
- package/dist/{document-person-DVRFNq7g.js → document-person-DO7-omhK.js} +2 -2
- package/dist/{download-DfdpoHdN.js → download-CG9nbHZJ.js} +2 -2
- package/dist/{dropinUtils-QIBtEAdk.js → dropinUtils-CZuO0w1x.js} +13 -88
- package/dist/{edit-1-BgVB06zI.js → edit-1-CCyg-Tid.js} +2 -2
- package/dist/el-GR-BEWi0DRN.js +7 -0
- package/dist/{el-GR-V2cZ5gjl.js → el-GR-DHA0rkvc.js} +16 -2
- package/dist/{el-GR-D9MFsese.js → el-GR-_mz9wRt2.js} +8 -2
- package/dist/{en-US-BMMx67Za.js → en-US-B7V_rOZV.js} +4 -2
- package/dist/en-US-BLUu-I1a.js +7 -0
- package/dist/en-US-BWzZpVaj.js +7 -0
- package/dist/{error-ChMPaOO8.js → error-DBn4_qws.js} +3 -3
- package/dist/es-ES-3Z6u7_Cv.js +7 -0
- package/dist/{es-ES-N-uqwvEU.js → es-ES-B9_eURa2.js} +8 -2
- package/dist/{es-ES-SsReQJzQ.js → es-ES-DsWec_oM.js} +16 -2
- package/dist/es-LA-BgYaYfYK.js +7 -0
- package/dist/{es-LA-DcnCNM5a.js → es-LA-BlWaKaxj.js} +8 -2
- package/dist/{es-LA-DTXCg1tj.js → es-LA-D0FhHrwN.js} +16 -2
- package/dist/{et-EE-Bg3WOS9m.js → et-EE-Bp9-vCYs.js} +16 -2
- package/dist/et-EE-CxTHKlGm.js +7 -0
- package/dist/{et-EE-CkJhiCVw.js → et-EE-D5kWenqz.js} +8 -2
- package/dist/{external-link-BbXGAtFE.js → external-link-De5M4oQX.js} +2 -2
- package/dist/fi-FI-BE-RoRL5.js +7 -0
- package/dist/{fi-FI-D0ZPYGD3.js → fi-FI-DBuyocuK.js} +8 -2
- package/dist/{fi-FI-B1RyWVH2.js → fi-FI-DcwOxjVV.js} +16 -2
- package/dist/{useIndustryCodes-La1cU8oH.js → fieldConfig-Dh_qmAto.js} +13 -2
- package/dist/{formatDataForSummary-GZH9C1ax.js → formatDataForSummary-oC9odBCW.js} +10 -10
- package/dist/{formatValidationError-C_3FU4uR.js → formatValidationError-BsRC83kl.js} +2 -2
- package/dist/{fr-FR-DXXrJUKC.js → fr-FR-CISoBKEC.js} +8 -2
- package/dist/fr-FR-Db4EY5iv.js +7 -0
- package/dist/{fr-FR-C3Zi7-JE.js → fr-FR-_ytHUJlx.js} +16 -2
- package/dist/{getDefaultRegistrationNumberType-CayCB3n0.js → getDefaultRegistrationNumberType-t926T5FG.js} +5 -4
- package/dist/{getTrustedDecisionMakers-DByctgob.js → getTrustedDecisionMakers-CD9uLmHi.js} +2 -2
- package/dist/{getValidationError-DnDzz5ju.js → getValidationError-CXILdPw6.js} +2 -2
- package/dist/{gift-BjS6ErNG.js → gift-BSFlM5Ut.js} +2 -2
- package/dist/{graph-B8rX9eXr.js → graph-DsJyeMAQ.js} +2 -2
- package/dist/{graph-up-Dwaq7upe.js → graph-up-NgJWuRLx.js} +2 -2
- package/dist/{headquarter-CXwws_UP.js → headquarter-DfM7M5jR.js} +2 -2
- package/dist/{hotel-CD5Lv9P7.js → hotel-rSbiYsRy.js} +2 -2
- package/dist/{hr-HR-BeZ1eUy7.js → hr-HR-CXYzhrLe.js} +8 -2
- package/dist/{hr-HR-CH9yGEPn.js → hr-HR-Cb9wbqiH.js} +16 -2
- package/dist/hr-HR-qvMOxoRF.js +7 -0
- package/dist/hu-HU-BNk4CovT.js +7 -0
- package/dist/{hu-HU-BhliM1LD.js → hu-HU-HetRpHop.js} +8 -2
- package/dist/{hu-HU-DpUG3GwC.js → hu-HU-d15vxL_S.js} +16 -2
- package/dist/{image-BTE2a8ZV.js → image-CMNC56qX.js} +2 -2
- package/dist/{info-BTc0bCCM.js → info-B41z2nKP.js} +2 -2
- package/dist/{info-filled-DhYinieW.js → info-filled-uHSCed8u.js} +2 -2
- package/dist/{useId-MW2hvVJz.js → invalidateRootLegalEntity-CnH38v8h.js} +4 -26
- package/dist/{it-IT-BEEsgu4Z.js → it-IT-DBatLxXf.js} +16 -2
- package/dist/{it-IT-BULBjWDc.js → it-IT-DUCIA7fo.js} +8 -2
- package/dist/it-IT-RatP9WIw.js +7 -0
- package/dist/ja-JP-BILx8dc7.js +7 -0
- package/dist/{ja-JP-BjMyxZiN.js → ja-JP-BNHFH7FM.js} +2 -2
- package/dist/{ja-JP-CcXk7Gcc.js → ja-JP-BRdSqCDF.js} +16 -2
- package/dist/{ja-JP-ByMh2iUh.js → ja-JP-CmiLlpqW.js} +8 -2
- package/dist/{location-CwE3Q0gg.js → location-BKdbMTik.js} +2 -2
- package/dist/lt-LT-CZ2yA_Km.js +7 -0
- package/dist/{lt-LT-CGgbFwbx.js → lt-LT-DbzhtTak.js} +16 -2
- package/dist/{lt-LT-CiKIZfk8.js → lt-LT-YfU6BGpp.js} +8 -2
- package/dist/lv-LV-AGwJD157.js +7 -0
- package/dist/{lv-LV-Ck_aQ4ML.js → lv-LV-B17wL3y6.js} +16 -2
- package/dist/{lv-LV-u-vJn6T3.js → lv-LV-C0PK4MKA.js} +8 -2
- package/dist/{mail-CIeugZTd.js → mail-BRy0YL8P.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-FUdkDZLN.js → mapAddressLocalizationToJpAddressSchema-D8qKuElS.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BCNX0LPr.js → mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-BUKwzRyA.js → mapTransferInstrumentToPayoutAccount-Bet2QLgn.js} +2 -2
- package/dist/{minus-circle-filled-96DZCdcJ.js → minus-circle-filled-CLNsVzoi.js} +2 -2
- package/dist/{nl-NL-B8REgP66.js → nl-NL-CXeqs7dv.js} +8 -2
- package/dist/{nl-NL-_hbzuQ0h.js → nl-NL-CfQsmGB5.js} +16 -2
- package/dist/nl-NL-DNXcBpml.js +7 -0
- package/dist/{no-NO-B_ijkAtf.js → no-NO-B1dqTSiS.js} +16 -2
- package/dist/{no-NO-vasSCJdc.js → no-NO-C2sdKw0r.js} +8 -2
- package/dist/no-NO-vY4nfY9g.js +7 -0
- package/dist/{options-horizontal-BU9r-Xx3.js → options-horizontal-CRXmLqnK.js} +2 -2
- package/dist/{partner-C1SWc0pB.js → partner-cWS5lNgW.js} +2 -2
- package/dist/{pay-by-link-plane-xK4Zkol0.js → pay-by-link-plane-BAhi6LNR.js} +2 -2
- package/dist/{payout-zGf0LNbo.js → payout-3fsBXC47.js} +2 -2
- package/dist/{person-xTKhpEGR.js → person-Uffsnqkd.js} +2 -2
- package/dist/{pl-PL-wpXnySZL.js → pl-PL-BD5OF888.js} +8 -2
- package/dist/{pl-PL-u6DrL8IY.js → pl-PL-DSwjmRZS.js} +16 -2
- package/dist/pl-PL-KmUtZ6lq.js +7 -0
- package/dist/{plus-Cm_dWRpB.js → plus-CPdn1NyG.js} +2 -2
- package/dist/{plus-circle-filled-Df77eidx.js → plus-circle-filled-DN0LL-qV.js} +2 -2
- package/dist/{processValidationErrors-BtJpzvvf.js → processValidationErrors-B-A5EFGo.js} +3 -3
- package/dist/{pt-BR-C5d5CGRt.js → pt-BR-DEBXxRwN.js} +8 -2
- package/dist/{pt-BR-CPS77pGy.js → pt-BR-_3W6lRmq.js} +16 -2
- package/dist/pt-BR-tQCWRhmf.js +7 -0
- package/dist/{pt-PT-B6OslB_S.js → pt-PT-BLpMJNOh.js} +8 -2
- package/dist/{pt-PT-DIKqQR6V.js → pt-PT-BUEnW3xZ.js} +16 -2
- package/dist/pt-PT-ZNVCYAr4.js +7 -0
- package/dist/{recurring-BfwVHJ2Z.js → recurring-CMo7EaV-.js} +2 -2
- package/dist/{resolveEnvironment-A2E4srza.js → registerEmbed-CZDAZwKX.js} +106 -46
- package/dist/{revenue-accelerate-ClN0cx7Z.js → revenue-accelerate-BkzY3gMh.js} +2 -2
- package/dist/{ro-RO-Cg1nG9ns.js → ro-RO-B4LyC5yt.js} +16 -2
- package/dist/{ro-RO-dG27cZbT.js → ro-RO-CHA0yVBc.js} +8 -2
- package/dist/ro-RO-DDdUFz6E.js +7 -0
- package/dist/{roleMetadata-BFD8qjDC.js → roleMetadata-DR0IBuky.js} +3 -3
- package/dist/{save-QK2A-teG.js → save-B1AE8MD9.js} +2 -2
- package/dist/{search-DVSyT7Q7.js → search-7HzLTqcY.js} +2 -2
- package/dist/{show-BRWLIRSA.js → show-DWurwnTZ.js} +2 -2
- package/dist/{sk-SK-Woc9AmiO.js → sk-SK-CI_QfG7S.js} +8 -2
- package/dist/{sk-SK-CRfiVN3e.js → sk-SK-CLhssOsk.js} +16 -2
- package/dist/sk-SK-DdDdEYiT.js +7 -0
- package/dist/{sl-SI-C03fXovT.js → sl-SI-DtZuFHYG.js} +8 -2
- package/dist/{sl-SI-Dpr3StsS.js → sl-SI-QgSjXf-1.js} +16 -2
- package/dist/sl-SI-vefne3eU.js +7 -0
- package/dist/{solution-payments-BZZceFVV.js → solution-payments-DhmPJwd_.js} +2 -2
- package/dist/{store-DLKKLXhn.js → store-fpEz2G1Q.js} +2 -2
- package/dist/style.css +184 -169
- package/dist/styles-DYaAeu4q.js +184 -169
- package/dist/{sv-SE-D5eIbgkk.js → sv-SE-B5pp1e_g.js} +8 -2
- package/dist/{sv-SE-CH4wMrUZ.js → sv-SE-BJgBNvRa.js} +16 -2
- package/dist/sv-SE-DIDlUvzM.js +7 -0
- package/dist/tanstackValidation-BgAM9eKo.js +20 -0
- package/dist/{terminal-1-CpAyEdjO.js → terminal-1-6ggvAFrO.js} +2 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +6 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +11 -11
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/utils/deriveNodeState.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/utils/tanstackValidation.d.ts +14 -0
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +2 -3
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +71 -12
- package/dist/types/api/draft/useCreateDraft.d.ts +3 -0
- package/dist/types/api/draft/useGetDraft.d.ts +5 -0
- package/dist/types/api/draft/useUpdateDraft.d.ts +3 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +21 -5
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +27 -27
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +3 -1
- package/dist/types/components/GlobalEntry/fields/SingpassSelectionCTA/SingpassSelectionCTA.d.ts +6 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +3 -2
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +9 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/SaveForLater/SaveForLaterButton.d.ts +8 -0
- package/dist/types/components/Shared/SaveForLater/draftMetadata.d.ts +24 -0
- package/dist/types/components/Shared/SaveForLater/useSaveForLater.d.ts +32 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugThemeEditor.d.ts +10 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +20 -8
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +11 -0
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +18 -1
- package/dist/types/components/Shared/forms/Address/rules.d.ts +10 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/context/ToggleContext/types.d.ts +16 -4
- package/dist/types/core/EmbedShell/themeMode.d.ts +12 -0
- package/dist/types/core/registerEmbed/registerEmbed.d.ts +12 -0
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/utils/deepMerge.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-DVMWWwBT.js → types-CP3D_hFv.js} +1 -1
- package/dist/{unincorporatedPartnership-7X9o2wKi.js → unincorporatedPartnership-B5pKn0gl.js} +2 -2
- package/dist/{upload-BI7LKlDm.js → upload-DF1deAl3.js} +2 -2
- package/dist/{useBusinessDetailsData-Cs15bK0B.js → useBusinessDetailsData-CPzTltvn.js} +205 -152
- package/dist/{useCanSeeIntroduction-DzYOn-jJ.js → useCanSeeIntroduction-Cnuh14Cr.js} +3 -3
- package/dist/{useForm-CPOxg890.js → useForm-B2fQ78Se.js} +3 -3
- package/dist/{useHideTaskStepper-Betx9MGy.js → useHideTaskStepper-DvHXw3zd.js} +1 -1
- package/dist/{Modal-afeMXOOn.js → useId-AzWxLa17.js} +27 -5
- package/dist/{useNavigate-C9pHkW9F.js → useNavigate-Bx6F2ghI.js} +33 -33
- package/dist/{useSalesChannels-D2UblAHt.js → useSalesChannels-Db_8bYBY.js} +2 -2
- package/dist/useSaveForLater-BQio20Zg.js +200 -0
- package/dist/{useTaskLandedEvent-B_GbpCRR.js → useTaskLandedEvent-DdeWh_nV.js} +2 -2
- package/dist/{useTrustMembers-bzYJw-8r.js → useTrustMembers-CqeR9IVN.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-CM8pXQIa.js → useUnincorporatedPartnershipMembers-WOJzF2NV.js} +2 -2
- package/dist/{utils-DTuKY6NW.js → utils-8yLC-qJv.js} +2 -2
- package/dist/{utils-Dpvxf5_a.js → utils-AnusXLKP.js} +2 -2
- package/dist/{utils-B5D6FxHi.js → utils-BfA0Rrku.js} +3 -4
- package/dist/{validate-DEqWFrmE.js → validate-Bcw1m17m.js} +4 -4
- package/dist/{validate-D0s1xnXY.js → validate-Bf1SBTiG.js} +3 -3
- package/dist/{validate-CIG89n0Q.js → validate-CxL6_omc.js} +2 -2
- package/dist/{validate-DCrnvbfv.js → validate-DSR31SH8.js} +9 -9
- package/dist/{validateExtractionResult-D3AuQo5-.js → validateExtractionResult-BD0Vu-XF.js} +2 -2
- package/dist/{warning-circle-fill-ClFvGo5m.js → warning-circle-fill-tyigXMGG.js} +2 -2
- package/dist/{warning-diamond-filled-CWyKR65i.js → warning-diamond-filled-uHVDhfcX.js} +2 -2
- package/dist/{webinar-DWX7Z5Wz.js → webinar-C70iLMbf.js} +2 -2
- package/package.json +5 -5
- package/dist/Icon-jVvV1zXc.js +0 -175
- package/dist/bg-BG-Cdrkwxmc.js +0 -7
- package/dist/cs-CZ-DpiH1UkS.js +0 -7
- package/dist/da-DK-B-BJLcqw.js +0 -7
- package/dist/de-DE-BxTGFyOs.js +0 -7
- package/dist/el-GR-IQwyd9ws.js +0 -7
- package/dist/en-US-8KLaHQaT.js +0 -7
- package/dist/en-US-DPr5RN3e.js +0 -7
- package/dist/es-ES-Cg2IadcX.js +0 -7
- package/dist/es-LA-DvMpG4FP.js +0 -7
- package/dist/et-EE-eGeytyQh.js +0 -7
- package/dist/fi-FI-C02wZfgW.js +0 -7
- package/dist/fr-FR-CE7k9H5_.js +0 -7
- package/dist/hr-HR-B12DcJ3l.js +0 -7
- package/dist/hu-HU-cosbDuos.js +0 -7
- package/dist/it-IT-CiKoOxzk.js +0 -7
- package/dist/ja-JP-D7PEVMmT.js +0 -7
- package/dist/lt-LT-C2oxTakB.js +0 -7
- package/dist/lv-LV-C_KVkpid.js +0 -7
- package/dist/nl-NL-CwNBy0Ku.js +0 -7
- package/dist/no-NO-VqkeNhzB.js +0 -7
- package/dist/pl-PL-Bp218jDD.js +0 -7
- package/dist/pt-BR-CPbFPNwq.js +0 -7
- package/dist/pt-PT-Bz39smeX.js +0 -7
- package/dist/ro-RO-jNItoBZk.js +0 -7
- package/dist/sk-SK-CsSqXqf_.js +0 -7
- package/dist/sl-SI-PRqWis0E.js +0 -7
- package/dist/sv-SE-Dv-rMOdB.js +0 -7
- package/dist/types/adaptiveWorkflow/components/types.d.ts +0 -50
|
@@ -1,75 +1,76 @@
|
|
|
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] = "347bcfcc-baf9-45ef-adf3-b70753b3022f", e._sentryDebugIdIdentifier = "sentry-dbid-347bcfcc-baf9-45ef-adf3-b70753b3022f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { A as useAllowedCountries, I as FeatureNames, N as Header, T as Alert, bt as useVersionConfiguration, ct as isEmpty, dt as isUndefinedOrNull, k as datasetUtilities, lt as isISIN, vt as useAccountHolder } from "./registerEmbed-CZDAZwKX.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-EhGM-oCO.js";
|
|
11
11
|
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
12
12
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.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-Br7t30ur.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
19
|
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
20
20
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
21
21
|
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.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 {
|
|
23
|
+
import { i as useToggleContext, r as useDebouncedCallback, t as Checkbox } from "./Checkbox-Ec4wyyJQ.js";
|
|
24
|
+
import { a as useAnalyticsContext, n as Modal, r as ModalContent } from "./useId-AzWxLa17.js";
|
|
25
25
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
26
|
-
import {
|
|
27
|
-
import { t as ListItem } from "./ListItem-
|
|
26
|
+
import { r as InputText, s as SettingNames, t as RadioGroup } from "./RadioGroup-SDQSOsEf.js";
|
|
27
|
+
import { t as ListItem } from "./ListItem-aX6AyCay.js";
|
|
28
28
|
import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
29
29
|
import { t as useBusinessLines } from "./useBusinessLines-0FcuDMzo.js";
|
|
30
30
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
31
|
-
import { n as
|
|
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 CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, s as localizedLegalCompanyNameFieldConfig, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-
|
|
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
|
|
38
|
-
import { A as
|
|
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-
|
|
31
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CnH38v8h.js";
|
|
32
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-B5pKn0gl.js";
|
|
33
|
+
import { o as Field, p as LoaderWrapper } from "./Select-DtO-GvLp.js";
|
|
34
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-BfA0Rrku.js";
|
|
35
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, s as localizedLegalCompanyNameFieldConfig, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-DSR31SH8.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-DxKg7Ea-.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-CZuO0w1x.js";
|
|
38
|
+
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, B as getValidCompanyTypesForTaxIdNumberType, 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 TileGroup, 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, V as taxIdNumberOptions, _ 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, l as TAX_INFORMATION_FIELD, u as TaxInformationField, x as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, y as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, z as getTaxIdNumberOptions } from "./bafinUtils-TT8a0y7q.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-t926T5FG.js";
|
|
40
40
|
import { r as LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
41
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
42
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
41
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Ch1VrlJs.js";
|
|
42
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-ByWbtuPm.js";
|
|
43
43
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
44
44
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
45
45
|
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CqbTLZ6i.js";
|
|
46
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
47
|
-
import { n as
|
|
46
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DdeWh_nV.js";
|
|
47
|
+
import { n as SaveForLaterButton, t as useSaveForLater } from "./useSaveForLater-BQio20Zg.js";
|
|
48
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-B-A5EFGo.js";
|
|
48
49
|
import { a as getFileExtention, i as getDocuments, l as mergeProofOfOwnershipAttachments, n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-6K3LdjjN.js";
|
|
49
|
-
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
50
|
-
import { a as useAddressCleanseImperatively, r as formatAddressForCleanse, t as InputDate } from "./InputDate-
|
|
51
|
-
import { t as addressValidators } from "./validate-
|
|
52
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
50
|
+
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, t as PatriotActDisclosure } from "./PatriotActDisclosure-O5TlzUXU.js";
|
|
51
|
+
import { a as useAddressCleanseImperatively, r as formatAddressForCleanse, t as InputDate } from "./InputDate-fc3bdvdZ.js";
|
|
52
|
+
import { t as addressValidators } from "./validate-Bf1SBTiG.js";
|
|
53
|
+
import { t as ErrorPanel } from "./ErrorPanel-DUI1R5Sq.js";
|
|
53
54
|
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
54
|
-
import { t as Link } from "./Link-
|
|
55
|
+
import { t as Link } from "./Link-BtWj5mVH.js";
|
|
55
56
|
import { r as formatDateObj } from "./InputDate.utils-D4Ov0KIl.js";
|
|
56
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
57
|
-
import { t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
58
|
-
import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-
|
|
59
|
-
import { t as Summary } from "./Summary-
|
|
60
|
-
import { t as SummarySection } from "./SummarySection-
|
|
61
|
-
import { t as currencyByCountry } from "./types-
|
|
57
|
+
import { t as formatValidationError } from "./formatValidationError-BsRC83kl.js";
|
|
58
|
+
import { t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js";
|
|
59
|
+
import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-D8qKuElS.js";
|
|
60
|
+
import { t as Summary } from "./Summary-BJnh9lZz.js";
|
|
61
|
+
import { t as SummarySection } from "./SummarySection-D91P7H2B.js";
|
|
62
|
+
import { t as currencyByCountry } from "./types-CP3D_hFv.js";
|
|
62
63
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
63
64
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
64
|
-
import { i as nestAddressSchema, t as flattenAddressSchema } from "./utils-
|
|
65
|
-
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-
|
|
65
|
+
import { i as nestAddressSchema, t as flattenAddressSchema } from "./utils-AnusXLKP.js";
|
|
66
|
+
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-DyE49bKs.js";
|
|
66
67
|
import { t as useTaskStatus } from "./useTaskStatus-4nAPf_uD.js";
|
|
67
|
-
import {
|
|
68
|
+
import { n as useIndustryCodes, t as industryCodeFieldMetadata } from "./fieldConfig-Dh_qmAto.js";
|
|
68
69
|
import { n as formatCurrency } from "./formatCurrency-BetgkQKi.js";
|
|
69
70
|
import { n as useCreateBusinessLine, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-B-pF2YT-.js";
|
|
70
|
-
import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig$1, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata$1, p as DBA_NAME_FIELD, r as VatNumberField, s as vatAbsenceReasonMetadata, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-
|
|
71
|
-
import {
|
|
72
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
71
|
+
import { _ as dateOfIncorporationFieldMetadata, a as defaultFieldConfig$1, c as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS, d as doingBusinessAsFieldMetadata, f as DBANameField, h as DateOfIncorporationField, i as getDefaultVatNumberType, l as RegistrationAndOperationalAddressFields, m as DATE_OF_INCORPORATION_FIELD, n as VAT_NUMBER_FIELD, o as defaultFieldMetadata$1, p as DBA_NAME_FIELD, r as VatNumberField, s as vatAbsenceReasonMetadata, t as MemoizedConstitutionalDocument, u as doingBusinessAsAbsentFieldMetadata } from "./ConstitutionalDocument-B4rf4Lt3.js";
|
|
72
|
+
import { l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-DsYpJv_6.js";
|
|
73
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-8yLC-qJv.js";
|
|
73
74
|
import { lazy } from "preact/compat";
|
|
74
75
|
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";
|
|
75
76
|
import cx from "classnames";
|
|
@@ -1705,7 +1706,7 @@ var ORGANIZATION_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION = [
|
|
|
1705
1706
|
var COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
|
|
1706
1707
|
//#endregion
|
|
1707
1708
|
//#region src/components/Business/forms/rules.ts
|
|
1708
|
-
var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, getSetting = () => void 0, accountHolder, rootLegalEntity, tinMatched, version }) => {
|
|
1709
|
+
var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, getSetting = () => void 0, accountHolder, rootLegalEntity, tinMatched, version = 3 }) => {
|
|
1709
1710
|
const countryRequiresDateOfIncorporationForCompanies = () => {
|
|
1710
1711
|
switch (taskType) {
|
|
1711
1712
|
case "SOLE_PROPRIETOR_COMPANY": return LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION.includes(country) ? "REQUIRED" : void 0;
|
|
@@ -1722,7 +1723,14 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1722
1723
|
if (isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation)) return "REQUIRED";
|
|
1723
1724
|
return hasData ? "OPTIONAL" : void 0;
|
|
1724
1725
|
};
|
|
1725
|
-
const addressFieldRequired = (field, isOperational = false) => addressFieldRule(
|
|
1726
|
+
const addressFieldRequired = (field, isOperational = false) => addressFieldRule({
|
|
1727
|
+
field,
|
|
1728
|
+
country,
|
|
1729
|
+
isSettingEnabled,
|
|
1730
|
+
version,
|
|
1731
|
+
isOperational,
|
|
1732
|
+
operationalAddressIsSame: data.additionalInformation?.operationalAddressIsSame
|
|
1733
|
+
});
|
|
1726
1734
|
return createFormRules({
|
|
1727
1735
|
requireDoingBusinessAsName: () => {
|
|
1728
1736
|
return data.additionalInformation?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
@@ -1838,7 +1846,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1838
1846
|
isReportingCurrencyRequired: () => financialReportingFieldRule(Boolean(verifiedBusiness?.financialInformation?.currency || data.companyFinancialInformation?.currency)),
|
|
1839
1847
|
isReportedValueRequired: () => financialReportingFieldRule(verifiedBusiness?.financialInformation?.balanceSheetTotal != null || verifiedBusiness?.financialInformation?.annualTurnover != null || Boolean(data.companyFinancialInformation?.reportedValueOption)),
|
|
1840
1848
|
isIndustryCodeRequired: () => {
|
|
1841
|
-
return isSettingEnabled(SettingNames.AllowBusinessLines) ? "REQUIRED" : void 0;
|
|
1849
|
+
return isSettingEnabled(SettingNames.AllowBusinessLines) || isFeatureEnabled(FeatureNames.EnableEfpBusinessLinesByDefault) ? "REQUIRED" : void 0;
|
|
1842
1850
|
},
|
|
1843
1851
|
annualTurnoverRequired: () => {
|
|
1844
1852
|
if (data.companyFinancialInformation?.reportedValueOption === "annualTurnover") return "REQUIRED";
|
|
@@ -1865,11 +1873,11 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
1865
1873
|
if (isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1866
1874
|
},
|
|
1867
1875
|
requireLEI: () => {
|
|
1868
|
-
if (!isFeatureEnabled("
|
|
1876
|
+
if (!isFeatureEnabled("EnableAMLRFeaturesV5") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
1869
1877
|
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? "OPTIONAL" : "REQUIRED";
|
|
1870
1878
|
},
|
|
1871
1879
|
requireLEIExemption: () => {
|
|
1872
|
-
if (!isFeatureEnabled("
|
|
1880
|
+
if (!isFeatureEnabled("EnableAMLRFeaturesV5") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
1873
1881
|
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? "REQUIRED" : "OPTIONAL";
|
|
1874
1882
|
},
|
|
1875
1883
|
registrationAddressStreetRequired: () => addressFieldRequired("street"),
|
|
@@ -2324,8 +2332,24 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2324
2332
|
* For example: AU governmental org w/ registrationNumberAbsent true -> private company w/ registration number
|
|
2325
2333
|
*/
|
|
2326
2334
|
if (!canSaveRegNumberAbsentState && !isSoleProp && (rootLegalEntity?.organization?.registrationNumberAbsent === void 0 || rootLegalEntity?.organization?.registrationNumberAbsent === null)) delete requestObj.organization?.registrationNumberAbsent;
|
|
2335
|
+
if (!isSoleProp && (rootLegalEntity?.organization?.registeredAddress.country !== entityObject?.registeredAddress.country || rootLegalEntity?.organization?.countryOfGoverningLaw !== entityObject?.countryOfGoverningLaw) && rootLegalEntity?.organization?.support) requestObj.organization.support = determineCustomerSupport(rootLegalEntity.organization.support, entityObject?.registeredAddress.country);
|
|
2327
2336
|
return requestObj;
|
|
2328
2337
|
};
|
|
2338
|
+
var determineCustomerSupport = (customerSupport, country) => {
|
|
2339
|
+
switch (country) {
|
|
2340
|
+
case CountryCodes.Japan: return unsetCustomerSupportNumber(customerSupport);
|
|
2341
|
+
default: return;
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
var unsetCustomerSupportNumber = (customerSupport) => {
|
|
2345
|
+
return customerSupport ? {
|
|
2346
|
+
email: customerSupport.email,
|
|
2347
|
+
phone: {
|
|
2348
|
+
number: "",
|
|
2349
|
+
type: "mobile"
|
|
2350
|
+
}
|
|
2351
|
+
} : void 0;
|
|
2352
|
+
};
|
|
2329
2353
|
//#endregion
|
|
2330
2354
|
//#region src/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.ts
|
|
2331
2355
|
var mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
@@ -2508,12 +2532,25 @@ var mapLegalEntityToBusinessDetailsSchema = ({ legalEntity, parentEntity, taskTy
|
|
|
2508
2532
|
};
|
|
2509
2533
|
//#endregion
|
|
2510
2534
|
//#region src/components/Business/hooks/useSubmitBusinessDetails.ts
|
|
2511
|
-
|
|
2535
|
+
var SubmitError = class extends Error {
|
|
2536
|
+
step;
|
|
2537
|
+
constructor(step, cause) {
|
|
2538
|
+
super(`Failed to handle ${step}`, { cause });
|
|
2539
|
+
this.step = step;
|
|
2540
|
+
}
|
|
2541
|
+
};
|
|
2542
|
+
async function stepWrapper(step, cb) {
|
|
2543
|
+
try {
|
|
2544
|
+
return await cb();
|
|
2545
|
+
} catch (err) {
|
|
2546
|
+
throw new SubmitError(step, err);
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, efpBusinessLines, taskType, problems, setProblems, setLoadingStatus, onExternalSubmit, toastRef }) {
|
|
2512
2550
|
const { t } = useTranslation(["common", "business"]);
|
|
2513
2551
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2514
2552
|
const userEvents = useAnalyticsContext();
|
|
2515
2553
|
const { accountHolder: accountHolderMaybe } = useAccountHolder();
|
|
2516
|
-
const { showToast } = useToastContext();
|
|
2517
2554
|
const { isFeatureEnabled } = useToggleContext();
|
|
2518
2555
|
const { data: matchingScenario } = useScenarios(country, "organization");
|
|
2519
2556
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
@@ -2550,40 +2587,6 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2550
2587
|
default: return legalEntityResponse;
|
|
2551
2588
|
}
|
|
2552
2589
|
})();
|
|
2553
|
-
const handleSubmitLegalEntity = async (legalEntity) => {
|
|
2554
|
-
if (taskType === TaskTypes.TRUST_MEMBER_COMPANY && !nestedLegalEntity?.id || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY && !nestedLegalEntity?.id || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && !associatedLegalArrangement?.id) return await createLegalEntity(legalEntity);
|
|
2555
|
-
else {
|
|
2556
|
-
const { type: _type, ...rest } = legalEntity;
|
|
2557
|
-
return updateLegalEntity({
|
|
2558
|
-
...rest,
|
|
2559
|
-
id: entityToUpdate?.id ?? legalEntityResponse.id
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
};
|
|
2563
|
-
const associateLegalEntityWithParent = async ({ legalEntity, associatedLegalArrangement, nestedLegalEntityDetails }) => {
|
|
2564
|
-
if (nestedLegalEntityDetails && associatedLegalArrangement) {
|
|
2565
|
-
const existingEntityAssociations = getOwnEntityAssociations(associatedLegalArrangement);
|
|
2566
|
-
const existingRoles = existingEntityAssociations.filter((ea) => ea.legalEntityId === associatedLegalArrangement.id).map(({ type }) => type);
|
|
2567
|
-
const newRoles = nestedLegalEntityDetails.roles;
|
|
2568
|
-
if (!doArraysMatch(existingRoles, newRoles)) await updateLegalEntity({
|
|
2569
|
-
id: associatedLegalArrangement.id,
|
|
2570
|
-
entityAssociations: [...newRoles.map((role) => ({
|
|
2571
|
-
type: role,
|
|
2572
|
-
legalEntityId: legalEntity.id
|
|
2573
|
-
})), ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id)]
|
|
2574
|
-
});
|
|
2575
|
-
return;
|
|
2576
|
-
} else {
|
|
2577
|
-
const updatedAssociations = { entityAssociations: [{
|
|
2578
|
-
type: "soleProprietorship",
|
|
2579
|
-
legalEntityId: legalEntity.id
|
|
2580
|
-
}] };
|
|
2581
|
-
await updateLegalEntity({
|
|
2582
|
-
...updatedAssociations,
|
|
2583
|
-
id: legalEntityResponse.id
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
};
|
|
2587
2590
|
const filteredData = setRemovedFieldsOnSchemaToDeletedValue(data, mapLegalEntityToBusinessDetailsSchema({
|
|
2588
2591
|
legalEntity: entityToUpdate,
|
|
2589
2592
|
parentEntity: void 0,
|
|
@@ -2601,49 +2604,53 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2601
2604
|
...mapBusinessDetailsSchemaToLegalEntity(filteredData, accountHolder, isFeatureEnabled, taskType, matchingScenario, legalEntityResponse),
|
|
2602
2605
|
entityAssociations: filterOutUnwantedAssociationsIfRootLE(taskType, entityToUpdate, accountHolder)
|
|
2603
2606
|
};
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2607
|
+
const legalEntity = await stepWrapper("submitLegalEntity", () => submitLegalEntity({
|
|
2608
|
+
legalEntity: mappedLegalEntity,
|
|
2609
|
+
entityToUpdate,
|
|
2610
|
+
createLegalEntity,
|
|
2611
|
+
updateLegalEntity
|
|
2612
|
+
}));
|
|
2613
|
+
await stepWrapper("associateLegalEntityWithParent", () => associateLegalEntityWithParent({
|
|
2611
2614
|
legalEntity,
|
|
2615
|
+
taskType,
|
|
2612
2616
|
associatedLegalArrangement,
|
|
2613
|
-
nestedLegalEntityDetails
|
|
2614
|
-
|
|
2615
|
-
|
|
2617
|
+
nestedLegalEntityDetails,
|
|
2618
|
+
legalEntityResponse,
|
|
2619
|
+
updateLegalEntity
|
|
2620
|
+
}));
|
|
2621
|
+
await stepWrapper("submitDocuments", () => submitDocuments({
|
|
2616
2622
|
data,
|
|
2623
|
+
forms,
|
|
2617
2624
|
legalEntity,
|
|
2618
2625
|
documentUtils,
|
|
2619
2626
|
userEvents
|
|
2620
|
-
});
|
|
2621
|
-
await submitBusinessLines({
|
|
2627
|
+
}));
|
|
2628
|
+
await stepWrapper("submitBusinessLines", () => submitBusinessLines({
|
|
2622
2629
|
data,
|
|
2623
2630
|
legalEntity: legalEntityResponse,
|
|
2624
2631
|
efpBusinessLines,
|
|
2625
2632
|
createBusinessLine,
|
|
2626
2633
|
updateBusinessLine,
|
|
2627
|
-
matchingScenario
|
|
2628
|
-
|
|
2629
|
-
showToast
|
|
2630
|
-
});
|
|
2634
|
+
matchingScenario
|
|
2635
|
+
}));
|
|
2631
2636
|
userEvents.addTaskEvent("Success", trackingPayload);
|
|
2632
|
-
showToast({
|
|
2637
|
+
toastRef.current?.showToast({
|
|
2633
2638
|
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
2634
2639
|
variant: "success"
|
|
2635
2640
|
});
|
|
2636
2641
|
await invalidateRootLegalEntity();
|
|
2637
2642
|
onExternalSubmit(data);
|
|
2638
2643
|
} catch (err) {
|
|
2639
|
-
|
|
2640
|
-
|
|
2644
|
+
const step = err instanceof SubmitError ? err.step : void 0;
|
|
2645
|
+
const cause = err instanceof SubmitError ? err.cause : err;
|
|
2646
|
+
if (isValidationError(cause)) {
|
|
2647
|
+
const getErrors = processValidationErrors(cause, TaskTypes.BUSINESS_DETAILS);
|
|
2641
2648
|
if (getErrors && !Object.keys(getErrors).length) {
|
|
2642
|
-
showToast({
|
|
2649
|
+
toastRef.current?.showToast({
|
|
2643
2650
|
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
2644
2651
|
variant: "error"
|
|
2645
2652
|
});
|
|
2646
|
-
const unmappedErrorNames =
|
|
2653
|
+
const unmappedErrorNames = cause.invalidFields.map((field) => field.name).filter(Boolean);
|
|
2647
2654
|
if (unmappedErrorNames.length) trackingPayload = {
|
|
2648
2655
|
...trackingPayload,
|
|
2649
2656
|
additionalData: { unmappedErrorNames }
|
|
@@ -2652,23 +2659,31 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2652
2659
|
...problems,
|
|
2653
2660
|
validationErrors: getErrors
|
|
2654
2661
|
});
|
|
2655
|
-
}
|
|
2656
|
-
if (isMaintenanceModeError(err)) showToast({
|
|
2662
|
+
} else if (isMaintenanceModeError(cause)) toastRef.current?.showToast({
|
|
2657
2663
|
label: t(($) => $["maintenanceModeMessage"], { ns: "common" }),
|
|
2658
2664
|
variant: "error",
|
|
2659
2665
|
duration: "indefinite"
|
|
2660
2666
|
});
|
|
2661
|
-
if (
|
|
2667
|
+
else if (step === "submitDocuments") toastRef.current?.showToast({
|
|
2668
|
+
label: t(($) => $["failedToSaveDocuments"], { ns: "business" }),
|
|
2669
|
+
variant: "error"
|
|
2670
|
+
});
|
|
2671
|
+
else if (step === "submitBusinessLines") toastRef.current?.showToast({
|
|
2672
|
+
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
2673
|
+
variant: "error"
|
|
2674
|
+
});
|
|
2675
|
+
else toastRef.current?.showToast({
|
|
2662
2676
|
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
2663
2677
|
variant: "error"
|
|
2664
2678
|
});
|
|
2665
2679
|
logger.error(err);
|
|
2666
2680
|
userEvents.addTaskEvent("Encountered error", {
|
|
2667
2681
|
...trackingPayload,
|
|
2668
|
-
|
|
2669
|
-
|
|
2682
|
+
actionType: step === "submitDocuments" ? "upload" : "submit",
|
|
2683
|
+
returnType: cause?.errorCode,
|
|
2684
|
+
returnValue: cause?.title ?? cause?.message ?? "backend"
|
|
2670
2685
|
});
|
|
2671
|
-
throw
|
|
2686
|
+
throw cause;
|
|
2672
2687
|
} finally {
|
|
2673
2688
|
setLoadingStatus("success");
|
|
2674
2689
|
}
|
|
@@ -2691,7 +2706,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2691
2706
|
problems,
|
|
2692
2707
|
setLoadingStatus,
|
|
2693
2708
|
setProblems,
|
|
2694
|
-
|
|
2709
|
+
toastRef,
|
|
2695
2710
|
t,
|
|
2696
2711
|
taskType,
|
|
2697
2712
|
updateBusinessLine,
|
|
@@ -2699,35 +2714,62 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2699
2714
|
userEvents
|
|
2700
2715
|
]);
|
|
2701
2716
|
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2717
|
+
/**
|
|
2718
|
+
* Create a new entity for association or update existing associated entity
|
|
2719
|
+
*/
|
|
2720
|
+
async function submitLegalEntity({ legalEntity, entityToUpdate, createLegalEntity, updateLegalEntity }) {
|
|
2721
|
+
if (!entityToUpdate?.id) return await createLegalEntity(legalEntity);
|
|
2722
|
+
const { type: _type, ...rest } = legalEntity;
|
|
2723
|
+
return updateLegalEntity({
|
|
2724
|
+
...rest,
|
|
2725
|
+
id: entityToUpdate.id
|
|
2726
|
+
});
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Attach association for sole props and trust member company and update association roles as needed
|
|
2730
|
+
*/
|
|
2731
|
+
async function associateLegalEntityWithParent({ legalEntity, taskType, associatedLegalArrangement, nestedLegalEntityDetails, legalEntityResponse, updateLegalEntity }) {
|
|
2732
|
+
if (!(taskType === TaskTypes.TRUST_MEMBER_COMPANY || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && !associatedLegalArrangement?.id)) return;
|
|
2733
|
+
if (nestedLegalEntityDetails && associatedLegalArrangement) {
|
|
2734
|
+
const existingEntityAssociations = getOwnEntityAssociations(associatedLegalArrangement);
|
|
2735
|
+
const existingRoles = existingEntityAssociations.filter((ea) => ea.legalEntityId === associatedLegalArrangement.id).map(({ type }) => type);
|
|
2736
|
+
const newRoles = nestedLegalEntityDetails.roles;
|
|
2737
|
+
if (doArraysMatch(existingRoles, newRoles)) return;
|
|
2738
|
+
return await updateLegalEntity({
|
|
2739
|
+
id: associatedLegalArrangement.id,
|
|
2740
|
+
entityAssociations: [...newRoles.map((role) => ({
|
|
2741
|
+
type: role,
|
|
2742
|
+
legalEntityId: legalEntity.id
|
|
2743
|
+
})), ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id)]
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2746
|
+
await updateLegalEntity({
|
|
2747
|
+
id: legalEntityResponse.id,
|
|
2748
|
+
entityAssociations: [{
|
|
2749
|
+
type: "soleProprietorship",
|
|
2750
|
+
legalEntityId: legalEntity.id
|
|
2751
|
+
}]
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
async function submitDocuments({ data, forms, legalEntity, documentUtils, userEvents }) {
|
|
2755
|
+
if (!forms.some((form) => documentFormsIds.includes(form.formId))) return;
|
|
2704
2756
|
const formattedDocument = await mapBusinessDetailsDocumentToApiDocument(data, legalEntity.id);
|
|
2705
2757
|
formattedDocument.forEach((doc) => {
|
|
2706
2758
|
const existingDoc = getDocument(legalEntity.id, doc.type);
|
|
2707
2759
|
if (doc.type === "proofOfOwnership" && existingDoc && doc.attachments?.length) doc.attachments = mergeProofOfOwnershipAttachments(existingDoc.attachments, doc.attachments).filter((attachment) => attachment.pageName);
|
|
2708
2760
|
});
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
userEvents.addTaskEvent("Success", {
|
|
2713
|
-
actionType: "upload",
|
|
2714
|
-
documentType: doc.type,
|
|
2715
|
-
fileExtention: doc.attachments?.map((item) => getFileExtention(item.pageName)).filter((item) => item !== void 0) ?? []
|
|
2716
|
-
});
|
|
2717
|
-
});
|
|
2718
|
-
} catch (err) {
|
|
2719
|
-
logger.error(err);
|
|
2720
|
-
userEvents.addTaskEvent("Encountered error", {
|
|
2761
|
+
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
|
2762
|
+
formattedDocument.forEach((doc) => {
|
|
2763
|
+
userEvents.addTaskEvent("Success", {
|
|
2721
2764
|
actionType: "upload",
|
|
2722
|
-
|
|
2723
|
-
|
|
2765
|
+
documentType: doc.type,
|
|
2766
|
+
fileExtention: doc.attachments?.map((item) => getFileExtention(item.pageName)).filter((item) => item !== void 0) ?? []
|
|
2724
2767
|
});
|
|
2725
|
-
}
|
|
2768
|
+
});
|
|
2726
2769
|
}
|
|
2727
|
-
async function submitBusinessLines({ data, legalEntity, efpBusinessLines, createBusinessLine, updateBusinessLine, matchingScenario
|
|
2770
|
+
async function submitBusinessLines({ data, legalEntity, efpBusinessLines, createBusinessLine, updateBusinessLine, matchingScenario }) {
|
|
2728
2771
|
const primaryIndustryCode = data.additionalInformation?.industryCodes && data.additionalInformation.industryCodes[0].id;
|
|
2729
2772
|
if (!primaryIndustryCode) return;
|
|
2730
|
-
const logger = createLogger();
|
|
2731
2773
|
const bankingBusinessLines = [];
|
|
2732
2774
|
const issuingBusinessLines = [];
|
|
2733
2775
|
if (efpBusinessLines) for (const bl of efpBusinessLines) if (bl.service === "banking") bankingBusinessLines.push(bl);
|
|
@@ -2758,33 +2800,14 @@ async function submitBusinessLines({ data, legalEntity, efpBusinessLines, create
|
|
|
2758
2800
|
};
|
|
2759
2801
|
updateOrCreateBusinessLinesIfNeeded(bankingBusinessLines, !!matchingScenario?.includes("L_BANKING"), "banking");
|
|
2760
2802
|
updateOrCreateBusinessLinesIfNeeded(issuingBusinessLines, !!matchingScenario?.includes("L_ISSUING"), "issuing");
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
hadRejection = true;
|
|
2767
|
-
});
|
|
2768
|
-
if (hadRejection) showToast({
|
|
2769
|
-
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
2770
|
-
variant: "error"
|
|
2803
|
+
const failures = (await Promise.allSettled(promises)).flatMap((result, idx) => {
|
|
2804
|
+
return result.status === "rejected" ? [{
|
|
2805
|
+
op: operations[idx],
|
|
2806
|
+
reason: result.reason
|
|
2807
|
+
}] : [];
|
|
2771
2808
|
});
|
|
2809
|
+
if (failures.length) throw new AggregateError(failures.map((failure) => failure.reason), `Failed to submit business lines: ${JSON.stringify(failures.map((failure) => failure.op))}`);
|
|
2772
2810
|
}
|
|
2773
|
-
var determineCustomerSupport = (customerSupport, country) => {
|
|
2774
|
-
switch (country) {
|
|
2775
|
-
case CountryCodes.Japan: return unsetCustomerSupportNumber(customerSupport);
|
|
2776
|
-
default: return;
|
|
2777
|
-
}
|
|
2778
|
-
};
|
|
2779
|
-
var unsetCustomerSupportNumber = (customerSupport) => {
|
|
2780
|
-
return customerSupport ? {
|
|
2781
|
-
email: customerSupport.email,
|
|
2782
|
-
phone: {
|
|
2783
|
-
number: "",
|
|
2784
|
-
type: "mobile"
|
|
2785
|
-
}
|
|
2786
|
-
} : void 0;
|
|
2787
|
-
};
|
|
2788
2811
|
//#endregion
|
|
2789
2812
|
//#region src/context/handlerContext/useHandlerContext.ts
|
|
2790
2813
|
function useHandlerContext() {
|
|
@@ -3642,6 +3665,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3642
3665
|
companySearchStateModel.verifiedBusiness.value,
|
|
3643
3666
|
inferredCompanyStructure
|
|
3644
3667
|
]);
|
|
3668
|
+
const toastRef = useRef$1(null);
|
|
3645
3669
|
const submit = useSubmitBusinessDetails({
|
|
3646
3670
|
country,
|
|
3647
3671
|
data: multiForm.data,
|
|
@@ -3655,7 +3679,8 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3655
3679
|
problems,
|
|
3656
3680
|
setProblems,
|
|
3657
3681
|
setLoadingStatus,
|
|
3658
|
-
onExternalSubmit
|
|
3682
|
+
onExternalSubmit,
|
|
3683
|
+
toastRef
|
|
3659
3684
|
});
|
|
3660
3685
|
const submitTask = useCallback$1(async () => {
|
|
3661
3686
|
try {
|
|
@@ -3822,6 +3847,20 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3822
3847
|
handleNextClick(currentForms);
|
|
3823
3848
|
}
|
|
3824
3849
|
};
|
|
3850
|
+
const { handleSaveForLater, isSavingForLater } = useSaveForLater({
|
|
3851
|
+
form: multiForm,
|
|
3852
|
+
activeForms: forms,
|
|
3853
|
+
existingData: legalEntityResponse ?? {},
|
|
3854
|
+
flowName: taskType,
|
|
3855
|
+
isRestoreReady: taskType === TaskTypes.BUSINESS_DETAILS && Boolean(legalEntityResponse),
|
|
3856
|
+
onDraftSaved: () => handleHomeClick?.(),
|
|
3857
|
+
mapFormDataToDraft: (formData) => mapBusinessDetailsSchemaToLegalEntity(formData, accountHolder ?? "theCompanyIWorkFor", isFeatureEnabled, taskType, void 0, legalEntityResponse),
|
|
3858
|
+
mapSavedDraftToFormData: (draft) => mapLegalEntityToBusinessDetailsSchema({
|
|
3859
|
+
legalEntity: draft,
|
|
3860
|
+
taskType,
|
|
3861
|
+
isFeatureEnabled
|
|
3862
|
+
})
|
|
3863
|
+
});
|
|
3825
3864
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [isBusinessDetailsModalEnabled && /* @__PURE__ */ jsx(BusinessDetailsGettingStarted, {
|
|
3826
3865
|
openModal: () => {
|
|
3827
3866
|
setIsAddingBusinessDetails(true);
|
|
@@ -3862,9 +3901,14 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3862
3901
|
handleBackClick,
|
|
3863
3902
|
handleCancelClick: isBusinessDetailsModalEnabled ? handleCancelClick : handleHomeClick,
|
|
3864
3903
|
loadingStatus,
|
|
3904
|
+
footerActions: taskType === TaskTypes.BUSINESS_DETAILS && legalEntityResponse ? /* @__PURE__ */ jsx(SaveForLaterButton, {
|
|
3905
|
+
loading: isSavingForLater,
|
|
3906
|
+
onClick: handleSaveForLater
|
|
3907
|
+
}) : null,
|
|
3865
3908
|
children: /* @__PURE__ */ jsxs(CompanySearchStateContext.Provider, {
|
|
3866
3909
|
value: companySearchStateModel,
|
|
3867
3910
|
children: [
|
|
3911
|
+
/* @__PURE__ */ jsx(ToastBridge, { toastRef }),
|
|
3868
3912
|
/* @__PURE__ */ jsx(BusinessDetails, {
|
|
3869
3913
|
taskType,
|
|
3870
3914
|
activeForm,
|
|
@@ -3897,6 +3941,15 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3897
3941
|
})
|
|
3898
3942
|
})] });
|
|
3899
3943
|
}
|
|
3944
|
+
/**
|
|
3945
|
+
* Captures the `useToastContext()` from further down the tree & pass it back up.
|
|
3946
|
+
*
|
|
3947
|
+
* Used to ensure we're interacting with the `ToastContextProvider` in the modal.
|
|
3948
|
+
*/
|
|
3949
|
+
function ToastBridge({ toastRef }) {
|
|
3950
|
+
toastRef.current = useToastContext();
|
|
3951
|
+
return null;
|
|
3952
|
+
}
|
|
3900
3953
|
var AdditionalInformation_module_default = {
|
|
3901
3954
|
"additional-information-content": "_additional-information-content_1oltc_1",
|
|
3902
3955
|
additionalInformationContent: "_additional-information-content_1oltc_1",
|
|
@@ -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] = "1fde5d6a-42a2-4910-9fc7-f5194c09d02a", e._sentryDebugIdIdentifier = "sentry-dbid-1fde5d6a-42a2-4910-9fc7-f5194c09d02a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { _ as isPartOfTrustFromLegalEntity } from "./registerEmbed-CZDAZwKX.js";
|
|
6
6
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
7
7
|
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
8
|
-
import {
|
|
8
|
+
import { s as SettingNames } from "./RadioGroup-SDQSOsEf.js";
|
|
9
9
|
//#region src/hooks/useLegalEntityType.ts
|
|
10
10
|
var useLegalEntityType = ({ legalEntity }) => {
|
|
11
11
|
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
@@ -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] = "4769bbc2-f315-4771-81dc-116d219d4078", e._sentryDebugIdIdentifier = "sentry-dbid-4769bbc2-f315-4771-81dc-116d219d4078");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { ct as isEmpty } from "./registerEmbed-CZDAZwKX.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-DtO-GvLp.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] = "bdae5f7e-931a-4330-ba83-25eaa15c88e8", e._sentryDebugIdIdentifier = "sentry-dbid-bdae5f7e-931a-4330-ba83-25eaa15c88e8");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
6
6
|
import { useRef } from "preact/hooks";
|