@adyen/kyc-components 4.25.0-beta.2 → 4.26.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-DKuivE0m.js → 4-people-CAxQpi_3.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-BKWCrZdZ.js → AcceptTermsOfServiceWorkflow-eOcHITwQ.js} +4 -4
- package/dist/{Accordion-D_DOaWj2.js → Accordion-BAdwrgCR.js} +4 -24
- package/dist/{AccountSetupRejected-BtcxtVKO.js → AccountSetupRejected-Jii0yaLC.js} +3 -4
- package/dist/{NodeRenderer-Z10yF5MV.js → AdaptiveWorkflow-B6SIOcbU.js} +87 -34
- package/dist/{AdaptiveWorkflowComponent-C4Q6NVtv.js → AdaptiveWorkflowComponent-we5_UgiI.js} +32 -33
- package/dist/{AddressFields-CFG2_P0x.js → AddressFields-Qq_8lUYz.js} +21 -27
- package/dist/{Avatar-k5lNd5KG.js → Avatar-C2zeqSSB.js} +10 -8
- package/dist/{BusinessFinancingDropin-BjTnxk__.js → BusinessFinancingDropin-gMa--znJ.js} +61 -71
- package/dist/{BusinessFinancingPage-C4dAslMp.js → BusinessFinancingPage-BIdRvI7h.js} +7 -7
- package/dist/{BusinessRegistrationNumberField-Dz1uGvRQ.js → BusinessRegistrationNumberField-Vr3KBWJD.js} +7 -8
- package/dist/{BusinessRegistrationNumberFieldGroup-BFPrFa1_.js → BusinessRegistrationNumberFieldGroup-DLGAFcRN.js} +7 -8
- package/dist/{BusinessTypeSelectionPage-DeWD37jR.js → BusinessTypeSelectionPage-9B2SxGcV.js} +16 -17
- package/dist/{Button-BxdC8cVB.js → Button-Dwr6jvJZ.js} +2 -2
- package/dist/Checkbox-zAGhz7rC.js +114 -0
- package/dist/{ComponentGroup-S6c3rVoX.js → ComponentGroup-DH_CH6bM.js} +4 -4
- package/dist/{ConstitutionalDocument-CNNhKkzD.js → ConstitutionalDocument-DMNlJJzp.js} +25 -28
- package/dist/{ContactDetails-_HCOKj3-.js → ContactDetails-kwe-LwUD.js} +8 -13
- package/dist/{ContextGuidance-v-d9RQuo.js → ContextGuidance-1tQjHxTm.js} +3 -3
- package/dist/CountryField-BkNURmjP.js +56 -0
- package/dist/{Currency-3Z9i_AhY.js → Currency-BjBbhCzV.js} +10 -12
- package/dist/{CustomerSupport-B0UJHtAq.js → CustomerSupport-CT4s3fyC.js} +17 -17
- package/dist/DateField-CJeu0KoS.js +73 -0
- package/dist/{DebugModal-BxebnUyQ.js → DebugModal-YjFFNeOM.js} +12 -17
- package/dist/{DecisionMakerDetails-RF9BoMYF.js → DecisionMakerDetails-B4aCl2kl.js} +21 -24
- package/dist/{DecisionMakerDetailsPage-CGOs2Ubt.js → DecisionMakerDetailsPage-Dg_RbdxY.js} +43 -40
- package/dist/{DecisionMakers-qRoXooYA.js → DecisionMakers-Cq3yVb54.js} +55 -61
- package/dist/{DetailViewLayout-DNCGEd7b.js → DetailViewLayout-DJgAzdlZ.js} +8 -6
- package/dist/{Dropzone-cewfCgXt.js → Dropzone-Cgqct7ux.js} +8 -8
- package/dist/EmailField-CVwmsS5d.js +61 -0
- package/dist/{EmbeddedStatus-Keg7UojY.js → EmbeddedStatus-4YjyzkcD.js} +4 -4
- package/dist/{EndStateLayout-GHEYl82p.js → EndStateLayout-C5Pqler-.js} +3 -3
- package/dist/{EntityAssociation-BPtrqdQR.js → EntityAssociation-DzNk5XbC.js} +7 -7
- package/dist/{ErrorPanel-PefRq1M4.js → ErrorPanel-DtbpEeJk.js} +24 -19
- package/dist/{GlobalEntryModal-CTGSdkW7.js → GlobalEntryModal-D9rqts-z.js} +203 -78
- package/dist/{GlobalEntryPage-CdGXV-QZ.js → GlobalEntryPage-OTglAvMX.js} +10 -10
- package/dist/Icon-_YUEZg1p.js +175 -0
- package/dist/{IdentityNumber-Cz6-4YcM.js → IdentityNumber-9SwAYweE.js} +10 -12
- package/dist/{IdentityNumberFieldGroup-D2PV_4A5.js → IdentityNumberFieldGroup-B9SxTHei.js} +16 -14
- package/dist/{IdentityScreeningWorkflow-mbcaIctn.js → IdentityScreeningWorkflow-C-nLWlJS.js} +16 -16
- package/dist/{Image-Bn_Yyuof.js → Image-CxnjHtP1.js} +1 -1
- package/dist/{IndividualDropin-D1UOavsw.js → IndividualDropin-BpFRq3S4.js} +266 -281
- package/dist/{IndustryCodeFieldGroup-DmOqxPIg.js → IndustryCodeFieldGroup-CEWUFYmK.js} +9 -10
- package/dist/{InputDate-B0RNGCq2.js → InputDate-DjUm9FiK.js} +6 -29
- package/dist/InputDate.utils-D4Ov0KIl.js +25 -0
- package/dist/{InputGroup-B4U3QVEp.js → InputGroup-Bv005B22.js} +7 -6
- package/dist/{InputText-CwPK55J0.js → InputText-DtoBABE5.js} +42 -4
- package/dist/{Introduction-DFW6EaLG.js → Introduction-GW5FJSTJ.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-hdQc0T7D.js → InvitedDecisionMakerComponent-tahktJVa.js} +45 -45
- package/dist/{JpAddressFields-CzGnXBMk.js → JpAddressFields-CpRh_gFz.js} +13 -13
- package/dist/{LegalCompanyNameField-CV2EgRCw.js → LegalCompanyNameField-Coff77lN.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BiAfoErR.js → LegalRepresentativeDetailsPage-CXMGtJvO.js} +35 -34
- package/dist/{Link-C3dYYTm_.js → Link-D0Yqc2r0.js} +7 -6
- package/dist/{List-ywoRPg-q.js → List-qvNxW9lm.js} +3 -2
- package/dist/{ListItem-CHGVbHhB.js → ListItem-DY-qq1lS.js} +29 -4
- package/dist/{Loader-BVtlpTeo.js → Loader-BDaKGf77.js} +1 -1
- package/dist/{Modal-Dq44ZUNN.js → Modal-Dx_NESnV.js} +25 -5
- package/dist/{Name-BfQr3et_.js → Name-CrLaukRh.js} +5 -5
- package/dist/NumberField-CS93IGoS.js +60 -0
- package/dist/{PatriotActDisclosure-BNAsJXEL.js → PatriotActDisclosure-C3jKKi6y.js} +11 -12
- package/dist/{PayoutDetailsDropin-NyizAaYy.js → PayoutDetailsDropin-BxOJ9P17.js} +163 -158
- package/dist/{PayoutDetailsPage-NM0Eqf4K.js → PayoutDetailsPage-BxaCk685.js} +10 -9
- package/dist/{Review-CzgmjDcZ.js → Review-C81Qsrkg.js} +25 -24
- package/dist/{RootBusinessDetailsPage-B1a0hu8F.js → RootBusinessDetailsPage-CwRyRbEv.js} +9 -7
- package/dist/{RootBusinessLinesPage-Dv1uT7OS.js → RootBusinessLinesPage-C3GZQ-KO.js} +48 -53
- package/dist/{RootIndividualDetailsPage-vkjzmyF7.js → RootIndividualDetailsPage-CvVVlkJI.js} +42 -39
- package/dist/{Select-prMx73V9.js → Select-AiAom5JL.js} +330 -19
- package/dist/{SignPCIComponent-CIkdVNH2.js → SignPCIComponent-Dmr9dDYB.js} +19 -23
- package/dist/{SingpassSelection-B6NONcr4.js → SingpassSelection-BXHvwmgp.js} +7 -7
- package/dist/Skeleton-7xDqhYr-.js +30 -0
- package/dist/{SoleProprietorshipPage-BmNs557C.js → SoleProprietorshipPage-DKL4anrn.js} +7 -7
- package/dist/{SourceOfFundsPage-B5nZ3MjN.js → SourceOfFundsPage-2dxP6dlL.js} +46 -58
- package/dist/{SourceOfFundsWorkflow-IkLZG9JI.js → SourceOfFundsWorkflow-Didn1fld.js} +4 -4
- package/dist/{StackLayout-IUdNMDgW.js → StackLayout-J1ynSX-P.js} +6 -5
- package/dist/{utils-lIizXlcC.js → StateField-BoIVEnaZ.js} +89 -3
- package/dist/{Step-BJh4XZae.js → Step-CiwqdcuY.js} +19 -13
- package/dist/SummarySection-B6A_AT1m.js +60 -0
- package/dist/{Task-yQcY16x1.js → Task-CJDcviJ6.js} +8 -8
- package/dist/{TaskGroup-C9iFHpux.js → TaskGroup-BXkrbyTG.js} +5 -5
- package/dist/{TaskListItem-ChlmCIfF.js → TaskListItem-CQXvVRWG.js} +11 -11
- package/dist/{TaskStepperContextProvider-I7talGDO.js → TaskStepperContextProvider-9wlnwii7.js} +1 -1
- package/dist/{TaskVerificationStatus-Bd5Eftf2.js → TaskVerificationStatus-zoxTZ2mt.js} +3 -3
- package/dist/{TaxInformationFieldGroup-Dq0J9rBU.js → TaxInformationFieldGroup-CnaGMge9.js} +19 -18
- package/dist/{TaxReportingDropin-Cq3gBWtp.js → TaxReportingDropin-F4e4CxiC.js} +22 -26
- package/dist/{TaxReportingWorkflow-flQPRAPy.js → TaxReportingWorkflow-Caa_klQR.js} +4 -4
- package/dist/{TermsOfServiceManagement-BM5K4cpw.js → TermsOfServiceManagement-5x2f0QgC.js} +21 -30
- package/dist/{TextArea-C12oXMzX.js → TextArea-eJQFkYyd.js} +5 -5
- package/dist/TextField-Ca7rT4tr.js +73 -0
- package/dist/{TrustDetailsPage-z7s9FxVC.js → TrustDetailsPage-D3RkKlpJ.js} +59 -67
- package/dist/{TrustMemberCompanyPage-tU2HTiDG.js → TrustMemberCompanyPage-BvBxQg7D.js} +8 -8
- package/dist/{TrustMemberIndividualPage-BLBtnoSq.js → TrustMemberIndividualPage-D4idWK8j.js} +35 -34
- package/dist/{TrustMemberRoleAndTypePage-DIwrtOWr.js → TrustMemberRoleAndTypePage-CyKm_knd.js} +23 -30
- package/dist/{TrustMembersOverview-CowTgfIb.js → TrustMembersOverview-BnP0wZSf.js} +18 -22
- package/dist/{UboTaskItem-CZLDzQil.js → UboTaskItem-Degn5OyC.js} +8 -8
- package/dist/{UnincorporatedPartnershipIndividualPage-BT0j54-O.js → UnincorporatedPartnershipIndividualPage-Bgb4oCRJ.js} +35 -34
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js → UnincorporatedPartnershipMemberCompanyPage-T6SOH3Mv.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js → UnincorporatedPartnershipMemberRoleAndTypePage-BVfav_Z_.js} +14 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-5w1BrDMI.js → UnincorporatedPartnershipMembersOverview-DPW48_Lv.js} +11 -14
- package/dist/VerificationErrorAlert-q1SEqBXx.js +68 -0
- package/dist/WebsiteField-CnOU49Hn.js +62 -0
- package/dist/{Workflow-CF-HUIjR.js → Workflow-D298oRt0.js} +9 -9
- package/dist/{accountHolderUtils-CAu4V0ed.js → accountHolderUtils-CLuKAgaj.js} +3 -3
- package/dist/adyen-business-financing.js +8 -9
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +8 -9
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +61 -59
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -7
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +16 -22
- package/dist/adyen-verification-status.js +7 -9
- package/dist/{arrow-right-D2hul7WG.js → arrow-right-BwP9nNDE.js} +2 -2
- package/dist/bafinUtils-CsDthERR.js +3548 -0
- package/dist/{bag-CRRS1aow.js → bag-Cnk9dcZg.js} +2 -2
- package/dist/{bank-BoirCLLW.js → bank-UssyP-aG.js} +2 -2
- package/dist/bg-BG-C7z9VtPy.js +7 -0
- package/dist/{bin-BOmfqfrr.js → bin--Ft4cPCj.js} +2 -2
- package/dist/{capital-DTjbiurV.js → capital-BbOFhTHY.js} +2 -2
- package/dist/{cash-stack-7KpYpBek.js → cash-stack-LTzc8hQZ.js} +2 -2
- package/dist/{certificate-BPuoJ6Ip.js → certificate-CswNcwlI.js} +2 -2
- package/dist/{checkmark-BiSLf8M1.js → checkmark-DH1abKZn.js} +2 -2
- package/dist/{checkmark-circle-Ams7bSve.js → checkmark-circle-VWM-JsI6.js} +2 -2
- package/dist/{checkmark-circle-fill-_p4ss4ac.js → checkmark-circle-fill-AuW2DQDT.js} +2 -2
- package/dist/{checkmark-small-3bw4ftPV.js → checkmark-small-B6vsnsSO.js} +2 -2
- package/dist/{chevron-down-GgZawvoy.js → chevron-down-BGAMP7CF.js} +2 -2
- package/dist/{chevron-left-TeZTTvo5.js → chevron-left-EjFIt8Cd.js} +2 -2
- package/dist/{chevron-right-Cg8XlTxx.js → chevron-right-B5zb9mkt.js} +2 -2
- package/dist/{chevron-up-COQUTli0.js → chevron-up-DZiittpJ.js} +2 -2
- package/dist/{circle-CypWzg83.js → circle-CygvxRY_.js} +2 -2
- package/dist/{circle-small-filled-DfdK2A35.js → circle-small-filled-PeElhgJU.js} +2 -2
- package/dist/{clock-DmfGJ2r9.js → clock-CQXEE5jK.js} +2 -2
- package/dist/{coins-CBvbB8_X.js → coins-C7syygUR.js} +2 -2
- package/dist/{constants-DAb_IqC6.js → constants-Dvga6KjU.js} +7 -8
- package/dist/{contract-D1_RJ_xh.js → contract-BWEAd7e-.js} +2 -2
- package/dist/{countries-BGMTpyJv.js → countries-ZMuvRtQR.js} +1 -1
- package/dist/{country-BEZkohEO.js → country-WYlusjTL.js} +2 -2
- package/dist/{cross-circle-fill-CUXdo1x-.js → cross-circle-fill-Bxj_fgQE.js} +2 -2
- package/dist/cross-circle-fill-small-DwUKcL9P.js +20 -0
- package/dist/{cross-BORHADVQ.js → cross-vK6qh9R0.js} +2 -2
- package/dist/cs-CZ-B_u3kWRS.js +7 -0
- package/dist/da-DK-s_nCUhFO.js +7 -0
- package/dist/de-DE-5lHcZmT6.js +7 -0
- package/dist/{decisionMakerRoles-JEb0ON4e.js → decisionMakerRoles-DA8MK9Dh.js} +2 -2
- package/dist/{document-1-qvV57JdS.js → document-1-BPWF8zKf.js} +2 -2
- package/dist/{document-person-DiJ7M8-D.js → document-person-DVRFNq7g.js} +2 -2
- package/dist/{documentUtils-CxjFpoJB.js → documentUtils-6K3LdjjN.js} +6 -4
- package/dist/{download-Ca4w0Yfr.js → download-DfdpoHdN.js} +2 -2
- package/dist/dropinUtils-CSlRmPSn.js +2572 -0
- package/dist/{edit-1-D8VhDchs.js → edit-1-BgVB06zI.js} +2 -2
- package/dist/el-GR-DTaQeK-A.js +7 -0
- package/dist/{entityAssociationUtil-CY0grcyH.js → entityAssociationUtil-BlfcBl3i.js} +1 -1
- package/dist/{error-DrzrPjvf.js → error-DjErFfKK.js} +3 -3
- package/dist/es-ES-tZMJvO6B.js +7 -0
- package/dist/es-LA-C0x1nQUQ.js +7 -0
- package/dist/et-EE-BqB-3lW_.js +7 -0
- package/dist/{external-link-Dy4le-8Q.js → external-link-BbXGAtFE.js} +2 -2
- package/dist/fi-FI-BpwWFhLW.js +7 -0
- package/dist/{form-rules-DhuNdiqF.js → form-rules-HzaYJh36.js} +90 -5
- package/dist/{formatValidationError-z2D5oU1e.js → formatValidationError-D3vBdIym.js} +2 -2
- package/dist/fr-FR-DMPXwPYV.js +7 -0
- package/dist/{getDefaultRegistrationNumberType-BNO2BcfK.js → getDefaultRegistrationNumberType-CiEvyeR9.js} +5 -7
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-CxtXJ0-P.js} +23 -5
- package/dist/{getName-DgxRqagk.js → getName-Cii7OyRd.js} +2 -2
- package/dist/{getProblemsForEntity-BY_voJ99.js → getProblemsForEntity-mdb3Bfpj.js} +3 -3
- package/dist/{getTrustedDecisionMakers-Ta-pURcL.js → getTrustedDecisionMakers-D89oYOLp.js} +2 -2
- package/dist/getValidationError-DvQgc-X3.js +19 -0
- package/dist/{gift-Bs_mAgul.js → gift-BjS6ErNG.js} +2 -2
- package/dist/{graph-Co0JhGiY.js → graph-B8rX9eXr.js} +2 -2
- package/dist/{graph-up-DIvH9haf.js → graph-up-Dwaq7upe.js} +2 -2
- package/dist/{headquarter-BESfDGKh.js → headquarter-CXwws_UP.js} +2 -2
- package/dist/{hotel-Vne7G5M6.js → hotel-CD5Lv9P7.js} +2 -2
- package/dist/hr-HR-D5kV_w60.js +7 -0
- package/dist/{http-DsJtugN1.js → http-C8rt2BZk.js} +5 -4
- package/dist/hu-HU-Bl1dnZfO.js +7 -0
- package/dist/{image-BQM21XCk.js → image-BTE2a8ZV.js} +2 -2
- package/dist/{info-DExoPRH5.js → info-BTc0bCCM.js} +2 -2
- package/dist/{info-filled-11KMeUso.js → info-filled-DhYinieW.js} +2 -2
- package/dist/it-IT-DiuPLWbr.js +7 -0
- package/dist/ja-JP-COBWjdXk.js +7 -0
- package/dist/{legalArrangementUtils-C68JdH6I.js → legalArrangementUtils-Crgt_L7h.js} +1 -1
- package/dist/{location-zRH5zJ8c.js → location-CwE3Q0gg.js} +2 -2
- package/dist/lt-LT-D9Pum2_8.js +7 -0
- package/dist/lv-LV-DDcLP43G.js +7 -0
- package/dist/{mail-i1-zg-cv.js → mail-CIeugZTd.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js → mapAddressLocalizationToJpAddressSchema-BLOAhwWM.js} +2 -2
- package/dist/{mapExistingFile-RrS8dCpX.js → mapExistingFile-BXfeQxev.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js → mapJpAddressSchemaToAddressLocalizations-cseKFm-l.js} +16 -15
- package/dist/{mapLegalEntityToIndividualSchema-DtT3pcZJ.js → mapLegalEntityToIndividualSchema-DvGFy20Z.js} +12 -13
- package/dist/{mapTransferInstrumentToPayoutAccount-BpXU-nP1.js → mapTransferInstrumentToPayoutAccount-Cq7PMPOa.js} +4 -4
- package/dist/{minus-circle-filled-CxUdRO8J.js → minus-circle-filled-96DZCdcJ.js} +2 -2
- package/dist/nl-NL-CBRRvqAY.js +7 -0
- package/dist/no-NO-C9lYR_fQ.js +7 -0
- package/dist/{options-horizontal-D86T_xAF.js → options-horizontal-BU9r-Xx3.js} +2 -2
- package/dist/{partner-Dje0ykF6.js → partner-C1SWc0pB.js} +2 -2
- package/dist/{pay-by-link-plane-DAiddPu6.js → pay-by-link-plane-xK4Zkol0.js} +2 -2
- package/dist/{payout-DKiGv3F9.js → payout-zGf0LNbo.js} +2 -2
- package/dist/{pdf-CC8vqpTo.js → pdf-Bbs3Ji9v.js} +157 -174
- package/dist/{pdf.worker.min-CdKJICZZ.js → pdf.worker.min-DTQpK-0h.js} +67 -58
- package/dist/{person-DgALGIIz.js → person-xTKhpEGR.js} +2 -2
- package/dist/pl-PL-CZST_1gV.js +7 -0
- package/dist/{plus-DlQKP2C9.js → plus-Cm_dWRpB.js} +2 -2
- package/dist/{plus-circle-filled-BntUOVIJ.js → plus-circle-filled-Df77eidx.js} +2 -2
- package/dist/{processCapabilities-CWE5UFt8.js → processCapabilities-FL4-KAbd.js} +7 -9
- package/dist/{processValidationErrors-CFU1x_1n.js → processValidationErrors-Cn-RYAun.js} +4 -4
- package/dist/pt-BR-C32QroLH.js +7 -0
- package/dist/pt-PT-ByfmK1XA.js +7 -0
- package/dist/{recurring-DZgT_ekJ.js → recurring-BfwVHJ2Z.js} +2 -2
- package/dist/resolveEnvironment-D8-1H8bU.js +2516 -0
- package/dist/{revenue-accelerate-aMLYFVW6.js → revenue-accelerate-ClN0cx7Z.js} +2 -2
- package/dist/ro-RO-YkglLwfY.js +7 -0
- package/dist/{save-uDNye08N.js → save-QK2A-teG.js} +2 -2
- package/dist/{search-0OS6oe8N.js → search-DVSyT7Q7.js} +2 -2
- package/dist/{uppercase-DvjwUM0n.js → sharedValidators-DODW7kuK.js} +5 -3
- package/dist/{show-BWoS9-Y1.js → show-BRWLIRSA.js} +2 -2
- package/dist/sk-SK-BYRIVzdY.js +7 -0
- package/dist/sl-SI-Cjub_bfF.js +7 -0
- package/dist/{solution-payments-BMal7uJZ.js → solution-payments-BZZceFVV.js} +2 -2
- package/dist/{store-N7ZA4FKy.js → store-DLKKLXhn.js} +2 -2
- package/dist/style.css +1418 -1157
- package/dist/styles-DYaAeu4q.js +1418 -1157
- package/dist/sv-SE-1re-9Lp8.js +7 -0
- package/dist/{terminal-1-0RlQpbUC.js → terminal-1-CpAyEdjO.js} +2 -2
- package/dist/{translation-DbATp_35.js → translation-CpH8D2NK.js} +34 -30
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +19 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/CountryField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/NumberField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/validators.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/WebsiteField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/getValidationError.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/utils/validators/sharedValidators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/types.d.ts +6 -0
- package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
- package/dist/types/api/address/useSearchAddress.d.ts +2 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -293
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
- package/dist/types/api/invitations/useInvitationStatus.d.ts +1 -1
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
- package/dist/types/api/pci/usePciStatus.d.ts +2 -2
- package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -245
- package/dist/types/api/toggles/useToggles.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -2
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +3 -2
- package/dist/types/components/GlobalEntry/hooks/usePrefetchCompanySearch.d.ts +11 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +4 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +7 -6
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -4
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +11 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +8 -0
- package/dist/types/context/ToggleContext/types.d.ts +3 -13
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{types-D6p5FQF-.js → types-BymnGWO9.js} +1 -1
- package/dist/{types-B9zXzag-.js → types-qahGXhtr.js} +1 -1
- package/dist/{upload-C5NC1E4N.js → upload-BI7LKlDm.js} +2 -2
- package/dist/{useAdaptiveWorkflow-DsQESk9f.js → useAdaptiveWorkflow-B35cXauP.js} +1 -1
- package/dist/{useBusinessDetailsData-dsYTeDom.js → useBusinessDetailsData-BEM6OCqH.js} +132 -150
- package/dist/{useBusinessLines-BhSN6qCH.js → useBusinessLines-0FcuDMzo.js} +1 -1
- package/dist/{useCanSeeIntroduction-BLGY7sE-.js → useCanSeeIntroduction-B6BDOCm_.js} +5 -5
- package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js} +3 -3
- package/dist/{useForm-BFeaSvlP.js → useForm-fYu8sJ-i.js} +6 -6
- package/dist/{useHideTaskStepper-C_w6iUY-.js → useHideTaskStepper-BgCN--mG.js} +1 -1
- package/dist/{invalidateRootLegalEntity-B97dCa-s.js → useId-CEUET5IS.js} +32 -4
- package/dist/{useIndustryCodes-uAj90IyS.js → useIndustryCodes-La1cU8oH.js} +1 -1
- package/dist/{useLegalEntity-QQXN6YOm.js → useLegalEntity-CxeMoCm4.js} +4 -3
- package/dist/{useNavigate-J0sRAAoI.js → useNavigate-B1z7McBl.js} +33 -33
- package/dist/{useOnboardingStatus-CsGUjkm-.js → useOnboardingStatus-CX8IrDe_.js} +1 -1
- package/dist/{usePciQuestionnaireList-CFNJD8pS.js → usePciQuestionnaireList-CB_tjNsz.js} +1 -1
- package/dist/{useSalesChannels-huIL6Dhk.js → useSalesChannels-DJAmDo-r.js} +5 -5
- package/dist/{useScenarios-DV2TeNvN.js → useScenarios-DfE71fl7.js} +7 -6
- package/dist/{useSettingsContext-9O3Aqpfq.js → useSettingsContext-Bpf4UqRT.js} +6 -3
- package/dist/{useTaskLandedEvent-DwZHcMEQ.js → useTaskLandedEvent-BtuFBe20.js} +2 -2
- package/dist/{useTaskStatus-CgrhdaE_.js → useTaskStatus-4nAPf_uD.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DbJDklA2.js → useTermsOfServiceStatus-FDpSDjco.js} +1 -1
- package/dist/{useTrustMembers-uhgi2qfN.js → useTrustMembers-D3sCwcaT.js} +9 -8
- package/dist/{useUnincorporatedPartnershipMembers-DVEWj1is.js → useUnincorporatedPartnershipMembers-DcfQJdVZ.js} +5 -5
- package/dist/{useUpdateBusinessLines-DCKYTzxd.js → useUpdateBusinessLines-B-pF2YT-.js} +1 -1
- package/dist/{utils-SKYT7xU4.js → utils-BFxg3gPM.js} +2 -2
- package/dist/{utils-D8pwjFm5.js → utils-CcBgYW2P.js} +5 -6
- package/dist/utils-Oc-YLiM0.js +214 -0
- package/dist/{validate-BBVJuFm5.js → validate-1rlz-OH4.js} +15 -17
- package/dist/{validate-Bkpa-y5Q.js → validate-B2P8hpA5.js} +7 -7
- package/dist/{validate-t6pT7AaZ.js → validate-S1Bm0XnT.js} +3 -3
- package/dist/{validate-Dmdw3pYn.js → validate-x5CYfY5E.js} +2 -2
- package/dist/{validateExtractionResult-qkFkcrwl.js → validateExtractionResult-IRRMwcNi.js} +5 -7
- package/dist/{warning-circle-fill-C2lMYPJW.js → warning-circle-fill-ClFvGo5m.js} +2 -2
- package/dist/{warning-diamond-filled-CQ2DdW5g.js → warning-diamond-filled-CWyKR65i.js} +2 -2
- package/dist/{webinar-BpZWqd-g.js → webinar-DWX7Z5Wz.js} +2 -2
- package/package.json +36 -36
- package/dist/AdaptiveWorkflow-2EE8iiMD.js +0 -33
- package/dist/Alert-BqbbDRYR.js +0 -172
- package/dist/AnalyticsContext-CpimDlw4.js +0 -21
- package/dist/Checkbox-qfdF12cF.js +0 -60
- package/dist/Confirm-DjFpxSzC.js +0 -77
- package/dist/CountryField-CMOB4yz4.js +0 -38
- package/dist/DataConflictsModal-8Nnj7_UD.js +0 -238
- package/dist/Field-Df7ajJE2.js +0 -154
- package/dist/FormFlow.module-DqMxjYHl.js +0 -20
- package/dist/Header-DvifUz7-.js +0 -93
- package/dist/Icon-DFQgr7dy.js +0 -175
- package/dist/LandingLayout-BsIoIFzs.js +0 -76
- package/dist/LegalName-BYQ12uWc.js +0 -33
- package/dist/LoaderWrapper-Dc88hY-P.js +0 -34
- package/dist/MaskedInput-CkDwzLxe.js +0 -719
- package/dist/MaybeModal-Dfm1rIUG.js +0 -24
- package/dist/NewSummary-DYLlnpwx.js +0 -73
- package/dist/ProgressBar-DWFxLMUA.js +0 -38
- package/dist/RadioGroup-CY33MT83.js +0 -47
- package/dist/RadioWithLabel-BmUFWDxq.js +0 -45
- package/dist/SettingsContext-Dl-9WWCI.js +0 -9
- package/dist/StateContext-B2_Pqd_y.js +0 -9
- package/dist/StateField-BiNI3dm9.js +0 -55
- package/dist/StructuredList-BHUmeWeh.js +0 -56
- package/dist/Summary-BTDbRMfh.js +0 -235
- package/dist/TaxInformationField--Uhp0zLv.js +0 -242
- package/dist/TileGroup-BFcSgQ1l.js +0 -172
- package/dist/ToastContext-B_wd2IY2.js +0 -13
- package/dist/ToastContextProvider-BSQ1Upl_.js +0 -103
- package/dist/VerificationErrorAlert-B6HmAZ0g.js +0 -38
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +0 -14
- package/dist/bafinUtils-RXELXyTR.js +0 -96
- package/dist/bg-BG-DfbtcqF4.js +0 -7
- package/dist/birthDateUtils-D6uk7zwm.js +0 -84
- package/dist/businessRegistrationNumberPatterns-pbrCVTTp.js +0 -982
- package/dist/cross-circle-fill-small-DdoPZZeo.js +0 -20
- package/dist/cs-CZ-CajuRLo4.js +0 -7
- package/dist/da-DK-BEwmSejn.js +0 -7
- package/dist/datasetUtil-BdHPWsxZ.js +0 -45
- package/dist/de-DE-PyK3jl-6.js +0 -7
- package/dist/debouncedInputEvent-Fwwp_K_-.js +0 -54
- package/dist/debugStore-Dwn1FXrh.js +0 -9
- package/dist/dropinUtils-OsMsnnYG.js +0 -496
- package/dist/el-GR-KPFghikv.js +0 -7
- package/dist/es-ES-z4jLCvkJ.js +0 -7
- package/dist/es-LA-Dx4QymCh.js +0 -7
- package/dist/et-EE-1EhDxtTe.js +0 -7
- package/dist/fi-FI-Dc2RMc_u.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/formFieldsUtils-CnDkgahc.js +0 -7
- package/dist/formUtils-BHgG8yQZ.js +0 -52
- package/dist/formUtils-DAKrWwgL.js +0 -84
- package/dist/fr-FR-DswL4wQ1.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/globalStore--_np-9ON.js +0 -418
- package/dist/hr-HR-DI2D_V50.js +0 -7
- package/dist/hu-HU-lyRcZjGI.js +0 -7
- package/dist/isEmpty-Uewyl-r6.js +0 -14
- package/dist/isEmptyEntity-3OHnhXqG.js +0 -43
- package/dist/it-IT-Bn4CEcmI.js +0 -7
- package/dist/ja-JP-CAX_xwUx.js +0 -7
- package/dist/keys-Ce8YnRP2.js +0 -20
- package/dist/listToRecord-DumSkYDz.js +0 -10
- package/dist/lt-LT-BdgYuJW7.js +0 -7
- package/dist/lv-LV-Bz5c0Psg.js +0 -7
- package/dist/mapScriptLocalization-BCfkZo1y.js +0 -46
- package/dist/nl-NL-BE2cQh0x.js +0 -7
- package/dist/no-NO-vgzpp44v.js +0 -7
- package/dist/patternValidators-DsrZkuOO.js +0 -73
- package/dist/pl-PL-DgDSRVmp.js +0 -7
- package/dist/pt-BR-BaKp-J8F.js +0 -7
- package/dist/pt-PT-Df48oeP5.js +0 -7
- package/dist/resolveEnvironment-CcCbs90B.js +0 -999
- package/dist/ro-RO-CTMsv_EY.js +0 -7
- package/dist/roleMetadata-CbgaYaH8.js +0 -56
- package/dist/sk-SK-oqO5I3Aw.js +0 -7
- package/dist/sl-SI-CQhJFnpj.js +0 -7
- package/dist/summaryItem-uDWmtYtt.js +0 -16
- package/dist/sv-SE-CmevESLi.js +0 -7
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/trustUtil-BG17fZ56.js +0 -98
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +0 -14
- package/dist/types-B28r2lAW.js +0 -30
- package/dist/types-CZAHRt31.js +0 -147
- package/dist/useAccountHolder-BpIX1iBG.js +0 -102
- package/dist/useAllowedCountries-qyvo-c6A.js +0 -80
- package/dist/useAnalyticsContext-gSnRnYgV.js +0 -12
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useDataset-K19TDoyR.js +0 -98
- package/dist/useDeleteTransferInstrument-C10xzHiO.js +0 -31
- package/dist/useId-BkDhUta2.js +0 -28
- package/dist/useMultiForm-CM3lpilP.js +0 -790
- package/dist/useToastContext-B6Mqc2HY.js +0 -12
- package/dist/useToggleContext-B_YexrbT.js +0 -21
- package/dist/useUpdateLegalEntity-B7LRg8m0.js +0 -29
- package/dist/utils-BLBh0VEd.js +0 -1755
- package/dist/utils-CYUYe54m.js +0 -24
- package/dist/utils-DdHbAadK.js +0 -80
- package/dist/validationError-DUn2rT0n.js +0 -55
- package/dist/validationResult-bjYBDjbU.js +0 -29
- package/dist/validatorUtils-D2O6AAZn.js +0 -106
- /package/dist/{pt-BR-CPbFPNwq2.js → pt-BR-CPbFPNwq.js} +0 -0
|
@@ -1,73 +1,52 @@
|
|
|
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] = "fb6f691d-8436-4363-86f6-6577834bab99", e._sentryDebugIdIdentifier = "sentry-dbid-fb6f691d-8436-4363-86f6-6577834bab99");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, E as useAllowedCountries, it as isEmpty, k as Header, mt as useAccountHolder, x as Alert } from "./resolveEnvironment-D8-1H8bU.js";
|
|
6
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { t as Loader } from "./Loader-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
10
|
-
import { s as useApiContext } from "./http-
|
|
9
|
+
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
+
import { t as Button } from "./Button-Dwr6jvJZ.js";
|
|
11
|
+
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
11
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
12
|
-
import { t as
|
|
13
|
+
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
13
14
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
14
|
-
import {
|
|
15
|
-
import { t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
|
|
16
|
-
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
|
|
17
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
18
|
-
import { t as Header } from "./Header-DvifUz7-.js";
|
|
19
|
-
import { t as useAllowedCountries } from "./useAllowedCountries-qyvo-c6A.js";
|
|
15
|
+
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
20
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
21
|
-
import {
|
|
22
|
-
import { y as reverseMapping } from "./processCapabilities-CWE5UFt8.js";
|
|
17
|
+
import { y as reverseMapping } from "./processCapabilities-FL4-KAbd.js";
|
|
23
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
24
|
-
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
19
|
+
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
20
|
+
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-zAGhz7rC.js";
|
|
21
|
+
import { i as useAnalyticsContext } from "./Modal-Dx_NESnV.js";
|
|
22
|
+
import { t as InputText } from "./InputText-DtoBABE5.js";
|
|
23
|
+
import { t as ListItem } from "./ListItem-DY-qq1lS.js";
|
|
24
|
+
import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
27
25
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { t as Field } from "./Field-Df7ajJE2.js";
|
|
44
|
-
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
45
|
-
import { r as isBusinessSelectionLegalArrangementError } from "./validationError-DUn2rT0n.js";
|
|
46
|
-
import { t as ListItem } from "./ListItem-CHGVbHhB.js";
|
|
47
|
-
import { t as TileGroup } from "./TileGroup-BFcSgQ1l.js";
|
|
48
|
-
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-CMOB4yz4.js";
|
|
49
|
-
import { c as COUNTRIES_WITH_STATES_DATASET } from "./utils-lIizXlcC.js";
|
|
50
|
-
import { n as StateField, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-BiNI3dm9.js";
|
|
51
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-CV2EgRCw.js";
|
|
52
|
-
import { t as InputText } from "./InputText-CwPK55J0.js";
|
|
53
|
-
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
54
|
-
import { n as TaxInformationField, r as isJapanLocalizationEnabled, t as TAX_INFORMATION_FIELD } from "./TaxInformationField--Uhp0zLv.js";
|
|
55
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-Dz1uGvRQ.js";
|
|
56
|
-
import { r as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-C68JdH6I.js";
|
|
57
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-8Nnj7_UD.js";
|
|
58
|
-
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
59
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/compat";
|
|
60
|
-
import { useContext as useContext$1, useMemo as useMemo$1, useRef as useRef$1 } from "preact/hooks";
|
|
61
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
26
|
+
import { r as useToastContext } from "./useId-CEUET5IS.js";
|
|
27
|
+
import { o as getPropsFromConfigurations, r as resolveFieldMetadata, t as createFormRules } from "./form-rules-HzaYJh36.js";
|
|
28
|
+
import { p as LoaderWrapper, r as Field } from "./Select-AiAom5JL.js";
|
|
29
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-Oc-YLiM0.js";
|
|
30
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useClearCompanyData, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-1rlz-OH4.js";
|
|
31
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, m as useCreateLegalEntity, n as StateField, p as useUpdateLegalEntity, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-BoIVEnaZ.js";
|
|
32
|
+
import { I as useFormComposer, K as createFormUtils, N as useMultiForm, R as summaryStep, Y as FormContextProvider, _ as FormFlow, c as COUNTRY_FIELD, f as isBusinessSelectionLegalArrangementError, g as useFormContext, l as CountryField, t as addValidityToForms } from "./dropinUtils-CSlRmPSn.js";
|
|
33
|
+
import { t as List } from "./List-qvNxW9lm.js";
|
|
34
|
+
import { A as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, B as isUsingCompanySearch, C as getValidCompanyTypesForTaxIdNumberType, D as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, F as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, H as mapLocalizationToJapaneseLegalNames, I as REGISTRATION_NUMBER_EXEMPTION_RULES, L as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, M as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, N as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, O as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, P as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, R as isRegistrationExemptionAllowed, T as TileGroup, V as mapJapaneseLegalNamesToLocalization, _ as getTaxInformationPlaceholderText, c as DataConflictsModal, j as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, k as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, x as isJapanLocalizationEnabled, y as taxInformationDefaultFieldMetadata, z as isRegistrationNumberAbsentStateV4Scenario } from "./bafinUtils-CsDthERR.js";
|
|
35
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CiEvyeR9.js";
|
|
36
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Coff77lN.js";
|
|
37
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-Vr3KBWJD.js";
|
|
38
|
+
import { r as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-Crgt_L7h.js";
|
|
39
|
+
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
40
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
62
41
|
import { createModel, signal, useModel, useSignal } from "@preact/signals";
|
|
63
42
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
64
|
-
import { createContext
|
|
43
|
+
import { createContext } from "preact";
|
|
65
44
|
import { Show } from "@preact/signals/utils";
|
|
66
45
|
//#region src/components/GlobalEntry/globalEntryStore.ts
|
|
67
46
|
var showGlobalEntryModal = signal(false);
|
|
68
47
|
//#endregion
|
|
69
48
|
//#region src/components/GlobalEntry/utils/applyVerifiedCompanyData.ts
|
|
70
|
-
var mergeVerifiedCompanyData = (data, country, verifiedData, options) => {
|
|
49
|
+
var mergeVerifiedCompanyData$1 = (data, country, verifiedData, options) => {
|
|
71
50
|
const registrationInformation = {
|
|
72
51
|
...data.registrationInformation,
|
|
73
52
|
legalCompanyName: verifiedData.name
|
|
@@ -92,7 +71,7 @@ var mergeVerifiedCompanyData = (data, country, verifiedData, options) => {
|
|
|
92
71
|
*/
|
|
93
72
|
var applyVerifiedCompanyData = (form, country, verifiedData, options) => {
|
|
94
73
|
if (!verifiedData) return form.data;
|
|
95
|
-
const confirmedData = mergeVerifiedCompanyData(form.data, country, verifiedData, options);
|
|
74
|
+
const confirmedData = mergeVerifiedCompanyData$1(form.data, country, verifiedData, options);
|
|
96
75
|
const confirmedRegistration = confirmedData.registrationInformation;
|
|
97
76
|
const confirmedCompanyType = confirmedData.companyStructure?.organizationType;
|
|
98
77
|
form.handleChangeFor("registrationInformation", "legalCompanyName")(confirmedRegistration?.legalCompanyName);
|
|
@@ -171,7 +150,7 @@ function confirmBusinessAnalytics(userEvents, idx) {
|
|
|
171
150
|
//#region src/components/GlobalEntry/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.tsx
|
|
172
151
|
function BusinessInformation({ fetching, selectedBusiness }) {
|
|
173
152
|
const { t } = useTranslation(["common", "business"]);
|
|
174
|
-
const cardDetails = useMemo
|
|
153
|
+
const cardDetails = useMemo(() => {
|
|
175
154
|
if (!selectedBusiness) return [];
|
|
176
155
|
const address = selectedBusiness.registeredAddress ?? selectedBusiness.principalPlaceOfBusinessAddress;
|
|
177
156
|
const addressDetails = address && typeof address !== "string" && "fullAddress" in address ? address.fullAddress : void 0;
|
|
@@ -250,7 +229,7 @@ function BusinessSelection({ id, country }) {
|
|
|
250
229
|
const queryClient = useQueryClient();
|
|
251
230
|
const userEvents = useAnalyticsContext();
|
|
252
231
|
const logger = createLogger();
|
|
253
|
-
const companySearchStateModel = useContext
|
|
232
|
+
const companySearchStateModel = useContext(CompanySearchStateContext);
|
|
254
233
|
const { data, valid, errors, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "businessSelection");
|
|
255
234
|
const { data: companySearchResponse, isLoading: searching } = useCompanySearch({
|
|
256
235
|
name: companySearchStateModel.companySearchName.value ?? "",
|
|
@@ -276,7 +255,7 @@ function BusinessSelection({ id, country }) {
|
|
|
276
255
|
* could perhaps auto-select the result, without caching, we'd have another spinner & wait time for
|
|
277
256
|
* the user. Better to force a manual re-selection to work around our rough implementation details.
|
|
278
257
|
*/
|
|
279
|
-
const isInitializedRef = useRef
|
|
258
|
+
const isInitializedRef = useRef(false);
|
|
280
259
|
if (!isInitializedRef.current) {
|
|
281
260
|
if (data?.selectedBusinessId) {
|
|
282
261
|
handleChangeFor("selectedBusinessId", "blur")("");
|
|
@@ -691,7 +670,7 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
691
670
|
value: "unincorporatedAssociation",
|
|
692
671
|
icon: "trust"
|
|
693
672
|
}];
|
|
694
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
673
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Field, {
|
|
695
674
|
el: "fieldset",
|
|
696
675
|
name: "unincorporatedOrganizationType",
|
|
697
676
|
label: t(($) => $["whichBestDescribesYourOrganization"]),
|
|
@@ -1039,9 +1018,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1039
1018
|
case "LEGAL_ARRANGEMENT":
|
|
1040
1019
|
legalArrangementModalOpen.value = true;
|
|
1041
1020
|
break;
|
|
1042
|
-
default:
|
|
1043
|
-
logger.error("Unhandled disallowed selection reason");
|
|
1044
|
-
break;
|
|
1021
|
+
default: logger.error("Unhandled disallowed selection reason");
|
|
1045
1022
|
}
|
|
1046
1023
|
return null;
|
|
1047
1024
|
}
|
|
@@ -1065,6 +1042,81 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
1065
1042
|
};
|
|
1066
1043
|
}
|
|
1067
1044
|
//#endregion
|
|
1045
|
+
//#region src/components/GlobalEntry/hooks/usePrefetchCompanySearch.ts
|
|
1046
|
+
var getRootElement = () => {
|
|
1047
|
+
const onboardingWC = document.querySelector("adyen-onboarding");
|
|
1048
|
+
return (onboardingWC && onboardingWC?.shadowRoot) ?? document;
|
|
1049
|
+
};
|
|
1050
|
+
var isEntityInformationField = (fieldName) => fieldName === "country" || fieldName === "stateOrProvince";
|
|
1051
|
+
var getRelatedFields = (country) => {
|
|
1052
|
+
const baseFields = [
|
|
1053
|
+
"legalCompanyName",
|
|
1054
|
+
"country",
|
|
1055
|
+
"registrationNumber"
|
|
1056
|
+
];
|
|
1057
|
+
switch (country) {
|
|
1058
|
+
case "US": return baseFields.concat(["stateOrProvince"]);
|
|
1059
|
+
default: return baseFields;
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCompanySearch }) {
|
|
1063
|
+
const queryClient = useQueryClient();
|
|
1064
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1065
|
+
const userEvents = useAnalyticsContext();
|
|
1066
|
+
/**
|
|
1067
|
+
* This is quite US-specific at the moment and could do with some work to make
|
|
1068
|
+
* generic, but to avoid putting the cart before the horse, it'll intentionally
|
|
1069
|
+
* remain as-is.
|
|
1070
|
+
*/
|
|
1071
|
+
const prefetchCompanySearchResults = useCallback(async () => {
|
|
1072
|
+
const root = getRootElement(), activeElementName = (root.activeElement && root.activeElement.getAttribute("name")) ?? "";
|
|
1073
|
+
const fieldNames = getRelatedFields(country);
|
|
1074
|
+
let allRelatedFieldsAreValid = true, noRelatedFieldsAreFocused = true;
|
|
1075
|
+
for (const fieldName of fieldNames) {
|
|
1076
|
+
if (isEntityInformationField(fieldName) ? multiForm.valid.entityInformation?.[fieldName] === false : multiForm.valid.registrationInformation?.[fieldName] === false) allRelatedFieldsAreValid = false;
|
|
1077
|
+
if (activeElementName && activeElementName === fieldName) noRelatedFieldsAreFocused = false;
|
|
1078
|
+
}
|
|
1079
|
+
if (!allRelatedFieldsAreValid || !noRelatedFieldsAreFocused) return;
|
|
1080
|
+
const companySearchInput = {
|
|
1081
|
+
name: multiForm.data.registrationInformation?.legalCompanyName ?? "",
|
|
1082
|
+
country: multiForm.data.entityInformation?.country,
|
|
1083
|
+
state: multiForm.data.entityInformation?.stateOrProvince,
|
|
1084
|
+
registrationNumber: multiForm.data.registrationInformation?.registrationNumber
|
|
1085
|
+
};
|
|
1086
|
+
await queryClient.prefetchQuery(companySearchQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), companySearchInput, userEvents));
|
|
1087
|
+
}, [
|
|
1088
|
+
baseUrl,
|
|
1089
|
+
country,
|
|
1090
|
+
multiForm.data.entityInformation?.country,
|
|
1091
|
+
multiForm.data.entityInformation?.stateOrProvince,
|
|
1092
|
+
multiForm.data.registrationInformation?.legalCompanyName,
|
|
1093
|
+
multiForm.data.registrationInformation?.registrationNumber,
|
|
1094
|
+
multiForm.valid.entityInformation,
|
|
1095
|
+
multiForm.valid.registrationInformation,
|
|
1096
|
+
queryClient,
|
|
1097
|
+
rootLegalEntityId,
|
|
1098
|
+
userEvents
|
|
1099
|
+
]);
|
|
1100
|
+
const debouncedCompanySearchPrefetch = useDebouncedCallback(prefetchCompanySearchResults, 500);
|
|
1101
|
+
/**
|
|
1102
|
+
* Re-fires prefetch when fields lose focus, with extra filtering within
|
|
1103
|
+
* the handler to determine whether the search should continue after being debounced.
|
|
1104
|
+
*/
|
|
1105
|
+
useEffect(() => {
|
|
1106
|
+
const prefetch = () => {
|
|
1107
|
+
if (activeFormId !== "registrationInformation" || !isUsingCompanySearch) return;
|
|
1108
|
+
debouncedCompanySearchPrefetch();
|
|
1109
|
+
};
|
|
1110
|
+
const root = getRootElement();
|
|
1111
|
+
root.addEventListener("focusout", prefetch);
|
|
1112
|
+
return () => root.removeEventListener("focusout", prefetch);
|
|
1113
|
+
}, [
|
|
1114
|
+
activeFormId,
|
|
1115
|
+
debouncedCompanySearchPrefetch,
|
|
1116
|
+
isUsingCompanySearch
|
|
1117
|
+
]);
|
|
1118
|
+
}
|
|
1119
|
+
//#endregion
|
|
1068
1120
|
//#region src/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.ts
|
|
1069
1121
|
var determineEntitySetup = (legalEntity, accountHolder) => {
|
|
1070
1122
|
if (accountHolder === "anUnincorporatedPartnership" && legalEntity.type === "individual") return "partOfABusiness";
|
|
@@ -1169,7 +1221,7 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, country, reg
|
|
|
1169
1221
|
//#region src/components/GlobalEntry/modals/TinMismatchModal.tsx
|
|
1170
1222
|
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
1171
1223
|
const { t } = useTranslation(["common", "business"]);
|
|
1172
|
-
const modalDescriptionKey = typeof useContext
|
|
1224
|
+
const modalDescriptionKey = typeof useContext(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
1173
1225
|
return /* @__PURE__ */ jsx(Confirm, {
|
|
1174
1226
|
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
1175
1227
|
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
@@ -1201,7 +1253,7 @@ var globalEntryFieldRuleConfigurations = {
|
|
|
1201
1253
|
taxInformation: { rule: "taxInformationRequired" },
|
|
1202
1254
|
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
1203
1255
|
};
|
|
1204
|
-
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, rootLegalEntity }) => {
|
|
1256
|
+
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, isSettingEnabled = () => false, country, rootLegalEntity }) => {
|
|
1205
1257
|
const filedPaperwork = getFiledPaperwork(data);
|
|
1206
1258
|
const hasFiledPaperwork = filedPaperwork === "yes";
|
|
1207
1259
|
const hasAnsweredPaperworkQuestion = !!filedPaperwork;
|
|
@@ -1226,10 +1278,10 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
1226
1278
|
unincorporatedOrganizationTypeRequired: () => isUnincorporatedOrganization ? "REQUIRED" : void 0,
|
|
1227
1279
|
legalCompanyNameRequired: () => hasFiledPaperwork ? "REQUIRED" : void 0,
|
|
1228
1280
|
jaHaniLegalCompanyName: () => {
|
|
1229
|
-
if (hasFiledPaperwork && isJapanLocalizationEnabled(
|
|
1281
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1230
1282
|
},
|
|
1231
1283
|
jaKanaLegalCompanyName: () => {
|
|
1232
|
-
if (hasFiledPaperwork && isJapanLocalizationEnabled(
|
|
1284
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isSettingEnabled, country)) return "REQUIRED";
|
|
1233
1285
|
},
|
|
1234
1286
|
countryRequiresRegistrationNumber: () => {
|
|
1235
1287
|
if (!hasFiledPaperwork) return;
|
|
@@ -1334,7 +1386,8 @@ function buildRequiredForms({ config: { forms, requiredFields, optionalFields, i
|
|
|
1334
1386
|
}
|
|
1335
1387
|
filteredForms.push(form);
|
|
1336
1388
|
}
|
|
1337
|
-
|
|
1389
|
+
const requiredForms = options?.skipSummary ? filteredForms : [...filteredForms, summaryStep];
|
|
1390
|
+
return addValidityToForms(requiredForms, isValid, void 0);
|
|
1338
1391
|
}
|
|
1339
1392
|
//#endregion
|
|
1340
1393
|
//#region src/components/GlobalEntry/mapping/globalEntryKeyMapping.ts
|
|
@@ -1392,9 +1445,18 @@ var mapGlobalEntrySchemaToLegalEntity = (data, legalEntity, accountHolder, isFea
|
|
|
1392
1445
|
...entityAssociations && { entityAssociations }
|
|
1393
1446
|
};
|
|
1394
1447
|
if (entity.organization) {
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1448
|
+
const canSaveRegistrationNumberAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.entityInformation.country, data.companyStructure?.organizationType);
|
|
1449
|
+
/**
|
|
1450
|
+
* Only include registrationNumberAbsent in request payload when feature is enabled
|
|
1451
|
+
* and for applicable scenarios or if it exists already on the LE.
|
|
1452
|
+
* This allows users who have the property set on their LE to switch to another type
|
|
1453
|
+
* For example: AU governmental org w/ registrationNumberAbsent true -> private company w/ registration number
|
|
1454
|
+
*/
|
|
1455
|
+
if (!canSaveRegistrationNumberAbsentState && (legalEntity.organization?.registrationNumberAbsent === void 0 || legalEntity.organization?.registrationNumberAbsent === null)) delete entity.organization.registrationNumberAbsent;
|
|
1456
|
+
if (canSaveRegistrationNumberAbsentState) {
|
|
1457
|
+
if (data.registrationInformation.exemptedFromRegistrationNumber) entity.organization.registrationNumberAbsent = true;
|
|
1458
|
+
else if (data.registrationInformation.registrationNumber) entity.organization.registrationNumberAbsent = false;
|
|
1459
|
+
}
|
|
1398
1460
|
}
|
|
1399
1461
|
/** Only an organization holds these, the api has nowhere to put them on the other entity types */
|
|
1400
1462
|
const localization = isOrg ? mapJapaneseLegalNamesToLocalization(data.registrationInformation ?? {}) : void 0;
|
|
@@ -1403,7 +1465,55 @@ var mapGlobalEntrySchemaToLegalEntity = (data, legalEntity, accountHolder, isFea
|
|
|
1403
1465
|
};
|
|
1404
1466
|
//#endregion
|
|
1405
1467
|
//#region src/components/GlobalEntry/utils/submitGlobalEntry.ts
|
|
1406
|
-
|
|
1468
|
+
/**
|
|
1469
|
+
* Merges address and financial report data from provider into the legal entity.
|
|
1470
|
+
* These are not fields we collect on the global entry form so need to be added to the
|
|
1471
|
+
* legal entity patch object during submission.
|
|
1472
|
+
*/
|
|
1473
|
+
var mergeVerifiedCompanyData = ({ entity, legalEntity, verifiedCompanyData }) => {
|
|
1474
|
+
if (!entity.organization || !verifiedCompanyData) return entity;
|
|
1475
|
+
const organization = { ...entity.organization };
|
|
1476
|
+
const hasExistingAddress = (legalEntity) => !!legalEntity.organization?.registeredAddress?.street || !!legalEntity.organization?.principalPlaceOfBusiness?.street;
|
|
1477
|
+
const buildAddress = (providerAddress) => {
|
|
1478
|
+
return {
|
|
1479
|
+
country: providerAddress.country,
|
|
1480
|
+
...providerAddress.street && { street: providerAddress.street },
|
|
1481
|
+
...providerAddress.street2 && { street2: providerAddress.street2 },
|
|
1482
|
+
...providerAddress.city && { city: providerAddress.city },
|
|
1483
|
+
...providerAddress.postalCode && { postalCode: providerAddress.postalCode },
|
|
1484
|
+
...providerAddress.state && { stateOrProvince: providerAddress.state }
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
if (!hasExistingAddress(legalEntity)) {
|
|
1488
|
+
if (verifiedCompanyData.registeredAddress) organization.registeredAddress = buildAddress(verifiedCompanyData.registeredAddress);
|
|
1489
|
+
if (verifiedCompanyData.principalPlaceOfBusinessAddress) organization.principalPlaceOfBusiness = buildAddress(verifiedCompanyData.principalPlaceOfBusinessAddress);
|
|
1490
|
+
}
|
|
1491
|
+
const latestReportingDate = (reports) => reports?.reduce((latest, report) => report.dateOfFinancialData && (!latest || report.dateOfFinancialData > latest) ? report.dateOfFinancialData : latest, void 0);
|
|
1492
|
+
const buildFinancialReport = (financialInformation) => {
|
|
1493
|
+
const usesBalanceSheetTotal = financialInformation?.balanceSheetTotal != null;
|
|
1494
|
+
return {
|
|
1495
|
+
...financialInformation?.currency && { currencyOfFinancialData: financialInformation.currency },
|
|
1496
|
+
...financialInformation?.financialReportingDate && { dateOfFinancialData: financialInformation.financialReportingDate },
|
|
1497
|
+
...financialInformation?.numberOfEmployees != null && { employeeCount: financialInformation.numberOfEmployees.toFixed(0) },
|
|
1498
|
+
/**
|
|
1499
|
+
* Determine which reported value option to select based on available data
|
|
1500
|
+
* Priority: balanceSheetTotal > annualTurnover
|
|
1501
|
+
*/
|
|
1502
|
+
...usesBalanceSheetTotal ? financialInformation.balanceSheetTotal != null && { balanceSheetTotal: financialInformation.balanceSheetTotal.toFixed(2) } : financialInformation?.annualTurnover != null && { annualTurnover: financialInformation.annualTurnover.toFixed(2) }
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
const financialInformation = verifiedCompanyData.financialInformation;
|
|
1506
|
+
if (financialInformation) {
|
|
1507
|
+
const existingReportingDate = latestReportingDate(legalEntity.organization?.financialReports);
|
|
1508
|
+
const report = !existingReportingDate || !!financialInformation.financialReportingDate && financialInformation.financialReportingDate >= existingReportingDate ? buildFinancialReport(financialInformation) : void 0;
|
|
1509
|
+
if (report && Object.keys(report).length > 0) organization.financialReports = [report];
|
|
1510
|
+
}
|
|
1511
|
+
return {
|
|
1512
|
+
...entity,
|
|
1513
|
+
organization
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
var submitGlobalEntry = async ({ legalEntity, associatedSoleProp, data, updateLegalEntity, createLegalEntity, accountHolder, isFeatureEnabled, verifiedCompanyData }) => {
|
|
1407
1517
|
let newSoleProp;
|
|
1408
1518
|
if (isSoleProprietorship(data)) {
|
|
1409
1519
|
const mappedSolePropData = mapGlobalEntrySchemaToSoleProp(data);
|
|
@@ -1420,7 +1530,11 @@ var submitGlobalEntry = async ({ legalEntity, associatedSoleProp, data, updateLe
|
|
|
1420
1530
|
*/
|
|
1421
1531
|
newSoleProp = await createLegalEntity(mappedSolePropData);
|
|
1422
1532
|
}
|
|
1423
|
-
const { type: targetType, ...legalEntityData } =
|
|
1533
|
+
const { type: targetType, ...legalEntityData } = mergeVerifiedCompanyData({
|
|
1534
|
+
entity: mapGlobalEntrySchemaToLegalEntity(data, legalEntity, accountHolder, isFeatureEnabled, newSoleProp ? newSoleProp : void 0),
|
|
1535
|
+
legalEntity,
|
|
1536
|
+
verifiedCompanyData
|
|
1537
|
+
});
|
|
1424
1538
|
/**
|
|
1425
1539
|
* LEM rejects a change of type in the same request as the data
|
|
1426
1540
|
*/
|
|
@@ -1505,10 +1619,11 @@ var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
|
1505
1619
|
};
|
|
1506
1620
|
//#endregion
|
|
1507
1621
|
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
1508
|
-
var CompanySearchStateContext = createContext
|
|
1622
|
+
var CompanySearchStateContext = createContext({});
|
|
1509
1623
|
var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
1510
1624
|
const { i18n, t } = useTranslation(["common", "globalEntry"]);
|
|
1511
1625
|
const { isFeatureEnabled } = useToggleContext();
|
|
1626
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
1512
1627
|
const logger = createLogger();
|
|
1513
1628
|
const { showToast } = useToastContext();
|
|
1514
1629
|
const { accountHolder: accountHolderMaybe } = useAccountHolder();
|
|
@@ -1601,12 +1716,13 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1601
1716
|
}), [isFeatureEnabled, rootLegalEntity]);
|
|
1602
1717
|
/** Holds the registration details when the user already trades as a sole proprietor */
|
|
1603
1718
|
const { data: associatedSoleProp, isLoading: isLoadingAssociatedSoleProp } = useAssociatedLegalEntity(rootLegalEntity, "soleProprietorship");
|
|
1719
|
+
const defaultData = useMemo(() => mapLegalEntityToGlobalEntrySchema(rootLegalEntity, accountHolder, associatedSoleProp), [
|
|
1720
|
+
rootLegalEntity,
|
|
1721
|
+
associatedSoleProp,
|
|
1722
|
+
accountHolder
|
|
1723
|
+
]);
|
|
1604
1724
|
const multiForm = useMultiForm({
|
|
1605
|
-
defaultData
|
|
1606
|
-
rootLegalEntity,
|
|
1607
|
-
associatedSoleProp,
|
|
1608
|
-
accountHolder
|
|
1609
|
-
]),
|
|
1725
|
+
defaultData,
|
|
1610
1726
|
requiredFields: derivedProps?.requiredFields,
|
|
1611
1727
|
optionalFields: derivedProps?.optionalFields,
|
|
1612
1728
|
allFields: derivedProps?.allFields,
|
|
@@ -1617,6 +1733,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1617
1733
|
const rules = useMemo(() => globalEntryCustomRules({
|
|
1618
1734
|
data,
|
|
1619
1735
|
isFeatureEnabled,
|
|
1736
|
+
isSettingEnabled,
|
|
1620
1737
|
country,
|
|
1621
1738
|
taskType: TaskTypes.GLOBAL_ENTRY,
|
|
1622
1739
|
accountHolder,
|
|
@@ -1624,6 +1741,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1624
1741
|
}), [
|
|
1625
1742
|
accountHolder,
|
|
1626
1743
|
isFeatureEnabled,
|
|
1744
|
+
isSettingEnabled,
|
|
1627
1745
|
country,
|
|
1628
1746
|
data,
|
|
1629
1747
|
rootLegalEntity
|
|
@@ -1717,7 +1835,8 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1717
1835
|
updateLegalEntity,
|
|
1718
1836
|
createLegalEntity,
|
|
1719
1837
|
accountHolder,
|
|
1720
|
-
isFeatureEnabled
|
|
1838
|
+
isFeatureEnabled,
|
|
1839
|
+
verifiedCompanyData: companySearchStateModel.verifiedBusiness.peek()
|
|
1721
1840
|
});
|
|
1722
1841
|
if (newAccountHolder) onComplete(newAccountHolder);
|
|
1723
1842
|
showGlobalEntryModal.value = false;
|
|
@@ -1734,6 +1853,12 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
|
1734
1853
|
forms,
|
|
1735
1854
|
triggerValidation
|
|
1736
1855
|
});
|
|
1856
|
+
usePrefetchCompanySearch({
|
|
1857
|
+
country,
|
|
1858
|
+
multiForm,
|
|
1859
|
+
activeFormId: activeForm.formId,
|
|
1860
|
+
isUsingCompanySearch: isUsingCompanySearch(country, TaskTypes.GLOBAL_ENTRY)
|
|
1861
|
+
});
|
|
1737
1862
|
const { attemptBusinessSearch, confirmBusinessSelection } = useCompanySearchNextClickOverrides({
|
|
1738
1863
|
country,
|
|
1739
1864
|
multiForm,
|
|
@@ -1,16 +1,16 @@
|
|
|
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] = "4342ba32-43ca-4dc0-bdd8-ee409748ff8c", e._sentryDebugIdIdentifier = "sentry-dbid-4342ba32-43ca-4dc0-bdd8-ee409748ff8c");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
12
|
-
import { t as Image } from "./Image-
|
|
13
|
-
import { t as Link } from "./Link-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-D8-1H8bU.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
|
+
import { t as Button } from "./Button-Dwr6jvJZ.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
10
|
+
import { s as LandingLayout } from "./form-rules-HzaYJh36.js";
|
|
11
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-D9rqts-z.js";
|
|
12
|
+
import { t as Image } from "./Image-CxnjHtP1.js";
|
|
13
|
+
import { t as Link } from "./Link-D0Yqc2r0.js";
|
|
14
14
|
import { lazy } from "preact/compat";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
16
16
|
import { Show } from "@preact/signals/utils";
|