@adyen/kyc-components 3.84.3 → 3.85.0-beta.2
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/{AcceptTermsOfServiceComponent-CBGVGhCW.js → AcceptTermsOfServiceComponent-CJR2_QBv.js} +15 -13
- package/dist/Accordion-CiEmIhNX.js +88 -0
- package/dist/{AccountSetupRejected-iWgw_f_y.js → AccountSetupRejected-BjJaN_L0.js} +4 -4
- package/dist/{Address-t4VOfLT-.js → Address-DvpndZyX.js} +10 -10
- package/dist/{Alert-BeizfGIR.js → Alert-ZQaJKZwM.js} +3 -75
- package/dist/{Avatar-DuU-qQK8.js → Avatar-Bg9ZnJVR.js} +1 -1
- package/dist/{BusinessDetailsDropin-DvcYg_X0.js → BusinessDetailsMultiformDropin-FeI19Yeu.js} +2124 -250
- package/dist/{BusinessFinancingComponent-CtKIHS5N.js → BusinessFinancingComponent-P6tUs_cF.js} +5 -5
- package/dist/{BusinessFinancingDropin-lPPamXGa.js → BusinessFinancingDropin-5PQROpGM.js} +105 -62
- package/dist/{BusinessFinancingPage-Di-Nv2Ml.js → BusinessFinancingPage-Z7KdR2Wb.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BXdmcFx7.js → BusinessTypeSelectionPage-CEiJxKFT.js} +7 -7
- package/dist/{Card-B1eYN1iZ.js → Card-DeKeyEgr.js} +4 -4
- package/dist/{CountryField-DePvueIq.js → CountryField-DpZS-UHE.js} +82 -291
- package/dist/{CreateIndividualComponent-BF8U9HmX.js → CreateIndividualComponent-uV41ZKqu.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-Rd6n91ch.js → CreateTransferInstrumentComponent--fLgxkGc.js} +6 -6
- package/dist/{Currency-CCNB-Owq.js → Currency-dvDSJvr6.js} +6 -6
- package/dist/{CustomerSupport-dzWyAxLD.js → CustomerSupport-BsSMzVHV.js} +9 -8
- package/dist/{DebugModal-Db4z3HFJ.js → DebugModal-CDJit0my.js} +128 -42
- package/dist/{DecisionMakerDetailsPage-CQ5uaVPM.js → DecisionMakerDetailsPage-WUOxEF2W.js} +7 -7
- package/dist/{DecisionMakers-BjZNaC3U.js → DecisionMakers--fCz0mrC.js} +149 -115
- package/dist/Divider-CQmSV-3K.js +239 -0
- package/dist/{Dropzone-DS3DzY-A.js → Dropzone-CjTl0Cl4.js} +4 -4
- package/dist/{EmbeddedStatus-COuKpXSJ.js → EmbeddedStatus-BfyrjDBn.js} +3 -3
- package/dist/{EndStateLayout-DHbUjBQL.js → EndStateLayout-DtnC_jmT.js} +1 -1
- package/dist/{FormNavigation-C8985odz.js → FormNavigation-BVFCNan3.js} +3 -3
- package/dist/Image-3OQ_b33w.js +22 -0
- package/dist/{IndividualOnfidoDropin-BnPU46GN.js → IndividualOnfidoDropin-DxGZH7qE.js} +64 -41
- package/dist/{InputDate-BqYvvnqX.js → InputDate-Lj3IQq5B.js} +2 -2
- package/dist/{InputText-rkMNHFYM.js → InputText-DqycMV0z.js} +3 -3
- package/dist/{Introduction-BsZibeHx.js → Introduction-B_eEyK4D.js} +4 -4
- package/dist/{JpAddress-7_Wvn6w-.js → JpAddress-DbmfH7ao.js} +7 -7
- package/dist/LandingLayout-DAR4uCsx.js +60 -0
- package/dist/{LegalRepresentativeDetailsPage-BLoNELP2.js → LegalRepresentativeDetailsPage-JtrwqFp_.js} +5 -5
- package/dist/Link-BePoWmqK.js +35 -0
- package/dist/ListItem-AIDLbwJg.js +69 -0
- package/dist/{ManageIndividualComponent-DuMx-hok.js → ManageIndividualComponent-CdI1XXUO.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-BPJJxecg.js → ManageTermsOfServiceComponent-C9C7j-Ig.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-D13HhKpC.js → ManageTransferInstrumentComponent-j3e19U67.js} +12 -12
- package/dist/{MaskedInput-DK17jkn8.js → MaskedInput-BBpUba4Q.js} +5 -5
- package/dist/MaybeModal-BfUZzrFT.js +25 -0
- package/dist/{Modal-CeWqn3jD.js → Modal-QC3t2pZm.js} +1 -1
- package/dist/OnboardingDropinComponent-CR_pOocw.js +4274 -0
- package/dist/{PayoutDetailsDropin-CxXIfBo2.js → PayoutDetailsDropin-C4ZOkpq_.js} +311 -81
- package/dist/RadioGroup-B0eqJ4-H.js +144 -0
- package/dist/{RegistrationAddress-coO57t4c.js → RegistrationAddress-DEZgJ98J.js} +36 -33
- package/dist/{Review-BFb6Ykw1.js → Review-BH30PNwx.js} +8 -7
- package/dist/RootBusinessDetailsPage-CB6RWU2g.js +61 -0
- package/dist/{OnboardingDropinComponent-BlMzaK2Z.js → RootBusinessLinesPage-CtY_KP7f.js} +845 -5342
- package/dist/{RootIndividualDetailsPage-BEe-U1FO.js → RootIndividualDetailsPage-C6TUZLlV.js} +5 -5
- package/dist/{SignPCIComponent-D5KQ4t2I.js → SignPCIComponent-Lc4CIjC7.js} +10 -8
- package/dist/{SingpassSelection-wIFBjJkx.js → SingpassSelection-Cwocy94c.js} +5 -4
- package/dist/SoleProprietorshipPage-DIotXS-E.js +60 -0
- package/dist/{SourceOfFundsPage-B0js4JTw.js → SourceOfFundsPage-D6X8IktQ.js} +37 -32
- package/dist/{StepProgressIndicator-axxG6zQK.js → StepProgressIndicator-BRtUTJA2.js} +1 -1
- package/dist/{StoreProvider-BulXd4Hf.js → StoreProvider-DX9X_rtC.js} +107 -102
- package/dist/{TaskItemStatus-DykYxx-L.js → TaskItemStatus-DTxnqkA5.js} +3 -3
- package/dist/{TaxInformationField-vBwS4Gdq.js → TaxInformationField-CAhkfn-Q.js} +28 -26
- package/dist/{TaxReportingDropin-T-05itkR.js → TaxReportingDropin-zqqyQfEx.js} +17 -13
- package/dist/{TileGroup-CWIb67Fa.js → TileGroup-DPM4gpzr.js} +4 -4
- package/dist/{TrustDetailsPage-XpVwVUFb.js → TrustDetailsPage-BaqBKpei.js} +24 -22
- package/dist/{TrustMemberCompanyPage-CPZ8ZzqF.js → TrustMemberCompanyPage-DQvZ4BOf.js} +22 -9
- package/dist/{TrustMemberIndividualPage-um9OLnSy.js → TrustMemberIndividualPage-Du6IjMHg.js} +5 -5
- package/dist/{UnincorporatedPartnershipIndividualPage-CvQOUpDy.js → UnincorporatedPartnershipIndividualPage-ii0O1m-J.js} +5 -5
- package/dist/UnincorporatedPartnershipMemberCompanyPage-X3m8PR8H.js +76 -0
- package/dist/{ViewVerificationStatusComponent-aOEFCjUd.js → ViewVerificationStatusComponent-wM09RJoi.js} +4 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +20 -20
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/analytics-CSO2dqDO.js +123 -0
- package/dist/{bafinUtils-DOsm2O1i.js → bafinUtils-lxvWZZEW.js} +8 -57
- package/dist/{bg-BG-B37z4fjM.js → bg-BG-BIOMFPaW.js} +3 -1
- package/dist/bg-BG-BLe6BCNz.js +13 -0
- package/dist/bg-BG-BPsOhDfg.js +13 -0
- package/dist/bg-BG-fr-xfUBV.js +110 -0
- package/dist/commonValidators-B3Rif_Pi.js +24 -0
- package/dist/cs-CZ-C0sNB1Fm.js +110 -0
- package/dist/cs-CZ-CHzJM-ii.js +13 -0
- package/dist/{cs-CZ-2D8o2KB0.js → cs-CZ-DNWTRefA.js} +3 -1
- package/dist/cs-CZ-xoLsda7i.js +13 -0
- package/dist/da-DK-8dk9Q_Wk.js +110 -0
- package/dist/{da-DK-CplImqOX.js → da-DK-D-PlwKvZ.js} +3 -1
- package/dist/da-DK-D-TJghBi.js +13 -0
- package/dist/da-DK-XNMYSp7w.js +13 -0
- package/dist/{de-DE-DNOzlYEY.js → de-DE-4GAd_srm.js} +3 -1
- package/dist/de-DE-BI7AAdOv.js +13 -0
- package/dist/de-DE-CCmlaL2F.js +13 -0
- package/dist/de-DE-CCyKie8B.js +110 -0
- package/dist/debugStore-BvbyN1Oi.js +14 -0
- package/dist/dropinUtils-BB4B9BSv.js +196 -0
- package/dist/el-GR-D7zMcBtK.js +110 -0
- package/dist/{el-GR-DAFcmbwE.js → el-GR-Ddnh0NhQ.js} +3 -1
- package/dist/el-GR-DoCIcce-.js +13 -0
- package/dist/el-GR-kYiInIQ9.js +13 -0
- package/dist/{en-US-CEc3gxgl.js → en-US-BCFNoF5y.js} +2 -1
- package/dist/en-US-BwDZ0WHW.js +110 -0
- package/dist/en-US-DYpvuCLO.js +13 -0
- package/dist/{en-US-xHi63gSK.js → en-US-DjF6iC7G.js} +12 -1
- package/dist/{es-ES-BPI-KmDv.js → es-ES-C4lENXHH.js} +3 -1
- package/dist/es-ES-CJMsyMAc.js +13 -0
- package/dist/es-ES-CnNU6AJv.js +13 -0
- package/dist/es-ES-JvAvmB2A.js +110 -0
- package/dist/{et-EE-CMXpGRz8.js → et-EE-3EQr-1cj.js} +3 -1
- package/dist/et-EE-BR4OXRfV.js +13 -0
- package/dist/et-EE-SJf3_Ega.js +110 -0
- package/dist/et-EE-sB7wkSA3.js +13 -0
- package/dist/fi-FI-BbqwYcLI.js +13 -0
- package/dist/{fi-FI-C5SwgUIc.js → fi-FI-Byvvcxxq.js} +3 -1
- package/dist/fi-FI-Cy2hAl0B.js +110 -0
- package/dist/fi-FI-u5GxMZsq.js +13 -0
- package/dist/{fieldConfigurations-BBmPG-CS.js → fieldConfigurations-QIDm3nkC.js} +12 -306
- package/dist/fr-FR-BmW46mYd.js +110 -0
- package/dist/fr-FR-CMjrAkKl.js +13 -0
- package/dist/fr-FR-Cr-Y1vIy.js +13 -0
- package/dist/{fr-FR-CAqqgh3X.js → fr-FR-E_UubsZ-.js} +3 -1
- package/dist/{getName-N_Hu5gE7.js → getName-DQuF2UWl.js} +2 -2
- package/dist/{hasDataChanged-C32ujCoA.js → hasDataChanged-QgzClnGa.js} +2 -2
- package/dist/hr-HR-Bhsop3CT.js +13 -0
- package/dist/hr-HR-D8cBxUFa.js +13 -0
- package/dist/{hr-HR-oTvJUvqr.js → hr-HR-TVOgDkBf.js} +3 -1
- package/dist/hr-HR-c1Si_0s4.js +110 -0
- package/dist/hu-HU-BVfkOdJe.js +13 -0
- package/dist/hu-HU-CibGC8KY.js +110 -0
- package/dist/hu-HU-D2j1ISVk.js +13 -0
- package/dist/{hu-HU-DA-bZKop.js → hu-HU-DRONW_47.js} +3 -1
- package/dist/{iframeWidget-iA0G4IZI.js → iframeWidget-LY36YmR3.js} +4 -4
- package/dist/{isEmpty-CD8E4UFi.js → isEmpty-uIgxe5k7.js} +2 -2
- package/dist/it-IT-BMjuva_2.js +110 -0
- package/dist/it-IT-C7Sg1k4p.js +13 -0
- package/dist/it-IT-CwA8megO.js +13 -0
- package/dist/{it-IT-CpKAGuyU.js → it-IT-DuBLJIdz.js} +3 -1
- package/dist/{ja-JP-7DhgV_0J.js → ja-JP-CCnzjx-u.js} +28 -2
- package/dist/{ja-JP-C4569I8p.js → ja-JP-CJ_j_HAA.js} +3 -1
- package/dist/ja-JP-Cr_qjpZ2.js +110 -0
- package/dist/ja-JP-GSbqID7o.js +13 -0
- package/dist/{localizeDateString-DHsCnGIt.js → localizeDateString-BKtxO1zQ.js} +1 -1
- package/dist/lt-LT-C5nNCk4_.js +13 -0
- package/dist/{lt-LT-DfJ0ojxY.js → lt-LT-CBBDNCnp.js} +3 -1
- package/dist/lt-LT-DSiutpRl.js +13 -0
- package/dist/lt-LT-DjNjg3Pl.js +110 -0
- package/dist/lv-LV-BpRfRfMz.js +110 -0
- package/dist/lv-LV-C62XiDE5.js +13 -0
- package/dist/lv-LV-CEK8Re4d.js +13 -0
- package/dist/{lv-LV-d0ldbfMh.js → lv-LV-CtIe38WU.js} +3 -1
- package/dist/{mapExistingFile-CZ8JIq0y.js → mapExistingFile-BfHRGybY.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js → mapJpAddressSchemaToAddressLocalizations-Bh2EFFbk.js} +53 -6
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-DpDvE22C.js → mapLegalEntityToIndividualOnfidoSchema-ixUzJxt_.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-B_Z8lux3.js → mapTransferInstrumentToPayoutAccount-DqDMLrLp.js} +6 -3
- package/dist/nl-NL-BOJ6zuBr.js +13 -0
- package/dist/{nl-NL-DdVmtkAu.js → nl-NL-CE4l8R5l.js} +3 -1
- package/dist/nl-NL-DOQPxTX-.js +13 -0
- package/dist/nl-NL-oaBDOlm6.js +110 -0
- package/dist/{no-NO-C0WUoV9N.js → no-NO-B1_YJlMP.js} +3 -1
- package/dist/no-NO-BTrfxWS7.js +110 -0
- package/dist/no-NO-Cp3-tDMw.js +13 -0
- package/dist/no-NO-CuwTDFSf.js +13 -0
- package/dist/pl-PL-1-MrLPXu.js +13 -0
- package/dist/pl-PL-C72GTDxW.js +110 -0
- package/dist/pl-PL-CtDHmbhp.js +13 -0
- package/dist/{pl-PL-Byfw9EGz.js → pl-PL-DGYFY42P.js} +3 -1
- package/dist/process-field-configurations-CPiaN7XP.js +304 -0
- package/dist/pt-BR-Br_cHzGx.js +13 -0
- package/dist/{pt-BR-DUUAs_Pm.js → pt-BR-Co8OqKh-.js} +3 -1
- package/dist/pt-BR-CtFCi7U4.js +110 -0
- package/dist/pt-BR-DnKEuslh.js +13 -0
- package/dist/pt-PT-CLwCij2I.js +13 -0
- package/dist/pt-PT-XAn7WGle.js +110 -0
- package/dist/pt-PT-cjbtYBUX.js +13 -0
- package/dist/{pt-PT-BVZxK7ae.js → pt-PT-pKLoM66X.js} +3 -1
- package/dist/{resolveEnvironment-HVVOrOBr.js → resolveEnvironment-B9LzegI4.js} +3 -3
- package/dist/ro-RO-CGhIjlpU.js +13 -0
- package/dist/ro-RO-Cmk-sVDr.js +13 -0
- package/dist/{ro-RO-Ck3Azc56.js → ro-RO-D3rQ93wa.js} +3 -1
- package/dist/ro-RO-qX8X1Q1m.js +110 -0
- package/dist/{rules-CpkxtBrw.js → rules-BMGZ46_e.js} +9 -5
- package/dist/sk-SK-Bo5nvxWQ.js +13 -0
- package/dist/sk-SK-CjdK4BKW.js +110 -0
- package/dist/{sk-SK-jxAlqkeI.js → sk-SK-CmH1I1tp.js} +3 -1
- package/dist/sk-SK-Do6CKNU4.js +13 -0
- package/dist/sl-SI-CrTRlNnN.js +13 -0
- package/dist/sl-SI-cY-L2ma-.js +13 -0
- package/dist/{sl-SI-CjvFCQ3H.js → sl-SI-hnlbW1OT.js} +3 -1
- package/dist/sl-SI-lPxRRPsh.js +110 -0
- package/dist/style.css +577 -544
- package/dist/styles-CLV89_hH.js +577 -544
- package/dist/{sv-SE-CSjJPRt1.js → sv-SE-7Cbo1oic.js} +3 -1
- package/dist/sv-SE-BPpQ-05i.js +110 -0
- package/dist/sv-SE-BtwPrLEA.js +13 -0
- package/dist/sv-SE-WPziDPQa.js +13 -0
- package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +11 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -2
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/context/ExperimentContext/types.d.ts +4 -8
- package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +2 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/{core → utils}/analytics.d.ts +5 -5
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-YZCbv6wT.js → types-B8B2a7MQ.js} +2 -2
- package/dist/{types-Cnytncbd.js → types-DHmyPbAn.js} +5 -9
- package/dist/{types-DREIZpxT.js → types-DhTTtRCo.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CtPwbvkG.js → useAssociatedLegalEntity-Ga-FKuMn.js} +1 -1
- package/dist/{useDataset-BhtLJw8i.js → useDataset-DZSHpx6s.js} +3 -3
- package/dist/{useForm-CkDciBI3.js → useForm-Dj2YKs6k.js} +8 -79
- package/dist/useFormContext-DW_Slas-.js +222 -0
- package/dist/{useGlobalData-BUgIp9O-.js → useGlobalData-DpDm0x5x.js} +10 -8
- package/dist/{RadioGroup-CDIi5JOR.js → useMultiForm-B07GoQbD.js} +6 -339
- package/dist/{useOnboardingStatus-C617NeV-.js → useOnboardingStatus-Cn0R_NIZ.js} +1 -1
- package/dist/{useScenarios-pcYq7HkO.js → useScenarios-Dt2xmzlt.js} +2 -2
- package/dist/{useTermsOfServiceStatus-DAhlGfSf.js → useTermsOfServiceStatus-D6iXFeAp.js} +1 -1
- package/dist/{useToastContext-SPgtDHvP.js → useToastContext-9176-zEj.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-AfBFy7Yl.js → useUnincorporatedPartnershipMembers-6JvFEoTe.js} +5 -5
- package/dist/{utils-C6VZF1lW.js → utils-BbfCeKoQ.js} +7 -7
- package/dist/{utils-DKPIAe71.js → utils-C3YOzi3q.js} +2 -2
- package/dist/{utils-CfNHCh35.js → utils-Cnzy9BrL.js} +3 -3
- package/dist/{validate-0hhEAEOS.js → validate-3hlm9O5d.js} +7 -7
- package/dist/{validate-nQU_m5nS.js → validate-C5RnmxAh.js} +2 -2
- package/dist/{validate-zp9cKIZQ.js → validate-CchLxW_F.js} +3 -3
- package/dist/{validationError-C4LAQpBz.js → validationError-9xZhdWqV.js} +2 -2
- package/package.json +4 -4
- package/dist/RootBusinessDetailsPage-BsbiSuH4.js +0 -1977
- package/dist/SoleProprietorshipPage-BKxqOwer.js +0 -49
- package/dist/UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js +0 -63
- package/dist/analytics-_iYLDAnN.js +0 -61
- package/dist/bg-BG-B8A8D_hg.js +0 -47
- package/dist/bg-BG-CC5Y7izP.js +0 -13
- package/dist/bg-BG-DPkib_ah.js +0 -13
- package/dist/cs-CZ-B0dmNTJm.js +0 -13
- package/dist/cs-CZ-B7A0WNBx.js +0 -47
- package/dist/cs-CZ-E0sZTsrs.js +0 -13
- package/dist/da-DK-9M2wm0kt.js +0 -47
- package/dist/da-DK-HNKnBXb5.js +0 -13
- package/dist/da-DK-quX5LuPc.js +0 -13
- package/dist/de-DE-1wVDROIy.js +0 -13
- package/dist/de-DE-B2QaSUv3.js +0 -13
- package/dist/de-DE-CLuLBUrb.js +0 -47
- package/dist/el-GR-BKT02owO.js +0 -13
- package/dist/el-GR-BN7mIwED.js +0 -47
- package/dist/el-GR-C2BsVqjY.js +0 -13
- package/dist/en-US-BEgdeTV4.js +0 -13
- package/dist/en-US-BWtUZoXL.js +0 -47
- package/dist/es-ES-DCkqCwAK.js +0 -13
- package/dist/es-ES-Dc4Z3rGg.js +0 -13
- package/dist/es-ES-i_Fk7A9r.js +0 -47
- package/dist/et-EE-DKJ8Kn8O.js +0 -47
- package/dist/et-EE-DbRebqzm.js +0 -13
- package/dist/et-EE-sGRn_-QJ.js +0 -13
- package/dist/fi-FI-BQxUuIP0.js +0 -13
- package/dist/fi-FI-BXJbm9sZ.js +0 -13
- package/dist/fi-FI-CF4-CyIe.js +0 -47
- package/dist/fr-FR-C4LPqbx5.js +0 -47
- package/dist/fr-FR-DvgcaqM8.js +0 -13
- package/dist/fr-FR-t2k348rx.js +0 -13
- package/dist/hr-HR-BiZNiGG9.js +0 -13
- package/dist/hr-HR-Dlw8mrQW.js +0 -13
- package/dist/hr-HR-TslbqIeE.js +0 -47
- package/dist/hu-HU-6VmfqBr5.js +0 -13
- package/dist/hu-HU-CgBQ5Skc.js +0 -47
- package/dist/hu-HU-DLynQejq.js +0 -13
- package/dist/it-IT-BXsakLEg.js +0 -47
- package/dist/it-IT-BgdxIaNM.js +0 -13
- package/dist/it-IT-PJbf57vA.js +0 -13
- package/dist/ja-JP-B--vgrAi.js +0 -47
- package/dist/ja-JP-BBzuYv6e.js +0 -13
- package/dist/lt-LT-57A37eCA.js +0 -13
- package/dist/lt-LT-C_sT0Isz.js +0 -13
- package/dist/lt-LT-UnMr3oB3.js +0 -47
- package/dist/lv-LV-7VOOOEZ-.js +0 -13
- package/dist/lv-LV-C54zKY0H.js +0 -47
- package/dist/lv-LV-Cwzt1ESp.js +0 -13
- package/dist/nl-NL-A444CaCG.js +0 -47
- package/dist/nl-NL-D0wVWeHf.js +0 -13
- package/dist/nl-NL-DiH4q7K-.js +0 -13
- package/dist/no-NO-BeVzpadb.js +0 -13
- package/dist/no-NO-D57T2p2M.js +0 -47
- package/dist/no-NO-JHMzV-ae.js +0 -13
- package/dist/pl-PL-0BphD78z.js +0 -13
- package/dist/pl-PL-B3RxZ32y.js +0 -47
- package/dist/pl-PL-De41L6O6.js +0 -13
- package/dist/pt-BR-BvAy7bfZ.js +0 -13
- package/dist/pt-BR-CjfX1fDM.js +0 -47
- package/dist/pt-BR-D7RCymsU.js +0 -13
- package/dist/pt-PT-BH1abg6H.js +0 -13
- package/dist/pt-PT-CgXkfMUc.js +0 -13
- package/dist/pt-PT-D79GMAC5.js +0 -47
- package/dist/ro-RO-1W3Bw0U7.js +0 -13
- package/dist/ro-RO-Dj-2um-k.js +0 -47
- package/dist/ro-RO-raS4E2ww.js +0 -13
- package/dist/sk-SK-BTujkOgF.js +0 -13
- package/dist/sk-SK-Es-5xiuY.js +0 -13
- package/dist/sk-SK-JN-Ll7bm.js +0 -47
- package/dist/sl-SI-BT9PpQII.js +0 -13
- package/dist/sl-SI-Cq4LxAvb.js +0 -13
- package/dist/sl-SI-nUZNETVU.js +0 -47
- package/dist/sv-SE-8dFj9z4D.js +0 -47
- package/dist/sv-SE-Csib2Zj_.js +0 -13
- package/dist/sv-SE-EbNvb_L7.js +0 -13
|
@@ -2,20 +2,20 @@
|
|
|
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] = "6a74e4ee-8543-46db-912b-e7d1d2368c28", e._sentryDebugIdIdentifier = "sentry-dbid-6a74e4ee-8543-46db-912b-e7d1d2368c28");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { useContext, useCallback, useState, useEffect, useMemo } from "preact/hooks";
|
|
11
|
-
import { u as useTranslation, O as TaskStatuses, B as Button, aw as keysOf, au as remediationHasFileUploadField, a8 as entriesOf, w as translateStringOrObject, aL as TrustMemberGuidanceLabels, ab as TrustMemberTypes, ap as DecisionMakerTypes, ah as useI18nContext, P as useAnalyticsContext, W as noop, a9 as isEmpty, V as IconButton, t as Svg, N as createLogger, U as Icon } from "./StoreProvider-BulXd4Hf.js";
|
|
12
10
|
import { jsx, jsxs, Fragment as Fragment$1 } from "preact/jsx-runtime";
|
|
11
|
+
import { u as useTranslation, O as TaskStatuses, B as Button, aG as keysOf, aH as remediationHasFileUploadField, aC as entriesOf, w as translateStringOrObject, aI as TrustMemberGuidanceLabels, a8 as TrustMemberTypes, an as DecisionMakerTypes, af as useI18nContext, P as useAnalyticsContext, W as noop, aa as isEmpty, V as IconButton, t as Svg } from "./StoreProvider-DX9X_rtC.js";
|
|
13
12
|
import cx from "classnames";
|
|
14
13
|
import { defineSlots } from "named-slots";
|
|
15
14
|
import { toChildArray, Fragment, createContext } from "preact";
|
|
16
|
-
import { S as StructuredList, u as useDataset, d as datasetIdentifier } from "./useDataset-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { S as StructuredList, u as useDataset, d as datasetIdentifier } from "./useDataset-DZSHpx6s.js";
|
|
16
|
+
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
17
|
+
import { a as Alert } from "./Alert-ZQaJKZwM.js";
|
|
18
|
+
import { g as getDataByFields, F as Field, c as Select } from "./useForm-Dj2YKs6k.js";
|
|
19
19
|
const stackLayout = "adyen-kyc-stack-layout";
|
|
20
20
|
const stackLayoutGapXs = "adyen-kyc-stack-layout-gap-xs";
|
|
21
21
|
const stackLayoutGapS = "adyen-kyc-stack-layout-gap-s";
|
|
@@ -30,7 +30,7 @@ const stackLayoutHorizontal = "adyen-kyc-stack-layout-horizontal";
|
|
|
30
30
|
const stackLayoutLeftHorizontal = "adyen-kyc-stack-layout-left-horizontal";
|
|
31
31
|
const stackLayoutCenterHorizontal = "adyen-kyc-stack-layout-center-horizontal";
|
|
32
32
|
const stackLayoutRightHorizontal = "adyen-kyc-stack-layout-right-horizontal";
|
|
33
|
-
const styles$
|
|
33
|
+
const styles$4 = {
|
|
34
34
|
stackLayout,
|
|
35
35
|
stackLayoutGapXs,
|
|
36
36
|
stackLayoutGapS,
|
|
@@ -47,23 +47,23 @@ const styles$5 = {
|
|
|
47
47
|
stackLayoutRightHorizontal
|
|
48
48
|
};
|
|
49
49
|
const gapStyles = {
|
|
50
|
-
xSmall: styles$
|
|
51
|
-
small: styles$
|
|
52
|
-
medium: styles$
|
|
53
|
-
large: styles$
|
|
54
|
-
xLarge: styles$
|
|
50
|
+
xSmall: styles$4.stackLayoutGapXs,
|
|
51
|
+
small: styles$4.stackLayoutGapS,
|
|
52
|
+
medium: styles$4.stackLayoutGapM,
|
|
53
|
+
large: styles$4.stackLayoutGapL,
|
|
54
|
+
xLarge: styles$4.stackLayoutGapXl,
|
|
55
55
|
none: null
|
|
56
56
|
};
|
|
57
57
|
const alignStyles = {
|
|
58
|
-
left: styles$
|
|
59
|
-
center: styles$
|
|
60
|
-
right: styles$
|
|
58
|
+
left: styles$4.stackLayoutLeft,
|
|
59
|
+
center: styles$4.stackLayoutCenter,
|
|
60
|
+
right: styles$4.stackLayoutRight,
|
|
61
61
|
auto: null
|
|
62
62
|
};
|
|
63
63
|
const horizontalAlignStyles = {
|
|
64
|
-
left: styles$
|
|
65
|
-
center: styles$
|
|
66
|
-
right: styles$
|
|
64
|
+
left: styles$4.stackLayoutLeftHorizontal,
|
|
65
|
+
center: styles$4.stackLayoutCenterHorizontal,
|
|
66
|
+
right: styles$4.stackLayoutRightHorizontal,
|
|
67
67
|
auto: null
|
|
68
68
|
};
|
|
69
69
|
const flattenChildren = (children) => {
|
|
@@ -81,13 +81,13 @@ const StackLayout = ({
|
|
|
81
81
|
horizontal = false
|
|
82
82
|
}) => {
|
|
83
83
|
const flattenedChildren = flattenChildren(children);
|
|
84
|
-
const rootClassname = cx(styles$
|
|
84
|
+
const rootClassname = cx(styles$4.stackLayout, gapStyles[gap], alignStyles[align], {
|
|
85
85
|
[horizontalAlignStyles[align]]: horizontal,
|
|
86
|
-
[styles$
|
|
86
|
+
[styles$4.stackLayoutHorizontal]: horizontal
|
|
87
87
|
});
|
|
88
88
|
return /* @__PURE__ */ jsx("div", { className: rootClassname, children: flattenedChildren.map((item, i) => {
|
|
89
89
|
if (align === "auto") {
|
|
90
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
90
|
+
return /* @__PURE__ */ jsx("div", { className: styles$4.stackLayoutItem, children: item }, item.key ?? i);
|
|
91
91
|
}
|
|
92
92
|
return item;
|
|
93
93
|
}) });
|
|
@@ -98,7 +98,7 @@ const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success
|
|
|
98
98
|
const inTaskStatusIndicatorError = "adyen-kyc-in-task-status-indicator-error";
|
|
99
99
|
const inTaskStatusIndicatorWarning = "adyen-kyc-in-task-status-indicator-warning";
|
|
100
100
|
const inTaskStatusLabel = "adyen-kyc-in-task-status-label";
|
|
101
|
-
const styles$
|
|
101
|
+
const styles$3 = {
|
|
102
102
|
inTaskStatus,
|
|
103
103
|
inTaskStatusIndicator,
|
|
104
104
|
inTaskStatusIndicatorSuccess,
|
|
@@ -112,19 +112,19 @@ const getIndicatorLabelAndClassnames = ({
|
|
|
112
112
|
if (taskStatus === TaskStatuses.FINISHED) {
|
|
113
113
|
return {
|
|
114
114
|
indicatorLabel: "taskComplete",
|
|
115
|
-
indicatorClassname: styles$
|
|
115
|
+
indicatorClassname: styles$3.inTaskStatusIndicatorSuccess
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
if (taskStatus === TaskStatuses.PROCESSING) {
|
|
119
119
|
return {
|
|
120
120
|
indicatorLabel: "taskInProgress",
|
|
121
|
-
indicatorClassname: styles$
|
|
121
|
+
indicatorClassname: styles$3.inTaskStatusIndicatorWarning
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
if (taskStatus === TaskStatuses.ERROR) {
|
|
125
125
|
return {
|
|
126
126
|
indicatorLabel: "taskHasErrors",
|
|
127
|
-
indicatorClassname: styles$
|
|
127
|
+
indicatorClassname: styles$3.inTaskStatusIndicatorError
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
};
|
|
@@ -135,15 +135,15 @@ const TaskStatusIndicator = ({ taskStatus }) => {
|
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
137
|
const { indicatorLabel, indicatorClassname } = indicator;
|
|
138
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
138
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.inTaskStatus, children: [
|
|
139
139
|
/* @__PURE__ */ jsx(
|
|
140
140
|
"div",
|
|
141
141
|
{
|
|
142
142
|
"data-testid": "task-status-indicator",
|
|
143
|
-
className: cx(styles$
|
|
143
|
+
className: cx(styles$3.inTaskStatusIndicator, indicatorClassname)
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
146
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.inTaskStatusLabel, children: t(($) => $[indicatorLabel]) })
|
|
147
147
|
] });
|
|
148
148
|
};
|
|
149
149
|
const header = "adyen-kyc-header";
|
|
@@ -160,7 +160,7 @@ const headerTitleSecondary = "adyen-kyc-header-title-secondary";
|
|
|
160
160
|
const headerDescription = "adyen-kyc-header-description";
|
|
161
161
|
const headerDescriptionPrimary = "adyen-kyc-header-description-primary";
|
|
162
162
|
const headerDescriptionSecondary = "adyen-kyc-header-description-secondary";
|
|
163
|
-
const styles$
|
|
163
|
+
const styles$2 = {
|
|
164
164
|
header,
|
|
165
165
|
headerMargin,
|
|
166
166
|
headerMarginSecondary,
|
|
@@ -177,9 +177,9 @@ const styles$3 = {
|
|
|
177
177
|
headerDescriptionSecondary
|
|
178
178
|
};
|
|
179
179
|
const alignmentStyles = {
|
|
180
|
-
left: styles$
|
|
181
|
-
center: styles$
|
|
182
|
-
right: styles$
|
|
180
|
+
left: styles$2.headerLeft,
|
|
181
|
+
center: styles$2.headerCenter,
|
|
182
|
+
right: styles$2.headerRight
|
|
183
183
|
};
|
|
184
184
|
const Header = ({
|
|
185
185
|
align = "left",
|
|
@@ -191,25 +191,25 @@ const Header = ({
|
|
|
191
191
|
}) => {
|
|
192
192
|
const { Slot, hasSlot } = defineSlots(children ?? [], ["actions", "description"]);
|
|
193
193
|
const HeadingElement = secondary ? "h2" : "h1";
|
|
194
|
-
const rootClassname = cx(styles$
|
|
195
|
-
[styles$
|
|
196
|
-
[styles$
|
|
194
|
+
const rootClassname = cx(styles$2.header, alignmentStyles[align], {
|
|
195
|
+
[styles$2.headerMargin]: !secondary,
|
|
196
|
+
[styles$2.headerMarginSecondary]: secondary
|
|
197
197
|
});
|
|
198
|
-
const titleClassname = cx(styles$
|
|
199
|
-
[styles$
|
|
200
|
-
[styles$
|
|
198
|
+
const titleClassname = cx(styles$2.headerTitle, {
|
|
199
|
+
[styles$2.headerTitlePrimary]: !secondary,
|
|
200
|
+
[styles$2.headerTitleSecondary]: secondary
|
|
201
201
|
});
|
|
202
|
-
const descriptionClassname = cx(styles$
|
|
203
|
-
[styles$
|
|
204
|
-
[styles$
|
|
202
|
+
const descriptionClassname = cx(styles$2.headerDescription, {
|
|
203
|
+
[styles$2.headerDescriptionPrimary]: !secondary,
|
|
204
|
+
[styles$2.headerDescriptionSecondary]: secondary
|
|
205
205
|
});
|
|
206
206
|
return /* @__PURE__ */ jsxs("header", { className: rootClassname, children: [
|
|
207
207
|
status && /* @__PURE__ */ jsx(TaskStatusIndicator, { taskStatus: status }),
|
|
208
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
208
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.headerContent, children: [
|
|
209
209
|
/* @__PURE__ */ jsx(HeadingElement, { className: titleClassname, children: title }),
|
|
210
210
|
(hasSlot("description") || description) && /* @__PURE__ */ jsx("div", { className: descriptionClassname, children: /* @__PURE__ */ jsx(Slot, { name: "description", children: description }) })
|
|
211
211
|
] }),
|
|
212
|
-
hasSlot("actions") && /* @__PURE__ */ jsx("div", { className: styles$
|
|
212
|
+
hasSlot("actions") && /* @__PURE__ */ jsx("div", { className: styles$2.headerActions, children: /* @__PURE__ */ jsx(StackLayout, { gap: "small", horizontal: true, children: /* @__PURE__ */ jsx(Slot, { name: "actions" }) }) })
|
|
213
213
|
] });
|
|
214
214
|
};
|
|
215
215
|
const list = "adyen-kyc-list";
|
|
@@ -224,7 +224,7 @@ const listItemsPaddingSmall = "adyen-kyc-list-items-padding-small";
|
|
|
224
224
|
const listItemsPaddingMedium = "adyen-kyc-list-items-padding-medium";
|
|
225
225
|
const listItemsPaddingLarge = "adyen-kyc-list-items-padding-large";
|
|
226
226
|
const listItemRowSeparator = "adyen-kyc-list-item-row-separator";
|
|
227
|
-
const styles$
|
|
227
|
+
const styles$1 = {
|
|
228
228
|
list,
|
|
229
229
|
listHeader,
|
|
230
230
|
listFooter,
|
|
@@ -248,27 +248,27 @@ const List = ({
|
|
|
248
248
|
}) => {
|
|
249
249
|
const childrenArray = toChildArray(children);
|
|
250
250
|
const listVariantStyles = {
|
|
251
|
-
plain: styles$
|
|
252
|
-
"grouped-primary": styles$
|
|
253
|
-
"grouped-secondary": styles$
|
|
251
|
+
plain: styles$1.listItemsPlain,
|
|
252
|
+
"grouped-primary": styles$1.listItemsGroupedPrimary,
|
|
253
|
+
"grouped-secondary": styles$1.listItemsGroupedSecondary
|
|
254
254
|
};
|
|
255
255
|
const listClassName = cx(
|
|
256
|
-
styles$
|
|
256
|
+
styles$1.listItems,
|
|
257
257
|
listVariantStyles[variant],
|
|
258
258
|
variant !== "plain" && {
|
|
259
|
-
[styles$
|
|
260
|
-
[styles$
|
|
261
|
-
[styles$
|
|
259
|
+
[styles$1.listItemsPaddingSmall]: padding === "small",
|
|
260
|
+
[styles$1.listItemsPaddingMedium]: padding === "medium",
|
|
261
|
+
[styles$1.listItemsPaddingLarge]: padding === "large"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
|
-
[styles$
|
|
264
|
+
[styles$1.listItemsPaddingNone]: padding === "none"
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
268
|
-
header2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
267
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.list, children: [
|
|
268
|
+
header2 && /* @__PURE__ */ jsx("div", { className: styles$1.listHeader, children: header2 }),
|
|
269
269
|
/* @__PURE__ */ jsx("ul", { className: listClassName, children: childrenArray.map((item) => {
|
|
270
|
-
const itemClassname = cx(styles$
|
|
271
|
-
[styles$
|
|
270
|
+
const itemClassname = cx(styles$1.listItem, {
|
|
271
|
+
[styles$1.listItemRowSeparator]: dividers
|
|
272
272
|
});
|
|
273
273
|
return (
|
|
274
274
|
// Content of <li /> will be unknown. Not including a key is preferred over
|
|
@@ -277,7 +277,7 @@ const List = ({
|
|
|
277
277
|
/* @__PURE__ */ jsx("li", { className: itemClassname, children: item })
|
|
278
278
|
);
|
|
279
279
|
}) }),
|
|
280
|
-
footer && /* @__PURE__ */ jsx("div", { className: styles$
|
|
280
|
+
footer && /* @__PURE__ */ jsx("div", { className: styles$1.listFooter, children: footer })
|
|
281
281
|
] });
|
|
282
282
|
};
|
|
283
283
|
const FormRouterContext = createContext(null);
|
|
@@ -632,7 +632,7 @@ const summaryListItemValue = "adyen-kyc-summary-list-item-value";
|
|
|
632
632
|
const summaryContentLegalCaption = "adyen-kyc-summary-content-legal-caption";
|
|
633
633
|
const summaryContentList = "adyen-kyc-summary-content-list";
|
|
634
634
|
const summaryContentLogo = "adyen-kyc-summary-content-logo";
|
|
635
|
-
const styles
|
|
635
|
+
const styles = {
|
|
636
636
|
summary,
|
|
637
637
|
summaryContent,
|
|
638
638
|
summaryList,
|
|
@@ -660,7 +660,7 @@ function Summary({
|
|
|
660
660
|
gotoForm,
|
|
661
661
|
labels,
|
|
662
662
|
problems,
|
|
663
|
-
trackNavigation
|
|
663
|
+
trackNavigation = noop,
|
|
664
664
|
omitted = {},
|
|
665
665
|
showFormHeader = true,
|
|
666
666
|
showSectionHeader = true,
|
|
@@ -686,15 +686,15 @@ function Summary({
|
|
|
686
686
|
{}
|
|
687
687
|
);
|
|
688
688
|
const formUtils = createFormUtils({ labels }, t);
|
|
689
|
-
const summarySectionHeader = (formName, formId) => /* @__PURE__ */ jsxs("header", { className: styles
|
|
690
|
-
/* @__PURE__ */ jsx("h2", { className: styles
|
|
689
|
+
const summarySectionHeader = (formName, formId) => /* @__PURE__ */ jsxs("header", { className: styles.summaryListHeader, children: [
|
|
690
|
+
/* @__PURE__ */ jsx("h2", { className: styles.summaryListHeaderTitle, children: formName }),
|
|
691
691
|
!omitted.keys?.includes(formId) && /* @__PURE__ */ jsx(
|
|
692
692
|
IconButton,
|
|
693
693
|
{
|
|
694
694
|
variant: "tertiary",
|
|
695
695
|
icon: "edit",
|
|
696
696
|
onClick: () => {
|
|
697
|
-
|
|
697
|
+
trackNavigation({
|
|
698
698
|
userEvents,
|
|
699
699
|
actionType: "edit",
|
|
700
700
|
toForm: formName,
|
|
@@ -715,7 +715,7 @@ function Summary({
|
|
|
715
715
|
});
|
|
716
716
|
return !useStructuredList2 ? /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
717
717
|
showSectionHeader && summarySectionHeader(formName, formId),
|
|
718
|
-
/* @__PURE__ */ jsx("dl", { className: styles
|
|
718
|
+
/* @__PURE__ */ jsx("dl", { className: styles.summaryList, children: Array.isArray(fieldData) ? fieldData.map((item) => renderBulletedListField(item)) : renderSummaryItems(fieldData, labelData) })
|
|
719
719
|
] }) : /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
720
720
|
showSectionHeader && summarySectionHeader(formName, formId),
|
|
721
721
|
/* @__PURE__ */ jsx(StructuredList, { items: structuredListItems })
|
|
@@ -754,18 +754,18 @@ function Summary({
|
|
|
754
754
|
});
|
|
755
755
|
return dataList;
|
|
756
756
|
};
|
|
757
|
-
const renderField = (label, value) => /* @__PURE__ */ jsxs("div", { className: styles
|
|
758
|
-
/* @__PURE__ */ jsx("dt", { className: styles
|
|
759
|
-
/* @__PURE__ */ jsx("dd", { className: styles
|
|
757
|
+
const renderField = (label, value) => /* @__PURE__ */ jsxs("div", { className: styles.summaryListItem, children: [
|
|
758
|
+
/* @__PURE__ */ jsx("dt", { className: styles.summaryListItemKey, children: label }),
|
|
759
|
+
/* @__PURE__ */ jsx("dd", { className: styles.summaryListItemValue, children: value })
|
|
760
760
|
] });
|
|
761
|
-
const renderBulletedListField = (item) => /* @__PURE__ */ jsx("ul", { className: styles
|
|
761
|
+
const renderBulletedListField = (item) => /* @__PURE__ */ jsx("ul", { className: styles.summaryContentList, children: /* @__PURE__ */ jsx("li", { children: item }) });
|
|
762
762
|
const renderSummaryItems = (formData = {}, labelData = {}) => {
|
|
763
763
|
if (!formData) return [];
|
|
764
764
|
if (formData?.idVerificationMethod === "instantVerification") {
|
|
765
765
|
return [
|
|
766
766
|
renderField(
|
|
767
767
|
i18n.get("verificationMethod"),
|
|
768
|
-
/* @__PURE__ */ jsx(Svg, { name: "onfido-logo", type: "image", className: styles
|
|
768
|
+
/* @__PURE__ */ jsx(Svg, { name: "onfido-logo", type: "image", className: styles.summaryContentLogo })
|
|
769
769
|
)
|
|
770
770
|
];
|
|
771
771
|
}
|
|
@@ -788,9 +788,9 @@ function Summary({
|
|
|
788
788
|
});
|
|
789
789
|
return dataList;
|
|
790
790
|
};
|
|
791
|
-
return /* @__PURE__ */ jsxs("div", { role: "region", className: styles
|
|
791
|
+
return /* @__PURE__ */ jsxs("div", { role: "region", className: styles.summary, children: [
|
|
792
792
|
showFormHeader && /* @__PURE__ */ jsx(Header, { title: t(($) => $["summary"]), description: t(($) => $["summaryDescription"]) }),
|
|
793
|
-
/* @__PURE__ */ jsxs("div", { className: styles
|
|
793
|
+
/* @__PURE__ */ jsxs("div", { className: styles.summaryContent, children: [
|
|
794
794
|
/* @__PURE__ */ jsx(
|
|
795
795
|
ErrorPanel,
|
|
796
796
|
{
|
|
@@ -801,8 +801,8 @@ function Summary({
|
|
|
801
801
|
}
|
|
802
802
|
),
|
|
803
803
|
renderSummaryContent(data, useStructuredList),
|
|
804
|
-
showLegalCaption && /* @__PURE__ */ jsx("div", { className: styles
|
|
805
|
-
showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", { className: styles
|
|
804
|
+
showLegalCaption && /* @__PURE__ */ jsx("div", { className: styles.summaryContentLegalCaption, children: t(($) => $["summaryLegalCaption"]) }),
|
|
805
|
+
showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", { className: styles.summaryContentLegalCaption, children: [
|
|
806
806
|
/* @__PURE__ */ jsx("p", { children: t(($) => $["summaryTaxExemptionLegalCaptionTitle"]) }),
|
|
807
807
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
808
808
|
/* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_1"]) }),
|
|
@@ -813,188 +813,6 @@ function Summary({
|
|
|
813
813
|
] })
|
|
814
814
|
] });
|
|
815
815
|
}
|
|
816
|
-
const trackNavigation = ({
|
|
817
|
-
userEvents,
|
|
818
|
-
actionType,
|
|
819
|
-
toForm,
|
|
820
|
-
label,
|
|
821
|
-
returnValue,
|
|
822
|
-
additionalTrackingParams
|
|
823
|
-
}) => {
|
|
824
|
-
userEvents.addPageEvent("Clicked button", {
|
|
825
|
-
actionType,
|
|
826
|
-
toPage: toForm,
|
|
827
|
-
label,
|
|
828
|
-
returnValue,
|
|
829
|
-
...additionalTrackingParams
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
const getOpeningStep = (forms, remediationActions) => {
|
|
833
|
-
if (remediationActions && Object.keys(remediationActions).length > 0) {
|
|
834
|
-
const allRemediationActions = Object.values(remediationActions).flat().filter((rem) => rem.forms?.length > 0);
|
|
835
|
-
if (allRemediationActions.length === 1 && allRemediationActions[0]?.forms.length === 1) {
|
|
836
|
-
const form = forms.find((form2) => form2?.formId === allRemediationActions[0]?.forms[0]);
|
|
837
|
-
if (form) return form;
|
|
838
|
-
}
|
|
839
|
-
return forms[forms.length - 1];
|
|
840
|
-
}
|
|
841
|
-
return forms[0];
|
|
842
|
-
};
|
|
843
|
-
const useFormComposer = ({
|
|
844
|
-
problems,
|
|
845
|
-
navigationTrackingParams,
|
|
846
|
-
forms,
|
|
847
|
-
externalBackClick,
|
|
848
|
-
onSubmit,
|
|
849
|
-
triggerValidation
|
|
850
|
-
}) => {
|
|
851
|
-
const userEvents = useAnalyticsContext();
|
|
852
|
-
const [shouldValidate, setShouldValidate] = useState(false);
|
|
853
|
-
const [activeForm, setActiveForm] = useState(forms[0]);
|
|
854
|
-
const isFormSummaryStep = (form) => form.formId === summaryStep.formId;
|
|
855
|
-
const getFormIndex = (formId) => forms.findIndex((form) => form.formId === formId);
|
|
856
|
-
const currentStep = getFormIndex(activeForm.formId);
|
|
857
|
-
const totalSteps = forms.length;
|
|
858
|
-
const isFinalStep = currentStep === totalSteps - 1;
|
|
859
|
-
const isFirstStep = currentStep === 0;
|
|
860
|
-
const firstStepId = forms[0]?.formId;
|
|
861
|
-
useEffect(() => {
|
|
862
|
-
setActiveForm(
|
|
863
|
-
(activeForm2) => forms.find(({ formId }) => formId === activeForm2.formId) ?? activeForm2
|
|
864
|
-
);
|
|
865
|
-
}, [forms]);
|
|
866
|
-
useEffect(() => {
|
|
867
|
-
userEvents.updateSharedEventProperties({ page: activeForm?.formName });
|
|
868
|
-
}, [activeForm?.formName]);
|
|
869
|
-
useEffect(() => {
|
|
870
|
-
const openingStep = getOpeningStep(forms, problems?.remediationActions);
|
|
871
|
-
setActiveForm(openingStep);
|
|
872
|
-
}, [firstStepId, problems?.remediationActions]);
|
|
873
|
-
const gotoFormByFormIndex = (nextFormIndex, currentForms) => {
|
|
874
|
-
setActiveForm(currentForms?.[nextFormIndex] ?? forms[nextFormIndex]);
|
|
875
|
-
};
|
|
876
|
-
const trackSubmitClick = () => {
|
|
877
|
-
trackNavigation({
|
|
878
|
-
userEvents,
|
|
879
|
-
actionType: "submit",
|
|
880
|
-
label: "submit",
|
|
881
|
-
additionalTrackingParams: navigationTrackingParams
|
|
882
|
-
});
|
|
883
|
-
};
|
|
884
|
-
const handleNextClick = async (updatedForms) => {
|
|
885
|
-
const currentForms = updatedForms ?? forms;
|
|
886
|
-
if (isFormSummaryStep(activeForm)) {
|
|
887
|
-
trackSubmitClick();
|
|
888
|
-
onSubmit();
|
|
889
|
-
return;
|
|
890
|
-
}
|
|
891
|
-
const isAsyncValidationValid = await triggerValidation?.(activeForm.formId) ?? true;
|
|
892
|
-
if (!activeForm.isValid || !isAsyncValidationValid) {
|
|
893
|
-
setShouldValidate(true);
|
|
894
|
-
trackNavigation({
|
|
895
|
-
userEvents,
|
|
896
|
-
actionType: "next",
|
|
897
|
-
label: "next",
|
|
898
|
-
returnValue: "validation error",
|
|
899
|
-
additionalTrackingParams: navigationTrackingParams
|
|
900
|
-
});
|
|
901
|
-
return;
|
|
902
|
-
}
|
|
903
|
-
if (isFinalStep) {
|
|
904
|
-
trackSubmitClick();
|
|
905
|
-
onSubmit();
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
setShouldValidate(false);
|
|
909
|
-
const toFormIndex = currentStep + 1;
|
|
910
|
-
gotoFormByFormIndex(toFormIndex, currentForms);
|
|
911
|
-
trackNavigation({
|
|
912
|
-
userEvents,
|
|
913
|
-
actionType: "next",
|
|
914
|
-
toForm: currentForms[toFormIndex]?.formName,
|
|
915
|
-
label: "next",
|
|
916
|
-
returnValue: "success",
|
|
917
|
-
additionalTrackingParams: navigationTrackingParams
|
|
918
|
-
});
|
|
919
|
-
};
|
|
920
|
-
const handleBackClick = () => {
|
|
921
|
-
if (currentStep > 0) {
|
|
922
|
-
const toForm = forms[currentStep - 1];
|
|
923
|
-
setActiveForm(toForm);
|
|
924
|
-
trackNavigation({
|
|
925
|
-
userEvents,
|
|
926
|
-
actionType: "back",
|
|
927
|
-
toForm: toForm?.formName,
|
|
928
|
-
label: "back",
|
|
929
|
-
additionalTrackingParams: navigationTrackingParams
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
const backClickHandler = isFirstStep ? externalBackClick : handleBackClick;
|
|
934
|
-
return {
|
|
935
|
-
handleBackClick: backClickHandler,
|
|
936
|
-
handleNextClick,
|
|
937
|
-
gotoFormByFormIndex,
|
|
938
|
-
activeForm,
|
|
939
|
-
shouldValidate,
|
|
940
|
-
setShouldValidate,
|
|
941
|
-
steps: { current: currentStep, total: totalSteps }
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
const isTruthyValidator = {
|
|
945
|
-
validate: (value) => !!value,
|
|
946
|
-
modes: ["blur"],
|
|
947
|
-
errorMessage: "fieldIsRequired"
|
|
948
|
-
};
|
|
949
|
-
const isNotEmptyValidator = {
|
|
950
|
-
validate: (value) => !isEmpty(value),
|
|
951
|
-
modes: ["blur"],
|
|
952
|
-
errorMessage: "fieldIsRequired"
|
|
953
|
-
};
|
|
954
|
-
const logger = createLogger();
|
|
955
|
-
function FormRouterContextProvider({ children, forms, setFormIndex }) {
|
|
956
|
-
const contextValue = useMemo(
|
|
957
|
-
() => ({
|
|
958
|
-
setFormIndex,
|
|
959
|
-
goToFormByFieldName: (fieldName) => {
|
|
960
|
-
if (fieldName === "idDocument") {
|
|
961
|
-
fieldName = "idVerificationMethod";
|
|
962
|
-
}
|
|
963
|
-
const formIndex = forms.findIndex(
|
|
964
|
-
(form) => form?.fields?.some((field) => field === fieldName)
|
|
965
|
-
);
|
|
966
|
-
if (formIndex > -1) {
|
|
967
|
-
setFormIndex(formIndex);
|
|
968
|
-
} else {
|
|
969
|
-
logger.error("No form was found to have that field so form navigation failed.");
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
}),
|
|
973
|
-
[forms, setFormIndex]
|
|
974
|
-
);
|
|
975
|
-
return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
|
|
976
|
-
}
|
|
977
|
-
const getRequiredForms = (forms, requiredFields, optionalFields, skipSummary) => {
|
|
978
|
-
const requiredForms = Object.values(forms).filter(({ formId }) => {
|
|
979
|
-
if (requiredFields || optionalFields) {
|
|
980
|
-
return Boolean(requiredFields?.[formId]?.length) || Boolean(optionalFields?.[formId]?.length);
|
|
981
|
-
}
|
|
982
|
-
return true;
|
|
983
|
-
});
|
|
984
|
-
if (skipSummary) {
|
|
985
|
-
return requiredForms;
|
|
986
|
-
}
|
|
987
|
-
return [...requiredForms, summaryStep];
|
|
988
|
-
};
|
|
989
|
-
const addValidityToForms = (forms, formValidity, problems) => forms.map(({ formId, formName, formHeading, formDescription, fields }) => ({
|
|
990
|
-
formId,
|
|
991
|
-
formName,
|
|
992
|
-
formHeading,
|
|
993
|
-
formDescription,
|
|
994
|
-
fields,
|
|
995
|
-
isValid: formValidity?.[formId] ?? false,
|
|
996
|
-
hasServerValidationErrors: Boolean(problems?.validationErrors?.[formId])
|
|
997
|
-
}));
|
|
998
816
|
function getFormProps(props, innerFormId) {
|
|
999
817
|
if (!innerFormId) {
|
|
1000
818
|
return null;
|
|
@@ -1137,26 +955,6 @@ function getFieldProps(props, innerFormFields) {
|
|
|
1137
955
|
}
|
|
1138
956
|
return null;
|
|
1139
957
|
}
|
|
1140
|
-
const link = "adyen-kyc-link";
|
|
1141
|
-
const linkDefault = "adyen-kyc-link-default";
|
|
1142
|
-
const linkInline = "adyen-kyc-link-inline";
|
|
1143
|
-
const styles = {
|
|
1144
|
-
link,
|
|
1145
|
-
linkDefault,
|
|
1146
|
-
linkInline
|
|
1147
|
-
};
|
|
1148
|
-
const Link = ({ children, external = false, href, inline = false }) => {
|
|
1149
|
-
const rel = external ? "external noopener noreferrer" : void 0;
|
|
1150
|
-
const target = external ? "_blank" : "_self";
|
|
1151
|
-
const className = cx(styles.link, {
|
|
1152
|
-
[styles.linkInline]: inline,
|
|
1153
|
-
[styles.linkDefault]: !inline
|
|
1154
|
-
});
|
|
1155
|
-
return /* @__PURE__ */ jsxs("a", { className, href, rel, target, children: [
|
|
1156
|
-
children,
|
|
1157
|
-
external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })
|
|
1158
|
-
] });
|
|
1159
|
-
};
|
|
1160
958
|
const Radio = ({
|
|
1161
959
|
id,
|
|
1162
960
|
value,
|
|
@@ -1231,30 +1029,23 @@ function CountryField({
|
|
|
1231
1029
|
export {
|
|
1232
1030
|
CountryField as C,
|
|
1233
1031
|
ErrorPanel as E,
|
|
1234
|
-
|
|
1032
|
+
FormRouterContext as F,
|
|
1235
1033
|
Header as H,
|
|
1236
1034
|
List as L,
|
|
1237
1035
|
Radio as R,
|
|
1238
1036
|
StackLayout as S,
|
|
1239
1037
|
UnincorporatedPartnershipMemberTypes as U,
|
|
1240
|
-
|
|
1241
|
-
|
|
1038
|
+
COUNTRY_FIELD as a,
|
|
1039
|
+
getRoleName as b,
|
|
1242
1040
|
createFormUtils as c,
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
getRoleTagVariant as j,
|
|
1250
|
-
isNotEmptyValidator as k,
|
|
1251
|
-
isTruthyValidator as l,
|
|
1041
|
+
summaryStep as d,
|
|
1042
|
+
Summary as e,
|
|
1043
|
+
getRoleTagVariant as f,
|
|
1044
|
+
getFieldProps as g,
|
|
1045
|
+
getFormProps as h,
|
|
1046
|
+
getNestedOuterFormPropsFromOuterFormProps as i,
|
|
1252
1047
|
mergeFieldMetadataIntoProps as m,
|
|
1253
|
-
getFormProps as n,
|
|
1254
|
-
useFormRouterContext as o,
|
|
1255
|
-
getNestedOuterFormPropsFromOuterFormProps as p,
|
|
1256
1048
|
roleMetadata as r,
|
|
1257
1049
|
summaryItem as s,
|
|
1258
|
-
|
|
1259
|
-
useFormComposer as u
|
|
1050
|
+
useFormRouterContext as u
|
|
1260
1051
|
};
|