@adyen/kyc-components 4.20.3 → 4.21.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AcceptTermsOfServiceWorkflow-DvXLuBUP.js +28 -0
- package/dist/{Accordion-BWdAGMRb.js → Accordion-DC7Iuj-J.js} +3 -2
- package/dist/{AccountSetupRejected-BAnMTKtK.js → AccountSetupRejected-Bme0n9Ry.js} +2 -2
- package/dist/AdaptiveWorkflow-DeyDJH93.js +210 -0
- package/dist/{AdaptiveWorkflowComponent-wOE8D9cu.js → AdaptiveWorkflowComponent-CjTr9flK.js} +35 -34
- package/dist/{AddressField-BgdOTaxA.js → AddressField-Dwiy0Lp9.js} +13 -79
- package/dist/{Avatar-CeZIQS8n.js → Avatar-BKTdqNpO.js} +2 -2
- package/dist/{BusinessFinancingDropin-By68ymM3.js → BusinessFinancingDropin-BJyuZ8dK.js} +155 -36
- package/dist/{BusinessFinancingPage-XGqZnfJA.js → BusinessFinancingPage-C3DpzYDs.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-BEMTWqsw.js → BusinessRegistrationNumberField-Bvq9kBeC.js} +28 -133
- package/dist/BusinessRegistrationNumberFieldGroup-DekPmMPr.js +172 -0
- package/dist/{BusinessTypeSelectionPage-D6MZOp0S.js → BusinessTypeSelectionPage-2DBhHIV3.js} +19 -16
- package/dist/{Button-Cm7cT6BX.js → Button-DSD_afG_.js} +4 -85
- package/dist/{Checkbox-faFUul66.js → Checkbox-CoYc9mYJ.js} +2 -2
- package/dist/{CompanyRegistrationNumberTypeSelector-BZou9I4l.js → CompanyRegistrationNumberTypeSelector-Cw_MwFNk.js} +6 -8
- package/dist/ComponentGroup-bPTim8ap.js +32 -0
- package/dist/{ContactDetails-DEytFGKP.js → ContactDetails-1U7gtwcT.js} +8 -9
- package/dist/{ContextGuidance-BwO0HQqx.js → ContextGuidance-Crh1eg4L.js} +3 -3
- package/dist/{Currency-BAx_Uo5W.js → Currency-C4CO9Z4U.js} +9 -8
- package/dist/{CustomerSupport-D0ufIpy-.js → CustomerSupport-toFotwt6.js} +16 -15
- package/dist/{DataConflictsModal-BEYWyGQl.js → DataConflictsModal-CL635lXr.js} +10 -9
- package/dist/{DebugModal-wlvutaIe.js → DebugModal-DjM4D9y0.js} +13 -13
- package/dist/{DecisionMakerDetails-C-Zl97-L.js → DecisionMakerDetails-Cgw6FTX3.js} +59 -22
- package/dist/{DecisionMakerDetailsPage-CJy_C9vF.js → DecisionMakerDetailsPage-Dotl9hm4.js} +35 -17
- package/dist/{DecisionMakers-CJhpy3hL.js → DecisionMakers-Bb1k-3jK.js} +22 -20
- package/dist/{Dropzone-tCvWDUb_.js → Dropzone-De-_68uO.js} +9 -7
- package/dist/{EmbeddedStatus-uz3Ivsyw.js → EmbeddedStatus-CkSg9-9r.js} +5 -4
- package/dist/{EndStateLayout-BUK64Vqu.js → EndStateLayout-CarfWtTC.js} +4 -3
- package/dist/{EntityAssociation-B5xzdKZ7.js → EntityAssociation-fyXv0iPm.js} +7 -7
- package/dist/{ErrorPanel-DrMirhyf.js → ErrorPanel-Deuo7Len.js} +6 -6
- package/dist/GlobalEntryModal-5lEeqSu-.js +589 -0
- package/dist/{GlobalEntryPage-kke7lpsi.js → GlobalEntryPage-BMk0JcPT.js} +35 -34
- package/dist/Icon-CurE93CX.js +175 -0
- package/dist/{validateExtractionResult-BAj3G_p_.js → IdentityNumber-d4r6gTEr.js} +7 -344
- package/dist/IdentityNumberFieldGroup-BjFhY6v3.js +57 -0
- package/dist/IdentityScreeningWorkflow-CPpI04Cl.js +307 -0
- package/dist/{Image-8SOcICah.js → Image-D82terx4.js} +2 -2
- package/dist/{Individual.rules-C-6V0eRk.js → Individual.rules-YSORZ1Ud.js} +9 -10
- package/dist/{IndividualDropin-CC3-AIiO.js → IndividualDropin-DHUs3srO.js} +86 -82
- package/dist/IndustryCodeFieldGroup-DZUq90Hc.js +188 -0
- package/dist/{InputDate-DDVX2D-5.js → InputDate-BSoTKQgE.js} +2 -2
- package/dist/{InputText-Cf9ccCaj.js → InputText-CQUZ2_58.js} +41 -6
- package/dist/{Introduction-CTYHDxDW.js → Introduction-QQJUBGqW.js} +9 -8
- package/dist/{InvitedDecisionMakerComponent-BdySOH9B.js → InvitedDecisionMakerComponent-C9Sr5OVw.js} +48 -46
- package/dist/{JpAddressFields-CrBmLCtM.js → JpAddressFields-C2M1PEEu.js} +51 -11
- package/dist/{LegalCompanyNameField-DBp71z3A.js → LegalCompanyNameField-Ccmj94Cp.js} +5 -5
- package/dist/LegalName-DAhyDtZO.js +33 -0
- package/dist/{LegalRepresentativeDetailsPage-VN50UtKG.js → LegalRepresentativeDetailsPage-BWDUzLAO.js} +11 -11
- package/dist/{Link-B7RA2gSt.js → Link-B-gN0d8l.js} +2 -2
- package/dist/{ListItem-Cy46BXUv.js → ListItem-BGdnopqb.js} +3 -3
- package/dist/Loader-BEpMlKm2.js +92 -0
- package/dist/{Modal-nylR9F4X.js → Modal-SdFoz5L1.js} +3 -3
- package/dist/{Name-hxEchkBU.js → Name-NSt7wAJx.js} +5 -5
- package/dist/{NewSummary-BoZKS3an.js → NewSummary-Bs2oSxfd.js} +10 -9
- package/dist/{PatriotActDisclosure-DoR57O_a.js → PatriotActDisclosure-f5X4wFJ7.js} +110 -222
- package/dist/{PayoutDetailsDropin-Dptk-AWq.js → PayoutDetailsDropin-L7lwM7Lx.js} +260 -172
- package/dist/{PayoutDetailsPage-G9U8ZN76.js → PayoutDetailsPage-0-Kh-Us8.js} +9 -9
- package/dist/{CountryField-CqJ_jC11.js → RadioGroup-DvcMPdV_.js} +168 -13
- package/dist/{Review-BFrPwvnk.js → Review-CWhmiMyu.js} +8 -8
- package/dist/RootBusinessDetailsPage-cC5TaC3R.js +68 -0
- package/dist/{RootBusinessLinesPage-CP7J0yeT.js → RootBusinessLinesPage-CaUWOtl2.js} +34 -30
- package/dist/{RootIndividualDetailsPage-BnDa9cNx.js → RootIndividualDetailsPage-Dko5-jkQ.js} +12 -12
- package/dist/{Select-Bl58NHvM.js → Select-DuIuKg3u.js} +11 -8
- package/dist/{useSettingsContext-Bpf4UqRT.js → SettingsContext-Dl-9WWCI.js} +2 -8
- package/dist/{SignPCIComponent-BA7DZ4NN.js → SignPCIComponent-tcbQ9ywv.js} +44 -43
- package/dist/{SingpassSelection-Dvu6g9iG.js → SingpassSelection-DiXuMp_4.js} +7 -6
- package/dist/SoleProprietorshipPage-D7C77YuZ.js +70 -0
- package/dist/{SourceOfFundsPage-C-s6bb2S.js → SourceOfFundsPage-m80VKcKb.js} +40 -38
- package/dist/SourceOfFundsWorkflow-BiwO_slV.js +28 -0
- package/dist/{utils-B2150fIA.js → StateField-BLKrxMHo.js} +82 -8
- package/dist/Step-BmMwlRAP.js +195 -0
- package/dist/{StructuredList-C2fNU0uz.js → StructuredList-ByaWQPt4.js} +6 -5
- package/dist/Task-D56Ov4hE.js +129 -0
- package/dist/TaskGroup-Cb0LMscl.js +46 -0
- package/dist/{TaskListItem-BWaVqmtJ.js → TaskListItem-ChTNrH8o.js} +12 -58
- package/dist/TaskStepperContextProvider-DuM9tlet.js +81 -0
- package/dist/{TaskVerificationStatus-DMj8rsZ_.js → TaskVerificationStatus-DCfFNRJc.js} +4 -3
- package/dist/TaxInformationFieldGroup-DTRRPgsO.js +288 -0
- package/dist/{TaxReportingDropin-ZK7ZJdPp.js → TaxReportingDropin-BDMleLS7.js} +23 -21
- package/dist/TaxReportingWorkflow-DDUwvJUg.js +28 -0
- package/dist/{TermsOfServiceManagement-B_kPOWFg.js → TermsOfServiceManagement-D25wc-rD.js} +49 -47
- package/dist/{TextArea-CoS-i-FF.js → TextArea-DONjpYoD.js} +7 -13
- package/dist/{TrustDetailsPage-DgklXUzD.js → TrustDetailsPage-eCuV5_H9.js} +433 -442
- package/dist/TrustMemberCompanyPage-B5ZvuGJU.js +109 -0
- package/dist/{TrustMemberIndividualPage-CUqnRk8R.js → TrustMemberIndividualPage-D68huyWG.js} +12 -12
- package/dist/{TrustMemberRoleAndTypePage-B0k2Q7Vd.js → TrustMemberRoleAndTypePage-Dzi7gUQJ.js} +48 -47
- package/dist/{TrustMembersOverview-B3K-gYQC.js → TrustMembersOverview-DPOZrxaa.js} +42 -40
- package/dist/Typography-CAc_f5Iq.js +80 -0
- package/dist/UboTaskItem-BTg9SYx6.js +115 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-BLeo-3Dg.js → UnincorporatedPartnershipIndividualPage-CiloYr6z.js} +11 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_vDaZDa.js → UnincorporatedPartnershipMemberCompanyPage-DFToIXPu.js} +36 -36
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-ZGrk1pwS.js → UnincorporatedPartnershipMemberRoleAndTypePage-B1zDZaTe.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-D3P6RnSe.js → UnincorporatedPartnershipMembersOverview-BkoW2TeI.js} +10 -9
- package/dist/{VerificationErrorAlert-CZgXhF8q.js → VerificationErrorAlert-OvA_tFEA.js} +5 -5
- package/dist/Workflow-BR6It8DD.js +228 -0
- package/dist/{accountHolderUtils-CwDO1erJ.js → accountHolderUtils-BWP2t1n2.js} +3 -3
- package/dist/adyen-business-financing.js +35 -35
- package/dist/adyen-individual-configuration.js +37 -37
- package/dist/adyen-individual-status.js +34 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +67 -63
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +44 -41
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{utils-CIAOij_i.js → bafinUtils-BPvihvBP.js} +684 -167
- package/dist/{bg-BG-qQc6pN4K.js → bg-BG-BeFIiwVZ.js} +3 -1
- package/dist/bg-BG-CXqERnFH.js +7 -0
- package/dist/bg-BG-D4mSRREu.js +7 -0
- package/dist/{bg-BG-Smu9r9Kp.js → bg-BG-DpSUitm0.js} +12 -2
- package/dist/{constants-4cwXR749.js → constants-2R-DUr5z.js} +5 -5
- package/dist/{countries-CPj8hkLs.js → countries-BE4iGVAo.js} +1 -1
- package/dist/{country-IYuKDSdC.js → country-DkgapJ4w.js} +2 -2
- package/dist/cs-CZ-C_VaBRMS.js +23 -0
- package/dist/cs-CZ-DAXMHrMi.js +7 -0
- package/dist/{cs-CZ-Jsmhr_B3.js → cs-CZ-DHfA1xjQ.js} +3 -1
- package/dist/cs-CZ-DySBJFlc.js +7 -0
- package/dist/{da-DK-CXZXQspY.js → da-DK--DlccBc0.js} +3 -1
- package/dist/da-DK-BVaEiAWd.js +7 -0
- package/dist/da-DK-BfaKncp5.js +23 -0
- package/dist/da-DK-BuvKW6Sq.js +7 -0
- package/dist/de-DE-BQaqplTp.js +7 -0
- package/dist/{de-DE-BRJ0jBty.js → de-DE-B_iHAkLT.js} +3 -1
- package/dist/de-DE-BqujMxXu.js +7 -0
- package/dist/de-DE-GUfA18ps.js +23 -0
- package/dist/{decisionMaker-Dt53wKqO.js → decisionMaker-M0Tm92JR.js} +1 -1
- package/dist/{decisionMakerRoles-CTy0faoW.js → decisionMakerRoles-DbKnutwk.js} +3 -3
- package/dist/el-GR-B1NjHThy.js +7 -0
- package/dist/el-GR-C6jyW53I.js +7 -0
- package/dist/{el-GR-DEBvBgI-.js → el-GR-CJqHd-CD.js} +12 -2
- package/dist/{el-GR-BMGYrO4V.js → el-GR-D09thseu.js} +3 -1
- package/dist/en-US-C3i5Oge2.js +7 -0
- package/dist/en-US-CJPD8qHc.js +7 -0
- package/dist/{en-US-BFM81i9K.js → en-US-CO9xzDL5.js} +1 -4
- package/dist/en-US-D4NrsDmW.js +7 -0
- package/dist/{en-US.instructions-pRLq5gXB.js → en-US.instructions-CqF1qVJV.js} +2 -1
- package/dist/{entityAssociationUtil-DLXInibJ.js → entityAssociationUtil-CLBR9osP.js} +1 -1
- package/dist/{error-CSOAG0Cl.js → error-BAlndbwJ.js} +3 -3
- package/dist/es-ES-BM5RTwb7.js +7 -0
- package/dist/{es-ES-pt4yy_U2.js → es-ES-Bpxn6XGC.js} +3 -1
- package/dist/es-ES-C64v4NJD.js +7 -0
- package/dist/es-ES-IobfbI71.js +23 -0
- package/dist/es-LA--YYwwbVo.js +23 -0
- package/dist/es-LA-B7pY2dp1.js +7 -0
- package/dist/es-LA-CcMAcJ7u.js +7 -0
- package/dist/{es-LA-CGrMi4rR.js → es-LA-CjxlB1WZ.js} +3 -1
- package/dist/et-EE-DqYCOl2Y.js +23 -0
- package/dist/{et-EE-dDMeDiTJ.js → et-EE-Dtc7YYb4.js} +3 -1
- package/dist/{et-EE-BGpsJPjk.js → et-EE-FtKFvr3u.js} +2 -2
- package/dist/{et-EE-OAYKzRjG.js → et-EE-wDQx9HoZ.js} +2 -2
- package/dist/{fi-FI-iRb7nS7X.js → fi-FI-DBhYlO4B.js} +3 -1
- package/dist/{fi-FI-BTG87BwH.js → fi-FI-DSCFTLoG.js} +12 -2
- package/dist/fi-FI-KMP96Qxc.js +7 -0
- package/dist/fi-FI-SFw2grVp.js +7 -0
- package/dist/{MaskedInput-BQ_cTsL0.js → form-rules-BNF4Yysw.js} +378 -14
- package/dist/formHook-Dgi2CgbT.js +24 -0
- package/dist/{formatValidationError-B9NRahV5.js → formatValidationError-Cbkto-0l.js} +2 -2
- package/dist/fr-FR-C8IPWMDL.js +7 -0
- package/dist/fr-FR-Dsh0Vb20.js +7 -0
- package/dist/{fr-FR-DUrcyeOg.js → fr-FR-N8UDU_0Y.js} +3 -1
- package/dist/fr-FR-ZWnkRO7z.js +23 -0
- package/dist/{AnalyticsContext-BnRQ9H1u.js → genUtils-Ce61IJs8.js} +2 -17
- package/dist/{getLegalEntityCountry-BHh7Ux8v.js → getLegalEntityCountry-CNE5uei8.js} +1 -1
- package/dist/{getName-C5jqdkJg.js → getName-s7qmFean.js} +2 -2
- package/dist/{getProblemsForEntity-DStlTvE-.js → getProblemsForEntity-CTxd78-9.js} +4 -4
- package/dist/{getTrustedDecisionMakers-CAbhvydj.js → getTrustedDecisionMakers-DWVtW7JE.js} +2 -2
- package/dist/hr-HR-2a3ywU0e.js +23 -0
- package/dist/hr-HR-COvc9TZy.js +7 -0
- package/dist/hr-HR-Cqgf9B0v.js +7 -0
- package/dist/{hr-HR-LnDb18bf.js → hr-HR-GLRwxTIZ.js} +3 -1
- package/dist/{http-D6AdUBhO.js → http-DsJtugN1.js} +2 -2
- package/dist/hu-HU-BOXBLK1a.js +23 -0
- package/dist/{hu-HU-VLUIAFMp.js → hu-HU-DIjDe5aa.js} +2 -2
- package/dist/{hu-HU-D9Avt-9f.js → hu-HU-DyM1X3r6.js} +2 -2
- package/dist/{hu-HU-Cc7wqn6A.js → hu-HU-s1MKqwI4.js} +3 -1
- package/dist/{isEmpty-MyMko24J.js → isEmpty-DD8Insy0.js} +2 -2
- package/dist/{it-IT-BPA_Upt_.js → it-IT-2reNk09A.js} +3 -1
- package/dist/it-IT-BKTDLRBT.js +7 -0
- package/dist/it-IT-Dj2NtH7G.js +23 -0
- package/dist/it-IT-xXO07yyz.js +7 -0
- package/dist/{ja-JP-CYb1SAoz.js → ja-JP-Bf97gKqg.js} +3 -1
- package/dist/ja-JP-BhHK_ru2.js +7 -0
- package/dist/ja-JP-DbLRpEVj.js +7 -0
- package/dist/{ja-JP-Yi2wExJE.js → ja-JP-lXTbRXBb.js} +12 -2
- package/dist/{localizeDateString-D-MlYN4V.js → localizeDateString-Dxlqr4rL.js} +2 -2
- package/dist/logger-Z8AeTE4x.js +29 -0
- package/dist/{lt-LT-B9Nm7OZQ.js → lt-LT-BUgsY7cD.js} +3 -1
- package/dist/lt-LT-Be3q6tyu.js +7 -0
- package/dist/lt-LT-Btr5el2q.js +7 -0
- package/dist/lt-LT-COUN4qC5.js +23 -0
- package/dist/lv-LV-8wOWTo3r.js +7 -0
- package/dist/{lv-LV-DkjsE74u.js → lv-LV-BpniO6xp.js} +3 -1
- package/dist/lv-LV-DCeyOqHY.js +7 -0
- package/dist/lv-LV-DKbvF9t_.js +23 -0
- package/dist/{mapExistingFile-LvvzPjnk.js → mapExistingFile-R6-FnjjY.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-De5AnfAt.js → mapJpAddressSchemaToAddressLocalizations-BEgqt-ZQ.js} +3 -3
- package/dist/{mapLegalEntityToIndividualSchema-ByNJpSx9.js → mapLegalEntityToIndividualSchema-DGiQtWMQ.js} +10 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js → mapTransferInstrumentToPayoutAccount-D-RdVquH.js} +3 -3
- package/dist/nl-NL-CdHkQcOS.js +7 -0
- package/dist/nl-NL-CtK4OR3t.js +23 -0
- package/dist/nl-NL-Dyb3tkBi.js +7 -0
- package/dist/{nl-NL-BtdPxlFm.js → nl-NL-_B3Ey_x1.js} +3 -1
- package/dist/no-NO-B-xCUkf4.js +7 -0
- package/dist/no-NO-CxZumo2p.js +23 -0
- package/dist/{no-NO-BIhMgC99.js → no-NO-CytzrDfA.js} +3 -1
- package/dist/no-NO-DXDddmYv.js +7 -0
- package/dist/pl-PL-CBwRmIu5.js +7 -0
- package/dist/pl-PL-Cc09pXO8.js +7 -0
- package/dist/pl-PL-Csv1Lg5y.js +23 -0
- package/dist/{pl-PL-BT6NmGgO.js → pl-PL-DLBeIbY5.js} +3 -1
- package/dist/{processCapabilities-BSpmJOEd.js → processCapabilities-uXoRmB5x.js} +2 -2
- package/dist/{processValidationErrors-DP_eetOL.js → processValidationErrors-B2Yvt5KJ.js} +3 -3
- package/dist/{pt-BR-B0SUw4uu.js → pt-BR-Cf5Jif3w.js} +3 -1
- package/dist/pt-BR-DA4PVtVa2.js +7 -0
- package/dist/pt-BR-IBsCApUj.js +23 -0
- package/dist/pt-BR-hMhyqixD.js +7 -0
- package/dist/pt-PT-CYKk0WDI.js +23 -0
- package/dist/{pt-PT-KikTTc5A.js → pt-PT-Cg7oMqTO.js} +3 -1
- package/dist/pt-PT-D2qX_lOd.js +7 -0
- package/dist/pt-PT-QU0CQs-d.js +7 -0
- package/dist/{resolveEnvironment-CcqxJHLP.js → resolveEnvironment-C5lXxn2H.js} +68 -46
- package/dist/ro-RO-23qEGblz.js +23 -0
- package/dist/ro-RO-CQjOM8e-.js +7 -0
- package/dist/ro-RO-DNye-gMC.js +7 -0
- package/dist/{ro-RO-DajmyI4j.js → ro-RO-UHWXt9rv.js} +3 -1
- package/dist/sk-SK-2jlbtz2r.js +7 -0
- package/dist/{sk-SK-DJWcs0qJ.js → sk-SK-BQHhBpDH.js} +3 -1
- package/dist/sk-SK-CwbBfCsU.js +7 -0
- package/dist/sk-SK-D8j8B4ng.js +23 -0
- package/dist/sl-SI-333ryFnM.js +23 -0
- package/dist/sl-SI-9XdXVgB8.js +7 -0
- package/dist/{sl-SI-C_QeUL6t.js → sl-SI-CTrggdef.js} +3 -1
- package/dist/sl-SI-Cyx0QtxG.js +7 -0
- package/dist/style.css +693 -672
- package/dist/styles-DYaAeu4q.js +693 -672
- package/dist/{sv-SE-D3MOTV-T.js → sv-SE-Bk55FXGN.js} +3 -1
- package/dist/sv-SE-CqhSdYBe.js +7 -0
- package/dist/sv-SE-CwsP7bTA.js +23 -0
- package/dist/sv-SE-kbf3zbjX.js +7 -0
- package/dist/{translation-DH4IlMCP.js → translation-BOm4lmPx.js} +3 -271
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +5 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +32 -39
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/{useCustomerDataV2.d.ts → useCustomerData.d.ts} +4 -9
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow/IdentityScreening.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/{IdentityScreeningWorkflow.d.ts → IdentityScreeningWorkflow/IdentityScreeningWorkflow.d.ts} +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowEndState → Layout/Workflow/WorkflowEndState}/WorkflowEndState.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowHeading → Layout/Workflow/WorkflowHeading}/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +4 -5
- package/dist/types/adaptiveWorkflow/components/types.d.ts +4 -108
- package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/formHook.d.ts +2 -2
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +2 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +0 -17
- package/dist/types/components/Business/utils/utils.d.ts +0 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +0 -22
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +4 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +8 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +23 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +6 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +3 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +4 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +7 -2
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +1 -0
- package/dist/types/components/Shared/VerifiedWith/VerifiedWith.d.ts +7 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/constants.d.ts +2 -0
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +13 -0
- package/dist/types/components/Trust/forms/Trust/form-ids.d.ts +2 -0
- package/dist/types/components/Trust/{tasks/TrustDropin/Trust.d.ts → forms/Trust/forms.d.ts} +3 -4
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -20
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +2 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +3 -3
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +15 -0
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +19 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BLWT7WnU.js → types-Ai_80DXu.js} +1 -1
- package/dist/{types-B4LsyK73.js → types-BeveNAZK.js} +1 -1
- package/dist/{types-Bm4RGrSI.js → types-CdxNdaM6.js} +1 -1
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +28 -0
- package/dist/{useAssociatedLegalEntity-CzQlHWXy.js → useAssociatedLegalEntity-BdcoiUby.js} +3 -3
- package/dist/{useBusinessDetailsData-BWapORXF.js → useBusinessDetailsData-BKT3IfpU.js} +88 -183
- package/dist/{useBusinessLines-D-rc-Z6G.js → useBusinessLines-BhSN6qCH.js} +2 -2
- package/dist/{useCanSeeIntroduction-Dk5qC6nk.js → useCanSeeIntroduction-DWsC-Urc.js} +4 -5
- package/dist/{useCreateLegalEntity-Ctdmk3Ky.js → useCreateLegalEntity-CYZd_62a.js} +2 -2
- package/dist/{useDataMissingRemediations-DNZ_UDbI.js → useDataMissingRemediations-Cd-jucOu.js} +3 -3
- package/dist/{useForm-CHswd6lC.js → useForm-DV-XkAG5.js} +5 -5
- package/dist/useHideTaskStepper-MdPt1zI8.js +25 -0
- package/dist/{useId-f0koANuV.js → useId-BsNe9jOR.js} +4 -4
- package/dist/useIndustryCodes-uAj90IyS.js +32 -0
- package/dist/{useLegalEntity-DR51Q4mE.js → useLegalEntity-QQXN6YOm.js} +2 -2
- package/dist/{useNavigate-6p1Qv-lq.js → useNavigate-Dgq-_gvF.js} +33 -33
- package/dist/{useOnboardingStatus-op5TyMUR.js → useOnboardingStatus-CsGUjkm-.js} +2 -2
- package/dist/{usePciQuestionnaireList-BZsgbrTy.js → usePciQuestionnaireList-CFNJD8pS.js} +2 -2
- package/dist/{useSalesChannels-Mi6DmHab.js → useSalesChannels-BBdfIEYx.js} +5 -5
- package/dist/{useScenarios-Bne3C0PV.js → useScenarios-CGcmXgJv.js} +3 -3
- package/dist/{useTaskLandedEvent-C7fcguXK.js → useTaskLandedEvent-Ceflt6Ba.js} +2 -2
- package/dist/{useTaskStatus-Be6XyW54.js → useTaskStatus-CgrhdaE_.js} +2 -2
- package/dist/useTaskStepperContext-BIEhTt1x.js +15 -0
- package/dist/{useTermsOfServiceStatus-D0NHUKl_.js → useTermsOfServiceStatus-DbJDklA2.js} +2 -2
- package/dist/{useTrustMembers-CVDndW8J.js → useTrustMembers-BRyiDXJr.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-C5CNWe_U.js → useUnincorporatedPartnershipMembers-00l8eNLk.js} +5 -5
- package/dist/{useUpdateBusinessLines-D6D9DAn1.js → useUpdateBusinessLines-DCKYTzxd.js} +4 -29
- package/dist/{useUpdateLegalEntity-BEZu238V.js → useUpdateLegalEntity-C0U3rIhc.js} +3 -3
- package/dist/{utils-mIdxBeix.js → utils-7UVBZ1Oy.js} +8 -8
- package/dist/{utils-DwujAUJC.js → utils-Br7Ah3uy.js} +1 -1
- package/dist/utils-CFaGY5aD.js +52 -0
- package/dist/{validate-BNu91k9j.js → validate-COZwjFYQ.js} +10 -6
- package/dist/validate-D4VQ3msP.js +125 -0
- package/dist/{validate-C-08Q88R.js → validate-NJXha9gC.js} +1 -1
- package/dist/{validate-BUiBDGcK.js → validate-lQWcaLZr.js} +4 -4
- package/dist/validateExtractionResult-BnSV5Z6F.js +343 -0
- package/dist/{validationError-CipBbukM.js → validationError-DprLeGG3.js} +2 -2
- package/package.json +2 -2
- package/dist/AdaptiveWorkflow-DcNkLVei.js +0 -5112
- package/dist/Address-CX1D0_2b.js +0 -133
- package/dist/GlobalEntryModal-BdnqANLh.js +0 -353
- package/dist/JpAddress-DxPC1_Og.js +0 -284
- package/dist/JpAddress.module-BBUPrd-N.js +0 -48
- package/dist/RadioGroup-DcR1jQy7.js +0 -84
- package/dist/RootBusinessDetailsPage-C0F7j2XS.js +0 -68
- package/dist/SoleProprietorshipPage-SrAcCnvl.js +0 -70
- package/dist/TrustMemberCompanyPage-D6iTASaK.js +0 -109
- package/dist/bafinUtils-BnYNUBzu.js +0 -276
- package/dist/bg-BG-BkIvSbsH.js +0 -7
- package/dist/bg-BG-Bmveyt6S.js +0 -7
- package/dist/cs-CZ-BQ5B0-Kt.js +0 -13
- package/dist/cs-CZ-CPvgcrDs.js +0 -7
- package/dist/cs-CZ-D5CQd_YI.js +0 -7
- package/dist/da-DK-Bl0-8FN4.js +0 -7
- package/dist/da-DK-CXAIXO3c.js +0 -13
- package/dist/da-DK-D5969QKP.js +0 -7
- package/dist/de-DE-DFQGGPCj.js +0 -13
- package/dist/de-DE-Hah2EvAY.js +0 -7
- package/dist/de-DE-uDUBu-3n.js +0 -7
- package/dist/debugStore-DpSgCNGn.js +0 -40
- package/dist/el-GR-C9KGlGa7.js +0 -7
- package/dist/el-GR-DWh7gn7M.js +0 -7
- package/dist/en-US-DqhKW1eC.js +0 -7
- package/dist/en-US-MqobYcqc.js +0 -7
- package/dist/en-US-X8pjkwa3.js +0 -7
- package/dist/es-ES-C7XCTACS.js +0 -7
- package/dist/es-ES-DSwi-qfd.js +0 -7
- package/dist/es-ES-_qbfha1o.js +0 -13
- package/dist/es-LA-0IrX8yr2.js +0 -7
- package/dist/es-LA-1H8dAUVR.js +0 -7
- package/dist/es-LA-DF0v3VMe.js +0 -13
- package/dist/et-EE-evCiUrFW.js +0 -13
- package/dist/fi-FI-BdrXeX9d.js +0 -7
- package/dist/fi-FI-Cdof5NRG.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/form-rules-DV3hxYqZ.js +0 -359
- package/dist/fr-FR-DIiBHkhs.js +0 -13
- package/dist/fr-FR-NOULV1vy.js +0 -7
- package/dist/fr-FR-hleHEr-Y.js +0 -7
- package/dist/hr-HR--ti3n_XO.js +0 -7
- package/dist/hr-HR-2h3d5-q3.js +0 -7
- package/dist/hr-HR-DofgeWWO.js +0 -13
- package/dist/hu-HU-FdLZGnBz.js +0 -13
- package/dist/it-IT-CWIAGNlE.js +0 -7
- package/dist/it-IT-CXgZZgyU.js +0 -13
- package/dist/it-IT-Dq5z7p1-.js +0 -7
- package/dist/ja-JP-C1c2UPpy.js +0 -7
- package/dist/ja-JP-Dyhw0Ycj.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/lt-LT-BMI4JzrS.js +0 -7
- package/dist/lt-LT-BZ6seLuB.js +0 -13
- package/dist/lt-LT-C62dFtWW.js +0 -7
- package/dist/lv-LV-CMYrAWqu.js +0 -13
- package/dist/lv-LV-LkNZQ__4.js +0 -7
- package/dist/lv-LV-W0I-UUyj.js +0 -7
- package/dist/nl-NL-C9HoBicG.js +0 -7
- package/dist/nl-NL-CC2r7Ldv.js +0 -7
- package/dist/nl-NL-CiH1raQa.js +0 -13
- package/dist/no-NO-Bo9rlROU.js +0 -7
- package/dist/no-NO-Ce2vzrp7.js +0 -13
- package/dist/no-NO-V7_rz3uN.js +0 -7
- package/dist/patternValidators-CCaCwU3M.js +0 -73
- package/dist/pl-PL-2QyKX67Y.js +0 -7
- package/dist/pl-PL-STp7eeFE.js +0 -7
- package/dist/pl-PL-aErZF5Xz.js +0 -13
- package/dist/pt-BR-CFGpH3BW.js +0 -7
- package/dist/pt-BR-D08Fo1qY.js +0 -7
- package/dist/pt-BR-hRRebYjo.js +0 -13
- package/dist/pt-PT-BAQWYDe6.js +0 -7
- package/dist/pt-PT-BHR4CEnv.js +0 -7
- package/dist/pt-PT-UAIvemf-.js +0 -13
- package/dist/ro-RO-BJeKitCz.js +0 -13
- package/dist/ro-RO-ni-ZNqXU.js +0 -7
- package/dist/ro-RO-wG0rfL5w.js +0 -7
- package/dist/sk-SK-DJinBnS1.js +0 -7
- package/dist/sk-SK-DQAGAOJW.js +0 -7
- package/dist/sk-SK-ztSYyXUE.js +0 -13
- package/dist/sl-SI-B-MLX0nT.js +0 -7
- package/dist/sl-SI-BY4TzP-F.js +0 -13
- package/dist/sl-SI-DUaLO_J7.js +0 -7
- package/dist/sv-SE-5uxyEq2a.js +0 -7
- package/dist/sv-SE-CNQCI2nX.js +0 -7
- package/dist/sv-SE-CrUbxniG.js +0 -13
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +0 -46
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/components/DynamicForm/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/DynamicForm/useCustomerData.d.ts +0 -25
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +0 -5
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +0 -18
- package/dist/types/adaptiveWorkflow/components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxReportingWorkflow/TaxReportingWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +0 -34
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +0 -16
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +0 -7
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +0 -7
- package/dist/uppercase-DvjwUM0n.js +0 -7
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContextProvider.d.ts +0 -0
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/useWorkflowContext.d.ts +0 -0
|
@@ -1,45 +1,46 @@
|
|
|
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] = "70c3c13f-d576-46a4-8acd-9e7cbff7e621", e._sentryDebugIdIdentifier = "sentry-dbid-70c3c13f-d576-46a4-8acd-9e7cbff7e621");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { T as datasetUtilities, k as Header } from "./resolveEnvironment-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { T as datasetUtilities, X as getMaxLengthByFieldAndCountry, j as useToggleContext, k as Header, pt as useSettingsContext } from "./resolveEnvironment-C5lXxn2H.js";
|
|
7
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
9
|
+
import { t as Button } from "./Button-DSD_afG_.js";
|
|
10
|
+
import { n as httpGet, s as useApiContext } from "./http-DsJtugN1.js";
|
|
9
11
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { f as
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
25
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
26
|
-
import { t as
|
|
27
|
-
import {
|
|
28
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
12
|
+
import { o as entriesOf, t as cloneObject } from "./genUtils-Ce61IJs8.js";
|
|
13
|
+
import { y as reverseMapping } from "./processCapabilities-uXoRmB5x.js";
|
|
14
|
+
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
|
|
15
|
+
import { t as isEeaCountry } from "./country-DkgapJ4w.js";
|
|
16
|
+
import { i as useAnalyticsContext } from "./Modal-SdFoz5L1.js";
|
|
17
|
+
import { a as SettingNames, t as InputText } from "./InputText-CQUZ2_58.js";
|
|
18
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BdcoiUby.js";
|
|
19
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-BsNe9jOR.js";
|
|
20
|
+
import { t as EndStateLayout } from "./EndStateLayout-CarfWtTC.js";
|
|
21
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-DuIuKg3u.js";
|
|
22
|
+
import { A as createFormUtils, N as FormContextProvider, _ as useMultiForm, b as useFormComposer, d as CountryField, f as useFormContext, h as FormFlow, m as getRequiredForms, p as addValidityToForms, t as RadioGroup } from "./RadioGroup-DvcMPdV_.js";
|
|
23
|
+
import { t as ErrorPanel } from "./ErrorPanel-Deuo7Len.js";
|
|
24
|
+
import { t as Checkbox } from "./Checkbox-CoYc9mYJ.js";
|
|
25
|
+
import { a as getAddressSchemaForCountry, f as COUNTRIES_WITH_STATES_DATASET, o as getAddressSchemaLabelsByCountry, s as getKeyForField, u as CONDENSED_ADDRESS_FIELDS } from "./StateField-BLKrxMHo.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CYZd_62a.js";
|
|
27
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-C0U3rIhc.js";
|
|
28
|
+
import { n as addressFormatters, o as useAddressCleanseImperatively, r as countrySpecificFormatters, t as AddressField } from "./AddressField-Dwiy0Lp9.js";
|
|
29
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Ceflt6Ba.js";
|
|
30
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-B2Yvt5KJ.js";
|
|
29
31
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
30
|
-
import { t as localizeDateString } from "./localizeDateString-
|
|
31
|
-
import { a as isValidationError } from "./validationError-
|
|
32
|
+
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
33
|
+
import { a as isValidationError } from "./validationError-DprLeGG3.js";
|
|
34
|
+
import { i as preventPoBoxValidation, n as addressValidationRulesV4, t as addressValidationRules } from "./validate-lQWcaLZr.js";
|
|
35
|
+
import { t as useForm } from "./useForm-DV-XkAG5.js";
|
|
32
36
|
import { n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
33
|
-
import { t as Link } from "./Link-
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as
|
|
40
|
-
import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-BAx_Uo5W.js";
|
|
41
|
-
import { t as NewSummary } from "./NewSummary-BoZKS3an.js";
|
|
42
|
-
import { t as businessFinancingMultiformRules } from "./validate-C-08Q88R.js";
|
|
37
|
+
import { t as Link } from "./Link-B-gN0d8l.js";
|
|
38
|
+
import { t as InputDate } from "./InputDate-BSoTKQgE.js";
|
|
39
|
+
import { t as formatValidationError } from "./formatValidationError-Cbkto-0l.js";
|
|
40
|
+
import { t as currencyByCountry } from "./types-Ai_80DXu.js";
|
|
41
|
+
import { t as NewSummary } from "./NewSummary-Bs2oSxfd.js";
|
|
42
|
+
import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-C4CO9Z4U.js";
|
|
43
|
+
import { t as businessFinancingMultiformRules } from "./validate-NJXha9gC.js";
|
|
43
44
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
44
45
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
45
46
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -1035,6 +1036,124 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
1035
1036
|
})] });
|
|
1036
1037
|
}
|
|
1037
1038
|
//#endregion
|
|
1039
|
+
//#region src/components/Shared/forms/Address/Address.tsx
|
|
1040
|
+
function Address({ data: dataProp, labels, readOnly, hideCountry, fieldValidationErrors: propFieldValidationErrors, allFields, requiredFields, optionalFields = ["street2"], readOnlyFields, obscuredFields, trustedFields, shouldValidate, onChange, verifiedAddress, condensed, handleFieldChange, errors: errorProp, valid: validProp, addressType }) {
|
|
1041
|
+
const { t } = useTranslation("common");
|
|
1042
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1043
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
1044
|
+
const preventPoBoxes = addressType === "operationalAddress";
|
|
1045
|
+
const schema = useMemo(() => {
|
|
1046
|
+
if (requiredFields?.length) return requiredFields?.includes("stateOrProvince") || dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? requiredFields : requiredFields?.filter((field) => field !== "stateOrProvince");
|
|
1047
|
+
return dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? getAddressSchemaForCountry(dataProp?.country) : getAddressSchemaForCountry(dataProp?.country).filter((ad) => ad !== "stateOrProvince");
|
|
1048
|
+
}, [dataProp?.country, requiredFields]);
|
|
1049
|
+
const rules = useMemo(() => addressValidationRules(dataProp?.country), [dataProp?.country]);
|
|
1050
|
+
const rulesV4 = useMemo(() => addressValidationRulesV4(dataProp?.country, t), [dataProp?.country, t]);
|
|
1051
|
+
const cleanseAddress = useAddressCleanseImperatively();
|
|
1052
|
+
const asyncRules = useMemo(() => preventPoBoxes ? preventPoBoxValidation(cleanseAddress) : void 0, [cleanseAddress, preventPoBoxes]);
|
|
1053
|
+
const form = useForm({
|
|
1054
|
+
schema,
|
|
1055
|
+
defaultData: dataProp,
|
|
1056
|
+
formatters: addressFormatters,
|
|
1057
|
+
rules: isStrictNameAndAddressValidationEnabled ? rulesV4 : rules,
|
|
1058
|
+
asyncRules,
|
|
1059
|
+
fieldProblems: propFieldValidationErrors,
|
|
1060
|
+
optionalFields,
|
|
1061
|
+
obscuredFields,
|
|
1062
|
+
trustedFields,
|
|
1063
|
+
shouldValidate
|
|
1064
|
+
});
|
|
1065
|
+
let { schema: formSchema, data: formData, errors: formErrors, valid: formValid, fieldProblems: formFieldProblems, handleChangeFor } = form;
|
|
1066
|
+
const { isValid } = form;
|
|
1067
|
+
if (handleFieldChange && requiredFields && propFieldValidationErrors) {
|
|
1068
|
+
const allFields = [...requiredFields, ...optionalFields];
|
|
1069
|
+
const fieldsInOrder = getAddressSchemaForCountry(dataProp?.country).filter((field) => allFields.includes(field));
|
|
1070
|
+
handleChangeFor = handleFieldChange;
|
|
1071
|
+
formData = dataProp ?? {};
|
|
1072
|
+
formErrors = errorProp;
|
|
1073
|
+
formValid = validProp;
|
|
1074
|
+
formFieldProblems = propFieldValidationErrors;
|
|
1075
|
+
formSchema = fieldsInOrder;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Updates local useForm data with either the verified address data or the default data
|
|
1079
|
+
*/
|
|
1080
|
+
useEffect(() => {
|
|
1081
|
+
if (verifiedAddress) entriesOf(verifiedAddress).forEach(([key, value]) => {
|
|
1082
|
+
if (formData[key] !== value) handleChangeFor(key, "input")(value);
|
|
1083
|
+
});
|
|
1084
|
+
}, [verifiedAddress]);
|
|
1085
|
+
const formUtils = createFormUtils({
|
|
1086
|
+
data: dataProp,
|
|
1087
|
+
labels,
|
|
1088
|
+
readOnly,
|
|
1089
|
+
allFields,
|
|
1090
|
+
requiredFields: schema,
|
|
1091
|
+
optionalFields,
|
|
1092
|
+
readOnlyFields,
|
|
1093
|
+
trustedFields
|
|
1094
|
+
}, t);
|
|
1095
|
+
useEffect(() => {
|
|
1096
|
+
if (hideCountry && dataProp?.country && dataProp.country !== formData.country) schema.forEach((field) => {
|
|
1097
|
+
return field === "country" ? handleChangeFor("country", "input")(dataProp.country) : handleChangeFor(field, "input")(" ");
|
|
1098
|
+
});
|
|
1099
|
+
}, [dataProp?.country, hideCountry]);
|
|
1100
|
+
useEffect(() => {
|
|
1101
|
+
onChange?.({
|
|
1102
|
+
schema: formSchema,
|
|
1103
|
+
data: formData,
|
|
1104
|
+
valid: formValid,
|
|
1105
|
+
errors: formErrors,
|
|
1106
|
+
fieldProblems: formFieldProblems,
|
|
1107
|
+
isValid
|
|
1108
|
+
});
|
|
1109
|
+
}, [
|
|
1110
|
+
formData,
|
|
1111
|
+
formErrors,
|
|
1112
|
+
formFieldProblems,
|
|
1113
|
+
formSchema,
|
|
1114
|
+
formValid,
|
|
1115
|
+
isValid
|
|
1116
|
+
]);
|
|
1117
|
+
const createField = (fieldName) => {
|
|
1118
|
+
if (!formUtils.isRequiredField(fieldName) && !formUtils.isOptionalField(fieldName)) return null;
|
|
1119
|
+
const hideField = fieldName === "country" && hideCountry;
|
|
1120
|
+
return /* @__PURE__ */ jsx(AddressField, {
|
|
1121
|
+
schema: formSchema,
|
|
1122
|
+
data: formData,
|
|
1123
|
+
valid: formValid,
|
|
1124
|
+
errors: formErrors,
|
|
1125
|
+
fieldProblems: formFieldProblems,
|
|
1126
|
+
fieldName,
|
|
1127
|
+
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, formData.country, true),
|
|
1128
|
+
hideField,
|
|
1129
|
+
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
1130
|
+
optional: formUtils.isOptionalField(fieldName),
|
|
1131
|
+
trimOnBlur: true,
|
|
1132
|
+
handleChangeFor
|
|
1133
|
+
}, fieldName);
|
|
1134
|
+
};
|
|
1135
|
+
if (condensed && formData?.country) {
|
|
1136
|
+
const condensedFields = CONDENSED_ADDRESS_FIELDS[formData.country] ?? [];
|
|
1137
|
+
switch (formData?.country) {
|
|
1138
|
+
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
1139
|
+
"aria-label": t(($) => $[addressType]),
|
|
1140
|
+
children: [formSchema.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
1141
|
+
className: "adyen-kyc-address__condensed-fields",
|
|
1142
|
+
children: condensedFields.map((field) => createField(field))
|
|
1143
|
+
})]
|
|
1144
|
+
});
|
|
1145
|
+
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
1146
|
+
"aria-label": t(($) => $[addressType]),
|
|
1147
|
+
children: formSchema.map((field) => createField(field))
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
1152
|
+
"aria-label": t(($) => $[addressType]),
|
|
1153
|
+
children: formSchema.map((field) => createField(field))
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
//#endregion
|
|
1038
1157
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.tsx
|
|
1039
1158
|
var OPTIONAL_ADDRESS_FIELDS = ["street2"];
|
|
1040
1159
|
var registeredAddressFields = [
|
|
@@ -1,13 +1,13 @@
|
|
|
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] = "c6954822-0bef-4c2b-b152-7b45c41d3080", e._sentryDebugIdIdentifier = "sentry-dbid-c6954822-0bef-4c2b-b152-7b45c41d3080");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
7
|
-
import {
|
|
8
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
9
|
-
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-
|
|
10
|
-
import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-C5lXxn2H.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
10
|
+
import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-BJyuZ8dK.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/components/EFP/pages/BusinessFinancingPage.tsx
|
|
13
13
|
var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
|
|
@@ -47,33 +47,33 @@ var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
|
|
|
47
47
|
}, {
|
|
48
48
|
ns: "common",
|
|
49
49
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
50
|
-
"../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
51
|
-
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-
|
|
52
|
-
"../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
53
|
-
"../../../language/locales/de-DE.json": () => import("./de-DE-
|
|
54
|
-
"../../../language/locales/el-GR.json": () => import("./el-GR-
|
|
55
|
-
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-
|
|
56
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
57
|
-
"../../../language/locales/es-ES.json": () => import("./es-ES-
|
|
58
|
-
"../../../language/locales/es-LA.json": () => import("./es-LA-
|
|
59
|
-
"../../../language/locales/et-EE.json": () => import("./et-EE-
|
|
60
|
-
"../../../language/locales/fi-FI.json": () => import("./fi-FI-
|
|
61
|
-
"../../../language/locales/fr-FR.json": () => import("./fr-FR-
|
|
62
|
-
"../../../language/locales/hr-HR.json": () => import("./hr-HR
|
|
63
|
-
"../../../language/locales/hu-HU.json": () => import("./hu-HU-
|
|
64
|
-
"../../../language/locales/it-IT.json": () => import("./it-IT-
|
|
65
|
-
"../../../language/locales/ja-JP.json": () => import("./ja-JP-
|
|
66
|
-
"../../../language/locales/lt-LT.json": () => import("./lt-LT-
|
|
67
|
-
"../../../language/locales/lv-LV.json": () => import("./lv-LV-
|
|
68
|
-
"../../../language/locales/nl-NL.json": () => import("./nl-NL-
|
|
69
|
-
"../../../language/locales/no-NO.json": () => import("./no-NO-
|
|
70
|
-
"../../../language/locales/pl-PL.json": () => import("./pl-PL-
|
|
71
|
-
"../../../language/locales/pt-BR.json": () => import("./pt-BR-
|
|
72
|
-
"../../../language/locales/pt-PT.json": () => import("./pt-PT-
|
|
73
|
-
"../../../language/locales/ro-RO.json": () => import("./ro-RO-
|
|
74
|
-
"../../../language/locales/sk-SK.json": () => import("./sk-SK-
|
|
75
|
-
"../../../language/locales/sl-SI.json": () => import("./sl-SI-
|
|
76
|
-
"../../../language/locales/sv-SE.json": () => import("./sv-SE-
|
|
50
|
+
"../../../language/locales/bg-BG.json": () => import("./bg-BG-D4mSRREu.js"),
|
|
51
|
+
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-DySBJFlc.js"),
|
|
52
|
+
"../../../language/locales/da-DK.json": () => import("./da-DK-BuvKW6Sq.js"),
|
|
53
|
+
"../../../language/locales/de-DE.json": () => import("./de-DE-BQaqplTp.js"),
|
|
54
|
+
"../../../language/locales/el-GR.json": () => import("./el-GR-C6jyW53I.js"),
|
|
55
|
+
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CqF1qVJV.js"),
|
|
56
|
+
"../../../language/locales/en-US.json": () => import("./en-US-D4NrsDmW.js"),
|
|
57
|
+
"../../../language/locales/es-ES.json": () => import("./es-ES-BM5RTwb7.js"),
|
|
58
|
+
"../../../language/locales/es-LA.json": () => import("./es-LA-CcMAcJ7u.js"),
|
|
59
|
+
"../../../language/locales/et-EE.json": () => import("./et-EE-FtKFvr3u.js"),
|
|
60
|
+
"../../../language/locales/fi-FI.json": () => import("./fi-FI-SFw2grVp.js"),
|
|
61
|
+
"../../../language/locales/fr-FR.json": () => import("./fr-FR-Dsh0Vb20.js"),
|
|
62
|
+
"../../../language/locales/hr-HR.json": () => import("./hr-HR-Cqgf9B0v.js"),
|
|
63
|
+
"../../../language/locales/hu-HU.json": () => import("./hu-HU-DyM1X3r6.js"),
|
|
64
|
+
"../../../language/locales/it-IT.json": () => import("./it-IT-xXO07yyz.js"),
|
|
65
|
+
"../../../language/locales/ja-JP.json": () => import("./ja-JP-BhHK_ru2.js"),
|
|
66
|
+
"../../../language/locales/lt-LT.json": () => import("./lt-LT-Be3q6tyu.js"),
|
|
67
|
+
"../../../language/locales/lv-LV.json": () => import("./lv-LV-DCeyOqHY.js"),
|
|
68
|
+
"../../../language/locales/nl-NL.json": () => import("./nl-NL-Dyb3tkBi.js"),
|
|
69
|
+
"../../../language/locales/no-NO.json": () => import("./no-NO-DXDddmYv.js"),
|
|
70
|
+
"../../../language/locales/pl-PL.json": () => import("./pl-PL-CBwRmIu5.js"),
|
|
71
|
+
"../../../language/locales/pt-BR.json": () => import("./pt-BR-DA4PVtVa2.js"),
|
|
72
|
+
"../../../language/locales/pt-PT.json": () => import("./pt-PT-QU0CQs-d.js"),
|
|
73
|
+
"../../../language/locales/ro-RO.json": () => import("./ro-RO-DNye-gMC.js"),
|
|
74
|
+
"../../../language/locales/sk-SK.json": () => import("./sk-SK-CwbBfCsU.js"),
|
|
75
|
+
"../../../language/locales/sl-SI.json": () => import("./sl-SI-9XdXVgB8.js"),
|
|
76
|
+
"../../../language/locales/sv-SE.json": () => import("./sv-SE-CqhSdYBe.js")
|
|
77
77
|
}), `../../../language/locales/${lang}.json`, 6)
|
|
78
78
|
}]);
|
|
79
79
|
if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -1,30 +1,27 @@
|
|
|
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] = "31760471-06fe-4445-9ef1-730b7681a86a", e._sentryDebugIdIdentifier = "sentry-dbid-31760471-06fe-4445-9ef1-730b7681a86a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { T as datasetUtilities,
|
|
7
|
-
import {
|
|
5
|
+
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { T as datasetUtilities, j as useToggleContext } from "./resolveEnvironment-C5lXxn2H.js";
|
|
7
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
9
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
9
|
-
import {
|
|
10
|
+
import { a as objectsDeepEqual } from "./genUtils-Ce61IJs8.js";
|
|
10
11
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
11
|
-
import { a as prefixCountryNameWithThe } from "./country-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import { i as
|
|
24
|
-
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
25
|
-
import { t as RadioGroup } from "./RadioGroup-DcR1jQy7.js";
|
|
26
|
-
import { t as formatValidationError } from "./formatValidationError-B9NRahV5.js";
|
|
27
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-BZou9I4l.js";
|
|
12
|
+
import { a as prefixCountryNameWithThe } from "./country-DkgapJ4w.js";
|
|
13
|
+
import { t as InputText } from "./InputText-CQUZ2_58.js";
|
|
14
|
+
import { a as uppercase, d as numericInputs, f as spacer, l as makeMask, n as MaskedInput, o as alphaInputs, s as alphanumericInputs, u as nonInputs } from "./form-rules-BNF4Yysw.js";
|
|
15
|
+
import { U as isJapanLocalizationEnabled } from "./bafinUtils-BPvihvBP.js";
|
|
16
|
+
import { f as translateTranslatable, r as Field } from "./Select-DuIuKg3u.js";
|
|
17
|
+
import { c as validatePatternOnBlur, l as resolveFieldMetadata, s as validateNotEmptyOnBlur, t as RadioGroup } from "./RadioGroup-DvcMPdV_.js";
|
|
18
|
+
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-CoYc9mYJ.js";
|
|
19
|
+
import { p as addressFields } from "./StateField-BLKrxMHo.js";
|
|
20
|
+
import { a as useAddressCleanse, i as formatAddressForCleanse } from "./AddressField-Dwiy0Lp9.js";
|
|
21
|
+
import { a as getNestedTrustedFields, c as MemoizedDocumentUpload, n as AddressFields, o as getPrefixedAddressFieldNames, r as ALL_ADDRESS_FIELDS, s as nestAddressSchema } from "./PatriotActDisclosure-f5X4wFJ7.js";
|
|
22
|
+
import { i as getPrefixedFieldProps } from "./getProps-DVqK7eRw.js";
|
|
23
|
+
import { t as formatValidationError } from "./formatValidationError-Cbkto-0l.js";
|
|
24
|
+
import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-Cw_MwFNk.js";
|
|
28
25
|
import { Suspense, lazy, memo } from "preact/compat";
|
|
29
26
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
30
27
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -82,109 +79,6 @@ function DBANameField({ data, valid, errors, readonly, handleChangeFor }) {
|
|
|
82
79
|
var doingBusinessAsAbsentFieldMetadata = { validators: [validateNotEmptyOnBlur] };
|
|
83
80
|
var doingBusinessAsFieldMetadata = { validators: [validateNotEmptyOnBlur] };
|
|
84
81
|
//#endregion
|
|
85
|
-
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.ts
|
|
86
|
-
var JP_ONLY_ADDRESS_FIELDS = [
|
|
87
|
-
"jaHaniStateOrProvince",
|
|
88
|
-
"jaHaniCity",
|
|
89
|
-
"jaHaniStreet",
|
|
90
|
-
"jaKanaStateOrProvince",
|
|
91
|
-
"jaKanaCity",
|
|
92
|
-
"street2FullWidth"
|
|
93
|
-
];
|
|
94
|
-
var ALL_ADDRESS_FIELDS = [...addressFields, ...JP_ONLY_ADDRESS_FIELDS];
|
|
95
|
-
/**
|
|
96
|
-
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
97
|
-
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
98
|
-
*
|
|
99
|
-
* @param prefix - `registrationAddress` or `operationalAddress`
|
|
100
|
-
* @param trustedFields - trustedFields on legal entity
|
|
101
|
-
* @returns An array of the nested field keys that are trusted
|
|
102
|
-
*/
|
|
103
|
-
var getNestedTrustedFields = (prefix, trustedFields) => {
|
|
104
|
-
if (!trustedFields) return [];
|
|
105
|
-
const flattenedTrustedFields = [];
|
|
106
|
-
for (const trustedField of trustedFields) {
|
|
107
|
-
const [group, field] = trustedField.split(".");
|
|
108
|
-
if (group === prefix && field) flattenedTrustedFields.push(`${prefix}${capitalize(field)}`);
|
|
109
|
-
}
|
|
110
|
-
return flattenedTrustedFields;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Flattens a nested address schema using the provided prefix to avoid collisions so each
|
|
114
|
-
* field can be handled individually.
|
|
115
|
-
*
|
|
116
|
-
* `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
|
|
117
|
-
*/
|
|
118
|
-
function flattenAddressSchema(prefix, address) {
|
|
119
|
-
const flattenedAddressSchema = {};
|
|
120
|
-
for (const field of ALL_ADDRESS_FIELDS) flattenedAddressSchema[`${prefix}${capitalize(field)}`] = address?.[field];
|
|
121
|
-
return flattenedAddressSchema;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Nests a flattened address schema, removing the provided prefix from each field. Used for
|
|
125
|
-
* utilities that still expect nested data.
|
|
126
|
-
*
|
|
127
|
-
* `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
|
|
128
|
-
*/
|
|
129
|
-
function nestAddressSchema(prefix, flatData) {
|
|
130
|
-
const nestedAddressSchema = {};
|
|
131
|
-
for (const field of ALL_ADDRESS_FIELDS) nestedAddressSchema[field] = flatData?.[`${prefix}${capitalize(field)}`];
|
|
132
|
-
return nestedAddressSchema;
|
|
133
|
-
}
|
|
134
|
-
var getPrefixedAddressFieldNames = (prefix) => ALL_ADDRESS_FIELDS.map((field) => `${prefix}${capitalize(field)}`);
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/components/Shared/forms/Address/AddressFields.tsx
|
|
137
|
-
function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, condensed }) {
|
|
138
|
-
const { t } = useTranslation("common");
|
|
139
|
-
const formUtils = createFormUtils({
|
|
140
|
-
data,
|
|
141
|
-
labels: getAddressSchemaLabelsByCountry(data.country),
|
|
142
|
-
readOnly,
|
|
143
|
-
requiredFields,
|
|
144
|
-
optionalFields,
|
|
145
|
-
readOnlyFields,
|
|
146
|
-
trustedFields
|
|
147
|
-
}, t);
|
|
148
|
-
const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
149
|
-
const createField = (fieldName) => {
|
|
150
|
-
const hideField = hideCountry && fieldName === "country";
|
|
151
|
-
return /* @__PURE__ */ jsx(AddressField, {
|
|
152
|
-
schema: addressFields,
|
|
153
|
-
data,
|
|
154
|
-
valid: valid ?? {},
|
|
155
|
-
errors: errors ?? {},
|
|
156
|
-
fieldProblems: fieldValidationErrors,
|
|
157
|
-
fieldName,
|
|
158
|
-
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, data.country, true),
|
|
159
|
-
hideField,
|
|
160
|
-
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
161
|
-
optional: formUtils.isOptionalField(fieldName),
|
|
162
|
-
trimOnBlur: true,
|
|
163
|
-
handleChangeFor: handleFieldChange
|
|
164
|
-
}, fieldName);
|
|
165
|
-
};
|
|
166
|
-
if (condensed && data.country) {
|
|
167
|
-
const condensedFields = CONDENSED_ADDRESS_FIELDS[data.country] ?? [];
|
|
168
|
-
switch (data.country) {
|
|
169
|
-
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
170
|
-
"aria-label": t(($) => $[addressType]),
|
|
171
|
-
children: [addressFields.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
172
|
-
className: "adyen-kyc-address__condensed-fields",
|
|
173
|
-
children: condensedFields.map((field) => createField(field))
|
|
174
|
-
})]
|
|
175
|
-
});
|
|
176
|
-
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
177
|
-
"aria-label": t(($) => $[addressType]),
|
|
178
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
183
|
-
"aria-label": t(($) => $[addressType]),
|
|
184
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
82
|
//#region src/utils/useDebouncedState.ts
|
|
189
83
|
/**
|
|
190
84
|
* Like {@link useState}, but waits for the given amount of time before applying *only* the most recent update.
|
|
@@ -202,7 +96,7 @@ var RegistrationAndOperationalAddressFields_module_default = {
|
|
|
202
96
|
};
|
|
203
97
|
//#endregion
|
|
204
98
|
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/RegistrationAndOperationalAddressFields.tsx
|
|
205
|
-
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-
|
|
99
|
+
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-C2M1PEEu.js")).JpAddressFields);
|
|
206
100
|
var REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS = [
|
|
207
101
|
"operationalAddressIsSame",
|
|
208
102
|
...getPrefixedAddressFieldNames("registrationAddress"),
|
|
@@ -299,8 +193,7 @@ function RegistrationAndOperationalAddressFields({ country, readOnlyAddressField
|
|
|
299
193
|
addressType: "registrationAddress",
|
|
300
194
|
readOnlyFields: readOnlyAddressFields,
|
|
301
195
|
trustedFields: getNestedTrustedFields("registrationAddress", trustedFields),
|
|
302
|
-
hideCountry: true
|
|
303
|
-
condensed: true
|
|
196
|
+
hideCountry: true
|
|
304
197
|
}),
|
|
305
198
|
showField(["residentialAddressIndicator"]) && /* @__PURE__ */ jsx(Field, {
|
|
306
199
|
el: "fieldset",
|
|
@@ -354,8 +247,7 @@ function RegistrationAndOperationalAddressFields({ country, readOnlyAddressField
|
|
|
354
247
|
...addressFieldProps.operationalAddress,
|
|
355
248
|
addressType: "operationalAddress",
|
|
356
249
|
trustedFields: getNestedTrustedFields("operationalAddress", trustedFields),
|
|
357
|
-
hideCountry: true
|
|
358
|
-
condensed: true
|
|
250
|
+
hideCountry: true
|
|
359
251
|
}))
|
|
360
252
|
] })] });
|
|
361
253
|
}
|
|
@@ -1283,7 +1175,7 @@ var BUSINESS_REGISTRATION_NUMBER_FIELD = [
|
|
|
1283
1175
|
"registrationNumberType",
|
|
1284
1176
|
"exemptedFromRegistrationNumber"
|
|
1285
1177
|
];
|
|
1286
|
-
function BusinessRegistrationNumberField({ data, valid, errors,
|
|
1178
|
+
function BusinessRegistrationNumberField({ data, valid, errors, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType }) {
|
|
1287
1179
|
const { t } = useTranslation("common");
|
|
1288
1180
|
const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType);
|
|
1289
1181
|
const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType);
|
|
@@ -1343,7 +1235,10 @@ function BusinessRegistrationNumberField({ data, valid, errors, helperText, read
|
|
|
1343
1235
|
optional,
|
|
1344
1236
|
readonly,
|
|
1345
1237
|
shouldValidate: !optional && shouldValidate,
|
|
1346
|
-
helper:
|
|
1238
|
+
helper: getRegistrationNumberHelperText(t, {
|
|
1239
|
+
country,
|
|
1240
|
+
companyType
|
|
1241
|
+
}),
|
|
1347
1242
|
...fieldMetadata.mask
|
|
1348
1243
|
}),
|
|
1349
1244
|
canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
|
|
@@ -1364,4 +1259,4 @@ function BusinessRegistrationNumberField({ data, valid, errors, helperText, read
|
|
|
1364
1259
|
] });
|
|
1365
1260
|
}
|
|
1366
1261
|
//#endregion
|
|
1367
|
-
export {
|
|
1262
|
+
export { VatNumberField as a, defaultFieldMetadata as c, RegistrationAndOperationalAddressFields as d, doingBusinessAsAbsentFieldMetadata as f, DBA_NAME_FIELD as h, VAT_NUMBER_FIELD as i, vatAbsenceReasonMetadata as l, DBANameField as m, BusinessRegistrationNumberField as n, getDefaultVatNumberType as o, doingBusinessAsFieldMetadata as p, MemoizedConstitutionalDocument as r, defaultFieldConfig as s, BUSINESS_REGISTRATION_NUMBER_FIELD as t, REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS as u };
|