@adyen/kyc-components 4.5.1 → 4.6.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/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-CDgZIoAy.js → AcceptTermsOfServiceComponent-Bd0fuzJX.js} +17 -20
- package/dist/{AccountSetupRejected-Bwu8xLmZ.js → AccountSetupRejected-t4tPei0K.js} +2 -2
- package/dist/{ActionBar-Cs-ZFNhk.js → ActionBar-Ruw6z6LR.js} +2 -2
- package/dist/{Address-Cdkbwzso.js → Address-D0JjbOT4.js} +16 -16
- package/dist/{Avatar-DtFyP488.js → Avatar-Dp70m25u.js} +2 -2
- package/dist/{BusinessFinancingComponent-DmYxCifv.js → BusinessFinancingComponent-DAj2gvCq.js} +5 -5
- package/dist/{BusinessFinancingDropin-DbkFhxJT.js → BusinessFinancingDropin-RImpwNje.js} +31 -34
- package/dist/{BusinessFinancingPage-DulUJR2t.js → BusinessFinancingPage-B3XW6vMz.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-B-vdLokC.js → BusinessTypeSelectionPage-D_yQV_GP.js} +9 -14
- package/dist/{Checkbox-D3Z0AWKj.js → Checkbox-DQGjbUsQ.js} +2 -2
- package/dist/{Confirm-C42kXNcg.js → Confirm-roUo52pe.js} +3 -3
- package/dist/{ConstitutionalDocument-DzgtU8np.js → ConstitutionalDocument-BW87TDZl.js} +336 -92
- package/dist/{ContactDetails--t1QRowR.js → ContactDetails-CGss-4M6.js} +12 -7
- package/dist/{ContextGuidance-C2yYCn3r.js → ContextGuidance-8vbKs48u.js} +2 -2
- package/dist/{CountryField-DzcOrjgs.js → CountryField-Cxih2YUu.js} +3 -3
- package/dist/{CreateIndividualComponent-BGs4XVIx.js → CreateIndividualComponent-k3J84uhw.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-8qbVjvCk.js → CreateTransferInstrumentComponent-bam-U6uj.js} +5 -5
- package/dist/{Currency-D_JvTwxX.js → Currency-DhqTdIeI.js} +7 -7
- package/dist/{CustomerSupport-C-r0iCOW.js → CustomerSupport-CdhIJFEE.js} +11 -16
- package/dist/{DebugModal-UZ3iEF4d.js → DebugModal-yfBBhyjs.js} +127 -98
- package/dist/DecisionMakerDetails-D0-COO1N.js +275 -0
- package/dist/{DecisionMakerDetailsPage-CORpG8qd.js → DecisionMakerDetailsPage-C-LGLbrJ.js} +10 -10
- package/dist/{DecisionMakers-D_B8GhAP.js → DecisionMakers-Bx51Ewcv.js} +22 -259
- package/dist/{Dropzone-CqXwk4Vf.js → Dropzone-Dy3XmCix.js} +4 -4
- package/dist/{EmbeddedStatus-Cq3s0VKQ.js → EmbeddedStatus-PFK1NCkS.js} +3 -3
- package/dist/{EndStateLayout-DyV9bKDz.js → EndStateLayout-5kx0pljK.js} +2 -2
- package/dist/{EntityAssociation-DoTWA9hu.js → EntityAssociation-BVxUknEP.js} +5 -5
- package/dist/{EntityGuidanceStatus-xpPB9g8U.js → EntityGuidanceStatus-CbP4RqW4.js} +4 -4
- package/dist/{ErrorPanel-BuHWbhfh.js → ErrorPanel-Cn8gzNGG.js} +11 -12
- package/dist/{Field-Dr2nucSo.js → Field-BDI27kIy.js} +2 -2
- package/dist/{FormNavigation-bTHzHm_a.js → FormNavigation-D90R1OgK.js} +3 -3
- package/dist/{Individual.rules-CvBrD7Ad.js → Individual.rules-BrdY-Rew.js} +12 -12
- package/dist/{IndividualDropin-DhipTriL.js → IndividualDropin-D5FrKUb-.js} +252 -97
- package/dist/{InputDate-HsJIDMnw.js → InputDate-nNag-jcu.js} +1 -1
- package/dist/{InputText-Cmp-jxkq.js → InputText-DFjKyN6O.js} +2 -2
- package/dist/{Introduction-CVb0Xx-s.js → Introduction-DhEG_Jvt.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-DT_SCB2u.js +211 -0
- package/dist/{JpAddress-CC_IvY9U.js → JpAddress-DcJCN9dG.js} +11 -11
- package/dist/{LandingLayout-Hw-QdoQL.js → LandingLayout-CC_FGMAs.js} +2 -2
- package/dist/{LegalCompanyNameField-CWRd7AEp.js → LegalCompanyNameField-CgTgIMv8.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-CY_iMQTc.js → LegalRepresentativeDetailsPage-D4d4eelX.js} +5 -5
- package/dist/{Link-DDnVkilX.js → Link-C30mEtLP.js} +2 -2
- package/dist/{ListItem-C5VcmY-s.js → ListItem-BQLamvB-.js} +3 -3
- package/dist/{LoaderWrapper-BFpnMaZr.js → LoaderWrapper-CgNgcjW-.js} +2 -2
- package/dist/{ManageIndividualComponent-Cb5wNkz0.js → ManageIndividualComponent-DKVcaPI6.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-10j2xeZu.js → ManageTermsOfServiceComponent-T_K9BahM.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-BpnoK4Sd.js → ManageTransferInstrumentComponent-Ch79d8JP.js} +11 -11
- package/dist/{MaskedInput-D6wQgEqZ.js → MaskedInput-B9djDROe.js} +5 -5
- package/dist/{MaybeModal-w8BdVyL9.js → MaybeModal-BYsvKCcc.js} +3 -3
- package/dist/{Modal-CBxIPgQb.js → Modal-727fSuFr.js} +2 -2
- package/dist/{Name-CFTJ-03j.js → Name-BN-K6-N2.js} +4 -4
- package/dist/{NewSummary-Bzl3znax.js → NewSummary-DTuLIMtG.js} +5 -5
- package/dist/{OnboardingDropinComponent-D6UOdrFV.js → OnboardingDropinComponent-CaRk-dgZ.js} +145 -218
- package/dist/{PayoutDetailsDropin-hc2Lwjfg.js → PayoutDetailsDropin-CaJE5U6g.js} +183 -1065
- package/dist/{PayoutDetailsPage-C2UkSM42.js → PayoutDetailsPage-B0i-iUKS.js} +6 -6
- package/dist/{RadioGroup-tAaHg-3v.js → RadioGroup-DQa-nkgM.js} +2 -2
- package/dist/{Review-Bhbx2iLe.js → Review-CgkKBldb.js} +6 -6
- package/dist/{RootBusinessDetailsPage-BtxfStzp.js → RootBusinessDetailsPage-Bh3M9G8g.js} +6 -6
- package/dist/{RootBusinessLinesPage-SBl1RJnK.js → RootBusinessLinesPage-C4wzI8-k.js} +93 -91
- package/dist/{RootIndividualDetailsPage-BKrFR8kJ.js → RootIndividualDetailsPage-GBrzZTH2.js} +7 -6
- package/dist/{Select-CDjrCQMg.js → Select-Bt5Y91sI.js} +4 -4
- package/dist/{SignPCIComponent-CsBd4n0S.js → SignPCIComponent-BxzfAQvx.js} +12 -19
- package/dist/{SingpassSelection-BLw_O_To.js → SingpassSelection-hjBRnBDR.js} +144 -7
- package/dist/{SoleProprietorshipPage-DugLl7bw.js → SoleProprietorshipPage-B6HqJtcC.js} +5 -5
- package/dist/{SourceOfFundsPage-BOpuSCH-.js → SourceOfFundsPage-D6V3pwXP.js} +270 -98
- package/dist/{StepProgressIndicator-U5i4HLMS.js → StepProgressIndicator-DhfpqmVy.js} +2 -2
- package/dist/{StoreProvider-DS3-j_yO.js → StoreProvider-CGAl-5Sk.js} +155 -148
- package/dist/{Summary-B4rVi_1E.js → Summary-DKmu4xU7.js} +25 -22
- package/dist/{TaxInformationField-Gascwiqq.js → TaxInformationField-wLMc_uT-.js} +568 -795
- package/dist/{TaxReportingDropin-BiUeYocK.js → TaxReportingDropin-DsPw-MUV.js} +26 -26
- package/dist/{TextArea-DHLHMQS0.js → TextArea-BGhv4y1a.js} +2 -2
- package/dist/{TileGroup-TQqcisEg.js → TileGroup-D3HIe8QQ.js} +3 -3
- package/dist/{TrustDetailsPage-B9qgsL7n.js → TrustDetailsPage-CWKPHxTe.js} +64 -65
- package/dist/{TrustMemberCompanyPage-Dv8gB3AJ.js → TrustMemberCompanyPage-C89-gUpd.js} +7 -7
- package/dist/{TrustMemberIndividualPage-B61REKTA.js → TrustMemberIndividualPage-Cz-Z8U7w.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-B-937gVA.js → TrustMemberRoleAndTypePage-BxzEkGzE.js} +27 -27
- package/dist/{TrustMembersOverview-BUdUHg0i.js → TrustMembersOverview-BtycEgbW.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-CiXV1GFq.js → UnincorporatedPartnershipIndividualPage-CSQjYe4p.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DBvCnN3w.js → UnincorporatedPartnershipMemberCompanyPage-ZAQkvjQr.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C5tojfbL.js → UnincorporatedPartnershipMemberRoleAndTypePage-B9bvg2ra.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-DPrp3a67.js → UnincorporatedPartnershipMembersOverview-DYDDYisa.js} +7 -7
- package/dist/{VerificationErrorAlert-DUcGedHl.js → VerificationErrorAlert-Sf7ovPdg.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-ucroS2ge.js → ViewVerificationStatusComponent-D6qJacuF.js} +3 -3
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +4 -4
- package/dist/adyen-individual-status.js +4 -4
- package/dist/adyen-invited-decision-maker.js +4 -117
- package/dist/adyen-kyc-components.js +17 -17
- package/dist/adyen-onboarding.js +4 -4
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +4 -4
- package/dist/adyen-transfer-instrument-configuration.js +4 -4
- package/dist/adyen-transfer-instrument-management.js +4 -4
- package/dist/adyen-verification-status.js +4 -4
- package/dist/{bafinUtils-YlO-EQ-z.js → bafinUtils-4YaweTCy.js} +2 -2
- package/dist/{commonValidators-Z8GTyWt2.js → commonValidators-nusLcRK6.js} +1 -1
- package/dist/{dropinUtils-DuoGe_aD.js → dropinUtils-DoPR1iTm.js} +53 -9
- package/dist/en-US-CJDkXFZ6.js +13 -0
- package/dist/en-US-CTbVLoNF.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-G607HIyo.js → en-US-DPoDE0uz.js} +7 -7
- package/dist/en-US-DrUYyPhF.js +13 -0
- package/dist/{formUtils-OvyHeoEE.js → formUtils-zdJ_jyqE.js} +3 -3
- package/dist/{getName-DxauASkL.js → getName-Ca2cTXzw.js} +2 -2
- package/dist/{getProblemsForEntity-yYZx85SH.js → getProblemsForEntity-CNltAsMa.js} +2 -2
- package/dist/getTrustedFields-rU6j1TOQ.js +104 -0
- package/dist/{isEmpty-CUJ_MTvj.js → isEmpty-BN2tOceJ.js} +1 -1
- package/dist/japanSupportUtils-B76IOTvL.js +16 -0
- package/dist/{localizeDateString-Cdq_DxXh.js → localizeDateString-9ciBezNu.js} +2 -2
- package/dist/{mapExistingFile-BX4VgHc9.js → mapExistingFile-BS79kq3W.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-fM535qJi.js → mapJpAddressSchemaToAddressLocalizations--7Bt3usJ.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-CtUOM-Zl.js → mapLegalEntityToIndividualSchema-BxOmNDle.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-CwsN-a7n.js → mapTransferInstrumentToPayoutAccount-ONPBT9KF.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-DhUQJrjg.js +29 -0
- package/dist/{patternValidators-vRnpmLkN.js → patternValidators-Cem-Icxv.js} +2 -2
- package/dist/{process-field-configurations-BGd8lBcb.js → process-field-configurations-BWC3i2at.js} +2 -2
- package/dist/{resolveEnvironment-CnQ__7cb.js → resolveEnvironment-BLaPb5Nd.js} +17 -24
- package/dist/{roleMetadata-B5g5kSns.js → roleMetadata-RivmWKE-.js} +3 -3
- package/dist/style.css +230 -275
- package/dist/styles-CLV89_hH.js +230 -275
- package/dist/types/api/toggles/useToggles.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -29
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/verification/{widget → overlay}/types.d.ts +4 -14
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +4 -5
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsGettingStarted.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +7 -5
- package/dist/types/components/Business/utils/companyUtil.d.ts +2 -2
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +3 -2
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +5 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +9 -9
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/IFrameWidget.d.ts +9 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +15 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +14 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugTogglesAndSettings.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +12 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/getDefaultRegistrationNumberType.d.ts +4 -4
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/inferCompanyRegistrationNumberType.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +92 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +8 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +0 -483
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/TaxIdNumberTypeSelector.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +8 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +14 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → VatNumberField/VatNumberTypeSelector}/getDefaultVatNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/inferVatNumberType.d.ts +3 -0
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +10 -1
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +149 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +3 -3
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +5 -0
- package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +4 -0
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContext.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContextProvider.d.ts +9 -0
- package/dist/types/context/{ExperimentContext → ToggleContext}/types.d.ts +42 -32
- package/dist/types/context/ToggleContext/useToggleContext.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -3
- package/dist/types/core/UIElement/UIElement.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/embeds/baseEmbedProps.d.ts +3 -3
- package/dist/types/hooks/useFormComposer.d.ts +1 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useTaskLandedEvent.d.ts +7 -0
- package/dist/types/language/types.d.ts +2 -9
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/{types-C_a8jv29.js → types-BLjngIPE.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-H2FCJ1-C.js → types-DmjPF4Sw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-xe96hgXI.js → types-i_4sFTBn.js} +2 -2
- package/dist/{unincorporated-partnership-B6NRgago.js → unincorporated-partnership-R_fKlee-.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CVzKts0I.js → useAssociatedLegalEntity-sPi1NDib.js} +2 -2
- package/dist/{useBusinessDetailsData-DfwcFRlQ.js → useBusinessDetailsData-Bqk04i4C.js} +443 -397
- package/dist/{useCreateLegalEntity-hrStnY6W.js → useCreateLegalEntity-Bsp9NV_x.js} +2 -2
- package/dist/{useForm-D6L2c9Li.js → useForm-OoKBR6oR.js} +3 -3
- package/dist/{useFormContext-CMsS317D.js → useFormContext-DSPJpGk8.js} +17 -8
- package/dist/{useGlobalData-6k8_ruDF.js → useGlobalData-Crfi88kZ.js} +24 -15
- package/dist/{useMultiForm-DM2vK1Np.js → useMultiForm-CvhpFewv.js} +4 -4
- package/dist/{useOnboardingStatus-DhKdv_Y5.js → useOnboardingStatus-CAHU1D0X.js} +2 -2
- package/dist/{useScenarios-CUR2KnWg.js → useScenarios-DBv_dA-7.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BDMVKqbS.js → useTermsOfServiceStatus-ZQHlgGZB.js} +2 -2
- package/dist/{useToastContext-D4gUb18d.js → useToastContext-fRmLeQb3.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-DR2H0kGz.js → useUnincorporatedPartnershipMembers-DiyYkTfs.js} +5 -5
- package/dist/{useUpdateBusinessLines-DePb7PWG.js → useUpdateBusinessLines-R_TsTeL9.js} +6 -6
- package/dist/{useUpdateLegalEntity-DAa_GfP9.js → useUpdateLegalEntity-B08ICvGj.js} +3 -3
- package/dist/{utils-Dl-sL-p9.js → utils-3lClW_1M.js} +2 -2
- package/dist/{utils-BWV6yYFy.js → utils-B0FPRdWI.js} +22 -2
- package/dist/{utils-CnnnCh8B.js → utils-BRoXRTJU.js} +6 -6
- package/dist/{utils--FMWv23g.js → utils-Bjuz29z7.js} +53 -6
- package/dist/{utils-Cm_KCWsB.js → utils-CPMlF6U8.js} +1 -1
- package/dist/{validate-C7J6rZcj.js → validate-Bkn-4Xav.js} +1 -1
- package/dist/{validate-C-38T_GY.js → validate-DXgI7aOv.js} +3 -3
- package/dist/{validationError-C6qoE3Ei.js → validationError-1Dg0ubhb.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-fFofJm6m.js +0 -152
- package/dist/en-US--1W760fR.js +0 -13
- package/dist/en-US-CKLQU2sJ.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-DLY20x1O.js +0 -13
- package/dist/iframeWidget-D0lDhWvH.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-9uEg0pbP.js +0 -16
- package/dist/manual-verification-BO8zgAYT.js +0 -41
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -5
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +0 -9
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +0 -6
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/BankVerificationWidget.d.ts +0 -3
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -32
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -5
- package/dist/types/components/Shared/devex/DebugListener/DebugExperimentsAndSettings.d.ts +0 -7
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +0 -20
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +0 -21
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +0 -3
- package/dist/types/context/ExperimentContext/ExperimentsContext.d.ts +0 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +0 -8
- package/dist/types/context/ExperimentContext/useExperimentsContext.d.ts +0 -1
- package/dist/types/utils/bankVerification/dom.d.ts +0 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9763d7b8-13a2-4761-89ae-768cb0c67a37", e._sentryDebugIdIdentifier = "sentry-dbid-9763d7b8-13a2-4761-89ae-768cb0c67a37");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, j as httpPost } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e4b726aa-0d74-404b-86de-6bd9b5c56b77", e._sentryDebugIdIdentifier = "sentry-dbid-e4b726aa-0d74-404b-86de-6bd9b5c56b77");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-
|
|
11
|
+
import { ae as createLogger, ax as isEmpty, b2 as doArraysMatch } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
|
+
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-CPMlF6U8.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const useAsyncValidator = (asyncRules) => {
|
|
15
15
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "307c2c08-23ac-4128-b18a-026af93accf6", e._sentryDebugIdIdentifier = "sentry-dbid-307c2c08-23ac-4128-b18a-026af93accf6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useRef, useState, useContext } from "preact/hooks";
|
|
12
12
|
import cx from "classnames";
|
|
13
|
-
import {
|
|
14
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
15
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { x as useAnalyticsContext, u as useTranslation, V as Button } from "./StoreProvider-CGAl-5Sk.js";
|
|
14
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-CgNgcjW-.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-BYsvKCcc.js";
|
|
16
16
|
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
17
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
18
|
-
import { C as Confirm } from "./Confirm-
|
|
19
|
-
import { S as Summary } from "./Summary-
|
|
17
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-DoPR1iTm.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-roUo52pe.js";
|
|
19
|
+
import { S as Summary } from "./Summary-DKmu4xU7.js";
|
|
20
20
|
import { createContext } from "preact";
|
|
21
21
|
const FormContext = createContext(null);
|
|
22
22
|
function FormContextProvider({
|
|
@@ -56,6 +56,7 @@ const FormFlow = ({
|
|
|
56
56
|
forms,
|
|
57
57
|
activeForm,
|
|
58
58
|
gotoFormByFormIndex,
|
|
59
|
+
gotoFormByFormId,
|
|
59
60
|
handleBackClick,
|
|
60
61
|
handleCancelClick,
|
|
61
62
|
handleNextClick,
|
|
@@ -140,7 +141,15 @@ const FormFlow = ({
|
|
|
140
141
|
"data-form-valid": activeForm.isValid,
|
|
141
142
|
"data-testid": "form-flow",
|
|
142
143
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsx("div", { className: styles.formFlowContent, children: /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0, loaderSize: "large", children: /* @__PURE__ */ jsx(
|
|
144
|
+
/* @__PURE__ */ jsx("div", { className: styles.formFlowContent, children: /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0, loaderSize: "large", children: /* @__PURE__ */ jsx(
|
|
145
|
+
FormRouterContextProvider,
|
|
146
|
+
{
|
|
147
|
+
forms,
|
|
148
|
+
setFormIndex: gotoFormByFormIndex,
|
|
149
|
+
goToFormByFormId: gotoFormByFormId,
|
|
150
|
+
children: isLastStep ? summaryComponent ? summaryComponent : summary !== void 0 ? /* @__PURE__ */ jsx(Summary, { ...summary, forms, gotoForm: gotoFormByFormIndex }) : children : children
|
|
151
|
+
}
|
|
152
|
+
) }) }),
|
|
144
153
|
/* @__PURE__ */ jsxs("div", { className: footerClassName, children: [
|
|
145
154
|
!isSingleStepForm && /* @__PURE__ */ jsx(ProgressBar, { ariaLabel: t(($) => $["progress"]), progress }),
|
|
146
155
|
/* @__PURE__ */ jsxs("div", { className: styles.formFlowActions, children: [
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b66bbc08-7797-4820-90ff-8e4c8220928c", e._sentryDebugIdIdentifier = "sentry-dbid-b66bbc08-7797-4820-90ff-8e4c8220928c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useContext, useState, useCallback, useMemo } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
14
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
15
|
-
import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-
|
|
12
|
+
import { bo as StateContext, u as useTranslation, x as useAnalyticsContext, H as useToggleContext, V as Button } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-CgNgcjW-.js";
|
|
14
|
+
import { M as MaybeModal } from "./MaybeModal-BYsvKCcc.js";
|
|
15
|
+
import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-727fSuFr.js";
|
|
16
16
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
17
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator-
|
|
18
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
19
|
-
import { F as FormNavigation } from "./FormNavigation-
|
|
20
|
-
import { s as summaryStep, S as Summary } from "./Summary-
|
|
17
|
+
import { S as StepProgressIndicator } from "./StepProgressIndicator-DhfpqmVy.js";
|
|
18
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-DoPR1iTm.js";
|
|
19
|
+
import { F as FormNavigation } from "./FormNavigation-D90R1OgK.js";
|
|
20
|
+
import { s as summaryStep, S as Summary } from "./Summary-DKmu4xU7.js";
|
|
21
21
|
import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
22
22
|
function useStateContext() {
|
|
23
23
|
const context = useContext(StateContext);
|
|
@@ -34,6 +34,7 @@ const FormWrapper = ({
|
|
|
34
34
|
handleHomeClick,
|
|
35
35
|
loadingStatus,
|
|
36
36
|
gotoFormByFormIndex,
|
|
37
|
+
gotoFormByFormId,
|
|
37
38
|
forms,
|
|
38
39
|
activeForm,
|
|
39
40
|
validateForm,
|
|
@@ -54,8 +55,8 @@ const FormWrapper = ({
|
|
|
54
55
|
const showLegalCaption = ["solePropDetails", "companyDetails", "businessDetails"].includes(
|
|
55
56
|
taskName
|
|
56
57
|
);
|
|
57
|
-
const {
|
|
58
|
-
const showExtraTaxExemptionReasons =
|
|
58
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
59
|
+
const showExtraTaxExemptionReasons = isFeatureEnabled("ShowExtraTaxExemptionReasons");
|
|
59
60
|
const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && summaryData?.companyRegistrationDetails?.vatAbsenceReason && ["companyDetails", "businessDetails"].includes(taskName);
|
|
60
61
|
const summaryContent = /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx(
|
|
61
62
|
Summary,
|
|
@@ -102,10 +103,18 @@ const FormWrapper = ({
|
|
|
102
103
|
verificationErrors: problems?.verificationErrors
|
|
103
104
|
}
|
|
104
105
|
) }),
|
|
105
|
-
/* @__PURE__ */ jsxs(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
/* @__PURE__ */ jsxs(
|
|
107
|
+
FormRouterContextProvider,
|
|
108
|
+
{
|
|
109
|
+
setFormIndex: gotoFormByFormIndex,
|
|
110
|
+
goToFormByFormId: gotoFormByFormId,
|
|
111
|
+
forms,
|
|
112
|
+
children: [
|
|
113
|
+
children,
|
|
114
|
+
activeForm.formId === summaryStep.formId && summary && summaryContent
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
109
118
|
] }) })
|
|
110
119
|
] }),
|
|
111
120
|
!hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "12d5f669-e148-4126-8c8c-9edf726a6caa", e._sentryDebugIdIdentifier = "sentry-dbid-12d5f669-e148-4126-8c8c-9edf726a6caa");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { ah as objectsDeepEqual,
|
|
12
|
-
import { V as ValidationResult } from "./utils-
|
|
13
|
-
import { a as isNotEmptyValidator } from "./commonValidators-
|
|
11
|
+
import { ah as objectsDeepEqual, ae as createLogger, ax as isEmpty } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
|
+
import { V as ValidationResult } from "./utils-CPMlF6U8.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-nusLcRK6.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3c5ada1d-5036-49a5-9608-d66dae0b3254", e._sentryDebugIdIdentifier = "sentry-dbid-3c5ada1d-5036-49a5-9608-d66dae0b3254");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "737c7456-660c-4083-9f47-7e26ef82fa81", e._sentryDebugIdIdentifier = "sentry-dbid-737c7456-660c-4083-9f47-7e26ef82fa81");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, ao as entriesOf, at as Scenarios,
|
|
11
|
+
import { b as useApiContext, ao as entriesOf, at as Scenarios, k as httpGet } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
13
13
|
const scenarioParams = new URLSearchParams({
|
|
14
14
|
countryCode,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6dd7fe61-428f-4b39-b21d-f9492e94eba3", e._sentryDebugIdIdentifier = "sentry-dbid-6dd7fe61-428f-4b39-b21d-f9492e94eba3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7b5d2f84-e667-43c8-b82d-80022f17602e", e._sentryDebugIdIdentifier = "sentry-dbid-7b5d2f84-e667-43c8-b82d-80022f17602e");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
11
11
|
import { useCallback, useContext } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { ae as createLogger, b as useApiContext, au as ToastContext } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
15
15
|
"businessLines",
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "07e74efc-a703-43a8-aca6-40426a36301f", e._sentryDebugIdIdentifier = "sentry-dbid-07e74efc-a703-43a8-aca6-40426a36301f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { L as LegalEntityTypes,
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { L as LegalEntityTypes, ac as getOwnEntityAssociations, P as useLegalEntity, R as ROOT_LE } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-sPi1NDib.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-R_fKlee-.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-Ca2cTXzw.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "489cd34c-a6f4-4ca2-aada-2e4ddb9ccef2", e._sentryDebugIdIdentifier = "sentry-dbid-489cd34c-a6f4-4ca2-aada-2e4ddb9ccef2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, k as httpGet, ax as isEmpty, u as useTranslation, H as useToggleContext, B as IconButton, j as httpPost } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
13
13
|
import { useRef, useMemo, useState, useEffect } from "preact/hooks";
|
|
14
|
-
import { F as Field } from "./Field-
|
|
14
|
+
import { F as Field } from "./Field-BDI27kIy.js";
|
|
15
15
|
import { L as List } from "./List-BAzyC6sw.js";
|
|
16
|
-
import { S as Select } from "./Select-
|
|
16
|
+
import { S as Select } from "./Select-Bt5Y91sI.js";
|
|
17
17
|
import { signal } from "@preact/signals";
|
|
18
18
|
const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes2, locale) => {
|
|
19
19
|
const results = await Promise.all(
|
|
@@ -91,9 +91,9 @@ function IndustryCodeField({
|
|
|
91
91
|
}) {
|
|
92
92
|
const { t } = useTranslation("ui");
|
|
93
93
|
const industryCodesRef = useRef(null);
|
|
94
|
-
const {
|
|
94
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
95
95
|
const singleIndustryCode = single || !!selectedBusinessLine.value || // when editing a business line, only single dropdown should render
|
|
96
|
-
|
|
96
|
+
isFeatureEnabled("EnableLimitToSingleBusinessLine");
|
|
97
97
|
const allIndustryCodeSelectItems = useMemo(
|
|
98
98
|
() => industryCodes?.map((entry) => ({
|
|
99
99
|
id: entry.code,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "433800e0-910d-4820-95c9-bccf5c74c23b", e._sentryDebugIdIdentifier = "sentry-dbid-433800e0-910d-4820-95c9-bccf5c74c23b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQueryClient, useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
12
|
-
import { b as useApiContext,
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-fRmLeQb3.js";
|
|
12
|
+
import { b as useApiContext, j as httpPost } from "./StoreProvider-CGAl-5Sk.js";
|
|
13
13
|
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
14
14
|
return httpPost(
|
|
15
15
|
{
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "65c2f8c3-75d8-462c-9143-e78ab7f5db5c", e._sentryDebugIdIdentifier = "sentry-dbid-65c2f8c3-75d8-462c-9143-e78ab7f5db5c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { a9 as CountryCodes } from "./StoreProvider-CGAl-5Sk.js";
|
|
11
11
|
function getLocalizedIdDocumentTypeOptions(country) {
|
|
12
12
|
switch (country) {
|
|
13
13
|
case CountryCodes.Japan:
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d907bfed-3cb4-4276-bbf6-246c25c34473", e._sentryDebugIdIdentifier = "sentry-dbid-d907bfed-3cb4-4276-bbf6-246c25c34473");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
11
|
-
import {
|
|
11
|
+
import { a9 as CountryCodes } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
const addressFields = [
|
|
13
13
|
"address",
|
|
14
14
|
"otherAddressInformation",
|
|
@@ -147,6 +147,25 @@ const mapAddressLabels = (data, datasetUtils) => {
|
|
|
147
147
|
}
|
|
148
148
|
return data;
|
|
149
149
|
};
|
|
150
|
+
const mapAddressLabelsNewSummary = (data, datasetUtils) => {
|
|
151
|
+
if (!data?.country) return {};
|
|
152
|
+
const addressSchema = getAddressSchemaForCountry(data.country);
|
|
153
|
+
const mappedSummary = {};
|
|
154
|
+
for (const field of addressSchema) {
|
|
155
|
+
const labelKey = getKeyForField(field, data.country);
|
|
156
|
+
const value = data?.[field];
|
|
157
|
+
if (field === "country") {
|
|
158
|
+
mappedSummary[labelKey] = datasetUtils.getCountryName(value) ?? value;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (field === "stateOrProvince") {
|
|
162
|
+
mappedSummary[labelKey] = datasetUtils.getStateName(value, data.country) ?? value;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
mappedSummary[labelKey] = value;
|
|
166
|
+
}
|
|
167
|
+
return mappedSummary;
|
|
168
|
+
};
|
|
150
169
|
export {
|
|
151
170
|
COUNTRIES_WITH_STATES_DATASET as C,
|
|
152
171
|
getAddressSchemaLabelsByCountry as a,
|
|
@@ -154,6 +173,7 @@ export {
|
|
|
154
173
|
getKeyForField as c,
|
|
155
174
|
COUNTRIES_WITH_HOUSE_NUMBER_FIRST as d,
|
|
156
175
|
CONDENSED_ADDRESS_FIELDS as e,
|
|
176
|
+
mapAddressLabelsNewSummary as f,
|
|
157
177
|
getAddressSchemaForCountry as g,
|
|
158
178
|
mapAddressLabels as m
|
|
159
179
|
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "47b65a1a-a742-4e4d-8938-bb47f6622209", e._sentryDebugIdIdentifier = "sentry-dbid-47b65a1a-a742-4e4d-8938-bb47f6622209");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
11
|
-
import {
|
|
12
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
13
|
-
import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-
|
|
14
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
10
|
+
import { C as CompanyTypesValues } from "./bafinUtils-4YaweTCy.js";
|
|
11
|
+
import { a8 as getLegalEntityCountry, bA as getCapabilities, L as LegalEntityTypes, q as hasOwnEntityAssociationOfType, a9 as CountryCodes } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-CaRk-dgZ.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-BrdY-Rew.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-BLjngIPE.js";
|
|
15
15
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
16
16
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
17
17
|
CountryCodes.UnitedStates,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e155a86d-d9cb-4533-9e05-20481f9e3910", e._sentryDebugIdIdentifier = "sentry-dbid-e155a86d-d9cb-4533-9e05-20481f9e3910");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { L as LegalEntityTypes,
|
|
11
|
+
import { L as LegalEntityTypes, N as Typography } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
12
|
import { C as Currencies } from "./currency-CrdnaaDu.js";
|
|
13
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
13
|
+
import { l as localizeDateString } from "./localizeDateString-9ciBezNu.js";
|
|
14
14
|
const formatCurrency = (amount, currency, locale) => {
|
|
15
15
|
const { format } = new Intl.NumberFormat(
|
|
16
16
|
locale,
|
|
@@ -699,6 +699,41 @@ const getSofCardDetails = (t, sourceOfFunds) => {
|
|
|
699
699
|
return "";
|
|
700
700
|
};
|
|
701
701
|
const ALLOWED_SOF_SERVICES = ["issuing", "banking"];
|
|
702
|
+
const getApplicableBusinessLines = (businessLines) => {
|
|
703
|
+
return businessLines.filter((bl) => ALLOWED_SOF_SERVICES.includes(bl.service));
|
|
704
|
+
};
|
|
705
|
+
const areSourceOfFundsEqual = (sof1, sof2) => {
|
|
706
|
+
const type1 = sof1.sourceOfFundsType?.type;
|
|
707
|
+
const type2 = sof2.sourceOfFundsType?.type;
|
|
708
|
+
if (type1 !== type2) {
|
|
709
|
+
return false;
|
|
710
|
+
}
|
|
711
|
+
if (type1 === "donations" || type1 === "inheritance") {
|
|
712
|
+
const ad12 = sof1.additionalData || {};
|
|
713
|
+
const ad22 = sof2.additionalData || {};
|
|
714
|
+
if (ad12.originatorType !== ad22.originatorType) {
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
if (ad12.originatorType === "individual") {
|
|
718
|
+
return ad12.firstName === ad22.firstName && ad12.lastName === ad22.lastName && ad12.country === ad22.country && ad12.relationship === ad22.relationship && ad12.purpose === ad22.purpose && ad12.dateOfFundsReceived === ad22.dateOfFundsReceived;
|
|
719
|
+
} else if (ad12.originatorType === "organization") {
|
|
720
|
+
return ad12.legalName === ad22.legalName && ad12.country === ad22.country && ad12.relationship === ad22.relationship && ad12.purpose === ad22.purpose && ad12.dateOfFundsReceived === ad22.dateOfFundsReceived;
|
|
721
|
+
}
|
|
722
|
+
return false;
|
|
723
|
+
}
|
|
724
|
+
const ad1 = sof1.additionalData || {};
|
|
725
|
+
const ad2 = sof2.additionalData || {};
|
|
726
|
+
const keys1 = Object.keys(ad1);
|
|
727
|
+
const keys2 = Object.keys(ad2);
|
|
728
|
+
if (keys1.length !== keys2.length) {
|
|
729
|
+
return false;
|
|
730
|
+
}
|
|
731
|
+
return keys1.every((key) => {
|
|
732
|
+
const val1 = ad1[key];
|
|
733
|
+
const val2 = ad2[key];
|
|
734
|
+
return JSON.stringify(val1) === JSON.stringify(val2);
|
|
735
|
+
});
|
|
736
|
+
};
|
|
702
737
|
const SOF_INVALID_INPUT_ERROR_CODES = ["1_93", "1_94"];
|
|
703
738
|
const getRelevantErrors = (problems, targetCodes) => {
|
|
704
739
|
if (!problems) return false;
|
|
@@ -732,8 +767,18 @@ const sofCategoryItemMapper = {
|
|
|
732
767
|
assetSale: "propertySale",
|
|
733
768
|
donations: "giftOrDonation"
|
|
734
769
|
};
|
|
770
|
+
const getAdditionalDataForOriginator = (additionalData, sourceAdditionalData, useSameAs) => {
|
|
771
|
+
if (useSameAs) {
|
|
772
|
+
return {
|
|
773
|
+
...additionalData,
|
|
774
|
+
originatorLegalEntityId: sourceAdditionalData?.originatorLegalEntityId
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
return additionalData;
|
|
778
|
+
};
|
|
735
779
|
export {
|
|
736
780
|
ALLOWED_SOF_SERVICES as A,
|
|
781
|
+
parseSofOriginatorPayload as B,
|
|
737
782
|
MISSING_DATA_SOF_UPLOAD_CODE as M,
|
|
738
783
|
SOF_CHARACTERS_LIMIT as S,
|
|
739
784
|
TODAY_DATE as T,
|
|
@@ -758,7 +803,9 @@ export {
|
|
|
758
803
|
sofCategoryItemMapper as s,
|
|
759
804
|
getSourceOfFundsRequiredFields as t,
|
|
760
805
|
parseOriginatorDetails as u,
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
806
|
+
getApplicableBusinessLines as v,
|
|
807
|
+
areSourceOfFundsEqual as w,
|
|
808
|
+
getSourceOfFundsRequiredForms as x,
|
|
809
|
+
getSourceOfFundsPayload as y,
|
|
810
|
+
getAdditionalDataForOriginator as z
|
|
764
811
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "13228ccb-7a69-4840-80f1-931d52200e66", e._sentryDebugIdIdentifier = "sentry-dbid-13228ccb-7a69-4840-80f1-931d52200e66");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import "@tanstack/preact-query";
|
|
11
|
-
import {
|
|
12
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
11
|
+
import { j as httpPost, ar as httpDelete, k as httpGet, ae as createLogger, bo as StateContext, u as useTranslation, x as useAnalyticsContext, z as Icon, N as Typography, U as Loader, B as IconButton } from "./StoreProvider-CGAl-5Sk.js";
|
|
12
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-3lClW_1M.js";
|
|
13
13
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
14
|
import cx from "classnames";
|
|
15
15
|
import { useEffect } from "preact/hooks";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cf5a65b8-86f8-41e0-8c60-a11f6c2a2cd8", e._sentryDebugIdIdentifier = "sentry-dbid-cf5a65b8-86f8-41e0-8c60-a11f6c2a2cd8");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { w as TaskTypes, b9 as remediationPayoutApiKeyMapping, ba as remediationBusinessDetailsApiKeyMapping, bb as remediationIndividualApiKeyMapping } from "./StoreProvider-CGAl-5Sk.js";
|
|
11
11
|
import { a as assignToProp } from "./utils-DNSfZiio.js";
|
|
12
12
|
const isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
|
|
13
13
|
const overrideKeyMapping = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0-beta.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-kyc",
|
|
@@ -20,10 +20,6 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"types": "./dist/types/index.d.ts",
|
|
25
|
-
"import": "./dist/adyen-kyc-components.js"
|
|
26
|
-
},
|
|
27
23
|
"./types/components/onboarding-dropin": {
|
|
28
24
|
"types": "./dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts"
|
|
29
25
|
},
|