@adyen/kyc-components 4.17.0 → 4.18.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DmH02rWQ.js → Accordion-IXKjwyLD.js} +1 -1
- package/dist/{AccountSetupRejected-aY_awPqH.js → AccountSetupRejected-DIIh9pcf.js} +2 -2
- package/dist/{AdaptiveWorkflow-C1OnKoz6.js → AdaptiveWorkflow-C78mb41T.js} +34 -34
- package/dist/{AdaptiveWorkflowComponent-B9NVZwBG.js → AdaptiveWorkflowComponent-Bz_k9JDJ.js} +32 -32
- package/dist/Address-CUkUuSeU.js +132 -0
- package/dist/{Address-BDAWsBP6.js → AddressField-DP5U5xs8.js} +14 -134
- package/dist/{Avatar-Z3MS8_pW.js → Avatar-CdBNstmD.js} +1 -1
- package/dist/{BusinessFinancingDropin-DYZPXmaA.js → BusinessFinancingDropin-BIYr1Mgu.js} +57 -39
- package/dist/{BusinessFinancingPage-CWAVQIUu.js → BusinessFinancingPage-C-UIVRTK.js} +32 -32
- package/dist/{BusinessTypeSelectionPage-mR4yxGIO.js → BusinessTypeSelectionPage-CFz9n5DM.js} +15 -15
- package/dist/{Button-3qGOI53m.js → Button-i8I2dHP8.js} +1 -1
- package/dist/{Checkbox-yzDgU8Go.js → Checkbox-DdEBnXOB.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-DuiQt7Rc.js → CompanyRegistrationNumberTypeSelector-BXzFJpA0.js} +8 -20
- package/dist/{Confirm-D3iEEzM7.js → Confirm-DcqMV7rd.js} +3 -3
- package/dist/{ContactDetails-DfGTy-MW.js → ContactDetails-BAmxW5qa.js} +8 -8
- package/dist/{ContextGuidance-CBREh6Su.js → ContextGuidance-DPro1Ce0.js} +2 -2
- package/dist/{CountryField-BooICUbM.js → CountryField-DoLt4vNa.js} +5 -5
- package/dist/{Currency-CFuP1Dyd.js → Currency-D1hJGOjo.js} +53 -18
- package/dist/{CustomerSupport-DFyRJizn.js → CustomerSupport-Bsi7JCV0.js} +15 -15
- package/dist/{DataConflictsModal-DQ3mkW9z.js → DataConflictsModal-DFtNyKkX.js} +7 -7
- package/dist/{DebugModal-C-ikCH1j.js → DebugModal-CAA4o3Ik.js} +10 -10
- package/dist/{DecisionMakerDetails-BHf3n6d6.js → DecisionMakerDetails-C12XRPSF.js} +27 -18
- package/dist/{DecisionMakerDetailsPage-0mfoRbLJ.js → DecisionMakerDetailsPage-thw-YQUL.js} +12 -12
- package/dist/{DecisionMakers-DyNHZELs.js → DecisionMakers-CnaehF1O.js} +21 -21
- package/dist/{Dropzone-BMxSdYQ2.js → Dropzone-N76XfpBB.js} +7 -7
- package/dist/{EmbeddedStatus-JozflNLq.js → EmbeddedStatus-g37gc_ic.js} +3 -3
- package/dist/{EndStateLayout-ic1EOve9.js → EndStateLayout-CBRHUXyY.js} +2 -2
- package/dist/{EntityAssociation-pJy_kse0.js → EntityAssociation-s22o_uZU.js} +7 -7
- package/dist/{ErrorPanel-BqfHivX7.js → ErrorPanel-O79YWbUj.js} +48 -28
- package/dist/{Field-CIqSPDus.js → Field-Dg-2A6bG.js} +4 -4
- package/dist/GlobalEntryModal-xjoLjr6j.js +34 -0
- package/dist/GlobalEntryPage-BVhiWGwA.js +44 -0
- package/dist/{Individual.rules-s4Yf5eU4.js → Individual.rules-Caf9UMUo.js} +4 -4
- package/dist/{IndividualDropin-BdIwUDOo.js → IndividualDropin-CvD8ck4A.js} +56 -56
- package/dist/{InputDate-DSeCO1wk.js → InputDate-CxzAaaCm.js} +2 -2
- package/dist/{InputText-DtRsfuMv.js → InputText-CQcWyZ8_.js} +2 -2
- package/dist/{Introduction-DLfzBonb.js → Introduction-DVudpVd5.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-CaoxJri-.js → InvitedDecisionMakerComponent-C-3tUrFX.js} +114 -46
- package/dist/{JpAddress-Cqb_UMwB.js → JpAddress-D5kADcay.js} +16 -56
- package/dist/JpAddress.module-Bdx0E9ys.js +48 -0
- package/dist/JpAddressFields-S9ICJml_.js +246 -0
- package/dist/{LandingLayout-C1yh_ggf.js → LandingLayout-iZpW1Vsx.js} +8 -3
- package/dist/{LegalCompanyNameField-DskXNNbo.js → LegalCompanyNameField-BFwuu5bv.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-pILfh5cO.js → LegalRepresentativeDetailsPage-DlNCi8DF.js} +10 -10
- package/dist/{Link-C0jrInxa.js → Link-JFzfaUOa.js} +1 -1
- package/dist/{ListItem-DENJV6DO.js → ListItem-BnVTcObB.js} +2 -2
- package/dist/{MaskedInput-C5W0lx70.js → MaskedInput-ClZhzZhf.js} +6 -6
- package/dist/{MaybeModal-DYEqnOf-.js → MaybeModal-CXLj-oVR.js} +2 -2
- package/dist/{Modal-DParMHcv.js → Modal-ByJare7m.js} +1 -1
- package/dist/{Name-kHxte68O.js → Name-Cw7gZ538.js} +5 -5
- package/dist/{NewSummary-JEU35ul4.js → NewSummary-DwQr3V21.js} +7 -7
- package/dist/{PatriotActDisclosure-BqaWGRcZ.js → PatriotActDisclosure-Bj4aG0px.js} +16 -16
- package/dist/{PayoutDetailsDropinMultiForm-C-M8c5Xx.js → PayoutDetailsDropin-jb9Hx02m.js} +416 -220
- package/dist/PayoutDetailsPage-Dp0HMUYv.js +70 -0
- package/dist/{RadioGroup-_XpoFWaf.js → RadioGroup-Bt1Dv_S8.js} +3 -3
- package/dist/{Review-BbJHml8D.js → Review-DW7Hi2gx.js} +8 -8
- package/dist/RootBusinessDetailsPage-C-FjzIi3.js +68 -0
- package/dist/{RootBusinessLinesPage-D7_26OI5.js → RootBusinessLinesPage-B1OZKJpD.js} +51 -43
- package/dist/{RootIndividualDetailsPage-2N5uuxXl.js → RootIndividualDetailsPage-Ck_WKeFS.js} +10 -10
- package/dist/{Select-BgdbPMw9.js → Select-D4oEtS2n.js} +5 -5
- package/dist/{SignPCIComponent-DGv1bkdf.js → SignPCIComponent-C5vrqvCz.js} +44 -44
- package/dist/{SingpassSelection-h1jxupMg.js → SingpassSelection-DqrNj-an.js} +6 -6
- package/dist/{SoleProprietorshipPage-CLetJc-c.js → SoleProprietorshipPage-DjOug4ur.js} +34 -34
- package/dist/{SourceOfFundsPage-CsCBYxJP.js → SourceOfFundsPage-DACANZ6Z.js} +47 -42
- package/dist/{StructuredList-CUyo9-3i.js → StructuredList-Ci4Ut4E5.js} +1 -1
- package/dist/{Summary-DLL-G-wC.js → Summary-D99yCbkr.js} +22 -13
- package/dist/{TaskListItem-Bk-gLf9K.js → TaskListItem-g2OyGxyr.js} +13 -13
- package/dist/{TaskVerificationStatus-DTHF8B9j.js → TaskVerificationStatus-CKHPTEpH.js} +1 -1
- package/dist/{TaxReportingDropin-TCSYgjMp.js → TaxReportingDropin-DmbAZkl5.js} +21 -21
- package/dist/{AcceptTermsOfServiceComponent-DahZIago.js → TermsOfServiceManagement-B_NkGchz.js} +52 -52
- package/dist/{TextArea-DNSnqxGL.js → TextArea-BUx3yuMJ.js} +3 -3
- package/dist/{TileGroup-DWtO7N2P.js → TileGroup-PzJay6GP.js} +3 -3
- package/dist/{TrustDetailsPage-BMnQTWaY.js → TrustDetailsPage-BcXyqFKh.js} +74 -36
- package/dist/{TrustMemberCompanyPage-p4Zo8KWk.js → TrustMemberCompanyPage-CYTBXqUX.js} +35 -35
- package/dist/{TrustMemberIndividualPage-C_glkWhn.js → TrustMemberIndividualPage-Byn5YPlI.js} +10 -10
- package/dist/{TrustMemberRoleAndTypePage-CbzyU01D.js → TrustMemberRoleAndTypePage-AgnpRfSP.js} +23 -23
- package/dist/{TrustMembersOverview-B17lJDGj.js → TrustMembersOverview-D-QdvGO6.js} +15 -15
- package/dist/{UnincorporatedPartnershipIndividualPage-BFfog1or.js → UnincorporatedPartnershipIndividualPage-gYP8zjZK.js} +10 -10
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CXCA43e0.js → UnincorporatedPartnershipMemberCompanyPage-DDBOA6Ch.js} +35 -35
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Kqj-yQMo.js → UnincorporatedPartnershipMemberRoleAndTypePage-BGYKpP3_.js} +25 -147
- package/dist/{UnincorporatedPartnershipMembersOverview-XfXSoBGc.js → UnincorporatedPartnershipMembersOverview-D_aNlf-l.js} +10 -10
- package/dist/{VerificationErrorAlert-Q-TvD-Mb.js → VerificationErrorAlert-CemHk8yo.js} +4 -4
- package/dist/{accountHolderUtils-Brjeiw04.js → accountHolderUtils-DnQqH1QM.js} +2 -2
- package/dist/adyen-business-financing.js +33 -33
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +33 -33
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +160 -116
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +9 -9
- package/dist/adyen-transfer-instrument-configuration.js +61 -60
- package/dist/adyen-transfer-instrument-management.js +66 -65
- package/dist/adyen-verification-status.js +6 -6
- 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-JBn-5I_D.js → constants-OXaHzh7d.js} +6 -6
- 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-C1ma6Xd4.js +21 -0
- package/dist/{getName-D4ECvzcI.js → getName-C5jqdkJg.js} +1 -1
- package/dist/{getProblemsForEntity-CjAq8_4L.js → getProblemsForEntity-ubvE1Px7.js} +2 -2
- 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/{http-DeQp0G69.js → http-8qgzqVqk.js} +1 -1
- 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-CCtOf4ib.js → invalidateRootLegalEntity-CHNRruhe.js} +3 -3
- 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/{localizeDateString-CU7HGR-k.js → localizeDateString-Bmx3yBcR.js} +1 -1
- 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-BeuzYADl.js → mapExistingFile-BvFf01k6.js} +11 -8
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DZUd0pQT.js → mapJpAddressSchemaToAddressLocalizations-DHL5chu8.js} +15 -2
- package/dist/{mapLegalEntityToIndividualSchema-Dgs8wnkZ.js → mapLegalEntityToIndividualSchema-BeR7ESyx.js} +9 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-BHF5J5eC.js → mapTransferInstrumentToPayoutAccount-2iWuaqS_.js} +3 -3
- 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-BQSBg_D9.js → omitObscuredFieldsIfUnchanged-DFZ6pVTM.js} +2 -2
- package/dist/{patternValidators-ldthuMTg.js → patternValidators-BFk0f6IP.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-DIEIpM00.js → process-field-configurations-DBtjrbif.js} +4 -4
- package/dist/{processCapabilities-BeE0xWUp.js → processCapabilities-C2kMryYn.js} +25 -25
- package/dist/{validationError-DwNvWaOL.js → processValidationErrors--FWewgRp.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-DqVK_B7n.js → resolveEnvironment-CL_fPQJG.js} +51 -43
- 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-BgKauSqU.js → roleMetadata-a4sEtgHv.js} +2 -2
- 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/{translation-BR3rLb4m.js → translation-BYvhW5zA.js} +1 -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/{unincorporated-partnership-BstfjTh2.js → unincorporated-partnership-nnTW3FnG.js} +1 -1
- package/dist/{useAssociatedLegalEntity-QRvyeNwU.js → useAssociatedLegalEntity-CkuvFV-D.js} +2 -2
- package/dist/{useBusinessDetailsData-Cdr8zQFV.js → useBusinessDetailsData-DZ_7dsp9.js} +479 -347
- package/dist/{useBusinessLines-B2iCcDej.js → useBusinessLines-BFsRoAAj.js} +1 -1
- package/dist/{useCanSeeIntroduction-BAXdnYUx.js → useCanSeeIntroduction-DmiEdYxi.js} +2 -2
- package/dist/{useCreateLegalEntity-zPjl13U3.js → useCreateLegalEntity-CoBr-K0N.js} +1 -1
- package/dist/{useDataMissingRemediations-BZwtMi3U.js → useDataMissingRemediations-BzbA8Mu4.js} +3 -3
- package/dist/{useForm-DhSq8lwH.js → useForm-Cj24Z0GS.js} +3 -3
- package/dist/{useFormContext-Dtfe218N.js → useFormContext-CYWY41hm.js} +9 -10
- package/dist/{useLegalEntity-BXk2tzGe.js → useLegalEntity-CtlUQv_J.js} +1 -1
- package/dist/{useMultiForm-DGafu7JW.js → useMultiForm-Cccdz8QU.js} +20 -54
- package/dist/{useNavigate-Bu0KYCiB.js → useNavigate-D0jdU3Lc.js} +41 -35
- package/dist/{useOnboardingStatus-BgO4uPbW.js → useOnboardingStatus-BlXlrSAS.js} +1 -1
- package/dist/{usePciQuestionnaireList-BEPt97lw.js → usePciQuestionnaireList-CbkNC_Ye.js} +1 -1
- package/dist/{useSalesChannels-D3vQBhRT.js → useSalesChannels-CQjvFAb2.js} +2 -2
- package/dist/{useScenarios-Bh7kKk_q.js → useScenarios-DeLWDtIg.js} +1 -1
- package/dist/{useTaskLandedEvent-DDVHIkiF.js → useTaskLandedEvent-BiIxm8IU.js} +1 -1
- package/dist/{useTaskStatus-BLkHjMgm.js → useTaskStatus-wrAxqtIR.js} +1 -1
- package/dist/{useTermsOfServiceStatus-B1OpYOua.js → useTermsOfServiceStatus-D1_ECrkO.js} +1 -1
- package/dist/{useTrustMembers-Do3hdGIJ.js → useTrustMembers-BVOC0v85.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-BSEcDBC7.js → useUnincorporatedPartnershipMembers-B5WCX6yK.js} +6 -6
- package/dist/{useUpdateBusinessLines-jlXfi57a.js → useUpdateBusinessLines-Cncate8L.js} +1 -1
- package/dist/{useUpdateLegalEntity-CsWHWigd.js → useUpdateLegalEntity-Cdv-ffXE.js} +2 -2
- package/dist/{utils-BtyrxTzp.js → utils-C1buyvRw.js} +1 -1
- package/dist/{utils-DT_Qe3DC.js → utils-CMdCAAbw.js} +16 -56
- package/dist/{utils-CTt_G6Rx.js → utils-DK1Fqkgs.js} +34 -9
- package/dist/{utils-CGlii18m.js → utils-DnCitvpf.js} +6 -6
- package/dist/{validate-C52znTzq.js → validate-CMxq61UU.js} +5 -5
- package/dist/{validate-CeVER2vD.js → validate-Cr-q1Y4p.js} +1 -1
- package/dist/{validateExtractionResult-CxXkhbrM.js → validateExtractionResult-CwUaiu2n.js} +11 -11
- package/dist/validationError-CPM3NYRx.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-IhLlwUKv.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/RootBusinessDetailsPage-CumD-zxI.js +0 -68
- 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
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8105bc51-7766-4aeb-841f-5043b2ec677d", e._sentryDebugIdIdentifier = "sentry-dbid-8105bc51-7766-4aeb-841f-5043b2ec677d");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon, i as Typography } from "./translation-
|
|
5
|
+
import { a as Icon, i as Typography } from "./translation-BYvhW5zA.js";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
import { defineSlots } from "named-slots";
|
|
@@ -2,8 +2,8 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "75680866-bf49-4206-bbb9-89f3eb636db8", e._sentryDebugIdIdentifier = "sentry-dbid-75680866-bf49-4206-bbb9-89f3eb636db8");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
6
|
-
import { S as AlertIcon, k as Header } from "./resolveEnvironment-
|
|
5
|
+
import { r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { S as AlertIcon, k as Header } from "./resolveEnvironment-CL_fPQJG.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
|
-
import { i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-
|
|
6
|
-
import { j as useToggleContext, k as Header, x as Alert } from "./resolveEnvironment-
|
|
7
|
-
import { n as IconButton, r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { n as httpGet, s as useApiContext } from "./http-
|
|
9
|
-
import { r as useLegalEntity } from "./useLegalEntity-
|
|
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-CL_fPQJG.js";
|
|
7
|
+
import { n as IconButton, r as Loader, t as Button } from "./Button-i8I2dHP8.js";
|
|
8
|
+
import { n as httpGet, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
|
+
import { r as useLegalEntity } from "./useLegalEntity-CtlUQv_J.js";
|
|
10
10
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
11
|
-
import { n as Status } from "./TaskVerificationStatus-
|
|
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-
|
|
14
|
-
import { r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
15
|
-
import { t as
|
|
13
|
+
import { a as setNestedValue, i as resolveComponentProps, r as getNestedValue$4, t as TaskListItem } from "./TaskListItem-g2OyGxyr.js";
|
|
14
|
+
import { r as KEYBOARD_KEYS, t as Modal } from "./Modal-ByJare7m.js";
|
|
15
|
+
import { t as LandingLayout } from "./LandingLayout-iZpW1Vsx.js";
|
|
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 { t as EndStateLayout } from "./EndStateLayout-
|
|
19
|
-
import { n as translateTranslatable, r as LoaderWrapper } from "./utils-
|
|
20
|
-
import { t as Confirm } from "./Confirm-
|
|
21
|
-
import { n as Image } from "./unincorporated-partnership-
|
|
22
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
23
|
-
import { a as FormFlow_module_default } from "./useFormContext-
|
|
18
|
+
import { c as CompanyTypesValues } from "./bafinUtils-CbfyDBkh.js";
|
|
19
|
+
import { t as EndStateLayout } from "./EndStateLayout-CBRHUXyY.js";
|
|
20
|
+
import { n as translateTranslatable, r as LoaderWrapper } from "./utils-C1buyvRw.js";
|
|
21
|
+
import { t as Confirm } from "./Confirm-DcqMV7rd.js";
|
|
22
|
+
import { n as Image } from "./unincorporated-partnership-nnTW3FnG.js";
|
|
23
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-Cdv-ffXE.js";
|
|
24
|
+
import { a as FormFlow_module_default } from "./useFormContext-CYWY41hm.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-ClZhzZhf.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-CwUaiu2n.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-DK1Fqkgs.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
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-DahZIago.js";
|
|
31
|
+
import { t as Field } from "./Field-Dg-2A6bG.js";
|
|
32
|
+
import { t as Select } from "./Select-D4oEtS2n.js";
|
|
33
|
+
import { t as Checkbox } from "./Checkbox-DdEBnXOB.js";
|
|
34
|
+
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
35
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
36
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-DFtNyKkX.js";
|
|
37
|
+
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-B_NkGchz.js";
|
|
38
38
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
39
|
-
import { t as ListItem } from "./ListItem-
|
|
40
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
41
|
-
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
42
|
-
import { t as SourceOfFundsPage } from "./SourceOfFundsPage-
|
|
43
|
-
import { t as TaxReportingDropin } from "./TaxReportingDropin-
|
|
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-BXzFJpA0.js";
|
|
41
|
+
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-Cncate8L.js";
|
|
42
|
+
import { t as SourceOfFundsPage } from "./SourceOfFundsPage-DACANZ6Z.js";
|
|
43
|
+
import { t as TaxReportingDropin } from "./TaxReportingDropin-DmbAZkl5.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-B9NVZwBG.js → AdaptiveWorkflowComponent-Bz_k9JDJ.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
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader } from "./Button-
|
|
8
|
-
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CL_fPQJG.js";
|
|
7
|
+
import { r as Loader } from "./Button-i8I2dHP8.js";
|
|
8
|
+
import { AdaptiveWorkflow, n as useAdaptiveWorkflow, t as WorkflowContext } from "./AdaptiveWorkflow-C78mb41T.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-CL_fPQJG.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-DP5U5xs8.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-Cj24Z0GS.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
|
-
import { a as Icon, o as createLogger, r as useTranslation } from "./translation-
|
|
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,
|
|
7
|
-
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-
|
|
8
|
-
import { s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
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, 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-CL_fPQJG.js";
|
|
7
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
8
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
11
|
-
import { n as translateTranslatable } from "./utils-
|
|
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-
|
|
9
|
+
import { i as useAnalyticsContext } from "./Modal-ByJare7m.js";
|
|
10
|
+
import { n as translateTranslatable } from "./utils-C1buyvRw.js";
|
|
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-BFk0f6IP.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-BooICUbM.js";
|
|
17
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
18
|
+
import { n as CountryField } from "./CountryField-DoLt4vNa.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 };
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7e89ab28-1f82-4435-8130-3bd8a1d6a1d1", e._sentryDebugIdIdentifier = "sentry-dbid-7e89ab28-1f82-4435-8130-3bd8a1d6a1d1");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon } from "./translation-
|
|
5
|
+
import { a as Icon } from "./translation-BYvhW5zA.js";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
8
|
var Avatar_module_default = {
|