@adyen/kyc-components 4.25.0-beta.2 → 4.26.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-DKuivE0m.js → 4-people-CAxQpi_3.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-BKWCrZdZ.js → AcceptTermsOfServiceWorkflow-eOcHITwQ.js} +4 -4
- package/dist/{Accordion-D_DOaWj2.js → Accordion-BAdwrgCR.js} +4 -24
- package/dist/{AccountSetupRejected-BtcxtVKO.js → AccountSetupRejected-Jii0yaLC.js} +3 -4
- package/dist/{NodeRenderer-Z10yF5MV.js → AdaptiveWorkflow-B6SIOcbU.js} +87 -34
- package/dist/{AdaptiveWorkflowComponent-C4Q6NVtv.js → AdaptiveWorkflowComponent-we5_UgiI.js} +32 -33
- package/dist/{AddressFields-CFG2_P0x.js → AddressFields-Qq_8lUYz.js} +21 -27
- package/dist/{Avatar-k5lNd5KG.js → Avatar-C2zeqSSB.js} +10 -8
- package/dist/{BusinessFinancingDropin-BjTnxk__.js → BusinessFinancingDropin-gMa--znJ.js} +61 -71
- package/dist/{BusinessFinancingPage-C4dAslMp.js → BusinessFinancingPage-BIdRvI7h.js} +7 -7
- package/dist/{BusinessRegistrationNumberField-Dz1uGvRQ.js → BusinessRegistrationNumberField-Vr3KBWJD.js} +7 -8
- package/dist/{BusinessRegistrationNumberFieldGroup-BFPrFa1_.js → BusinessRegistrationNumberFieldGroup-DLGAFcRN.js} +7 -8
- package/dist/{BusinessTypeSelectionPage-DeWD37jR.js → BusinessTypeSelectionPage-9B2SxGcV.js} +16 -17
- package/dist/{Button-BxdC8cVB.js → Button-Dwr6jvJZ.js} +2 -2
- package/dist/Checkbox-zAGhz7rC.js +114 -0
- package/dist/{ComponentGroup-S6c3rVoX.js → ComponentGroup-DH_CH6bM.js} +4 -4
- package/dist/{ConstitutionalDocument-CNNhKkzD.js → ConstitutionalDocument-DMNlJJzp.js} +25 -28
- package/dist/{ContactDetails-_HCOKj3-.js → ContactDetails-kwe-LwUD.js} +8 -13
- package/dist/{ContextGuidance-v-d9RQuo.js → ContextGuidance-1tQjHxTm.js} +3 -3
- package/dist/CountryField-BkNURmjP.js +56 -0
- package/dist/{Currency-3Z9i_AhY.js → Currency-BjBbhCzV.js} +10 -12
- package/dist/{CustomerSupport-B0UJHtAq.js → CustomerSupport-CT4s3fyC.js} +17 -17
- package/dist/DateField-CJeu0KoS.js +73 -0
- package/dist/{DebugModal-BxebnUyQ.js → DebugModal-YjFFNeOM.js} +12 -17
- package/dist/{DecisionMakerDetails-RF9BoMYF.js → DecisionMakerDetails-B4aCl2kl.js} +21 -24
- package/dist/{DecisionMakerDetailsPage-CGOs2Ubt.js → DecisionMakerDetailsPage-Dg_RbdxY.js} +43 -40
- package/dist/{DecisionMakers-qRoXooYA.js → DecisionMakers-Cq3yVb54.js} +55 -61
- package/dist/{DetailViewLayout-DNCGEd7b.js → DetailViewLayout-DJgAzdlZ.js} +8 -6
- package/dist/{Dropzone-cewfCgXt.js → Dropzone-Cgqct7ux.js} +8 -8
- package/dist/EmailField-CVwmsS5d.js +61 -0
- package/dist/{EmbeddedStatus-Keg7UojY.js → EmbeddedStatus-4YjyzkcD.js} +4 -4
- package/dist/{EndStateLayout-GHEYl82p.js → EndStateLayout-C5Pqler-.js} +3 -3
- package/dist/{EntityAssociation-BPtrqdQR.js → EntityAssociation-DzNk5XbC.js} +7 -7
- package/dist/{ErrorPanel-PefRq1M4.js → ErrorPanel-DtbpEeJk.js} +24 -19
- package/dist/{GlobalEntryModal-CTGSdkW7.js → GlobalEntryModal-D9rqts-z.js} +203 -78
- package/dist/{GlobalEntryPage-CdGXV-QZ.js → GlobalEntryPage-OTglAvMX.js} +10 -10
- package/dist/Icon-_YUEZg1p.js +175 -0
- package/dist/{IdentityNumber-Cz6-4YcM.js → IdentityNumber-9SwAYweE.js} +10 -12
- package/dist/{IdentityNumberFieldGroup-D2PV_4A5.js → IdentityNumberFieldGroup-B9SxTHei.js} +16 -14
- package/dist/{IdentityScreeningWorkflow-mbcaIctn.js → IdentityScreeningWorkflow-C-nLWlJS.js} +16 -16
- package/dist/{Image-Bn_Yyuof.js → Image-CxnjHtP1.js} +1 -1
- package/dist/{IndividualDropin-D1UOavsw.js → IndividualDropin-BpFRq3S4.js} +266 -281
- package/dist/{IndustryCodeFieldGroup-DmOqxPIg.js → IndustryCodeFieldGroup-CEWUFYmK.js} +9 -10
- package/dist/{InputDate-B0RNGCq2.js → InputDate-DjUm9FiK.js} +6 -29
- package/dist/InputDate.utils-D4Ov0KIl.js +25 -0
- package/dist/{InputGroup-B4U3QVEp.js → InputGroup-Bv005B22.js} +7 -6
- package/dist/{InputText-CwPK55J0.js → InputText-DtoBABE5.js} +42 -4
- package/dist/{Introduction-DFW6EaLG.js → Introduction-GW5FJSTJ.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-hdQc0T7D.js → InvitedDecisionMakerComponent-tahktJVa.js} +45 -45
- package/dist/{JpAddressFields-CzGnXBMk.js → JpAddressFields-CpRh_gFz.js} +13 -13
- package/dist/{LegalCompanyNameField-CV2EgRCw.js → LegalCompanyNameField-Coff77lN.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BiAfoErR.js → LegalRepresentativeDetailsPage-CXMGtJvO.js} +35 -34
- package/dist/{Link-C3dYYTm_.js → Link-D0Yqc2r0.js} +7 -6
- package/dist/{List-ywoRPg-q.js → List-qvNxW9lm.js} +3 -2
- package/dist/{ListItem-CHGVbHhB.js → ListItem-DY-qq1lS.js} +29 -4
- package/dist/{Loader-BVtlpTeo.js → Loader-BDaKGf77.js} +1 -1
- package/dist/{Modal-Dq44ZUNN.js → Modal-Dx_NESnV.js} +25 -5
- package/dist/{Name-BfQr3et_.js → Name-CrLaukRh.js} +5 -5
- package/dist/NumberField-CS93IGoS.js +60 -0
- package/dist/{PatriotActDisclosure-BNAsJXEL.js → PatriotActDisclosure-C3jKKi6y.js} +11 -12
- package/dist/{PayoutDetailsDropin-NyizAaYy.js → PayoutDetailsDropin-BxOJ9P17.js} +163 -158
- package/dist/{PayoutDetailsPage-NM0Eqf4K.js → PayoutDetailsPage-BxaCk685.js} +10 -9
- package/dist/{Review-CzgmjDcZ.js → Review-C81Qsrkg.js} +25 -24
- package/dist/{RootBusinessDetailsPage-B1a0hu8F.js → RootBusinessDetailsPage-CwRyRbEv.js} +9 -7
- package/dist/{RootBusinessLinesPage-Dv1uT7OS.js → RootBusinessLinesPage-C3GZQ-KO.js} +48 -53
- package/dist/{RootIndividualDetailsPage-vkjzmyF7.js → RootIndividualDetailsPage-CvVVlkJI.js} +42 -39
- package/dist/{Select-prMx73V9.js → Select-AiAom5JL.js} +330 -19
- package/dist/{SignPCIComponent-CIkdVNH2.js → SignPCIComponent-Dmr9dDYB.js} +19 -23
- package/dist/{SingpassSelection-B6NONcr4.js → SingpassSelection-BXHvwmgp.js} +7 -7
- package/dist/Skeleton-7xDqhYr-.js +30 -0
- package/dist/{SoleProprietorshipPage-BmNs557C.js → SoleProprietorshipPage-DKL4anrn.js} +7 -7
- package/dist/{SourceOfFundsPage-B5nZ3MjN.js → SourceOfFundsPage-2dxP6dlL.js} +46 -58
- package/dist/{SourceOfFundsWorkflow-IkLZG9JI.js → SourceOfFundsWorkflow-Didn1fld.js} +4 -4
- package/dist/{StackLayout-IUdNMDgW.js → StackLayout-J1ynSX-P.js} +6 -5
- package/dist/{utils-lIizXlcC.js → StateField-BoIVEnaZ.js} +89 -3
- package/dist/{Step-BJh4XZae.js → Step-CiwqdcuY.js} +19 -13
- package/dist/SummarySection-B6A_AT1m.js +60 -0
- package/dist/{Task-yQcY16x1.js → Task-CJDcviJ6.js} +8 -8
- package/dist/{TaskGroup-C9iFHpux.js → TaskGroup-BXkrbyTG.js} +5 -5
- package/dist/{TaskListItem-ChlmCIfF.js → TaskListItem-CQXvVRWG.js} +11 -11
- package/dist/{TaskStepperContextProvider-I7talGDO.js → TaskStepperContextProvider-9wlnwii7.js} +1 -1
- package/dist/{TaskVerificationStatus-Bd5Eftf2.js → TaskVerificationStatus-zoxTZ2mt.js} +3 -3
- package/dist/{TaxInformationFieldGroup-Dq0J9rBU.js → TaxInformationFieldGroup-CnaGMge9.js} +19 -18
- package/dist/{TaxReportingDropin-Cq3gBWtp.js → TaxReportingDropin-F4e4CxiC.js} +22 -26
- package/dist/{TaxReportingWorkflow-flQPRAPy.js → TaxReportingWorkflow-Caa_klQR.js} +4 -4
- package/dist/{TermsOfServiceManagement-BM5K4cpw.js → TermsOfServiceManagement-5x2f0QgC.js} +21 -30
- package/dist/{TextArea-C12oXMzX.js → TextArea-eJQFkYyd.js} +5 -5
- package/dist/TextField-Ca7rT4tr.js +73 -0
- package/dist/{TrustDetailsPage-z7s9FxVC.js → TrustDetailsPage-D3RkKlpJ.js} +59 -67
- package/dist/{TrustMemberCompanyPage-tU2HTiDG.js → TrustMemberCompanyPage-BvBxQg7D.js} +8 -8
- package/dist/{TrustMemberIndividualPage-BLBtnoSq.js → TrustMemberIndividualPage-D4idWK8j.js} +35 -34
- package/dist/{TrustMemberRoleAndTypePage-DIwrtOWr.js → TrustMemberRoleAndTypePage-CyKm_knd.js} +23 -30
- package/dist/{TrustMembersOverview-CowTgfIb.js → TrustMembersOverview-BnP0wZSf.js} +18 -22
- package/dist/{UboTaskItem-CZLDzQil.js → UboTaskItem-Degn5OyC.js} +8 -8
- package/dist/{UnincorporatedPartnershipIndividualPage-BT0j54-O.js → UnincorporatedPartnershipIndividualPage-Bgb4oCRJ.js} +35 -34
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js → UnincorporatedPartnershipMemberCompanyPage-T6SOH3Mv.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js → UnincorporatedPartnershipMemberRoleAndTypePage-BVfav_Z_.js} +14 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-5w1BrDMI.js → UnincorporatedPartnershipMembersOverview-DPW48_Lv.js} +11 -14
- package/dist/VerificationErrorAlert-q1SEqBXx.js +68 -0
- package/dist/WebsiteField-CnOU49Hn.js +62 -0
- package/dist/{Workflow-CF-HUIjR.js → Workflow-D298oRt0.js} +9 -9
- package/dist/{accountHolderUtils-CAu4V0ed.js → accountHolderUtils-CLuKAgaj.js} +3 -3
- package/dist/adyen-business-financing.js +8 -9
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +8 -9
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +61 -59
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -7
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +16 -22
- package/dist/adyen-verification-status.js +7 -9
- package/dist/{arrow-right-D2hul7WG.js → arrow-right-BwP9nNDE.js} +2 -2
- package/dist/bafinUtils-CsDthERR.js +3548 -0
- package/dist/{bag-CRRS1aow.js → bag-Cnk9dcZg.js} +2 -2
- package/dist/{bank-BoirCLLW.js → bank-UssyP-aG.js} +2 -2
- package/dist/bg-BG-C7z9VtPy.js +7 -0
- package/dist/{bin-BOmfqfrr.js → bin--Ft4cPCj.js} +2 -2
- package/dist/{capital-DTjbiurV.js → capital-BbOFhTHY.js} +2 -2
- package/dist/{cash-stack-7KpYpBek.js → cash-stack-LTzc8hQZ.js} +2 -2
- package/dist/{certificate-BPuoJ6Ip.js → certificate-CswNcwlI.js} +2 -2
- package/dist/{checkmark-BiSLf8M1.js → checkmark-DH1abKZn.js} +2 -2
- package/dist/{checkmark-circle-Ams7bSve.js → checkmark-circle-VWM-JsI6.js} +2 -2
- package/dist/{checkmark-circle-fill-_p4ss4ac.js → checkmark-circle-fill-AuW2DQDT.js} +2 -2
- package/dist/{checkmark-small-3bw4ftPV.js → checkmark-small-B6vsnsSO.js} +2 -2
- package/dist/{chevron-down-GgZawvoy.js → chevron-down-BGAMP7CF.js} +2 -2
- package/dist/{chevron-left-TeZTTvo5.js → chevron-left-EjFIt8Cd.js} +2 -2
- package/dist/{chevron-right-Cg8XlTxx.js → chevron-right-B5zb9mkt.js} +2 -2
- package/dist/{chevron-up-COQUTli0.js → chevron-up-DZiittpJ.js} +2 -2
- package/dist/{circle-CypWzg83.js → circle-CygvxRY_.js} +2 -2
- package/dist/{circle-small-filled-DfdK2A35.js → circle-small-filled-PeElhgJU.js} +2 -2
- package/dist/{clock-DmfGJ2r9.js → clock-CQXEE5jK.js} +2 -2
- package/dist/{coins-CBvbB8_X.js → coins-C7syygUR.js} +2 -2
- package/dist/{constants-DAb_IqC6.js → constants-Dvga6KjU.js} +7 -8
- package/dist/{contract-D1_RJ_xh.js → contract-BWEAd7e-.js} +2 -2
- package/dist/{countries-BGMTpyJv.js → countries-ZMuvRtQR.js} +1 -1
- package/dist/{country-BEZkohEO.js → country-WYlusjTL.js} +2 -2
- package/dist/{cross-circle-fill-CUXdo1x-.js → cross-circle-fill-Bxj_fgQE.js} +2 -2
- package/dist/cross-circle-fill-small-DwUKcL9P.js +20 -0
- package/dist/{cross-BORHADVQ.js → cross-vK6qh9R0.js} +2 -2
- package/dist/cs-CZ-B_u3kWRS.js +7 -0
- package/dist/da-DK-s_nCUhFO.js +7 -0
- package/dist/de-DE-5lHcZmT6.js +7 -0
- package/dist/{decisionMakerRoles-JEb0ON4e.js → decisionMakerRoles-DA8MK9Dh.js} +2 -2
- package/dist/{document-1-qvV57JdS.js → document-1-BPWF8zKf.js} +2 -2
- package/dist/{document-person-DiJ7M8-D.js → document-person-DVRFNq7g.js} +2 -2
- package/dist/{documentUtils-CxjFpoJB.js → documentUtils-6K3LdjjN.js} +6 -4
- package/dist/{download-Ca4w0Yfr.js → download-DfdpoHdN.js} +2 -2
- package/dist/dropinUtils-CSlRmPSn.js +2572 -0
- package/dist/{edit-1-D8VhDchs.js → edit-1-BgVB06zI.js} +2 -2
- package/dist/el-GR-DTaQeK-A.js +7 -0
- package/dist/{entityAssociationUtil-CY0grcyH.js → entityAssociationUtil-BlfcBl3i.js} +1 -1
- package/dist/{error-DrzrPjvf.js → error-DjErFfKK.js} +3 -3
- package/dist/es-ES-tZMJvO6B.js +7 -0
- package/dist/es-LA-C0x1nQUQ.js +7 -0
- package/dist/et-EE-BqB-3lW_.js +7 -0
- package/dist/{external-link-Dy4le-8Q.js → external-link-BbXGAtFE.js} +2 -2
- package/dist/fi-FI-BpwWFhLW.js +7 -0
- package/dist/{form-rules-DhuNdiqF.js → form-rules-HzaYJh36.js} +90 -5
- package/dist/{formatValidationError-z2D5oU1e.js → formatValidationError-D3vBdIym.js} +2 -2
- package/dist/fr-FR-DMPXwPYV.js +7 -0
- package/dist/{getDefaultRegistrationNumberType-BNO2BcfK.js → getDefaultRegistrationNumberType-CiEvyeR9.js} +5 -7
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-CxtXJ0-P.js} +23 -5
- package/dist/{getName-DgxRqagk.js → getName-Cii7OyRd.js} +2 -2
- package/dist/{getProblemsForEntity-BY_voJ99.js → getProblemsForEntity-mdb3Bfpj.js} +3 -3
- package/dist/{getTrustedDecisionMakers-Ta-pURcL.js → getTrustedDecisionMakers-D89oYOLp.js} +2 -2
- package/dist/getValidationError-DvQgc-X3.js +19 -0
- package/dist/{gift-Bs_mAgul.js → gift-BjS6ErNG.js} +2 -2
- package/dist/{graph-Co0JhGiY.js → graph-B8rX9eXr.js} +2 -2
- package/dist/{graph-up-DIvH9haf.js → graph-up-Dwaq7upe.js} +2 -2
- package/dist/{headquarter-BESfDGKh.js → headquarter-CXwws_UP.js} +2 -2
- package/dist/{hotel-Vne7G5M6.js → hotel-CD5Lv9P7.js} +2 -2
- package/dist/hr-HR-D5kV_w60.js +7 -0
- package/dist/{http-DsJtugN1.js → http-C8rt2BZk.js} +5 -4
- package/dist/hu-HU-Bl1dnZfO.js +7 -0
- package/dist/{image-BQM21XCk.js → image-BTE2a8ZV.js} +2 -2
- package/dist/{info-DExoPRH5.js → info-BTc0bCCM.js} +2 -2
- package/dist/{info-filled-11KMeUso.js → info-filled-DhYinieW.js} +2 -2
- package/dist/it-IT-DiuPLWbr.js +7 -0
- package/dist/ja-JP-COBWjdXk.js +7 -0
- package/dist/{legalArrangementUtils-C68JdH6I.js → legalArrangementUtils-Crgt_L7h.js} +1 -1
- package/dist/{location-zRH5zJ8c.js → location-CwE3Q0gg.js} +2 -2
- package/dist/lt-LT-D9Pum2_8.js +7 -0
- package/dist/lv-LV-DDcLP43G.js +7 -0
- package/dist/{mail-i1-zg-cv.js → mail-CIeugZTd.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js → mapAddressLocalizationToJpAddressSchema-BLOAhwWM.js} +2 -2
- package/dist/{mapExistingFile-RrS8dCpX.js → mapExistingFile-BXfeQxev.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js → mapJpAddressSchemaToAddressLocalizations-cseKFm-l.js} +16 -15
- package/dist/{mapLegalEntityToIndividualSchema-DtT3pcZJ.js → mapLegalEntityToIndividualSchema-DvGFy20Z.js} +12 -13
- package/dist/{mapTransferInstrumentToPayoutAccount-BpXU-nP1.js → mapTransferInstrumentToPayoutAccount-Cq7PMPOa.js} +4 -4
- package/dist/{minus-circle-filled-CxUdRO8J.js → minus-circle-filled-96DZCdcJ.js} +2 -2
- package/dist/nl-NL-CBRRvqAY.js +7 -0
- package/dist/no-NO-C9lYR_fQ.js +7 -0
- package/dist/{options-horizontal-D86T_xAF.js → options-horizontal-BU9r-Xx3.js} +2 -2
- package/dist/{partner-Dje0ykF6.js → partner-C1SWc0pB.js} +2 -2
- package/dist/{pay-by-link-plane-DAiddPu6.js → pay-by-link-plane-xK4Zkol0.js} +2 -2
- package/dist/{payout-DKiGv3F9.js → payout-zGf0LNbo.js} +2 -2
- package/dist/{pdf-CC8vqpTo.js → pdf-Bbs3Ji9v.js} +157 -174
- package/dist/{pdf.worker.min-CdKJICZZ.js → pdf.worker.min-DTQpK-0h.js} +67 -58
- package/dist/{person-DgALGIIz.js → person-xTKhpEGR.js} +2 -2
- package/dist/pl-PL-CZST_1gV.js +7 -0
- package/dist/{plus-DlQKP2C9.js → plus-Cm_dWRpB.js} +2 -2
- package/dist/{plus-circle-filled-BntUOVIJ.js → plus-circle-filled-Df77eidx.js} +2 -2
- package/dist/{processCapabilities-CWE5UFt8.js → processCapabilities-FL4-KAbd.js} +7 -9
- package/dist/{processValidationErrors-CFU1x_1n.js → processValidationErrors-Cn-RYAun.js} +4 -4
- package/dist/pt-BR-C32QroLH.js +7 -0
- package/dist/pt-PT-ByfmK1XA.js +7 -0
- package/dist/{recurring-DZgT_ekJ.js → recurring-BfwVHJ2Z.js} +2 -2
- package/dist/resolveEnvironment-D8-1H8bU.js +2516 -0
- package/dist/{revenue-accelerate-aMLYFVW6.js → revenue-accelerate-ClN0cx7Z.js} +2 -2
- package/dist/ro-RO-YkglLwfY.js +7 -0
- package/dist/{save-uDNye08N.js → save-QK2A-teG.js} +2 -2
- package/dist/{search-0OS6oe8N.js → search-DVSyT7Q7.js} +2 -2
- package/dist/{uppercase-DvjwUM0n.js → sharedValidators-DODW7kuK.js} +5 -3
- package/dist/{show-BWoS9-Y1.js → show-BRWLIRSA.js} +2 -2
- package/dist/sk-SK-BYRIVzdY.js +7 -0
- package/dist/sl-SI-Cjub_bfF.js +7 -0
- package/dist/{solution-payments-BMal7uJZ.js → solution-payments-BZZceFVV.js} +2 -2
- package/dist/{store-N7ZA4FKy.js → store-DLKKLXhn.js} +2 -2
- package/dist/style.css +1418 -1157
- package/dist/styles-DYaAeu4q.js +1418 -1157
- package/dist/sv-SE-1re-9Lp8.js +7 -0
- package/dist/{terminal-1-0RlQpbUC.js → terminal-1-CpAyEdjO.js} +2 -2
- package/dist/{translation-DbATp_35.js → translation-CpH8D2NK.js} +34 -30
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +19 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/CountryField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/NumberField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/validators.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/WebsiteField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/getValidationError.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/utils/validators/sharedValidators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/types.d.ts +6 -0
- package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
- package/dist/types/api/address/useSearchAddress.d.ts +2 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -293
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
- package/dist/types/api/invitations/useInvitationStatus.d.ts +1 -1
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
- package/dist/types/api/pci/usePciStatus.d.ts +2 -2
- package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -245
- package/dist/types/api/toggles/useToggles.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -2
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +3 -2
- package/dist/types/components/GlobalEntry/hooks/usePrefetchCompanySearch.d.ts +11 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +4 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +7 -6
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -4
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +11 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +8 -0
- package/dist/types/context/ToggleContext/types.d.ts +3 -13
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{types-D6p5FQF-.js → types-BymnGWO9.js} +1 -1
- package/dist/{types-B9zXzag-.js → types-qahGXhtr.js} +1 -1
- package/dist/{upload-C5NC1E4N.js → upload-BI7LKlDm.js} +2 -2
- package/dist/{useAdaptiveWorkflow-DsQESk9f.js → useAdaptiveWorkflow-B35cXauP.js} +1 -1
- package/dist/{useBusinessDetailsData-dsYTeDom.js → useBusinessDetailsData-BEM6OCqH.js} +132 -150
- package/dist/{useBusinessLines-BhSN6qCH.js → useBusinessLines-0FcuDMzo.js} +1 -1
- package/dist/{useCanSeeIntroduction-BLGY7sE-.js → useCanSeeIntroduction-B6BDOCm_.js} +5 -5
- package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js} +3 -3
- package/dist/{useForm-BFeaSvlP.js → useForm-fYu8sJ-i.js} +6 -6
- package/dist/{useHideTaskStepper-C_w6iUY-.js → useHideTaskStepper-BgCN--mG.js} +1 -1
- package/dist/{invalidateRootLegalEntity-B97dCa-s.js → useId-CEUET5IS.js} +32 -4
- package/dist/{useIndustryCodes-uAj90IyS.js → useIndustryCodes-La1cU8oH.js} +1 -1
- package/dist/{useLegalEntity-QQXN6YOm.js → useLegalEntity-CxeMoCm4.js} +4 -3
- package/dist/{useNavigate-J0sRAAoI.js → useNavigate-B1z7McBl.js} +33 -33
- package/dist/{useOnboardingStatus-CsGUjkm-.js → useOnboardingStatus-CX8IrDe_.js} +1 -1
- package/dist/{usePciQuestionnaireList-CFNJD8pS.js → usePciQuestionnaireList-CB_tjNsz.js} +1 -1
- package/dist/{useSalesChannels-huIL6Dhk.js → useSalesChannels-DJAmDo-r.js} +5 -5
- package/dist/{useScenarios-DV2TeNvN.js → useScenarios-DfE71fl7.js} +7 -6
- package/dist/{useSettingsContext-9O3Aqpfq.js → useSettingsContext-Bpf4UqRT.js} +6 -3
- package/dist/{useTaskLandedEvent-DwZHcMEQ.js → useTaskLandedEvent-BtuFBe20.js} +2 -2
- package/dist/{useTaskStatus-CgrhdaE_.js → useTaskStatus-4nAPf_uD.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DbJDklA2.js → useTermsOfServiceStatus-FDpSDjco.js} +1 -1
- package/dist/{useTrustMembers-uhgi2qfN.js → useTrustMembers-D3sCwcaT.js} +9 -8
- package/dist/{useUnincorporatedPartnershipMembers-DVEWj1is.js → useUnincorporatedPartnershipMembers-DcfQJdVZ.js} +5 -5
- package/dist/{useUpdateBusinessLines-DCKYTzxd.js → useUpdateBusinessLines-B-pF2YT-.js} +1 -1
- package/dist/{utils-SKYT7xU4.js → utils-BFxg3gPM.js} +2 -2
- package/dist/{utils-D8pwjFm5.js → utils-CcBgYW2P.js} +5 -6
- package/dist/utils-Oc-YLiM0.js +214 -0
- package/dist/{validate-BBVJuFm5.js → validate-1rlz-OH4.js} +15 -17
- package/dist/{validate-Bkpa-y5Q.js → validate-B2P8hpA5.js} +7 -7
- package/dist/{validate-t6pT7AaZ.js → validate-S1Bm0XnT.js} +3 -3
- package/dist/{validate-Dmdw3pYn.js → validate-x5CYfY5E.js} +2 -2
- package/dist/{validateExtractionResult-qkFkcrwl.js → validateExtractionResult-IRRMwcNi.js} +5 -7
- package/dist/{warning-circle-fill-C2lMYPJW.js → warning-circle-fill-ClFvGo5m.js} +2 -2
- package/dist/{warning-diamond-filled-CQ2DdW5g.js → warning-diamond-filled-CWyKR65i.js} +2 -2
- package/dist/{webinar-BpZWqd-g.js → webinar-DWX7Z5Wz.js} +2 -2
- package/package.json +36 -36
- package/dist/AdaptiveWorkflow-2EE8iiMD.js +0 -33
- package/dist/Alert-BqbbDRYR.js +0 -172
- package/dist/AnalyticsContext-CpimDlw4.js +0 -21
- package/dist/Checkbox-qfdF12cF.js +0 -60
- package/dist/Confirm-DjFpxSzC.js +0 -77
- package/dist/CountryField-CMOB4yz4.js +0 -38
- package/dist/DataConflictsModal-8Nnj7_UD.js +0 -238
- package/dist/Field-Df7ajJE2.js +0 -154
- package/dist/FormFlow.module-DqMxjYHl.js +0 -20
- package/dist/Header-DvifUz7-.js +0 -93
- package/dist/Icon-DFQgr7dy.js +0 -175
- package/dist/LandingLayout-BsIoIFzs.js +0 -76
- package/dist/LegalName-BYQ12uWc.js +0 -33
- package/dist/LoaderWrapper-Dc88hY-P.js +0 -34
- package/dist/MaskedInput-CkDwzLxe.js +0 -719
- package/dist/MaybeModal-Dfm1rIUG.js +0 -24
- package/dist/NewSummary-DYLlnpwx.js +0 -73
- package/dist/ProgressBar-DWFxLMUA.js +0 -38
- package/dist/RadioGroup-CY33MT83.js +0 -47
- package/dist/RadioWithLabel-BmUFWDxq.js +0 -45
- package/dist/SettingsContext-Dl-9WWCI.js +0 -9
- package/dist/StateContext-B2_Pqd_y.js +0 -9
- package/dist/StateField-BiNI3dm9.js +0 -55
- package/dist/StructuredList-BHUmeWeh.js +0 -56
- package/dist/Summary-BTDbRMfh.js +0 -235
- package/dist/TaxInformationField--Uhp0zLv.js +0 -242
- package/dist/TileGroup-BFcSgQ1l.js +0 -172
- package/dist/ToastContext-B_wd2IY2.js +0 -13
- package/dist/ToastContextProvider-BSQ1Upl_.js +0 -103
- package/dist/VerificationErrorAlert-B6HmAZ0g.js +0 -38
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +0 -14
- package/dist/bafinUtils-RXELXyTR.js +0 -96
- package/dist/bg-BG-DfbtcqF4.js +0 -7
- package/dist/birthDateUtils-D6uk7zwm.js +0 -84
- package/dist/businessRegistrationNumberPatterns-pbrCVTTp.js +0 -982
- package/dist/cross-circle-fill-small-DdoPZZeo.js +0 -20
- package/dist/cs-CZ-CajuRLo4.js +0 -7
- package/dist/da-DK-BEwmSejn.js +0 -7
- package/dist/datasetUtil-BdHPWsxZ.js +0 -45
- package/dist/de-DE-PyK3jl-6.js +0 -7
- package/dist/debouncedInputEvent-Fwwp_K_-.js +0 -54
- package/dist/debugStore-Dwn1FXrh.js +0 -9
- package/dist/dropinUtils-OsMsnnYG.js +0 -496
- package/dist/el-GR-KPFghikv.js +0 -7
- package/dist/es-ES-z4jLCvkJ.js +0 -7
- package/dist/es-LA-Dx4QymCh.js +0 -7
- package/dist/et-EE-1EhDxtTe.js +0 -7
- package/dist/fi-FI-Dc2RMc_u.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/formFieldsUtils-CnDkgahc.js +0 -7
- package/dist/formUtils-BHgG8yQZ.js +0 -52
- package/dist/formUtils-DAKrWwgL.js +0 -84
- package/dist/fr-FR-DswL4wQ1.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/globalStore--_np-9ON.js +0 -418
- package/dist/hr-HR-DI2D_V50.js +0 -7
- package/dist/hu-HU-lyRcZjGI.js +0 -7
- package/dist/isEmpty-Uewyl-r6.js +0 -14
- package/dist/isEmptyEntity-3OHnhXqG.js +0 -43
- package/dist/it-IT-Bn4CEcmI.js +0 -7
- package/dist/ja-JP-CAX_xwUx.js +0 -7
- package/dist/keys-Ce8YnRP2.js +0 -20
- package/dist/listToRecord-DumSkYDz.js +0 -10
- package/dist/lt-LT-BdgYuJW7.js +0 -7
- package/dist/lv-LV-Bz5c0Psg.js +0 -7
- package/dist/mapScriptLocalization-BCfkZo1y.js +0 -46
- package/dist/nl-NL-BE2cQh0x.js +0 -7
- package/dist/no-NO-vgzpp44v.js +0 -7
- package/dist/patternValidators-DsrZkuOO.js +0 -73
- package/dist/pl-PL-DgDSRVmp.js +0 -7
- package/dist/pt-BR-BaKp-J8F.js +0 -7
- package/dist/pt-PT-Df48oeP5.js +0 -7
- package/dist/resolveEnvironment-CcCbs90B.js +0 -999
- package/dist/ro-RO-CTMsv_EY.js +0 -7
- package/dist/roleMetadata-CbgaYaH8.js +0 -56
- package/dist/sk-SK-oqO5I3Aw.js +0 -7
- package/dist/sl-SI-CQhJFnpj.js +0 -7
- package/dist/summaryItem-uDWmtYtt.js +0 -16
- package/dist/sv-SE-CmevESLi.js +0 -7
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/trustUtil-BG17fZ56.js +0 -98
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +0 -14
- package/dist/types-B28r2lAW.js +0 -30
- package/dist/types-CZAHRt31.js +0 -147
- package/dist/useAccountHolder-BpIX1iBG.js +0 -102
- package/dist/useAllowedCountries-qyvo-c6A.js +0 -80
- package/dist/useAnalyticsContext-gSnRnYgV.js +0 -12
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useDataset-K19TDoyR.js +0 -98
- package/dist/useDeleteTransferInstrument-C10xzHiO.js +0 -31
- package/dist/useId-BkDhUta2.js +0 -28
- package/dist/useMultiForm-CM3lpilP.js +0 -790
- package/dist/useToastContext-B6Mqc2HY.js +0 -12
- package/dist/useToggleContext-B_YexrbT.js +0 -21
- package/dist/useUpdateLegalEntity-B7LRg8m0.js +0 -29
- package/dist/utils-BLBh0VEd.js +0 -1755
- package/dist/utils-CYUYe54m.js +0 -24
- package/dist/utils-DdHbAadK.js +0 -80
- package/dist/validationError-DUn2rT0n.js +0 -55
- package/dist/validationResult-bjYBDjbU.js +0 -29
- package/dist/validatorUtils-D2O6AAZn.js +0 -106
- /package/dist/{pt-BR-CPbFPNwq2.js → pt-BR-CPbFPNwq.js} +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e89d7be-45e6-4de8-99ff-6c210d46f463", e._sentryDebugIdIdentifier = "sentry-dbid-3e89d7be-45e6-4de8-99ff-6c210d46f463");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { t as ToastContextProvider } from "./ToastContextProvider-BSQ1Upl_.js";
|
|
6
|
-
import { t as Modal } from "./Modal-Dq44ZUNN.js";
|
|
7
|
-
import { Fragment, jsx } from "preact/jsx-runtime";
|
|
8
|
-
//#region src/components/ui/atoms/Modal/MaybeModal.tsx
|
|
9
|
-
/**
|
|
10
|
-
* Renders a modal or an inline div
|
|
11
|
-
* @returns {Modal|HTMLDivElement}
|
|
12
|
-
*/
|
|
13
|
-
var MaybeModal = ({ ariaLabel, children, inline = false, inset, onClose, showCloseButton, size }) => {
|
|
14
|
-
return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, {
|
|
15
|
-
onClose,
|
|
16
|
-
ariaLabel,
|
|
17
|
-
size,
|
|
18
|
-
inset,
|
|
19
|
-
showCloseButton,
|
|
20
|
-
children: /* @__PURE__ */ jsx(ToastContextProvider, { children })
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { MaybeModal as t };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "59f17c33-a0a1-426a-a6db-5ee4886c014d", e._sentryDebugIdIdentifier = "sentry-dbid-59f17c33-a0a1-426a-a6db-5ee4886c014d");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
7
|
-
import { n as IconButton } from "./Button-BxdC8cVB.js";
|
|
8
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
9
|
-
import { t as Header } from "./Header-DvifUz7-.js";
|
|
10
|
-
import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
|
|
11
|
-
import { t as List } from "./List-ywoRPg-q.js";
|
|
12
|
-
import { t as StructuredList } from "./StructuredList-BHUmeWeh.js";
|
|
13
|
-
import { i as trackNavigation } from "./Summary-BTDbRMfh.js";
|
|
14
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
|
-
import { defineSlots } from "named-slots";
|
|
16
|
-
var SummarySection_module_default = {
|
|
17
|
-
"summary-header": "_summary-header_jps0f_1",
|
|
18
|
-
summaryHeader: "_summary-header_jps0f_1"
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/components/Shared/SummarySection/SummarySection.tsx
|
|
22
|
-
var SummarySection = ({ formId, label, items, action }) => /* @__PURE__ */ jsxs(List, {
|
|
23
|
-
variant: "grouped-secondary",
|
|
24
|
-
children: [/* @__PURE__ */ jsxs("header", {
|
|
25
|
-
className: SummarySection_module_default.summaryHeader,
|
|
26
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
27
|
-
el: "h2",
|
|
28
|
-
variant: "title",
|
|
29
|
-
children: label
|
|
30
|
-
}), action]
|
|
31
|
-
}), /* @__PURE__ */ jsx(StructuredList, { items: items ?? [] })]
|
|
32
|
-
}, formId);
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/components/Shared/NewSummary/NewSummary.tsx
|
|
35
|
-
var NewSummary = ({ children, handleEditForm, sections }) => {
|
|
36
|
-
const { t } = useTranslation("common");
|
|
37
|
-
const { Slot } = defineSlots(children, ["errorPanel", "extraContent"]);
|
|
38
|
-
const userEvents = useAnalyticsContext();
|
|
39
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
40
|
-
role: "region",
|
|
41
|
-
children: [/* @__PURE__ */ jsx(Header, {
|
|
42
|
-
title: t(($) => $["summary"]),
|
|
43
|
-
description: t(($) => $["summaryDescription"])
|
|
44
|
-
}), /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
45
|
-
/* @__PURE__ */ jsx(Slot, { name: "errorPanel" }),
|
|
46
|
-
sections.map(({ formId, label, items, hideEditButton }) => {
|
|
47
|
-
if (formId === "summary") return;
|
|
48
|
-
return /* @__PURE__ */ jsx(SummarySection, {
|
|
49
|
-
formId,
|
|
50
|
-
label,
|
|
51
|
-
items,
|
|
52
|
-
action: hideEditButton ? void 0 : /* @__PURE__ */ jsx(IconButton, {
|
|
53
|
-
variant: "tertiary",
|
|
54
|
-
icon: "edit",
|
|
55
|
-
onClick: () => {
|
|
56
|
-
trackNavigation({
|
|
57
|
-
userEvents,
|
|
58
|
-
actionType: "edit",
|
|
59
|
-
toForm: label,
|
|
60
|
-
label: "Pencil icon"
|
|
61
|
-
});
|
|
62
|
-
handleEditForm(formId);
|
|
63
|
-
},
|
|
64
|
-
ariaLabel: t(($) => $["editForm"], { formName: label })
|
|
65
|
-
})
|
|
66
|
-
}, formId);
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsx(Slot, { name: "extraContent" })
|
|
69
|
-
] })]
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
//#endregion
|
|
73
|
-
export { SummarySection as n, NewSummary as t };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2c80bee8-f414-4e51-8664-e941b716fd73", e._sentryDebugIdIdentifier = "sentry-dbid-2c80bee8-f414-4e51-8664-e941b716fd73");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import cx from "classnames";
|
|
6
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
7
|
-
var ProgressBar_module_default = {
|
|
8
|
-
"progress-bar": "_progress-bar_1d5l3_1",
|
|
9
|
-
progressBar: "_progress-bar_1d5l3_1",
|
|
10
|
-
"progress-bar-rounded": "_progress-bar-rounded_1d5l3_8",
|
|
11
|
-
progressBarRounded: "_progress-bar-rounded_1d5l3_8",
|
|
12
|
-
"progress-bar-indicator": "_progress-bar-indicator_1d5l3_12",
|
|
13
|
-
progressBarIndicator: "_progress-bar-indicator_1d5l3_12"
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/components/ui/atoms/ProgressBar/ProgressBar.tsx
|
|
17
|
-
var ProgressBar = ({ progress, ariaLabel, rounded = false }) => {
|
|
18
|
-
const clamp = (value) => {
|
|
19
|
-
return Math.min(Math.max(value, 0), 100);
|
|
20
|
-
};
|
|
21
|
-
const clampedProgress = clamp(progress);
|
|
22
|
-
const cssWidth = `${clampedProgress}%`;
|
|
23
|
-
return /* @__PURE__ */ jsx("div", {
|
|
24
|
-
className: cx(ProgressBar_module_default.progressBar, { [ProgressBar_module_default.progressBarRounded]: rounded }),
|
|
25
|
-
role: "progressbar",
|
|
26
|
-
"aria-label": ariaLabel,
|
|
27
|
-
"aria-valuenow": clampedProgress,
|
|
28
|
-
"aria-valuemin": 0,
|
|
29
|
-
"aria-valuemax": 100,
|
|
30
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
31
|
-
className: ProgressBar_module_default.progressBarIndicator,
|
|
32
|
-
style: { width: cssWidth },
|
|
33
|
-
children: [progress, "%"]
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { ProgressBar as t };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e2a88313-1df2-4ff4-870e-8097ce4a7907", e._sentryDebugIdIdentifier = "sentry-dbid-e2a88313-1df2-4ff4-870e-8097ce4a7907");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
|
|
7
|
-
import { t as RadioWithLabel } from "./RadioWithLabel-BmUFWDxq.js";
|
|
8
|
-
import cx from "classnames";
|
|
9
|
-
import { jsx } from "preact/jsx-runtime";
|
|
10
|
-
//#region src/components/ui/atoms/RadioGroup/RadioGroup.tsx
|
|
11
|
-
function RadioGroup({ items, name, onChange, value, disabled = false, horizontal = false, showContentOnlyOnSelected = false, className, enableTracking = false }) {
|
|
12
|
-
const { t, i18n } = useTranslation("common");
|
|
13
|
-
const userEvents = useAnalyticsContext();
|
|
14
|
-
const handleChange = (id) => {
|
|
15
|
-
if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
|
|
16
|
-
actionType: "input",
|
|
17
|
-
field: name,
|
|
18
|
-
returnValue: value
|
|
19
|
-
});
|
|
20
|
-
onChange(id);
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className: cx([
|
|
24
|
-
"adyen-kyc-radio-group",
|
|
25
|
-
{ "adyen-kyc-radio-group--horizontal": horizontal },
|
|
26
|
-
className
|
|
27
|
-
]),
|
|
28
|
-
children: items.map((item) => {
|
|
29
|
-
const isSelected = item.id === value;
|
|
30
|
-
const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
|
|
31
|
-
const keyExists = i18n.exists?.(item.name, { ns: "common" });
|
|
32
|
-
return /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
33
|
-
value: item.id,
|
|
34
|
-
label: keyExists ? t(($) => $[item.name]) : item.name,
|
|
35
|
-
content: visibleContent,
|
|
36
|
-
groupName: name,
|
|
37
|
-
checked: isSelected,
|
|
38
|
-
disabled,
|
|
39
|
-
onClick: () => {
|
|
40
|
-
handleChange(item.id);
|
|
41
|
-
}
|
|
42
|
-
}, item.id);
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { RadioGroup as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2feb1bf0-6ad5-4d6e-ac31-cd64e792901f", e._sentryDebugIdIdentifier = "sentry-dbid-2feb1bf0-6ad5-4d6e-ac31-cd64e792901f");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { t as useId } from "./useId-BkDhUta2.js";
|
|
6
|
-
import cx from "classnames";
|
|
7
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
|
-
//#region src/components/ui/atoms/Radio/Radio.tsx
|
|
9
|
-
var Radio = ({ id, value, groupName, checked = false, disabled = false, onClick, className, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }) => /* @__PURE__ */ jsx("input", {
|
|
10
|
-
"aria-labelledby": ariaLabelledBy,
|
|
11
|
-
"aria-describedby": ariaDescribedBy,
|
|
12
|
-
className: cx(["adyen-kyc-input-radio adyen-kyc-input-radio__input", className]),
|
|
13
|
-
id,
|
|
14
|
-
type: "radio",
|
|
15
|
-
checked,
|
|
16
|
-
name: groupName,
|
|
17
|
-
onClick,
|
|
18
|
-
value,
|
|
19
|
-
disabled
|
|
20
|
-
});
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/components/ui/atoms/RadioWithLabel/RadioWithLabel.tsx
|
|
23
|
-
var RadioWithLabel = ({ value, label, content, groupName, checked = false, disabled = false, onClick }) => {
|
|
24
|
-
const id = useId("radio");
|
|
25
|
-
return /* @__PURE__ */ jsxs("label", {
|
|
26
|
-
htmlFor: id,
|
|
27
|
-
className: "adyen-kyc-input-radio",
|
|
28
|
-
children: [/* @__PURE__ */ jsx(Radio, {
|
|
29
|
-
id,
|
|
30
|
-
checked,
|
|
31
|
-
groupName,
|
|
32
|
-
onClick,
|
|
33
|
-
value,
|
|
34
|
-
disabled
|
|
35
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
36
|
-
className: "adyen-kyc-input-radio__content",
|
|
37
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
38
|
-
className: "adyen-kyc-input-radio__label adyen-kyc-label__text",
|
|
39
|
-
children: label
|
|
40
|
-
}), content]
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { RadioWithLabel as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84a754f7-78c7-438d-aaad-9469285920f6", e._sentryDebugIdIdentifier = "sentry-dbid-84a754f7-78c7-438d-aaad-9469285920f6");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { createContext } from "preact";
|
|
6
|
-
//#region src/context/SettingsContext/SettingsContext.tsx
|
|
7
|
-
var SettingsContext = createContext(void 0);
|
|
8
|
-
//#endregion
|
|
9
|
-
export { SettingsContext as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9cd11c74-ef1c-4249-8397-c704c7b171c6", e._sentryDebugIdIdentifier = "sentry-dbid-9cd11c74-ef1c-4249-8397-c704c7b171c6");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { createContext } from "preact";
|
|
6
|
-
//#region src/context/StateContext/StateContext.ts
|
|
7
|
-
var StateContext = createContext(null);
|
|
8
|
-
//#endregion
|
|
9
|
-
export { StateContext as t };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "313cc741-d227-4bcc-a3d2-401bc1e26640", e._sentryDebugIdIdentifier = "sentry-dbid-313cc741-d227-4bcc-a3d2-401bc1e26640");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as useDataset } from "./useDataset-K19TDoyR.js";
|
|
8
|
-
import { t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
|
|
9
|
-
import { a as validateNotEmptyOnBlur } from "./patternValidators-DsrZkuOO.js";
|
|
10
|
-
import { t as Field } from "./Field-Df7ajJE2.js";
|
|
11
|
-
import { t as Select } from "./Select-prMx73V9.js";
|
|
12
|
-
import { c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField } from "./utils-lIizXlcC.js";
|
|
13
|
-
import { jsx } from "preact/jsx-runtime";
|
|
14
|
-
//#region src/components/Shared/fields/StateField/fieldConfig.ts
|
|
15
|
-
var stateFieldMetadata = { validators: validateNotEmptyOnBlur };
|
|
16
|
-
/**
|
|
17
|
-
* Returns the placeholder text for state field based on country.
|
|
18
|
-
*/
|
|
19
|
-
var getStatePlaceholderText = (t, { country }) => {
|
|
20
|
-
switch (country) {
|
|
21
|
-
case CountryCodes.Australia:
|
|
22
|
-
case CountryCodes.Brazil: return t(($) => $["selectState"]);
|
|
23
|
-
case CountryCodes.Canada: return t(($) => $["selectProvinceOrTerritory"]);
|
|
24
|
-
case CountryCodes.UnitedStates: return t(($) => $[`selectAState`]);
|
|
25
|
-
default: return t(($) => $["stateOrProvince__placeHolder"]);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/components/Shared/fields/StateField/StateField.tsx
|
|
30
|
-
var STATE_FIELD = ["stateOrProvince"];
|
|
31
|
-
function StateField({ data, valid, errors, readonly, handleChangeFor, selectedCountry, handleBlur, labelOverride }) {
|
|
32
|
-
const { t } = useTranslation("common");
|
|
33
|
-
const { dataset: states, loaded } = useDataset(datasetIdentifier.state(selectedCountry), !selectedCountry || !COUNTRIES_WITH_STATES_DATASET.includes(selectedCountry));
|
|
34
|
-
const labelKey = getKeyForField("stateOrProvince", selectedCountry);
|
|
35
|
-
if (!loaded || !states.length) return null;
|
|
36
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
37
|
-
name: "stateOrProvince",
|
|
38
|
-
label: labelOverride ?? t(($) => $[labelKey]),
|
|
39
|
-
errorMessage: errors.stateOrProvince,
|
|
40
|
-
isValid: valid.stateOrProvince,
|
|
41
|
-
dataTestId: "stateOrProvince",
|
|
42
|
-
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
43
|
-
...childProps,
|
|
44
|
-
name: "stateOrProvince",
|
|
45
|
-
selected: data.stateOrProvince,
|
|
46
|
-
placeholder: getStatePlaceholderText(t, { country: selectedCountry }),
|
|
47
|
-
items: states,
|
|
48
|
-
readonly: readonly && !!data.stateOrProvince,
|
|
49
|
-
onChange: handleChangeFor("stateOrProvince"),
|
|
50
|
-
onBlur: handleBlur
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { StateField as n, stateFieldMetadata as r, STATE_FIELD as t };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a7c7830e-c702-4e7c-8114-e69073917f45", e._sentryDebugIdIdentifier = "sentry-dbid-a7c7830e-c702-4e7c-8114-e69073917f45");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { t as useId } from "./useId-BkDhUta2.js";
|
|
6
|
-
import cx from "classnames";
|
|
7
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
|
-
var StructuredList_module_default = {
|
|
9
|
-
"structured-list": "_structured-list_w3dv7_1",
|
|
10
|
-
structuredList: "_structured-list_w3dv7_1",
|
|
11
|
-
"structured-list-section-field": "_structured-list-section-field_w3dv7_6",
|
|
12
|
-
structuredListSectionField: "_structured-list-section-field_w3dv7_6",
|
|
13
|
-
"structured-list-section-label": "_structured-list-section-label_w3dv7_22",
|
|
14
|
-
structuredListSectionLabel: "_structured-list-section-label_w3dv7_22",
|
|
15
|
-
"structured-list-section-data": "_structured-list-section-data_w3dv7_23",
|
|
16
|
-
structuredListSectionData: "_structured-list-section-data_w3dv7_23",
|
|
17
|
-
"structured-list-section-detail": "_structured-list-section-detail_w3dv7_46",
|
|
18
|
-
structuredListSectionDetail: "_structured-list-section-detail_w3dv7_46"
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/components/ui/atoms/StructuredList/StructuredList.tsx
|
|
22
|
-
var StructuredList = ({ className, detailsGroupClassName, items }) => {
|
|
23
|
-
const structuredListClassNames = cx(StructuredList_module_default.structuredList, className);
|
|
24
|
-
const detailsGroupClassNames = cx(StructuredList_module_default.structuredListSectionData, detailsGroupClassName);
|
|
25
|
-
return /* @__PURE__ */ jsx("dl", {
|
|
26
|
-
className: structuredListClassNames,
|
|
27
|
-
children: items.map((item) => /* @__PURE__ */ jsx(StructuredListItemEl, {
|
|
28
|
-
item,
|
|
29
|
-
detailsGroupClassNames
|
|
30
|
-
}, `${item.term}${item.details}`))
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
var StructuredListItemEl = ({ item: { term, details }, detailsGroupClassNames }) => {
|
|
34
|
-
const uniqueId = useId("structured-list-item");
|
|
35
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
36
|
-
className: StructuredList_module_default.structuredListSectionField,
|
|
37
|
-
children: [/* @__PURE__ */ jsx("dt", {
|
|
38
|
-
id: uniqueId,
|
|
39
|
-
className: StructuredList_module_default.structuredListSectionLabel,
|
|
40
|
-
children: term
|
|
41
|
-
}), Array.isArray(details) ? /* @__PURE__ */ jsx("div", {
|
|
42
|
-
className: detailsGroupClassNames,
|
|
43
|
-
children: details.map((detail) => /* @__PURE__ */ jsx("dd", {
|
|
44
|
-
"aria-labelledby": uniqueId,
|
|
45
|
-
className: StructuredList_module_default.structuredListSectionDetail,
|
|
46
|
-
children: detail
|
|
47
|
-
}))
|
|
48
|
-
}) : /* @__PURE__ */ jsx("dd", {
|
|
49
|
-
"aria-labelledby": uniqueId,
|
|
50
|
-
className: detailsGroupClassNames,
|
|
51
|
-
children: details
|
|
52
|
-
})]
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
export { StructuredList as t };
|
package/dist/Summary-BTDbRMfh.js
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "65fdfa78-132a-4399-8349-7bf2008ea9f5", e._sentryDebugIdIdentifier = "sentry-dbid-65fdfa78-132a-4399-8349-7bf2008ea9f5");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { n as IconButton } from "./Button-BxdC8cVB.js";
|
|
7
|
-
import { y as isEmpty } from "./validatorUtils-D2O6AAZn.js";
|
|
8
|
-
import { t as Header } from "./Header-DvifUz7-.js";
|
|
9
|
-
import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
|
|
10
|
-
import { t as Image } from "./Image-Bn_Yyuof.js";
|
|
11
|
-
import { t as List } from "./List-ywoRPg-q.js";
|
|
12
|
-
import { t as StructuredList } from "./StructuredList-BHUmeWeh.js";
|
|
13
|
-
import { r as translateTranslatable } from "./utils-CYUYe54m.js";
|
|
14
|
-
import { t as ErrorPanel } from "./ErrorPanel-PefRq1M4.js";
|
|
15
|
-
import { t as createFormUtils } from "./formUtils-DAKrWwgL.js";
|
|
16
|
-
import { t as getRoleName } from "./roleMetadata-CbgaYaH8.js";
|
|
17
|
-
import { t as isSummaryItem } from "./summaryItem-uDWmtYtt.js";
|
|
18
|
-
import { lazy } from "preact/compat";
|
|
19
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
20
|
-
//#region src/utils/analytics/trackNavigation.ts
|
|
21
|
-
var trackNavigation = ({ userEvents, actionType, toForm, label, returnValue, additionalTrackingParams }) => {
|
|
22
|
-
userEvents.addPageEvent("Clicked button", {
|
|
23
|
-
actionType,
|
|
24
|
-
toPage: toForm,
|
|
25
|
-
label,
|
|
26
|
-
returnValue,
|
|
27
|
-
...additionalTrackingParams
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var Summary_module_default = {
|
|
31
|
-
summary: "_summary_1op7a_1",
|
|
32
|
-
"summary-content": "_summary-content_1op7a_7",
|
|
33
|
-
summaryContent: "_summary-content_1op7a_7",
|
|
34
|
-
"summary-list": "_summary-list_1op7a_13",
|
|
35
|
-
summaryList: "_summary-list_1op7a_13",
|
|
36
|
-
"summary-list-header": "_summary-list-header_1op7a_27",
|
|
37
|
-
summaryListHeader: "_summary-list-header_1op7a_27",
|
|
38
|
-
"summary-list-header-title": "_summary-list-header-title_1op7a_32",
|
|
39
|
-
summaryListHeaderTitle: "_summary-list-header-title_1op7a_32",
|
|
40
|
-
"summary-list-item": "_summary-list-item_1op7a_41",
|
|
41
|
-
summaryListItem: "_summary-list-item_1op7a_41",
|
|
42
|
-
"summary-list-item-key": "_summary-list-item-key_1op7a_55",
|
|
43
|
-
summaryListItemKey: "_summary-list-item-key_1op7a_55",
|
|
44
|
-
"summary-list-item-value": "_summary-list-item-value_1op7a_67",
|
|
45
|
-
summaryListItemValue: "_summary-list-item-value_1op7a_67",
|
|
46
|
-
"summary-content-legal-caption": "_summary-content-legal-caption_1op7a_73",
|
|
47
|
-
summaryContentLegalCaption: "_summary-content-legal-caption_1op7a_73",
|
|
48
|
-
"summary-content-list": "_summary-content-list_1op7a_88",
|
|
49
|
-
summaryContentList: "_summary-content-list_1op7a_88",
|
|
50
|
-
"summary-content-logo": "_summary-content-logo_1op7a_92",
|
|
51
|
-
summaryContentLogo: "_summary-content-logo_1op7a_92"
|
|
52
|
-
};
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/components/Shared/Summary/Summary.tsx
|
|
55
|
-
var onfidoLogo = lazy(() => import("./onfido-logo-CMRuSr8M.js"));
|
|
56
|
-
var summaryStep = {
|
|
57
|
-
formId: "summary",
|
|
58
|
-
formName: "summary"
|
|
59
|
-
};
|
|
60
|
-
/** @deprecated, use NewSummary */
|
|
61
|
-
function Summary({ data, forms, gotoForm, labels, problems, omitted = {}, showFormHeader = true, showSectionHeader = true, showLegalCaption = false, showTaxExemptedLegalCaption = false, useStructuredList = false }) {
|
|
62
|
-
const { t } = useTranslation("common");
|
|
63
|
-
const userEvents = useAnalyticsContext();
|
|
64
|
-
const editForm = (formId) => {
|
|
65
|
-
const formIndex = forms.findIndex((form) => form.formId === formId);
|
|
66
|
-
if (formIndex >= 0) gotoForm(formIndex);
|
|
67
|
-
};
|
|
68
|
-
const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce((acc, validError) => ({
|
|
69
|
-
...acc,
|
|
70
|
-
...validError
|
|
71
|
-
}), {});
|
|
72
|
-
const allVerificationErrors = problems?.verificationErrors && Object.values(problems.verificationErrors)?.reduce((acc, verifError) => ({
|
|
73
|
-
...acc,
|
|
74
|
-
...verifError
|
|
75
|
-
}), {});
|
|
76
|
-
const formUtils = createFormUtils({ labels }, t);
|
|
77
|
-
const summarySectionHeader = (formName, formId) => /* @__PURE__ */ jsxs("header", {
|
|
78
|
-
className: Summary_module_default.summaryListHeader,
|
|
79
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
80
|
-
className: Summary_module_default.summaryListHeaderTitle,
|
|
81
|
-
children: formName
|
|
82
|
-
}), !omitted.summaryEditButton?.includes(formId) && /* @__PURE__ */ jsx(IconButton, {
|
|
83
|
-
variant: "tertiary",
|
|
84
|
-
icon: "edit",
|
|
85
|
-
onClick: () => {
|
|
86
|
-
trackNavigation({
|
|
87
|
-
userEvents,
|
|
88
|
-
actionType: "edit",
|
|
89
|
-
toForm: formName,
|
|
90
|
-
label: "Pencil icon"
|
|
91
|
-
});
|
|
92
|
-
editForm(formId);
|
|
93
|
-
},
|
|
94
|
-
ariaLabel: t(($) => $["editForm"], { formName })
|
|
95
|
-
})]
|
|
96
|
-
});
|
|
97
|
-
const renderSummarySection = (fieldData, labelData = {}, formName, formId, useStructuredList) => {
|
|
98
|
-
const structuredListItems = Object.entries(fieldData).map(([key, value]) => {
|
|
99
|
-
return {
|
|
100
|
-
term: t(($) => $[labelData[key] || key]),
|
|
101
|
-
details: value
|
|
102
|
-
};
|
|
103
|
-
});
|
|
104
|
-
return !useStructuredList ? /* @__PURE__ */ jsxs(List, {
|
|
105
|
-
variant: "grouped-secondary",
|
|
106
|
-
children: [showSectionHeader && summarySectionHeader(formName, formId), /* @__PURE__ */ jsx("dl", {
|
|
107
|
-
className: Summary_module_default.summaryList,
|
|
108
|
-
children: Array.isArray(fieldData) ? fieldData.map((item) => renderBulletedListField(item)) : renderSummaryItems(fieldData, labelData)
|
|
109
|
-
})]
|
|
110
|
-
}) : /* @__PURE__ */ jsxs(List, {
|
|
111
|
-
variant: "grouped-secondary",
|
|
112
|
-
children: [showSectionHeader && summarySectionHeader(formName, formId), /* @__PURE__ */ jsx(StructuredList, { items: structuredListItems })]
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
const renderSummaryContent = (summaryData, useStructuredList) => {
|
|
116
|
-
const summaryList = [];
|
|
117
|
-
forms.forEach(({ formId, formName }) => {
|
|
118
|
-
const currentFormData = summaryData[formId];
|
|
119
|
-
if (!currentFormData || Object.values(currentFormData).every((value) => isEmpty(value)) || formId === summaryStep.formId || omitted.forms?.includes(formId)) return;
|
|
120
|
-
const summaryItems = currentFormData.hasInnerForms ? renderInnerForms(labels?.[formId], formId, currentFormData) : renderSummarySection(currentFormData, labels?.[formId], t(($) => $[typeof labels?.[formId] === "string" ? labels[formId] : formName]), formId, useStructuredList);
|
|
121
|
-
summaryList.push(summaryItems);
|
|
122
|
-
});
|
|
123
|
-
return summaryList;
|
|
124
|
-
};
|
|
125
|
-
const renderInnerForms = (labelData, parentFormId, innerForms = {}) => {
|
|
126
|
-
if (!innerForms) return [];
|
|
127
|
-
const dataList = [];
|
|
128
|
-
Object.entries(innerForms).forEach(([innerFormName, innerFormFieldData]) => {
|
|
129
|
-
const formName = t(($) => $[labelData?.[innerFormName] || innerFormName]);
|
|
130
|
-
if (typeof innerFormFieldData === "object" && innerFormFieldData !== null) {
|
|
131
|
-
if (Object.values(innerFormFieldData).every((value) => isEmpty(value))) return;
|
|
132
|
-
dataList.push(renderSummarySection(innerFormFieldData, labelData, formName, parentFormId));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
return dataList;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Renders a single label-value pair as a field in the summary section.
|
|
139
|
-
*
|
|
140
|
-
* This helper function creates the markup for a single piece of data,
|
|
141
|
-
* displaying a label and its corresponding value using a definition list
|
|
142
|
-
* for semantic correctness (`<dt>` for label, `<dd>` for data).
|
|
143
|
-
*
|
|
144
|
-
* @param label The translated label to display for the field.
|
|
145
|
-
* @param value The value of the field, which can be a simple string or a JSX element for more complex rendering.
|
|
146
|
-
* @returns A JSX element representing the summary field.
|
|
147
|
-
*/
|
|
148
|
-
const renderField = (label, value) => /* @__PURE__ */ jsxs("div", {
|
|
149
|
-
className: Summary_module_default.summaryListItem,
|
|
150
|
-
children: [/* @__PURE__ */ jsx("dt", {
|
|
151
|
-
className: Summary_module_default.summaryListItemKey,
|
|
152
|
-
children: label
|
|
153
|
-
}), /* @__PURE__ */ jsx("dd", {
|
|
154
|
-
className: Summary_module_default.summaryListItemValue,
|
|
155
|
-
children: value
|
|
156
|
-
})]
|
|
157
|
-
});
|
|
158
|
-
const renderBulletedListField = (item) => /* @__PURE__ */ jsx("ul", {
|
|
159
|
-
className: Summary_module_default.summaryContentList,
|
|
160
|
-
children: /* @__PURE__ */ jsx("li", { children: item })
|
|
161
|
-
});
|
|
162
|
-
/**
|
|
163
|
-
* Recursively renders the data fields for a summary section.
|
|
164
|
-
*
|
|
165
|
-
* This function iterates through the properties of the `formData` object.
|
|
166
|
-
* It handles different data types by:
|
|
167
|
-
* - Displaying simple string or number values with their corresponding labels.
|
|
168
|
-
* - Handling 'role' arrays specifically to show a comma-separated list of roles.
|
|
169
|
-
* - Recognizing and rendering `SummaryItem` objects with their custom labels and values.
|
|
170
|
-
* - Recursively calling itself for nested objects to render their properties.
|
|
171
|
-
*
|
|
172
|
-
* Fields listed in the `omitted.keys` prop are skipped.
|
|
173
|
-
*
|
|
174
|
-
* @param formData The data object for the current section, containing key-value pairs to be rendered.
|
|
175
|
-
* @param labelData A map of field keys to their corresponding translation keys for fetching display labels.
|
|
176
|
-
* @returns An array of JSX elements representing the rendered summary fields for the section.
|
|
177
|
-
*/
|
|
178
|
-
const renderSummaryItems = (formData = {}, labelData = {}) => {
|
|
179
|
-
if (!formData) return [];
|
|
180
|
-
if (formData?.idVerificationMethod === "instantVerification") return [renderField(t(($) => $["verificationMethod"]), /* @__PURE__ */ jsx(Image, {
|
|
181
|
-
lazyLoadedImage: onfidoLogo,
|
|
182
|
-
className: Summary_module_default.summaryContentLogo,
|
|
183
|
-
alt: "onfido-logo"
|
|
184
|
-
}))];
|
|
185
|
-
const dataList = [];
|
|
186
|
-
Object.entries(formData).forEach(([field, fieldData]) => {
|
|
187
|
-
if (omitted.keys?.includes(field) || !fieldData) return;
|
|
188
|
-
const fieldName = t(($) => $[labelData[field] || field]);
|
|
189
|
-
if (field === "role" && Array.isArray(fieldData)) {
|
|
190
|
-
const label = fieldData.length > 1 ? t(($) => $["roles"]) : fieldName;
|
|
191
|
-
const roles = fieldData.map((role) => t(($) => $[getRoleName(role)])).join(", ");
|
|
192
|
-
dataList.push(renderField(label, roles));
|
|
193
|
-
} else if (isSummaryItem(fieldData)) {
|
|
194
|
-
const { summaryLabel, summaryValue, preTranslated } = fieldData;
|
|
195
|
-
if (preTranslated) dataList.push(renderField(summaryLabel, summaryValue));
|
|
196
|
-
else dataList.push(renderField(translateTranslatable(t, summaryLabel) ?? "", summaryValue));
|
|
197
|
-
} else if (typeof fieldData === "object") dataList.push(renderSummaryItems(fieldData, labelData));
|
|
198
|
-
else if (["string", "number"].includes(typeof fieldData)) dataList.push(renderField(fieldName, fieldData));
|
|
199
|
-
});
|
|
200
|
-
return dataList;
|
|
201
|
-
};
|
|
202
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
203
|
-
role: "region",
|
|
204
|
-
className: Summary_module_default.summary,
|
|
205
|
-
children: [showFormHeader && /* @__PURE__ */ jsx(Header, {
|
|
206
|
-
title: t(($) => $["summary"]),
|
|
207
|
-
description: t(($) => $["summaryDescription"])
|
|
208
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
209
|
-
className: Summary_module_default.summaryContent,
|
|
210
|
-
children: [
|
|
211
|
-
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
212
|
-
validationErrors: allValidationErrors,
|
|
213
|
-
verificationErrors: allVerificationErrors,
|
|
214
|
-
formUtils,
|
|
215
|
-
id: "ariaErrorField"
|
|
216
|
-
}),
|
|
217
|
-
renderSummaryContent(data, useStructuredList),
|
|
218
|
-
showLegalCaption && /* @__PURE__ */ jsx("div", {
|
|
219
|
-
className: Summary_module_default.summaryContentLegalCaption,
|
|
220
|
-
children: t(($) => $["summaryLegalCaption"])
|
|
221
|
-
}),
|
|
222
|
-
showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", {
|
|
223
|
-
className: Summary_module_default.summaryContentLegalCaption,
|
|
224
|
-
children: [/* @__PURE__ */ jsx("p", { children: t(($) => $["summaryTaxExemptionLegalCaptionTitle"]) }), /* @__PURE__ */ jsxs("ul", { children: [
|
|
225
|
-
/* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_1"]) }),
|
|
226
|
-
/* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_2"]) }),
|
|
227
|
-
/* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_3"]) })
|
|
228
|
-
] })]
|
|
229
|
-
})
|
|
230
|
-
]
|
|
231
|
-
})]
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
//#endregion
|
|
235
|
-
export { trackNavigation as i, summaryStep as n, Summary_module_default as r, Summary as t };
|