@adyen/kyc-components 4.17.1 → 4.18.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/{AccountSetupRejected-CIbXfS4T.js → AccountSetupRejected-b4eK65dI.js} +1 -1
- package/dist/{AdaptiveWorkflow-b83JMsMN.js → AdaptiveWorkflow-CcZoCwYp.js} +19 -19
- package/dist/{AdaptiveWorkflowComponent-BvN88iSP.js → AdaptiveWorkflowComponent-DTGmB4qT.js} +30 -30
- package/dist/Address-C9PWLHwA.js +132 -0
- package/dist/{Address-DDvR9pCB.js → AddressField-Blup_Pzc.js} +10 -130
- package/dist/{BusinessFinancingDropin-BD5Dg_Nu.js → BusinessFinancingDropin-TkIodSHg.js} +45 -27
- package/dist/{BusinessFinancingPage-D6LUADb0.js → BusinessFinancingPage-uuHBlIpc.js} +29 -29
- package/dist/{BusinessTypeSelectionPage-YEtiiB0m.js → BusinessTypeSelectionPage-BiZ79JGx.js} +9 -9
- package/dist/{CompanyRegistrationNumberTypeSelector-DdnSpMrf.js → CompanyRegistrationNumberTypeSelector-Bw8drJYB.js} +7 -19
- package/dist/{ContactDetails-FMjsH68A.js → ContactDetails-C9QH70Wk.js} +6 -6
- package/dist/{ContextGuidance-BuyNY1eL.js → ContextGuidance-CWE86uX8.js} +1 -1
- package/dist/{CountryField-DtaUj4gh.js → CountryField-DL3-F-J6.js} +4 -4
- package/dist/{Currency-BSXOgzCq.js → Currency-CL7lVfEm.js} +51 -16
- package/dist/{CustomerSupport-Ccmoh-P6.js → CustomerSupport-JmUj46bm.js} +10 -10
- package/dist/{DataConflictsModal-CZX9ktGb.js → DataConflictsModal-CQbUpR2z.js} +3 -3
- package/dist/{DebugModal-fbGf-MWc.js → DebugModal-CmsEh5xp.js} +4 -4
- package/dist/{DecisionMakerDetails-DNo_ca88.js → DecisionMakerDetails-CQz7XzMD.js} +17 -8
- package/dist/{DecisionMakerDetailsPage-Cldcdq2i.js → DecisionMakerDetailsPage-Bins2i7d.js} +8 -8
- package/dist/{DecisionMakers-59bV3LAL.js → DecisionMakers-CfFjy_jm.js} +13 -13
- package/dist/{Dropzone-C-iF9Vi5.js → Dropzone-COnvkQh6.js} +4 -4
- package/dist/{EntityAssociation-C8dO76vZ.js → EntityAssociation-BAJ3jdrt.js} +3 -3
- package/dist/{ErrorPanel-WxNhR0d1.js → ErrorPanel-D2HeWU2y.js} +46 -26
- package/dist/{Field-CPvnOkLo.js → Field-Dg-2A6bG.js} +1 -1
- package/dist/GlobalEntryModal-S77yxIeE.js +34 -0
- package/dist/GlobalEntryPage-C-ZFLZXn.js +44 -0
- package/dist/{Individual.rules-s4Yf5eU4.js → Individual.rules-Caf9UMUo.js} +4 -4
- package/dist/{IndividualDropin-CGyphiDA.js → IndividualDropin-Bz6OP1-9.js} +44 -44
- package/dist/{InputDate-CSOtcXS1.js → InputDate-CxzAaaCm.js} +2 -2
- package/dist/{InputText-B7eseCmi.js → InputText-CQcWyZ8_.js} +1 -1
- package/dist/{Introduction-CCNqyCrC.js → Introduction-DV1ncvQA.js} +4 -4
- package/dist/{InvitedDecisionMakerComponent-C0QTLh0d.js → InvitedDecisionMakerComponent-Cp2gXq-4.js} +105 -37
- package/dist/{JpAddress-CoupMKM0.js → JpAddress-Cv1h40L8.js} +14 -54
- package/dist/JpAddress.module-Bdx0E9ys.js +48 -0
- package/dist/JpAddressFields-kWf8az-A.js +246 -0
- package/dist/{LandingLayout-CUAkXrpL.js → LandingLayout-iZpW1Vsx.js} +7 -2
- package/dist/{LegalCompanyNameField-BcvsTDKX.js → LegalCompanyNameField-Cb8lsgEl.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-DgIHSSTF.js → LegalRepresentativeDetailsPage-D_bK2ETK.js} +7 -7
- package/dist/{MaskedInput-BiVsiGoh.js → MaskedInput-B1s7g7RX.js} +4 -4
- package/dist/{MaybeModal-CSdyWPpb.js → MaybeModal-CHv9TiJZ.js} +1 -1
- package/dist/{Name-BaA99nWp.js → Name-Cw7gZ538.js} +4 -4
- package/dist/{NewSummary-CTrWtwIQ.js → NewSummary-cq_5H0ET.js} +4 -4
- package/dist/{PatriotActDisclosure-CCeWR4Oq.js → PatriotActDisclosure-Cmj8Y1xN.js} +12 -12
- package/dist/{PayoutDetailsDropinMultiForm-BwuVaAmr.js → PayoutDetailsDropin-DQXj7NYK.js} +407 -198
- package/dist/PayoutDetailsPage-B4TbKzVH.js +70 -0
- package/dist/{RadioGroup-BgK1r1tF.js → RadioGroup-Bt1Dv_S8.js} +1 -1
- package/dist/{Review-D1mcQJrf.js → Review-DepeQUYT.js} +3 -3
- package/dist/{RootBusinessDetailsPage-UtSS2mdy.js → RootBusinessDetailsPage-D0NwQoPs.js} +31 -31
- package/dist/{RootBusinessLinesPage-Bo9s9RL7.js → RootBusinessLinesPage-Eqzqj3K4.js} +34 -26
- package/dist/{RootIndividualDetailsPage-Coha-RRS.js → RootIndividualDetailsPage-XuapH0Wj.js} +7 -7
- package/dist/{Select-CZK4IIZ-.js → Select-D4oEtS2n.js} +1 -1
- package/dist/{SignPCIComponent-Bubz_okk.js → SignPCIComponent-CvisiXn0.js} +35 -35
- package/dist/{SingpassSelection-DIcF-cpQ.js → SingpassSelection-B0gsVLud.js} +3 -3
- package/dist/{SoleProprietorshipPage-BRKwSK5E.js → SoleProprietorshipPage-CaItSb2W.js} +31 -31
- package/dist/{SourceOfFundsPage-CgRxKOnY.js → SourceOfFundsPage-CJQYX9qF.js} +32 -27
- package/dist/{StructuredList-CUyo9-3i.js → StructuredList-Ci4Ut4E5.js} +1 -1
- package/dist/{Summary-mNbdzw-P.js → Summary-B9EofZyr.js} +17 -8
- package/dist/{TaskListItem-BahFqs9L.js → TaskListItem-DBBj0Y4g.js} +6 -6
- package/dist/{TaxReportingDropin-P_t-4Xqx.js → TaxReportingDropin-CzE-076z.js} +12 -12
- package/dist/{AcceptTermsOfServiceComponent-Bb-lNxor.js → TermsOfServiceManagement-PkkioJsE.js} +41 -41
- package/dist/{TextArea-Blkrb-8X.js → TextArea-BUx3yuMJ.js} +1 -1
- package/dist/{TileGroup-g2SzfZR0.js → TileGroup-PzJay6GP.js} +1 -1
- package/dist/{TrustDetailsPage-wj1_97mM.js → TrustDetailsPage-BERtwZSv.js} +67 -29
- package/dist/{TrustMemberCompanyPage-CvyLRfrq.js → TrustMemberCompanyPage-DMRfpnEn.js} +32 -32
- package/dist/{TrustMemberIndividualPage-DwbRy7lS.js → TrustMemberIndividualPage-DhAF3XR_.js} +7 -7
- package/dist/{TrustMemberRoleAndTypePage-CRQmqNND.js → TrustMemberRoleAndTypePage-C0MwL0BN.js} +19 -19
- package/dist/{TrustMembersOverview-BsjeX9OX.js → TrustMembersOverview-Bn8OAD_X.js} +10 -10
- package/dist/{UnincorporatedPartnershipIndividualPage-B5yhkJLZ.js → UnincorporatedPartnershipIndividualPage-cMb4UAPy.js} +7 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Lz3G9Ts0.js → UnincorporatedPartnershipMemberCompanyPage-PVG3pAWY.js} +32 -32
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-YYLlk6o_.js → UnincorporatedPartnershipMemberRoleAndTypePage-Da-wBICm.js} +22 -144
- package/dist/{UnincorporatedPartnershipMembersOverview-DD-UIG4X.js → UnincorporatedPartnershipMembersOverview-D16uh-Oz.js} +6 -6
- package/dist/{VerificationErrorAlert-C0kw5v1T.js → VerificationErrorAlert-CcHG8uTw.js} +2 -2
- package/dist/{accountHolderUtils-CRbTtDf8.js → accountHolderUtils-BT48ldYL.js} +2 -2
- package/dist/adyen-business-financing.js +30 -30
- package/dist/adyen-individual-configuration.js +33 -33
- package/dist/adyen-individual-status.js +28 -28
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +146 -102
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +5 -5
- package/dist/adyen-transfer-instrument-configuration.js +58 -57
- package/dist/adyen-transfer-instrument-management.js +60 -59
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bafinUtils-BKq-s1Ka.js → bafinUtils-CbfyDBkh.js} +6 -6
- package/dist/bg-BG-BNxxbT-Z.js +7 -0
- package/dist/bg-BG-CEcxO0H0.js +7 -0
- package/dist/{bg-BG-DvFMee1j.js → bg-BG-DWtVZckB.js} +2 -2
- package/dist/business-details-CPkvjYXG.js +355 -0
- package/dist/{constants-DQuh8ePv.js → constants-BIISJQRp.js} +4 -4
- package/dist/cs-CZ-B2huX9v2.js +7 -0
- package/dist/cs-CZ-Bw702SPD.js +7 -0
- package/dist/{cs-CZ-B7aDrpPP.js → cs-CZ-DeM0O93X.js} +2 -2
- package/dist/da-DK-CUL_Et0l.js +7 -0
- package/dist/da-DK-D-u3tkjY.js +7 -0
- package/dist/{da-DK-C3i7IAmt.js → da-DK-DrYRErQi.js} +2 -2
- package/dist/{de-DE-DtVJKjKN.js → de-DE-CNHKj2ar.js} +2 -2
- package/dist/de-DE-Cd5T_rWB.js +7 -0
- package/dist/de-DE-D-2q3DBW.js +7 -0
- package/dist/{decisionMakerRoles-DIG8zo1C.js → decisionMakerRoles-CTy0faoW.js} +2 -2
- package/dist/el-GR-BHu8fnYR.js +7 -0
- package/dist/{el-GR-DxtT4Lft.js → el-GR-DC8wWZlc.js} +2 -2
- package/dist/el-GR-RkQ7qOtM.js +7 -0
- package/dist/en-US-7Uo1OcXR.js +51 -0
- package/dist/en-US-B48_sHax.js +13 -0
- package/dist/en-US-BNfqvbyW.js +7 -0
- package/dist/en-US-CUqerEKF.js +7 -0
- package/dist/en-US-MqobYcqc.js +7 -0
- package/dist/en-US.instructions-CksZ4E5j.js +11 -0
- package/dist/{entityAssociationUtil-C-wflW8q.js → entityAssociationUtil-DLXInibJ.js} +1 -1
- package/dist/es-ES-CtKqdJ9Z.js +7 -0
- package/dist/{es-ES-BIQfz_ub.js → es-ES-L_7CovzS.js} +2 -2
- package/dist/es-ES-sAOz5HKH.js +7 -0
- package/dist/es-LA-BU32JqC-.js +7 -0
- package/dist/{es-LA-CsbPBWVy.js → es-LA-DPvp-UlN.js} +2 -2
- package/dist/es-LA-racbldhR.js +7 -0
- package/dist/{et-EE-BcjBS0ZN.js → et-EE-4OTBQhPM.js} +2 -2
- package/dist/et-EE-C29Bb4Rw.js +7 -0
- package/dist/et-EE-CXOeuULd.js +7 -0
- package/dist/{fi-FI-DEpeYxdL.js → fi-FI-6yq1jSRa.js} +2 -2
- package/dist/fi-FI-BNfxJDvc.js +7 -0
- package/dist/fi-FI-BT1l2Dz5.js +7 -0
- package/dist/{formUtils-C4NqSvj-.js → formUtils-BrLGUOLK.js} +1 -1
- package/dist/fr-FR-Byelw2ED.js +7 -0
- package/dist/{fr-FR-GQrgs_DS.js → fr-FR-DBM2tUge.js} +2 -2
- package/dist/fr-FR-DKdat8Bf.js +7 -0
- package/dist/{getFormSlice-BhE08Y1v.js → getFormSlice-C1ma6Xd4.js} +4 -1
- package/dist/{getName-D4ECvzcI.js → getName-C5jqdkJg.js} +1 -1
- package/dist/{getProblemsForEntity-n6j8So3N.js → getProblemsForEntity-ubvE1Px7.js} +1 -1
- package/dist/{getProps-1L-urpfA.js → getProps-DVqK7eRw.js} +51 -2
- package/dist/global-entry-illustration-By_EjQFM.js +288 -0
- package/dist/hr-HR-CAwy4u2B.js +7 -0
- package/dist/hr-HR-Cmnnjuvd.js +7 -0
- package/dist/{hr-HR-BwKDcJ9v.js → hr-HR-Vx0hO2h4.js} +2 -2
- package/dist/hu-HU-8uDv5c4i.js +7 -0
- package/dist/hu-HU-BmQJPXo2.js +7 -0
- package/dist/{hu-HU-81HMvS9Y.js → hu-HU-DsUOhM2K.js} +2 -2
- package/dist/{invalidateRootLegalEntity-BXEeCEPH.js → invalidateRootLegalEntity-J6Fn_3DE.js} +1 -1
- package/dist/it-IT-8DGwiIEf.js +7 -0
- package/dist/{it-IT-Il0f-h2h.js → it-IT-CL_4Y1hK.js} +2 -2
- package/dist/it-IT-VzcvfA7e.js +7 -0
- package/dist/ja-JP-B05v6NdN.js +7 -0
- package/dist/ja-JP-BG7p2_ZL.js +7 -0
- package/dist/{ja-JP-Dk2zBWeH.js → ja-JP-CNBPrNgM.js} +2 -2
- package/dist/lt-LT-C7Bf2i87.js +7 -0
- package/dist/{lt-LT-DZ2Uu9bq.js → lt-LT-CPBTVJeD.js} +2 -2
- package/dist/lt-LT-DCayRCd-.js +7 -0
- package/dist/{lv-LV-BCMHodgd.js → lv-LV-CBsGjmsA.js} +2 -2
- package/dist/lv-LV-D3bkGuXV.js +7 -0
- package/dist/lv-LV-DXymHGml.js +7 -0
- package/dist/{mapExistingFile-CBm5xZ6Y.js → mapExistingFile-BvFf01k6.js} +9 -6
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DZUd0pQT.js → mapJpAddressSchemaToAddressLocalizations-DHL5chu8.js} +15 -2
- package/dist/{mapLegalEntityToIndividualSchema-ffgKdB7f.js → mapLegalEntityToIndividualSchema-BeR7ESyx.js} +5 -5
- package/dist/{mapTransferInstrumentToPayoutAccount-CzGprA7W.js → mapTransferInstrumentToPayoutAccount-2iWuaqS_.js} +2 -2
- package/dist/{nl-NL-D2oZHtTs.js → nl-NL-C5MHFAIE.js} +2 -2
- package/dist/nl-NL-DkYkY9Mu.js +7 -0
- package/dist/nl-NL-lyCxhWKl.js +7 -0
- package/dist/{no-NO-D5l99NQF.js → no-NO-Bna_-q84.js} +2 -2
- package/dist/no-NO-CCbUtRmU.js +7 -0
- package/dist/no-NO-FFwOUFr9.js +7 -0
- package/dist/{omitObscuredFieldsIfUnchanged-DsnQrP7Q.js → omitObscuredFieldsIfUnchanged-5n50BfST.js} +2 -2
- package/dist/{patternValidators-CF0ehPio.js → patternValidators-Be6iVFPv.js} +1 -1
- package/dist/pl-PL-B9u7WZBs.js +7 -0
- package/dist/pl-PL-BDauaEiz.js +7 -0
- package/dist/{pl-PL-C_QR0_4u.js → pl-PL-Ddtqvtag.js} +2 -2
- package/dist/{process-field-configurations-hFtQDU3k.js → process-field-configurations-DBtjrbif.js} +3 -3
- package/dist/{processCapabilities-BeE0xWUp.js → processCapabilities-C2kMryYn.js} +25 -25
- package/dist/{validationError-DwNvWaOL.js → processValidationErrors-DDA2CFwh.js} +21 -27
- package/dist/pt-BR-CoWBKHni.js +7 -0
- package/dist/{pt-BR-DVpGdnO-.js → pt-BR-D3oWr3QJ.js} +2 -2
- package/dist/pt-BR-XeJRk5pM2.js +7 -0
- package/dist/pt-PT-CCuTeMbQ.js +7 -0
- package/dist/pt-PT-Dhfc0izN.js +7 -0
- package/dist/{pt-PT-Bkylp1fh.js → pt-PT-DpYwMinP.js} +2 -2
- package/dist/{resolveEnvironment-eLCNmAkD.js → resolveEnvironment-GK5T4kh0.js} +45 -37
- package/dist/ro-RO-B9RvKzTz.js +7 -0
- package/dist/ro-RO-CXGpXJAG.js +7 -0
- package/dist/{ro-RO-D9hC-2Yu.js → ro-RO-CZpwJ4Sy.js} +2 -2
- package/dist/{roleMetadata-BWpcmJKX.js → roleMetadata-a4sEtgHv.js} +1 -1
- package/dist/sk-SK-B2XAy5Yw.js +7 -0
- package/dist/sk-SK-DoHPhXvk.js +7 -0
- package/dist/{sk-SK-DWVcJde-.js → sk-SK-DyKdrRnN.js} +2 -2
- package/dist/sl-SI-DwiiZ7hf.js +7 -0
- package/dist/sl-SI-Ga2XE4DC.js +7 -0
- package/dist/{sl-SI-cVr04Hr7.js → sl-SI-nHUFaEcp.js} +2 -2
- package/dist/style.css +148 -245
- package/dist/styles-DYaAeu4q.js +148 -245
- package/dist/sv-SE-3IKbfvgP.js +7 -0
- package/dist/sv-SE-DYjpbult.js +7 -0
- package/dist/{sv-SE-DTqSBLbI.js → sv-SE-DxMX8Ox_.js} +2 -2
- package/dist/{taskTypes-NawDTp5n.js → taskTypes-3vSkMBDm.js} +2 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -0
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +4 -0
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +7 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -0
- package/dist/types/components/Apps/tasks/TaskList/{TaskListGroup.d.ts → TaskListGroup/TaskListGroup.d.ts} +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskListItem/types.d.ts +25 -0
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +0 -25
- package/dist/types/components/BankAccount/fields/BankAccountType/BankAccountType.d.ts +2 -0
- package/dist/types/components/BankAccount/fields/BankAccountType/type.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/{PayoutDetailsMultiform.d.ts → PayoutDetails.d.ts} +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +2 -0
- package/dist/types/components/BankAccount/utils/payoutAccountFormats.d.ts +18 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +26 -4
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +22 -4
- package/dist/types/components/Business/forms/BusinessDetails/{BusinessDetailsMultiform.d.ts → BusinessDetails.d.ts} +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +27 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +9 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +11 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +3 -0
- package/dist/types/components/EmbeddedDropins/{AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts → TermsOfServiceManagement/TermsOfServiceManagement.d.ts} +2 -2
- package/dist/types/components/EmbeddedDropins/TermsOfServiceStatus/TermsOfServiceStatus.d.ts +6 -0
- package/dist/types/components/GlobalEntry/forms/GlobalEntryModal/GlobalEntryModal.d.ts +1 -0
- package/dist/types/components/GlobalEntry/forms/GlobalEntryModal/isGlobalEntryModalOpen.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +1 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +6 -5
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +11 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +9 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ServerValidationErrors.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +4 -8
- package/dist/types/context/ToggleContext/types.d.ts +8 -0
- package/dist/types/core/types.d.ts +0 -11
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +4 -2
- package/dist/types/router/getDefaultTask.d.ts +3 -1
- package/dist/types/router/routeConfig.d.ts +2 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/errors/entity-problems.d.ts +8 -1
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/api/processValidationErrors.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldNameFromPath.d.ts +1 -0
- package/dist/types/utils/getFormSlice.d.ts +7 -4
- package/dist/types/utils/getProps.d.ts +12 -0
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +0 -5
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +0 -3
- package/dist/types/utils/validationError.d.ts +1 -0
- package/dist/{useBusinessDetailsData-D0PJ9tyW.js → useBusinessDetailsData-DCVBepLs.js} +462 -331
- package/dist/{useCanSeeIntroduction-DaQwrjJ-.js → useCanSeeIntroduction-DrlUqeMe.js} +2 -2
- package/dist/{useDataMissingRemediations-MNtvN32n.js → useDataMissingRemediations-BzbA8Mu4.js} +2 -2
- package/dist/{useForm-Cv3aZas7.js → useForm-CUZ1OXNT.js} +2 -2
- package/dist/{useFormContext-CtpjwLuZ.js → useFormContext-Br4I8Pwd.js} +4 -5
- package/dist/{useMultiForm-BIa2K3IX.js → useMultiForm-4UkMBFNd.js} +19 -53
- package/dist/{useNavigate-Cah-_jS1.js → useNavigate-M26qVOyL.js} +41 -35
- package/dist/{useTrustMembers-BJccqTXe.js → useTrustMembers-BzeLWevD.js} +4 -4
- package/dist/{useUnincorporatedPartnershipMembers-C2eHPtsR.js → useUnincorporatedPartnershipMembers-B5WCX6yK.js} +3 -3
- package/dist/{useUpdateLegalEntity-xQVlW3fk.js → useUpdateLegalEntity-dTvcbSw5.js} +1 -1
- package/dist/{utils-Cx2kRIsq.js → utils-BgABwuIB.js} +33 -8
- package/dist/{utils-ChXVrj27.js → utils-CrmXqlJx.js} +6 -6
- package/dist/{utils-CCvjBg7M.js → utils-DrqKnCzc.js} +13 -53
- package/dist/{validate-Dddd90Q3.js → validate-CMxq61UU.js} +1 -1
- package/dist/{validate-DZIWXgfU.js → validate-CkOSeje2.js} +1 -1
- package/dist/{validateExtractionResult-ClctqC0B.js → validateExtractionResult-0_aLL_AX.js} +5 -5
- package/dist/validationError-Bk5vfkJ5.js +55 -0
- package/package.json +3 -11
- package/dist/AD-Clkur2Hx.js +0 -15
- package/dist/AE-BUOfE-VR.js +0 -17
- package/dist/AI-BApAOdVW.js +0 -19
- package/dist/AL-DfPgkH9x.js +0 -19
- package/dist/AR-Bddz61XJ.js +0 -19
- package/dist/AS-C3xgvOIz.js +0 -17
- package/dist/AT-DnJdtYnd.js +0 -15
- package/dist/AU-DL1fsj76.js +0 -16
- package/dist/AX-BTtRN-MP.js +0 -15
- package/dist/AZ-CXVL6e85.js +0 -19
- package/dist/BA-27B-jpFq.js +0 -19
- package/dist/BE-BSUwgR6_.js +0 -15
- package/dist/BG-ChvSTIBz.js +0 -19
- package/dist/BH-D1HvWueK.js +0 -19
- package/dist/BM-bLwVUrnz.js +0 -19
- package/dist/BR-nSEEl5uz.js +0 -18
- package/dist/BS-Bf402NRj.js +0 -19
- package/dist/BV-CJwVioP4.js +0 -19
- package/dist/BY-CYaB1wEE.js +0 -19
- package/dist/CA-B49VPJKw.js +0 -17
- package/dist/CH-BASES6q1.js +0 -15
- package/dist/CN-CEIcYgEd.js +0 -19
- package/dist/CR-CU6MVhAz.js +0 -19
- package/dist/CY-DSZIX0eb.js +0 -15
- package/dist/CZ-CUYgGHVo.js +0 -27
- package/dist/DE-3Qc-SfVV.js +0 -15
- package/dist/DK--Bs4HfJM.js +0 -27
- package/dist/DO-D4wgMRWE.js +0 -19
- package/dist/EC-B2FGK-mr.js +0 -20
- package/dist/EE-qXeASUC-.js +0 -15
- package/dist/ES-BBz54aGb.js +0 -15
- package/dist/FI-DHkXLS9S.js +0 -15
- package/dist/FJ-V_2w3UTO.js +0 -19
- package/dist/FO-DR-Xnm7u.js +0 -19
- package/dist/FR-CtpYelsq.js +0 -15
- package/dist/GB-G_B8HSJg.js +0 -27
- package/dist/GE-By9lo4py.js +0 -19
- package/dist/GF-B0xFBl9q.js +0 -15
- package/dist/GG-bAeosM_i.js +0 -27
- package/dist/GI-DfkPsLw0.js +0 -35
- package/dist/GL-DhRtJPZY.js +0 -19
- package/dist/GP-DNyYQvJw.js +0 -15
- package/dist/GR-DK-QrYIO.js +0 -15
- package/dist/GT-BRuMYK92.js +0 -19
- package/dist/GU-DAYIt05K.js +0 -17
- package/dist/HK-DeKSh6yq.js +0 -17
- package/dist/HR-D0EqC8kx.js +0 -15
- package/dist/HU-DIT5cG5Z.js +0 -26
- package/dist/ID-BBzj2tyK.js +0 -19
- package/dist/IE-CxtzANSG.js +0 -15
- package/dist/IL-CgJ0eWPT.js +0 -15
- package/dist/IM-Ca1LRzUz.js +0 -27
- package/dist/IN--pr2-g7e.js +0 -20
- package/dist/IS-BZeqGau3.js +0 -19
- package/dist/IT-BioiAQgd.js +0 -15
- package/dist/JE-BCj36onT.js +0 -27
- package/dist/JM-b03xrGTz.js +0 -19
- package/dist/JO-CA8m_H5N.js +0 -19
- package/dist/JP-DroDT2u3.js +0 -20
- package/dist/KR-BkBLDQIT.js +0 -19
- package/dist/KW-dB3SXEf8.js +0 -19
- package/dist/KY-mZ-zKVkq.js +0 -19
- package/dist/KZ-CcyUPGdv.js +0 -19
- package/dist/LB-DmtcVmjU.js +0 -19
- package/dist/LI-haSXATP0.js +0 -15
- package/dist/LT-CYlhLD3-.js +0 -15
- package/dist/LU-CnQilYzI.js +0 -15
- package/dist/LV-BJoOuCmD.js +0 -15
- package/dist/MC-1OhRuam2.js +0 -15
- package/dist/MD-DN7TRpmW.js +0 -19
- package/dist/ME-CuMiA40n.js +0 -19
- package/dist/MK-DGR-uR66.js +0 -19
- package/dist/MP-xhfj0dkC.js +0 -17
- package/dist/MQ-CZu5G2-t.js +0 -15
- package/dist/MR--V7elAIS.js +0 -19
- package/dist/MT-BmkVDeF2.js +0 -15
- package/dist/MU-LzgqzZzT.js +0 -19
- package/dist/MX-z-WoZkPd.js +0 -17
- package/dist/MY-WsFwWp2U.js +0 -16
- package/dist/NC-B9M8cc6C.js +0 -19
- package/dist/NL-CXjh0eXG.js +0 -15
- package/dist/NO-BuWcaqBm.js +0 -26
- package/dist/NZ-BDDXct1F.js +0 -11
- package/dist/PE-DJZc_8Lk.js +0 -19
- package/dist/PF-D593LuXT.js +0 -19
- package/dist/PH-CJRjYgx3.js +0 -19
- package/dist/PK-C1TVRYA6.js +0 -19
- package/dist/PL-C3tudSnw.js +0 -26
- package/dist/PM-CPvVGX_s.js +0 -15
- package/dist/PR-C6mnN4I1.js +0 -17
- package/dist/PS-Bqa7HAb6.js +0 -19
- package/dist/PT-BHFP2Jx8.js +0 -15
- package/dist/PayoutDetailsPage-DVgjP63L.js +0 -69
- package/dist/QA-B2A0rFrR.js +0 -19
- package/dist/RE-BSdvJRM5.js +0 -15
- package/dist/RO-BZxtXYEM.js +0 -15
- package/dist/RS-DAtcOeON.js +0 -19
- package/dist/RU-CDpkuVOX.js +0 -19
- package/dist/SA-BoAcP38a.js +0 -19
- package/dist/SE-DX5R7MEM.js +0 -27
- package/dist/SG-Dm4nWFwC.js +0 -16
- package/dist/SI-CbzJWJo5.js +0 -15
- package/dist/SJ-C0EiPIY7.js +0 -19
- package/dist/SK-Bg9K35hT.js +0 -15
- package/dist/SM-BAP1izca.js +0 -15
- package/dist/TF-BzLXwUD9.js +0 -19
- package/dist/TH-wvwE8m03.js +0 -20
- package/dist/TL-CAwOhktT.js +0 -19
- package/dist/TN-Bs-VE6A_.js +0 -19
- package/dist/TR-7uYc2xp7.js +0 -19
- package/dist/TT-DbzL2xhJ.js +0 -20
- package/dist/TW-BTAvA4FA.js +0 -21
- package/dist/UA-BAkAL82L.js +0 -19
- package/dist/US-BXek71cY.js +0 -17
- package/dist/UY-Bq43JSIl.js +0 -19
- package/dist/VA-CHkQ7jk0.js +0 -15
- package/dist/VG-DnUOjTKa.js +0 -19
- package/dist/VI-CjjaTPrq.js +0 -17
- package/dist/VN-DgqMueJl.js +0 -19
- package/dist/WF-Czcwchbb.js +0 -19
- package/dist/YT-BTQIBrb1.js +0 -15
- package/dist/ZA-BAufwt8q.js +0 -20
- package/dist/bg-BG-BHL5r3bk.js +0 -7
- package/dist/bg-BG-CYrrltO8.js +0 -7
- package/dist/cs-CZ-DfuZr4cv.js +0 -7
- package/dist/cs-CZ-SBisIyel.js +0 -7
- package/dist/da-DK-CLx0Hv_L.js +0 -7
- package/dist/da-DK-CcvXqgMA.js +0 -7
- package/dist/de-DE-CcOP7Z3J.js +0 -7
- package/dist/de-DE-qTvDZ5Tj.js +0 -7
- package/dist/el-GR-CO9ixkqP.js +0 -7
- package/dist/el-GR-D1QMkjQd.js +0 -7
- package/dist/en-US-C1J9jcVI.js +0 -7
- package/dist/en-US-CJsQJw90.js +0 -7
- package/dist/en-US-Dokjxy17.js +0 -7
- package/dist/es-ES-CwLsmJeQ.js +0 -7
- package/dist/es-ES-fgGV_t7L.js +0 -7
- package/dist/es-LA-CLD_193O.js +0 -7
- package/dist/es-LA-b7TFh_XZ.js +0 -7
- package/dist/et-EE-CEiroCyD.js +0 -7
- package/dist/et-EE-o65QgBKk.js +0 -7
- package/dist/fi-FI-CKffkrhp.js +0 -7
- package/dist/fi-FI-Cqf4k_ja.js +0 -7
- package/dist/fr-FR-B_JTgxAY.js +0 -7
- package/dist/fr-FR-CQbo6d_Q.js +0 -7
- package/dist/hr-HR-BH4GZRVw.js +0 -7
- package/dist/hr-HR-COHtbZDp.js +0 -7
- package/dist/hu-HU-D0LsAFcV.js +0 -7
- package/dist/hu-HU-xQwE0I5f.js +0 -7
- package/dist/it-IT-DDUd_IZC.js +0 -7
- package/dist/it-IT-NOsTkUWg.js +0 -7
- package/dist/ja-JP-Br0ivw8k.js +0 -7
- package/dist/ja-JP-C98F-BgJ.js +0 -7
- package/dist/jpAddressSchema-DT19YcnH.js +0 -17
- package/dist/lt-LT-DUC5ir_t.js +0 -7
- package/dist/lt-LT-erbGBPqF.js +0 -7
- package/dist/lv-LV-BBegWP3c.js +0 -7
- package/dist/lv-LV-xbEcOY__.js +0 -7
- package/dist/nl-NL-Cpuz-HtA.js +0 -7
- package/dist/nl-NL-NTjVSJq2.js +0 -7
- package/dist/no-NO-B6zGFOCK.js +0 -7
- package/dist/no-NO-Bd3KNpMs.js +0 -7
- package/dist/pl-PL-Bg2G4ioZ.js +0 -7
- package/dist/pl-PL-Cw9UG-qg.js +0 -7
- package/dist/pt-BR-BrCPGoU1.js +0 -7
- package/dist/pt-BR-DT63AAqA2.js +0 -7
- package/dist/pt-PT-BFTfpBI4.js +0 -7
- package/dist/pt-PT-Dilg4TrM.js +0 -7
- package/dist/ro-RO-DJeBU2j9.js +0 -7
- package/dist/ro-RO-DRzT7WiY.js +0 -7
- package/dist/sk-SK-CuXM9tOj.js +0 -7
- package/dist/sk-SK-rMCHSdm4.js +0 -7
- package/dist/sl-SI-BDRsH7Bv.js +0 -7
- package/dist/sl-SI-Dg4bivT7.js +0 -7
- package/dist/sv-SE-Cimi5Nb9.js +0 -7
- package/dist/sv-SE-DaklU1jx.js +0 -7
- package/dist/trackNavigation-DR70qR8T.js +0 -15
- package/dist/trusted-fields-provider-DLz8KKVf.js +0 -10
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropinMultiForm.d.ts +0 -2
- package/dist/types/components/EmbeddedDropins/ManageTermsOfServiceComponent/ManageTermsOfServiceComponent.d.ts +0 -6
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +0 -3
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +0 -4
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +0 -4
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -22
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +0 -14
- /package/dist/types/components/Apps/tasks/TaskList/{TaskListItem.d.ts → TaskListItem/TaskListItem.d.ts} +0 -0
- /package/dist/types/components/BankAccount/forms/PayoutAccount/{payoutAccountFormat.d.ts → store.d.ts} +0 -0
- /package/dist/types/components/{Apps/tasks/TaskList → BankAccount/tasks/PayoutAccount}/PayoutAccountTaskListItem.d.ts +0 -0
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "75680866-bf49-4206-bbb9-89f3eb636db8", e._sentryDebugIdIdentifier = "sentry-dbid-75680866-bf49-4206-bbb9-89f3eb636db8");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
-
import { S as AlertIcon, k as Header } from "./resolveEnvironment-
|
|
6
|
+
import { S as AlertIcon, k as Header } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/Shared/AccountSetupRejected/AccountSetupRejected.tsx
|
|
9
9
|
function AccountSetupRejected() {
|
|
@@ -1,46 +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] = "23a4089e-8347-4290-9e7f-0557beaadc87", e._sentryDebugIdIdentifier = "sentry-dbid-23a4089e-8347-4290-9e7f-0557beaadc87");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-BYvhW5zA.js";
|
|
6
|
-
import { j as useToggleContext, k as Header, x as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { j as useToggleContext, k as Header, x as Alert } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
7
|
import { n as IconButton, r as Loader, t as Button } from "./Button-i8I2dHP8.js";
|
|
8
8
|
import { n as httpGet, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
9
|
import { r as useLegalEntity } from "./useLegalEntity-CtlUQv_J.js";
|
|
10
10
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
11
11
|
import { n as Status } from "./TaskVerificationStatus-CKHPTEpH.js";
|
|
12
12
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
13
|
-
import { a as setNestedValue, i as resolveComponentProps, r as getNestedValue$4, t as TaskListItem } from "./TaskListItem-
|
|
13
|
+
import { a as setNestedValue, i as resolveComponentProps, r as getNestedValue$4, t as TaskListItem } from "./TaskListItem-DBBj0Y4g.js";
|
|
14
14
|
import { r as KEYBOARD_KEYS, t as Modal } from "./Modal-ByJare7m.js";
|
|
15
|
+
import { t as LandingLayout } from "./LandingLayout-iZpW1Vsx.js";
|
|
15
16
|
import { t as useBusinessLines } from "./useBusinessLines-BFsRoAAj.js";
|
|
16
17
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
17
|
-
import { c as CompanyTypesValues } from "./bafinUtils-
|
|
18
|
+
import { c as CompanyTypesValues } from "./bafinUtils-CbfyDBkh.js";
|
|
18
19
|
import { t as EndStateLayout } from "./EndStateLayout-CBRHUXyY.js";
|
|
19
20
|
import { n as translateTranslatable, r as LoaderWrapper } from "./utils-C1buyvRw.js";
|
|
20
21
|
import { t as Confirm } from "./Confirm-DcqMV7rd.js";
|
|
21
22
|
import { n as Image } from "./unincorporated-partnership-nnTW3FnG.js";
|
|
22
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
23
|
-
import { a as FormFlow_module_default } from "./useFormContext-
|
|
23
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-dTvcbSw5.js";
|
|
24
|
+
import { a as FormFlow_module_default } from "./useFormContext-Br4I8Pwd.js";
|
|
24
25
|
import { t as List } from "./List-ywoRPg-q.js";
|
|
25
|
-
import { t as MaskedInput } from "./MaskedInput-
|
|
26
|
+
import { t as MaskedInput } from "./MaskedInput-B1s7g7RX.js";
|
|
26
27
|
import { t as ProgressBar } from "./ProgressBar-DWFxLMUA.js";
|
|
27
|
-
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, f as IdentityNumber, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-
|
|
28
|
-
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, S as getDefaultTaxIdNumberType, k as taxInformationDefaultFieldConfig, n as upsertTaxInfoForCountry, r as TaxIdNumberTypeSelector, t as removeTaxInfoForCountry, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 } from "./utils-
|
|
28
|
+
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, f as IdentityNumber, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-0_aLL_AX.js";
|
|
29
|
+
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, S as getDefaultTaxIdNumberType, k as taxInformationDefaultFieldConfig, n as upsertTaxInfoForCountry, r as TaxIdNumberTypeSelector, t as removeTaxInfoForCountry, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 } from "./utils-BgABwuIB.js";
|
|
29
30
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
30
|
-
import { t as Field } from "./Field-
|
|
31
|
-
import { t as
|
|
32
|
-
import { t as Select } from "./Select-CZK4IIZ-.js";
|
|
31
|
+
import { t as Field } from "./Field-Dg-2A6bG.js";
|
|
32
|
+
import { t as Select } from "./Select-D4oEtS2n.js";
|
|
33
33
|
import { t as Checkbox } from "./Checkbox-DdEBnXOB.js";
|
|
34
34
|
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
35
|
-
import { t as InputText } from "./InputText-
|
|
36
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-
|
|
37
|
-
import { t as
|
|
35
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
36
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-CQbUpR2z.js";
|
|
37
|
+
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-PkkioJsE.js";
|
|
38
38
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
39
39
|
import { t as ListItem } from "./ListItem-BnVTcObB.js";
|
|
40
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
40
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-Bw8drJYB.js";
|
|
41
41
|
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-Cncate8L.js";
|
|
42
|
-
import { t as SourceOfFundsPage } from "./SourceOfFundsPage-
|
|
43
|
-
import { t as TaxReportingDropin } from "./TaxReportingDropin-
|
|
42
|
+
import { t as SourceOfFundsPage } from "./SourceOfFundsPage-CJQYX9qF.js";
|
|
43
|
+
import { t as TaxReportingDropin } from "./TaxReportingDropin-CzE-076z.js";
|
|
44
44
|
import { lazy } from "preact/compat";
|
|
45
45
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
46
46
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -132,7 +132,7 @@ var AcceptTermsOfServiceWorkflow = ({ onComplete, onClose }) => {
|
|
|
132
132
|
title: "Something went wrong",
|
|
133
133
|
description: "Please try again later"
|
|
134
134
|
});
|
|
135
|
-
return /* @__PURE__ */ jsx(
|
|
135
|
+
return /* @__PURE__ */ jsx(TermsOfServiceManagement, {
|
|
136
136
|
legalEntityId: entity.value.id,
|
|
137
137
|
onComplete,
|
|
138
138
|
onClose
|
package/dist/{AdaptiveWorkflowComponent-BvN88iSP.js → AdaptiveWorkflowComponent-DTGmB4qT.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a80c077d-9a2e-4a0d-b049-eed36b2b8481", e._sentryDebugIdIdentifier = "sentry-dbid-a80c077d-9a2e-4a0d-b049-eed36b2b8481");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
7
|
import { r as Loader } from "./Button-i8I2dHP8.js";
|
|
8
|
-
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-
|
|
8
|
+
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-CcZoCwYp.js";
|
|
9
9
|
import { useMemo } from "preact/hooks";
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { signal } from "@preact/signals";
|
|
@@ -60,33 +60,33 @@ var AdaptiveWorkflowComponent = ({ onBack }) => {
|
|
|
60
60
|
{
|
|
61
61
|
ns: "common",
|
|
62
62
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
63
|
-
"../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
64
|
-
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-
|
|
65
|
-
"../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
66
|
-
"../../../language/locales/de-DE.json": () => import("./de-DE-
|
|
67
|
-
"../../../language/locales/el-GR.json": () => import("./el-GR-
|
|
63
|
+
"../../../language/locales/bg-BG.json": () => import("./bg-BG-BNxxbT-Z.js"),
|
|
64
|
+
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-Bw702SPD.js"),
|
|
65
|
+
"../../../language/locales/da-DK.json": () => import("./da-DK-CUL_Et0l.js"),
|
|
66
|
+
"../../../language/locales/de-DE.json": () => import("./de-DE-D-2q3DBW.js"),
|
|
67
|
+
"../../../language/locales/el-GR.json": () => import("./el-GR-RkQ7qOtM.js"),
|
|
68
68
|
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-FOYUYA3c.js"),
|
|
69
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
70
|
-
"../../../language/locales/es-ES.json": () => import("./es-ES-
|
|
71
|
-
"../../../language/locales/es-LA.json": () => import("./es-LA-
|
|
72
|
-
"../../../language/locales/et-EE.json": () => import("./et-EE-
|
|
73
|
-
"../../../language/locales/fi-FI.json": () => import("./fi-FI-
|
|
74
|
-
"../../../language/locales/fr-FR.json": () => import("./fr-FR-
|
|
75
|
-
"../../../language/locales/hr-HR.json": () => import("./hr-HR-
|
|
76
|
-
"../../../language/locales/hu-HU.json": () => import("./hu-HU-
|
|
77
|
-
"../../../language/locales/it-IT.json": () => import("./it-IT-
|
|
78
|
-
"../../../language/locales/ja-JP.json": () => import("./ja-JP-
|
|
79
|
-
"../../../language/locales/lt-LT.json": () => import("./lt-LT-
|
|
80
|
-
"../../../language/locales/lv-LV.json": () => import("./lv-LV-
|
|
81
|
-
"../../../language/locales/nl-NL.json": () => import("./nl-NL-
|
|
82
|
-
"../../../language/locales/no-NO.json": () => import("./no-NO-
|
|
83
|
-
"../../../language/locales/pl-PL.json": () => import("./pl-PL-
|
|
84
|
-
"../../../language/locales/pt-BR.json": () => import("./pt-BR-
|
|
85
|
-
"../../../language/locales/pt-PT.json": () => import("./pt-PT-
|
|
86
|
-
"../../../language/locales/ro-RO.json": () => import("./ro-RO-
|
|
87
|
-
"../../../language/locales/sk-SK.json": () => import("./sk-SK-
|
|
88
|
-
"../../../language/locales/sl-SI.json": () => import("./sl-SI-
|
|
89
|
-
"../../../language/locales/sv-SE.json": () => import("./sv-SE-
|
|
69
|
+
"../../../language/locales/en-US.json": () => import("./en-US-BNfqvbyW.js"),
|
|
70
|
+
"../../../language/locales/es-ES.json": () => import("./es-ES-CtKqdJ9Z.js"),
|
|
71
|
+
"../../../language/locales/es-LA.json": () => import("./es-LA-racbldhR.js"),
|
|
72
|
+
"../../../language/locales/et-EE.json": () => import("./et-EE-CXOeuULd.js"),
|
|
73
|
+
"../../../language/locales/fi-FI.json": () => import("./fi-FI-BNfxJDvc.js"),
|
|
74
|
+
"../../../language/locales/fr-FR.json": () => import("./fr-FR-Byelw2ED.js"),
|
|
75
|
+
"../../../language/locales/hr-HR.json": () => import("./hr-HR-Cmnnjuvd.js"),
|
|
76
|
+
"../../../language/locales/hu-HU.json": () => import("./hu-HU-8uDv5c4i.js"),
|
|
77
|
+
"../../../language/locales/it-IT.json": () => import("./it-IT-VzcvfA7e.js"),
|
|
78
|
+
"../../../language/locales/ja-JP.json": () => import("./ja-JP-B05v6NdN.js"),
|
|
79
|
+
"../../../language/locales/lt-LT.json": () => import("./lt-LT-C7Bf2i87.js"),
|
|
80
|
+
"../../../language/locales/lv-LV.json": () => import("./lv-LV-D3bkGuXV.js"),
|
|
81
|
+
"../../../language/locales/nl-NL.json": () => import("./nl-NL-lyCxhWKl.js"),
|
|
82
|
+
"../../../language/locales/no-NO.json": () => import("./no-NO-FFwOUFr9.js"),
|
|
83
|
+
"../../../language/locales/pl-PL.json": () => import("./pl-PL-B9u7WZBs.js"),
|
|
84
|
+
"../../../language/locales/pt-BR.json": () => import("./pt-BR-XeJRk5pM2.js"),
|
|
85
|
+
"../../../language/locales/pt-PT.json": () => import("./pt-PT-CCuTeMbQ.js"),
|
|
86
|
+
"../../../language/locales/ro-RO.json": () => import("./ro-RO-CXGpXJAG.js"),
|
|
87
|
+
"../../../language/locales/sk-SK.json": () => import("./sk-SK-DoHPhXvk.js"),
|
|
88
|
+
"../../../language/locales/sl-SI.json": () => import("./sl-SI-Ga2XE4DC.js"),
|
|
89
|
+
"../../../language/locales/sv-SE.json": () => import("./sv-SE-DYjpbult.js")
|
|
90
90
|
}), `../../../language/locales/${lang}.json`, 6)
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -98,7 +98,7 @@ var AdaptiveWorkflowComponent = ({ onBack }) => {
|
|
|
98
98
|
"../../Individual/language/de-DE.json": () => import("./de-DE-Bc55gBv4.js"),
|
|
99
99
|
"../../Individual/language/el-GR.json": () => import("./el-GR-Cr-3NgPk.js"),
|
|
100
100
|
"../../Individual/language/en-US.instructions.json": () => import("./en-US.instructions-DfgivDPI.js"),
|
|
101
|
-
"../../Individual/language/en-US.json": () => import("./en-US-
|
|
101
|
+
"../../Individual/language/en-US.json": () => import("./en-US-MqobYcqc.js"),
|
|
102
102
|
"../../Individual/language/es-ES.json": () => import("./es-ES-uVSZu-EQ.js"),
|
|
103
103
|
"../../Individual/language/es-LA.json": () => import("./es-LA-BU5Op1kh.js"),
|
|
104
104
|
"../../Individual/language/et-EE.json": () => import("./et-EE-BFb0MPqf.js"),
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
try {
|
|
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] = "d02dc287-2e7d-4d54-92c5-4563f3f43d3a", e._sentryDebugIdIdentifier = "sentry-dbid-d02dc287-2e7d-4d54-92c5-4563f3f43d3a");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { X as getMaxLengthByFieldAndCountry, j as useToggleContext } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
|
+
import { s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
8
|
+
import { d as countrySpecificFormatters, l as preventPoBoxValidation, m as useAddressCleanseImperatively, o as addressValidationRules, s as addressValidationRulesV4, t as AddressField, u as addressFormatters } from "./AddressField-Blup_Pzc.js";
|
|
9
|
+
import { t as createFormUtils } from "./formUtils-BrLGUOLK.js";
|
|
10
|
+
import { c as COUNTRIES_WITH_STATES_DATASET, o as CONDENSED_ADDRESS_FIELDS, t as getAddressSchemaForCountry } from "./utils-BIsRIG8_.js";
|
|
11
|
+
import { t as useForm } from "./useForm-CUZ1OXNT.js";
|
|
12
|
+
import { useEffect, useMemo } from "preact/hooks";
|
|
13
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
|
+
//#region src/components/Shared/forms/Address/Address.tsx
|
|
15
|
+
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 }) {
|
|
16
|
+
const { t } = useTranslation("common");
|
|
17
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
18
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
19
|
+
const preventPoBoxes = addressType === "operationalAddress";
|
|
20
|
+
const schema = useMemo(() => {
|
|
21
|
+
if (requiredFields?.length) return requiredFields?.includes("stateOrProvince") || dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? requiredFields : requiredFields?.filter((field) => field !== "stateOrProvince");
|
|
22
|
+
return dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? getAddressSchemaForCountry(dataProp?.country) : getAddressSchemaForCountry(dataProp?.country).filter((ad) => ad !== "stateOrProvince");
|
|
23
|
+
}, [dataProp?.country, requiredFields]);
|
|
24
|
+
const rules = useMemo(() => addressValidationRules(dataProp?.country), [dataProp?.country]);
|
|
25
|
+
const rulesV4 = useMemo(() => addressValidationRulesV4(dataProp?.country, t), [dataProp?.country, t]);
|
|
26
|
+
const cleanseAddress = useAddressCleanseImperatively();
|
|
27
|
+
const asyncRules = useMemo(() => preventPoBoxes ? preventPoBoxValidation(cleanseAddress) : void 0, [cleanseAddress, preventPoBoxes]);
|
|
28
|
+
const form = useForm({
|
|
29
|
+
schema,
|
|
30
|
+
defaultData: dataProp,
|
|
31
|
+
formatters: addressFormatters,
|
|
32
|
+
rules: isStrictNameAndAddressValidationEnabled ? rulesV4 : rules,
|
|
33
|
+
asyncRules,
|
|
34
|
+
fieldProblems: propFieldValidationErrors,
|
|
35
|
+
optionalFields,
|
|
36
|
+
obscuredFields,
|
|
37
|
+
trustedFields,
|
|
38
|
+
shouldValidate
|
|
39
|
+
});
|
|
40
|
+
let { schema: formSchema, data: formData, errors: formErrors, valid: formValid, fieldProblems: formFieldProblems, handleChangeFor } = form;
|
|
41
|
+
const { isValid } = form;
|
|
42
|
+
if (handleFieldChange && requiredFields && propFieldValidationErrors) {
|
|
43
|
+
const allFields = [...requiredFields, ...optionalFields];
|
|
44
|
+
const fieldsInOrder = getAddressSchemaForCountry(dataProp?.country).filter((field) => allFields.includes(field));
|
|
45
|
+
handleChangeFor = handleFieldChange;
|
|
46
|
+
formData = dataProp ?? {};
|
|
47
|
+
formErrors = errorProp;
|
|
48
|
+
formValid = validProp;
|
|
49
|
+
formFieldProblems = propFieldValidationErrors;
|
|
50
|
+
formSchema = fieldsInOrder;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Updates local useForm data with either the verified address data or the default data
|
|
54
|
+
*/
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (verifiedAddress) entriesOf(verifiedAddress).forEach(([key, value]) => {
|
|
57
|
+
if (formData[key] !== value) handleChangeFor(key, "input")(value);
|
|
58
|
+
});
|
|
59
|
+
}, [verifiedAddress]);
|
|
60
|
+
const formUtils = createFormUtils({
|
|
61
|
+
data: dataProp,
|
|
62
|
+
labels,
|
|
63
|
+
readOnly,
|
|
64
|
+
allFields,
|
|
65
|
+
requiredFields: schema,
|
|
66
|
+
optionalFields,
|
|
67
|
+
readOnlyFields,
|
|
68
|
+
trustedFields
|
|
69
|
+
}, t);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (hideCountry && dataProp?.country && dataProp.country !== formData.country) schema.forEach((field) => {
|
|
72
|
+
return field === "country" ? handleChangeFor("country", "input")(dataProp.country) : handleChangeFor(field, "input")(" ");
|
|
73
|
+
});
|
|
74
|
+
}, [dataProp?.country, hideCountry]);
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
onChange?.({
|
|
77
|
+
schema: formSchema,
|
|
78
|
+
data: formData,
|
|
79
|
+
valid: formValid,
|
|
80
|
+
errors: formErrors,
|
|
81
|
+
fieldProblems: formFieldProblems,
|
|
82
|
+
isValid
|
|
83
|
+
});
|
|
84
|
+
}, [
|
|
85
|
+
formData,
|
|
86
|
+
formErrors,
|
|
87
|
+
formFieldProblems,
|
|
88
|
+
formSchema,
|
|
89
|
+
formValid,
|
|
90
|
+
isValid
|
|
91
|
+
]);
|
|
92
|
+
const createField = (fieldName) => {
|
|
93
|
+
if (!formUtils.isRequiredField(fieldName) && !formUtils.isOptionalField(fieldName)) return null;
|
|
94
|
+
const hideField = fieldName === "country" && hideCountry;
|
|
95
|
+
return /* @__PURE__ */ jsx(AddressField, {
|
|
96
|
+
schema: formSchema,
|
|
97
|
+
data: formData,
|
|
98
|
+
valid: formValid,
|
|
99
|
+
errors: formErrors,
|
|
100
|
+
fieldProblems: formFieldProblems,
|
|
101
|
+
fieldName,
|
|
102
|
+
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, formData.country, true),
|
|
103
|
+
hideField,
|
|
104
|
+
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
105
|
+
optional: formUtils.isOptionalField(fieldName),
|
|
106
|
+
trimOnBlur: true,
|
|
107
|
+
handleChangeFor
|
|
108
|
+
}, fieldName);
|
|
109
|
+
};
|
|
110
|
+
if (condensed && formData?.country) {
|
|
111
|
+
const condensedFields = CONDENSED_ADDRESS_FIELDS[formData.country] ?? [];
|
|
112
|
+
switch (formData?.country) {
|
|
113
|
+
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
114
|
+
"aria-label": t(($) => $[addressType]),
|
|
115
|
+
children: [formSchema.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
116
|
+
className: "adyen-kyc-address__condensed-fields",
|
|
117
|
+
children: condensedFields.map((field) => createField(field))
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
120
|
+
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
121
|
+
"aria-label": t(($) => $[addressType]),
|
|
122
|
+
children: formSchema.map((field) => createField(field))
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
127
|
+
"aria-label": t(($) => $[addressType]),
|
|
128
|
+
children: formSchema.map((field) => createField(field))
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { Address as t };
|
|
@@ -1,23 +1,21 @@
|
|
|
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] = "cae780fb-20d3-4443-8251-f096a26f0bf6", e._sentryDebugIdIdentifier = "sentry-dbid-cae780fb-20d3-4443-8251-f096a26f0bf6");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { a as Icon, o as createLogger, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
-
import { $ as hasRepeatedCharacters, C as useDataset, G as SPECIAL_CHARS, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX,
|
|
6
|
+
import { $ as hasRepeatedCharacters, C as useDataset, G as SPECIAL_CHARS, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, Y as getFormattingRegEx, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, ut as trimValWithOneSpace, w as datasetIdentifier, z as EMOJI_REGEX } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
7
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
8
|
-
import { s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
8
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
9
|
import { i as useAnalyticsContext } from "./Modal-ByJare7m.js";
|
|
11
10
|
import { n as translateTranslatable } from "./utils-C1buyvRw.js";
|
|
12
|
-
import { t as createFormUtils } from "./formUtils-
|
|
13
|
-
import { c as COUNTRIES_WITH_STATES_DATASET,
|
|
14
|
-
import { a as validateNotEmptyOnBlur } from "./patternValidators-
|
|
15
|
-
import { t as Field } from "./Field-
|
|
16
|
-
import { t as Select } from "./Select-
|
|
11
|
+
import { t as createFormUtils } from "./formUtils-BrLGUOLK.js";
|
|
12
|
+
import { c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField, s as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./utils-BIsRIG8_.js";
|
|
13
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-Be6iVFPv.js";
|
|
14
|
+
import { t as Field } from "./Field-Dg-2A6bG.js";
|
|
15
|
+
import { t as Select } from "./Select-D4oEtS2n.js";
|
|
17
16
|
import { n as useDebouncedCallback } from "./debouncedInputEvent-Fwwp_K_-.js";
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { n as CountryField } from "./CountryField-DtaUj4gh.js";
|
|
17
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
18
|
+
import { n as CountryField } from "./CountryField-DL3-F-J6.js";
|
|
21
19
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
22
20
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
23
21
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -838,122 +836,4 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
|
|
|
838
836
|
}
|
|
839
837
|
}
|
|
840
838
|
//#endregion
|
|
841
|
-
|
|
842
|
-
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 }) {
|
|
843
|
-
const { t } = useTranslation("common");
|
|
844
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
845
|
-
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
846
|
-
const preventPoBoxes = addressType === "operationalAddress";
|
|
847
|
-
const schema = useMemo(() => {
|
|
848
|
-
if (requiredFields?.length) return requiredFields?.includes("stateOrProvince") || dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? requiredFields : requiredFields?.filter((field) => field !== "stateOrProvince");
|
|
849
|
-
return dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? getAddressSchemaForCountry(dataProp?.country) : getAddressSchemaForCountry(dataProp?.country).filter((ad) => ad !== "stateOrProvince");
|
|
850
|
-
}, [dataProp?.country, requiredFields]);
|
|
851
|
-
const rules = useMemo(() => addressValidationRules(dataProp?.country), [dataProp?.country]);
|
|
852
|
-
const rulesV4 = useMemo(() => addressValidationRulesV4(dataProp?.country, t), [dataProp?.country, t]);
|
|
853
|
-
const cleanseAddress = useAddressCleanseImperatively();
|
|
854
|
-
const asyncRules = useMemo(() => preventPoBoxes ? preventPoBoxValidation(cleanseAddress) : void 0, [cleanseAddress, preventPoBoxes]);
|
|
855
|
-
const form = useForm({
|
|
856
|
-
schema,
|
|
857
|
-
defaultData: dataProp,
|
|
858
|
-
formatters: addressFormatters,
|
|
859
|
-
rules: isStrictNameAndAddressValidationEnabled ? rulesV4 : rules,
|
|
860
|
-
asyncRules,
|
|
861
|
-
fieldProblems: propFieldValidationErrors,
|
|
862
|
-
optionalFields,
|
|
863
|
-
obscuredFields,
|
|
864
|
-
trustedFields,
|
|
865
|
-
shouldValidate
|
|
866
|
-
});
|
|
867
|
-
let { schema: formSchema, data: formData, errors: formErrors, valid: formValid, fieldProblems: formFieldProblems, handleChangeFor } = form;
|
|
868
|
-
const { isValid } = form;
|
|
869
|
-
if (handleFieldChange && requiredFields && propFieldValidationErrors) {
|
|
870
|
-
const allFields = [...requiredFields, ...optionalFields];
|
|
871
|
-
const fieldsInOrder = getAddressSchemaForCountry(dataProp?.country).filter((field) => allFields.includes(field));
|
|
872
|
-
handleChangeFor = handleFieldChange;
|
|
873
|
-
formData = dataProp ?? {};
|
|
874
|
-
formErrors = errorProp;
|
|
875
|
-
formValid = validProp;
|
|
876
|
-
formFieldProblems = propFieldValidationErrors;
|
|
877
|
-
formSchema = fieldsInOrder;
|
|
878
|
-
}
|
|
879
|
-
/**
|
|
880
|
-
* Updates local useForm data with either the verified address data or the default data
|
|
881
|
-
*/
|
|
882
|
-
useEffect(() => {
|
|
883
|
-
if (verifiedAddress) entriesOf(verifiedAddress).forEach(([key, value]) => {
|
|
884
|
-
if (formData[key] !== value) handleChangeFor(key, "input")(value);
|
|
885
|
-
});
|
|
886
|
-
}, [verifiedAddress]);
|
|
887
|
-
const formUtils = createFormUtils({
|
|
888
|
-
data: dataProp,
|
|
889
|
-
labels,
|
|
890
|
-
readOnly,
|
|
891
|
-
allFields,
|
|
892
|
-
requiredFields: schema,
|
|
893
|
-
optionalFields,
|
|
894
|
-
readOnlyFields,
|
|
895
|
-
trustedFields
|
|
896
|
-
}, t);
|
|
897
|
-
useEffect(() => {
|
|
898
|
-
if (hideCountry && dataProp?.country && dataProp.country !== formData.country) schema.forEach((field) => {
|
|
899
|
-
return field === "country" ? handleChangeFor("country", "input")(dataProp.country) : handleChangeFor(field, "input")(" ");
|
|
900
|
-
});
|
|
901
|
-
}, [dataProp?.country, hideCountry]);
|
|
902
|
-
useEffect(() => {
|
|
903
|
-
onChange?.({
|
|
904
|
-
schema: formSchema,
|
|
905
|
-
data: formData,
|
|
906
|
-
valid: formValid,
|
|
907
|
-
errors: formErrors,
|
|
908
|
-
fieldProblems: formFieldProblems,
|
|
909
|
-
isValid
|
|
910
|
-
});
|
|
911
|
-
}, [
|
|
912
|
-
formData,
|
|
913
|
-
formErrors,
|
|
914
|
-
formFieldProblems,
|
|
915
|
-
formSchema,
|
|
916
|
-
formValid,
|
|
917
|
-
isValid
|
|
918
|
-
]);
|
|
919
|
-
const createField = (fieldName) => {
|
|
920
|
-
if (!formUtils.isRequiredField(fieldName) && !formUtils.isOptionalField(fieldName)) return null;
|
|
921
|
-
const hideField = fieldName === "country" && hideCountry;
|
|
922
|
-
return /* @__PURE__ */ jsx(AddressField, {
|
|
923
|
-
schema: formSchema,
|
|
924
|
-
data: formData,
|
|
925
|
-
valid: formValid,
|
|
926
|
-
errors: formErrors,
|
|
927
|
-
fieldProblems: formFieldProblems,
|
|
928
|
-
fieldName,
|
|
929
|
-
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, formData.country, true),
|
|
930
|
-
hideField,
|
|
931
|
-
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
932
|
-
optional: formUtils.isOptionalField(fieldName),
|
|
933
|
-
trimOnBlur: true,
|
|
934
|
-
handleChangeFor
|
|
935
|
-
}, fieldName);
|
|
936
|
-
};
|
|
937
|
-
if (condensed && formData?.country) {
|
|
938
|
-
const condensedFields = CONDENSED_ADDRESS_FIELDS[formData.country] ?? [];
|
|
939
|
-
switch (formData?.country) {
|
|
940
|
-
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
941
|
-
"aria-label": t(($) => $[addressType]),
|
|
942
|
-
children: [formSchema.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
943
|
-
className: "adyen-kyc-address__condensed-fields",
|
|
944
|
-
children: condensedFields.map((field) => createField(field))
|
|
945
|
-
})]
|
|
946
|
-
});
|
|
947
|
-
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
948
|
-
"aria-label": t(($) => $[addressType]),
|
|
949
|
-
children: formSchema.map((field) => createField(field))
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
954
|
-
"aria-label": t(($) => $[addressType]),
|
|
955
|
-
children: formSchema.map((field) => createField(field))
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
//#endregion
|
|
959
|
-
export { defaultFieldMetadata as a, addressValidators as c, useProviderStatus as d, defaultFieldConfig as i, formatAddressForCleanse as l, STATE_FIELD as n, addressValidationRules as o, StateField as r, addressValidationRulesV4 as s, Address as t, useAddressCleanse as u };
|
|
839
|
+
export { defaultFieldMetadata as a, addressValidators as c, countrySpecificFormatters as d, formatAddressForCleanse as f, useProviderStatus as h, defaultFieldConfig as i, preventPoBoxValidation as l, useAddressCleanseImperatively as m, STATE_FIELD as n, addressValidationRules as o, useAddressCleanse as p, StateField as r, addressValidationRulesV4 as s, AddressField as t, addressFormatters as u };
|
|
@@ -1,48 +1,49 @@
|
|
|
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] = "02a79a6e-39c6-43ca-aa39-ee62cfc62198", e._sentryDebugIdIdentifier = "sentry-dbid-02a79a6e-39c6-43ca-aa39-ee62cfc62198");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
-
import { T as datasetUtilities, k as Header } from "./resolveEnvironment-
|
|
6
|
+
import { T as datasetUtilities, k as Header } from "./resolveEnvironment-GK5T4kh0.js";
|
|
7
7
|
import { r as Loader, t as Button } from "./Button-i8I2dHP8.js";
|
|
8
8
|
import { n as httpGet, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
9
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
10
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
11
11
|
import { n as cloneObject } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
12
|
-
import { y as reverseMapping } from "./processCapabilities-
|
|
13
|
-
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-
|
|
12
|
+
import { y as reverseMapping } from "./processCapabilities-C2kMryYn.js";
|
|
13
|
+
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-DLXInibJ.js";
|
|
14
14
|
import { t as isEeaCountry } from "./country-BxigZW1s.js";
|
|
15
15
|
import { i as useAnalyticsContext } from "./Modal-ByJare7m.js";
|
|
16
16
|
import { t as SettingNames } from "./types-Cwq1JAWT.js";
|
|
17
17
|
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CkuvFV-D.js";
|
|
18
|
-
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
18
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-J6Fn_3DE.js";
|
|
19
19
|
import { t as EndStateLayout } from "./EndStateLayout-CBRHUXyY.js";
|
|
20
20
|
import { n as translateTranslatable } from "./utils-C1buyvRw.js";
|
|
21
21
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CoBr-K0N.js";
|
|
22
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as useMultiForm } from "./useMultiForm-BIa2K3IX.js";
|
|
22
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-dTvcbSw5.js";
|
|
23
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-Br4I8Pwd.js";
|
|
24
|
+
import { t as ErrorPanel } from "./ErrorPanel-D2HeWU2y.js";
|
|
25
|
+
import { t as createFormUtils } from "./formUtils-BrLGUOLK.js";
|
|
26
|
+
import { t as useMultiForm } from "./useMultiForm-4UkMBFNd.js";
|
|
28
27
|
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BiIxm8IU.js";
|
|
29
28
|
import { c as COUNTRIES_WITH_STATES_DATASET, n as getAddressSchemaLabelsByCountry, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-BIsRIG8_.js";
|
|
30
|
-
import {
|
|
29
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DDA2CFwh.js";
|
|
31
30
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
32
31
|
import { t as localizeDateString } from "./localizeDateString-Bmx3yBcR.js";
|
|
33
|
-
import {
|
|
34
|
-
import { t as
|
|
32
|
+
import { a as isValidationError } from "./validationError-Bk5vfkJ5.js";
|
|
33
|
+
import { t as Field } from "./Field-Dg-2A6bG.js";
|
|
34
|
+
import { t as Select } from "./Select-D4oEtS2n.js";
|
|
35
35
|
import { t as Checkbox } from "./Checkbox-DdEBnXOB.js";
|
|
36
|
-
import {
|
|
36
|
+
import { n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
37
37
|
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
38
|
-
import { t as InputText } from "./InputText-
|
|
39
|
-
import { t as InputDate } from "./InputDate-
|
|
40
|
-
import { n as CountryField } from "./CountryField-
|
|
41
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
38
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
39
|
+
import { t as InputDate } from "./InputDate-CxzAaaCm.js";
|
|
40
|
+
import { n as CountryField } from "./CountryField-DL3-F-J6.js";
|
|
41
|
+
import { t as RadioGroup } from "./RadioGroup-Bt1Dv_S8.js";
|
|
42
|
+
import { t as Address } from "./Address-C9PWLHwA.js";
|
|
42
43
|
import { t as currencyByCountry } from "./types-KjTYEnAG.js";
|
|
43
|
-
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-
|
|
44
|
-
import { t as NewSummary } from "./NewSummary-
|
|
45
|
-
import { t as businessFinancingMultiformRules } from "./validate-
|
|
44
|
+
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-CL7lVfEm.js";
|
|
45
|
+
import { t as NewSummary } from "./NewSummary-cq_5H0ET.js";
|
|
46
|
+
import { t as businessFinancingMultiformRules } from "./validate-CkOSeje2.js";
|
|
46
47
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
47
48
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
48
49
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -177,6 +178,22 @@ var BusinessFinancingIndices = {
|
|
|
177
178
|
};
|
|
178
179
|
//#endregion
|
|
179
180
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/utils.ts
|
|
181
|
+
/**
|
|
182
|
+
* Deep-merges freshly processed validation errors into the previous ones, keyed by formId.
|
|
183
|
+
* Merging (rather than replacing) is required because sibling entities (e.g. parent and
|
|
184
|
+
* ultimate parent company) are submitted in parallel and each may contribute errors to the
|
|
185
|
+
* shared summary bucket within a single submit.
|
|
186
|
+
*
|
|
187
|
+
* NOTE: This never removes an error, so callers must reset validation errors at the start of
|
|
188
|
+
* each submit to avoid showing stale errors from a previous attempt.
|
|
189
|
+
*/
|
|
190
|
+
var mergeValidationErrors = (previousValidationErrors, newValidationErrors) => Object.entries(newValidationErrors ?? {}).reduce((acc, [formId, formErrors]) => ({
|
|
191
|
+
...acc,
|
|
192
|
+
[formId]: {
|
|
193
|
+
...acc[formId],
|
|
194
|
+
...formErrors
|
|
195
|
+
}
|
|
196
|
+
}), { ...previousValidationErrors });
|
|
180
197
|
var getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
181
198
|
if (!rootLegalEntity) return void 0;
|
|
182
199
|
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY || businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR) return rootLegalEntity.id;
|
|
@@ -1526,6 +1543,10 @@ function BusinessFinancingDropin(props) {
|
|
|
1526
1543
|
const onSubmit = async () => {
|
|
1527
1544
|
setLoadingStatus("loading");
|
|
1528
1545
|
if (!umfData) return;
|
|
1546
|
+
setProblems((prevProblems) => ({
|
|
1547
|
+
...prevProblems,
|
|
1548
|
+
validationErrors: {}
|
|
1549
|
+
}));
|
|
1529
1550
|
const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
|
|
1530
1551
|
const mainEntityDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(BusinessFinancingIndices.COMPANY, umfData, rootLegalEntity) : null;
|
|
1531
1552
|
const soleProprietorPayloads = isSoleProprietor ? prepareSoleProprietorBusinessFinancingSubmitData(umfData, rootLegalEntity, soleProprietor) : null;
|
|
@@ -1625,6 +1646,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1625
1646
|
await invalidateRootLegalEntity();
|
|
1626
1647
|
if (showBusinessFinancingFirst || isStandaloneComponent) setShowEndState(true);
|
|
1627
1648
|
else externalOnSubmit?.({ ...umfData });
|
|
1649
|
+
setProblems({});
|
|
1628
1650
|
} catch (e) {
|
|
1629
1651
|
showToast({
|
|
1630
1652
|
label: commonT(($) => $["failedToUpdateDetails"]),
|
|
@@ -1632,7 +1654,6 @@ function BusinessFinancingDropin(props) {
|
|
|
1632
1654
|
});
|
|
1633
1655
|
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1634
1656
|
}
|
|
1635
|
-
setProblems({});
|
|
1636
1657
|
}
|
|
1637
1658
|
} catch (e) {
|
|
1638
1659
|
if (!parentCompanyFailed && !ultimateParentCompanyFailed) handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
@@ -1654,10 +1675,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1654
1675
|
const validationErrors = processValidationErrors(error.actualError, void 0, keyMapping);
|
|
1655
1676
|
setProblems((prevProblems) => ({
|
|
1656
1677
|
...prevProblems,
|
|
1657
|
-
validationErrors:
|
|
1658
|
-
...prevProblems?.validationErrors,
|
|
1659
|
-
[businessFinancingType]: validationErrors?.[businessFinancingType] ?? {}
|
|
1660
|
-
}
|
|
1678
|
+
validationErrors: mergeValidationErrors(prevProblems?.validationErrors, validationErrors)
|
|
1661
1679
|
}));
|
|
1662
1680
|
} else if (isMaintenanceModeError(error)) showToast({
|
|
1663
1681
|
label: commonT(($) => $["maintenanceModeMessage"]),
|