@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
package/dist/Confirm-DjFpxSzC.js
DELETED
|
@@ -1,77 +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] = "88a7da12-6ba0-4198-a894-be65810f3062", e._sentryDebugIdIdentifier = "sentry-dbid-88a7da12-6ba0-4198-a894-be65810f3062");
|
|
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 { t as Button } from "./Button-BxdC8cVB.js";
|
|
8
|
-
import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
|
|
9
|
-
import { t as Modal } from "./Modal-Dq44ZUNN.js";
|
|
10
|
-
import { useEffect, useState } from "preact/hooks";
|
|
11
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
12
|
-
var Confirm_module_default = {
|
|
13
|
-
confirm: "_confirm_1aprd_1",
|
|
14
|
-
"confirm-message": "_confirm-message_1aprd_8",
|
|
15
|
-
confirmMessage: "_confirm-message_1aprd_8",
|
|
16
|
-
"confirm-actions": "_confirm-actions_1aprd_14",
|
|
17
|
-
confirmActions: "_confirm-actions_1aprd_14"
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/components/ui/molecules/Confirm/Confirm.tsx
|
|
21
|
-
var Confirm = ({ description, cancelText, confirmText, critical = false, onCancel, onConfirm, title, analyticsEventLabel }) => {
|
|
22
|
-
const { t } = useTranslation("ui");
|
|
23
|
-
const userEvents = useAnalyticsContext();
|
|
24
|
-
const [isInFlight, setIsInFlight] = useState(false);
|
|
25
|
-
const showCancelButton = onCancel !== void 0;
|
|
26
|
-
const buttonVariant = critical ? "critical" : "primary";
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
userEvents.addTaskEvent("Opened modal", {
|
|
29
|
-
actionType: "open",
|
|
30
|
-
label: analyticsEventLabel
|
|
31
|
-
});
|
|
32
|
-
}, []);
|
|
33
|
-
const handleConfirm = async () => {
|
|
34
|
-
setIsInFlight(true);
|
|
35
|
-
try {
|
|
36
|
-
await onConfirm();
|
|
37
|
-
} finally {
|
|
38
|
-
setIsInFlight(false);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ jsx(Modal, {
|
|
42
|
-
size: "small",
|
|
43
|
-
transition: "dropIn",
|
|
44
|
-
showCloseButton: false,
|
|
45
|
-
ariaLabel: title,
|
|
46
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
47
|
-
className: Confirm_module_default.confirm,
|
|
48
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
49
|
-
className: Confirm_module_default.confirmMessage,
|
|
50
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
51
|
-
variant: "title",
|
|
52
|
-
el: "h3",
|
|
53
|
-
children: title
|
|
54
|
-
}), description && /* @__PURE__ */ jsx(Typography, {
|
|
55
|
-
variant: "body",
|
|
56
|
-
el: "p",
|
|
57
|
-
children: description
|
|
58
|
-
})]
|
|
59
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
60
|
-
className: Confirm_module_default.confirmActions,
|
|
61
|
-
children: [showCancelButton && /* @__PURE__ */ jsx(Button, {
|
|
62
|
-
onClick: onCancel,
|
|
63
|
-
variant: "secondary",
|
|
64
|
-
disabled: isInFlight,
|
|
65
|
-
children: cancelText ?? t(($) => $["cancel"])
|
|
66
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
67
|
-
onClick: handleConfirm,
|
|
68
|
-
variant: buttonVariant,
|
|
69
|
-
loading: isInFlight,
|
|
70
|
-
children: confirmText ?? t(($) => $["confirm"])
|
|
71
|
-
})]
|
|
72
|
-
})]
|
|
73
|
-
})
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { Confirm 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] = "3bb456dc-2659-4a74-abe6-b4950372cac6", e._sentryDebugIdIdentifier = "sentry-dbid-3bb456dc-2659-4a74-abe6-b4950372cac6");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as useDataset } from "./useDataset-K19TDoyR.js";
|
|
7
|
-
import { t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
|
|
8
|
-
import { t as Field } from "./Field-Df7ajJE2.js";
|
|
9
|
-
import { t as Select } from "./Select-prMx73V9.js";
|
|
10
|
-
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { jsx } from "preact/jsx-runtime";
|
|
12
|
-
//#region src/components/Shared/fields/CountryField/CountryField.tsx
|
|
13
|
-
var COUNTRY_FIELD = ["country"];
|
|
14
|
-
function CountryField({ name = "country", data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, handleBlur }) {
|
|
15
|
-
const { t } = useTranslation("common");
|
|
16
|
-
const { dataset: countriesFromApi } = useDataset(datasetIdentifier.country);
|
|
17
|
-
const countries = useMemo(() => countriesFromApi.filter((country) => allowedCountries ? allowedCountries.includes(country.id) : true), [allowedCountries, countriesFromApi]);
|
|
18
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
19
|
-
name,
|
|
20
|
-
label: labels?.country || t(($) => $["country"]),
|
|
21
|
-
errorMessage: errors.country,
|
|
22
|
-
isValid: valid.country,
|
|
23
|
-
helper: helperText,
|
|
24
|
-
dataTestId: "country",
|
|
25
|
-
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
26
|
-
...childProps,
|
|
27
|
-
name,
|
|
28
|
-
placeholder: t(($) => $["selectCountryRegion"]),
|
|
29
|
-
selected: data.country,
|
|
30
|
-
items: countries,
|
|
31
|
-
readonly: (countries.length === 1 || readonly) && !!data,
|
|
32
|
-
onChange: handleChangeFor("country"),
|
|
33
|
-
onBlur: handleBlur
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { CountryField as n, COUNTRY_FIELD as t };
|
|
@@ -1,238 +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] = "f323c9b3-4ccf-48a8-a2ef-002e93818577", e._sentryDebugIdIdentifier = "sentry-dbid-f323c9b3-4ccf-48a8-a2ef-002e93818577");
|
|
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 { t as Button } from "./Button-BxdC8cVB.js";
|
|
8
|
-
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
9
|
-
import { t as listToRecord } from "./listToRecord-DumSkYDz.js";
|
|
10
|
-
import { t as Alert } from "./Alert-BqbbDRYR.js";
|
|
11
|
-
import { t as Modal } from "./Modal-Dq44ZUNN.js";
|
|
12
|
-
import { t as Confirm } from "./Confirm-DjFpxSzC.js";
|
|
13
|
-
import { t as isEmpty } from "./isEmpty-Uewyl-r6.js";
|
|
14
|
-
import { t as RadioWithLabel } from "./RadioWithLabel-BmUFWDxq.js";
|
|
15
|
-
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
16
|
-
import cx from "classnames";
|
|
17
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
18
|
-
var ConflictRow_module_default = {
|
|
19
|
-
"conflict-row-table": "_conflict-row-table_y7ii4_1",
|
|
20
|
-
conflictRowTable: "_conflict-row-table_y7ii4_1",
|
|
21
|
-
"conflict-row-list": "_conflict-row-list_y7ii4_12",
|
|
22
|
-
conflictRowList: "_conflict-row-list_y7ii4_12",
|
|
23
|
-
"conflict-row-list-option-label": "_conflict-row-list-option-label_y7ii4_29",
|
|
24
|
-
conflictRowListOptionLabel: "_conflict-row-list-option-label_y7ii4_29"
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/components/Shared/DataConflictsModal/ConflictRow.tsx
|
|
28
|
-
var ConflictRow = ({ provided, detected, label, formatter = (val) => val, selected, onSelect, showAs }) => {
|
|
29
|
-
const { t } = useTranslation("common");
|
|
30
|
-
const hasOnlyProvided = !isEmpty(provided) && isEmpty(detected);
|
|
31
|
-
const hasOnlyDetected = isEmpty(provided) && !isEmpty(detected);
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
if (selected !== void 0) return;
|
|
34
|
-
if (hasOnlyProvided) onSelect("provided");
|
|
35
|
-
else if (hasOnlyDetected) onSelect("detected");
|
|
36
|
-
}, [
|
|
37
|
-
hasOnlyProvided,
|
|
38
|
-
hasOnlyDetected,
|
|
39
|
-
onSelect,
|
|
40
|
-
selected
|
|
41
|
-
]);
|
|
42
|
-
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
43
|
-
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", {
|
|
44
|
-
className: ConflictRow_module_default.conflictRowList,
|
|
45
|
-
children: [/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, {
|
|
46
|
-
variant: "caption",
|
|
47
|
-
children: t(($) => $[label])
|
|
48
|
-
}) }), /* @__PURE__ */ jsxs("dd", { children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
|
|
49
|
-
variant: "caption",
|
|
50
|
-
color: "tertiary",
|
|
51
|
-
className: ConflictRow_module_default.conflictRowListOptionLabel,
|
|
52
|
-
children: t(($) => $["youEntered"])
|
|
53
|
-
}), /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
54
|
-
label: formatter(provided),
|
|
55
|
-
value: "provided",
|
|
56
|
-
checked: selected === "provided",
|
|
57
|
-
onClick: () => onSelect("provided")
|
|
58
|
-
})] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
|
|
59
|
-
variant: "caption",
|
|
60
|
-
color: "tertiary",
|
|
61
|
-
className: ConflictRow_module_default.conflictRowListOptionLabel,
|
|
62
|
-
children: t(($) => $["weDetected"])
|
|
63
|
-
}), /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
64
|
-
label: formatter(detected),
|
|
65
|
-
value: "detected",
|
|
66
|
-
checked: selected === "detected",
|
|
67
|
-
onClick: () => onSelect("detected")
|
|
68
|
-
})] })] })]
|
|
69
|
-
}) : /* @__PURE__ */ jsxs("tr", {
|
|
70
|
-
className: ConflictRow_module_default.conflictRowTable,
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, {
|
|
73
|
-
variant: "caption",
|
|
74
|
-
children: t(($) => $[label])
|
|
75
|
-
}) }),
|
|
76
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
77
|
-
label: formatter(provided),
|
|
78
|
-
value: "provided",
|
|
79
|
-
checked: selected === "provided",
|
|
80
|
-
onClick: () => onSelect("provided")
|
|
81
|
-
}) }),
|
|
82
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
83
|
-
label: formatter(detected),
|
|
84
|
-
value: "detected",
|
|
85
|
-
checked: selected === "detected",
|
|
86
|
-
onClick: () => onSelect("detected")
|
|
87
|
-
}) })
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
var DataConflictsModal_module_default = {
|
|
92
|
-
"data-conflicts-wrapper": "_data-conflicts-wrapper_c81aq_1",
|
|
93
|
-
dataConflictsWrapper: "_data-conflicts-wrapper_c81aq_1",
|
|
94
|
-
"data-conflicts-header": "_data-conflicts-header_c81aq_7",
|
|
95
|
-
dataConflictsHeader: "_data-conflicts-header_c81aq_7",
|
|
96
|
-
"data-conflicts-table": "_data-conflicts-table_c81aq_15",
|
|
97
|
-
dataConflictsTable: "_data-conflicts-table_c81aq_15",
|
|
98
|
-
"data-conflicts-list": "_data-conflicts-list_c81aq_26",
|
|
99
|
-
dataConflictsList: "_data-conflicts-list_c81aq_26",
|
|
100
|
-
"data-conflicts-list-forced": "_data-conflicts-list-forced_c81aq_46",
|
|
101
|
-
dataConflictsListForced: "_data-conflicts-list-forced_c81aq_46",
|
|
102
|
-
"data-conflicts-table-hidden": "_data-conflicts-table-hidden_c81aq_50",
|
|
103
|
-
dataConflictsTableHidden: "_data-conflicts-table-hidden_c81aq_50"
|
|
104
|
-
};
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/components/Shared/DataConflictsModal/DataConflictsModal.tsx
|
|
107
|
-
/**
|
|
108
|
-
* A modal component for resolving data conflicts between two data sources.
|
|
109
|
-
*
|
|
110
|
-
* This component is typically used in a KYC (Know Your Customer) flow where user-provided data
|
|
111
|
-
* is compared against data extracted from a document (e.g., via OCR).
|
|
112
|
-
*
|
|
113
|
-
* It identifies differing fields, presents them to the user, and allows them to select the
|
|
114
|
-
* correct version for each field before proceeding.
|
|
115
|
-
*
|
|
116
|
-
* @template Data The shape of the data objects being compared.
|
|
117
|
-
* @template Property A union of keys from the `Data` object, constrained to `NsTranslationKey<'common'>`.
|
|
118
|
-
*/
|
|
119
|
-
var DataConflictsModal = ({ providedData, detectedData, conflictingProperties, formatters, title, explanation, onContinue, labels, onCancel, cancelConfirmation, listOnly = false }) => {
|
|
120
|
-
const { t: commonT } = useTranslation("common");
|
|
121
|
-
const [showCancelModal, setShowCancelModal] = useState(false);
|
|
122
|
-
const [showError, setShowError] = useState(false);
|
|
123
|
-
/**
|
|
124
|
-
* A record object that maps each conflicting property key to its `provided` and `detected` values.
|
|
125
|
-
* This is memoized for performance, as it's derived from `conflictingProperties` and only needs
|
|
126
|
-
* to be recalculated if the list of conflicts changes.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* // returns: { firstName: { provided: 'Jon', detected: 'John' } }
|
|
130
|
-
*/
|
|
131
|
-
const conflictItems = useMemo(() => listToRecord(conflictingProperties, (property) => ({
|
|
132
|
-
provided: providedData[property],
|
|
133
|
-
detected: detectedData[property]
|
|
134
|
-
})), [
|
|
135
|
-
conflictingProperties,
|
|
136
|
-
providedData,
|
|
137
|
-
detectedData
|
|
138
|
-
]);
|
|
139
|
-
const [resolutions, setResolutions] = useState(() => listToRecord(conflictingProperties, () => void 0));
|
|
140
|
-
const resolveProperty = useCallback((property, selected) => {
|
|
141
|
-
setShowError(false);
|
|
142
|
-
setResolutions((prev) => ({
|
|
143
|
-
...prev,
|
|
144
|
-
[property]: selected
|
|
145
|
-
}));
|
|
146
|
-
}, []);
|
|
147
|
-
return /* @__PURE__ */ jsxs(Modal, {
|
|
148
|
-
ariaLabel: title,
|
|
149
|
-
onClose: () => cancelConfirmation ? setShowCancelModal(true) : onCancel(),
|
|
150
|
-
inset: true,
|
|
151
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
152
|
-
className: DataConflictsModal_module_default.dataConflictsWrapper,
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ jsxs("div", {
|
|
155
|
-
className: DataConflictsModal_module_default.dataConflictsHeader,
|
|
156
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
157
|
-
variant: "title-l",
|
|
158
|
-
el: "h1",
|
|
159
|
-
children: title
|
|
160
|
-
}), /* @__PURE__ */ jsx(Typography, {
|
|
161
|
-
variant: "body",
|
|
162
|
-
children: explanation
|
|
163
|
-
})]
|
|
164
|
-
}),
|
|
165
|
-
showError ? /* @__PURE__ */ jsx(Alert, {
|
|
166
|
-
variant: "error",
|
|
167
|
-
title: commonT(($) => $["chooseTheCorrectDetailsBeforeProceeding"])
|
|
168
|
-
}) : void 0,
|
|
169
|
-
/* @__PURE__ */ jsx("dl", {
|
|
170
|
-
className: cx(DataConflictsModal_module_default.dataConflictsList, { [DataConflictsModal_module_default.dataConflictsListForced]: listOnly }),
|
|
171
|
-
children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(ConflictRow, {
|
|
172
|
-
showAs: "listItem",
|
|
173
|
-
label: labels?.[property] ?? property,
|
|
174
|
-
formatter: formatters[property],
|
|
175
|
-
provided: conflictItems[property].provided,
|
|
176
|
-
detected: conflictItems[property].detected,
|
|
177
|
-
selected: resolutions[property],
|
|
178
|
-
onSelect: (selected) => resolveProperty(property, selected)
|
|
179
|
-
}, property))
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ jsxs("table", {
|
|
182
|
-
className: cx(DataConflictsModal_module_default.dataConflictsTable, { [DataConflictsModal_module_default.dataConflictsTableHidden]: listOnly }),
|
|
183
|
-
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
184
|
-
/* @__PURE__ */ jsx("th", {}),
|
|
185
|
-
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, {
|
|
186
|
-
variant: "caption",
|
|
187
|
-
color: "tertiary",
|
|
188
|
-
children: commonT(($) => $["youEntered"])
|
|
189
|
-
}) }),
|
|
190
|
-
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, {
|
|
191
|
-
variant: "caption",
|
|
192
|
-
color: "tertiary",
|
|
193
|
-
children: commonT(($) => $["weDetected"])
|
|
194
|
-
}) })
|
|
195
|
-
] }) }), /* @__PURE__ */ jsx("tbody", { children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(ConflictRow, {
|
|
196
|
-
showAs: "tableRow",
|
|
197
|
-
label: labels?.[property] ?? property,
|
|
198
|
-
formatter: formatters[property],
|
|
199
|
-
provided: conflictItems[property].provided,
|
|
200
|
-
detected: conflictItems[property].detected,
|
|
201
|
-
selected: resolutions[property],
|
|
202
|
-
onSelect: (selected) => resolveProperty(property, selected)
|
|
203
|
-
}, property)) })]
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ jsx(Button, {
|
|
206
|
-
fullWidth: true,
|
|
207
|
-
onClick: () => {
|
|
208
|
-
if (!conflictingProperties.every((p) => resolutions[p])) {
|
|
209
|
-
setShowError(true);
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* 2. Build an object containing only the user's selections for the conflicting properties.
|
|
214
|
-
* This intermediate object will only contain the keys that had a mismatch.
|
|
215
|
-
*/
|
|
216
|
-
const resolvedConflicts = listToRecord(conflictingProperties, (property) => {
|
|
217
|
-
return resolutions[property] === "provided" ? providedData[property] : detectedData[property];
|
|
218
|
-
});
|
|
219
|
-
onContinue({
|
|
220
|
-
...providedData,
|
|
221
|
-
...resolvedConflicts
|
|
222
|
-
});
|
|
223
|
-
},
|
|
224
|
-
children: commonT(($) => $["confirmSelection"])
|
|
225
|
-
})
|
|
226
|
-
]
|
|
227
|
-
}), cancelConfirmation && showCancelModal && /* @__PURE__ */ jsx(Confirm, {
|
|
228
|
-
title: cancelConfirmation.title,
|
|
229
|
-
confirmText: cancelConfirmation.confirmText,
|
|
230
|
-
description: cancelConfirmation.description,
|
|
231
|
-
onConfirm: onCancel,
|
|
232
|
-
onCancel: () => setShowCancelModal(false),
|
|
233
|
-
critical: false
|
|
234
|
-
})]
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
//#endregion
|
|
238
|
-
export { DataConflictsModal as t };
|
package/dist/Field-Df7ajJE2.js
DELETED
|
@@ -1,154 +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] = "b285277e-86fe-46ec-9b6d-343966b52182", e._sentryDebugIdIdentifier = "sentry-dbid-b285277e-86fe-46ec-9b6d-343966b52182");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as Icon } from "./Icon-DFQgr7dy.js";
|
|
7
|
-
import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
|
|
8
|
-
import { t as useId } from "./useId-BkDhUta2.js";
|
|
9
|
-
import { useEffect } from "preact/hooks";
|
|
10
|
-
import cx from "classnames";
|
|
11
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
12
|
-
//#region src/components/ui/molecules/ErrorPanel/constants.ts
|
|
13
|
-
var ARIA_ERROR_SUFFIX = "-ariaError";
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/components/ui/atoms/Field/Field.tsx
|
|
16
|
-
/**
|
|
17
|
-
* Internal component to render either a wrapping `<div>` for a single input field,
|
|
18
|
-
* or a `<fieldset>` for a group of related inputs (like RadioGroupCard or RadioGroup).
|
|
19
|
-
*/
|
|
20
|
-
var MaybeFieldset = ({ children, className, name, disabled, el, dataTestId }) => el === "fieldset" ? /* @__PURE__ */ jsx("fieldset", {
|
|
21
|
-
name,
|
|
22
|
-
disabled,
|
|
23
|
-
className,
|
|
24
|
-
"data-testid": dataTestId,
|
|
25
|
-
children
|
|
26
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
27
|
-
className,
|
|
28
|
-
"data-testid": dataTestId,
|
|
29
|
-
children
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* A wrapper component for form inputs that provides consistent layout and handling for labels,
|
|
33
|
-
* descriptions (ex. helper text, error text), validation, styling, etc.
|
|
34
|
-
* For use with various input components like `InputText`, `InputDate`, `Select`, etc.
|
|
35
|
-
*
|
|
36
|
-
* FieldChildProps are props passed to children which include a unique identifier (id) and other validation/a11y related props
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <Field name="lastName" label="Last name" isValid={valid?.lastName} helper="This is helper text" >
|
|
41
|
-
{(childProps) => (
|
|
42
|
-
<InputText
|
|
43
|
-
{...childProps}
|
|
44
|
-
name="lastName"
|
|
45
|
-
value={data?.lastName}
|
|
46
|
-
/>
|
|
47
|
-
)}
|
|
48
|
-
</Field>
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
var Field = ({ className, children, disabled, optional, errorMessage, formatGuidance, helper, helperPosition = "above", isValid, label, name, showErrorIconBottom = false, showErrorIcon = true, el = "div", dataTestId, onBlur, onFieldBlur, onFocus }) => {
|
|
52
|
-
const uniqueId = useId("field");
|
|
53
|
-
const { t } = useTranslation("common");
|
|
54
|
-
const userEvents = useAnalyticsContext();
|
|
55
|
-
const Label = el === "fieldset" ? "legend" : "label";
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (!errorMessage) return;
|
|
58
|
-
userEvents.addFieldEvent("Encountered error", {
|
|
59
|
-
actionType: "input",
|
|
60
|
-
field: name,
|
|
61
|
-
returnType: "validation",
|
|
62
|
-
returnValue: errorMessage.key
|
|
63
|
-
});
|
|
64
|
-
}, [
|
|
65
|
-
name,
|
|
66
|
-
errorMessage,
|
|
67
|
-
userEvents
|
|
68
|
-
]);
|
|
69
|
-
const elementIds = {
|
|
70
|
-
label: `${uniqueId}-label`,
|
|
71
|
-
helper: `${uniqueId}-helper`,
|
|
72
|
-
error: `${uniqueId}${ARIA_ERROR_SUFFIX}`,
|
|
73
|
-
guidanceText: `${uniqueId}-guidanceText`
|
|
74
|
-
};
|
|
75
|
-
const inputDescribedBy = `${errorMessage ? elementIds.error : ""} ${helper ? elementIds.helper : ""} ${formatGuidance ? elementIds.guidanceText : ""}`.trim();
|
|
76
|
-
return /* @__PURE__ */ jsxs(MaybeFieldset, {
|
|
77
|
-
className: cx("adyen-kyc-field", className, {
|
|
78
|
-
"adyen-kyc-field--error": !!errorMessage,
|
|
79
|
-
"adyen-kyc-field--valid": isValid,
|
|
80
|
-
"adyen-kyc-field--disabled": disabled
|
|
81
|
-
}),
|
|
82
|
-
name,
|
|
83
|
-
disabled,
|
|
84
|
-
el,
|
|
85
|
-
dataTestId,
|
|
86
|
-
children: [
|
|
87
|
-
label && /* @__PURE__ */ jsxs(Label, {
|
|
88
|
-
id: elementIds.label,
|
|
89
|
-
htmlFor: el === "fieldset" ? void 0 : uniqueId,
|
|
90
|
-
className: cx("adyen-kyc-label__text", { "adyen-kyc-label__text--error": !!errorMessage }),
|
|
91
|
-
children: [label, optional && /* @__PURE__ */ jsxs("span", {
|
|
92
|
-
className: "adyen-kyc-optional-label",
|
|
93
|
-
children: [" ", t(($) => $["optional"])]
|
|
94
|
-
})]
|
|
95
|
-
}),
|
|
96
|
-
helper && helperPosition === "above" && /* @__PURE__ */ jsx("span", {
|
|
97
|
-
id: elementIds.helper,
|
|
98
|
-
className: "adyen-kyc-helper-text adyen-kyc-helper-text__above",
|
|
99
|
-
children: helper
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ jsxs("div", {
|
|
102
|
-
className: "adyen-kyc-input-wrapper",
|
|
103
|
-
children: [
|
|
104
|
-
children({
|
|
105
|
-
id: uniqueId,
|
|
106
|
-
"aria-labelledby": elementIds.label,
|
|
107
|
-
"aria-describedby": inputDescribedBy,
|
|
108
|
-
isInvalid: !!errorMessage,
|
|
109
|
-
isValid: !!isValid,
|
|
110
|
-
onBlurHandler: (e) => {
|
|
111
|
-
if (typeof onBlur === "function") onBlur(e);
|
|
112
|
-
if (typeof onFieldBlur === "function") onFieldBlur(e);
|
|
113
|
-
},
|
|
114
|
-
onFocusHandler: (e) => {
|
|
115
|
-
if (typeof onFocus === "function") onFocus(e);
|
|
116
|
-
}
|
|
117
|
-
}),
|
|
118
|
-
helper && helperPosition === "below" && /* @__PURE__ */ jsx("span", {
|
|
119
|
-
id: elementIds.helper,
|
|
120
|
-
className: "adyen-kyc-helper-text adyen-kyc-helper-text__below",
|
|
121
|
-
children: helper
|
|
122
|
-
}),
|
|
123
|
-
!!errorMessage && !showErrorIconBottom && showErrorIcon && /* @__PURE__ */ jsx("span", {
|
|
124
|
-
className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid",
|
|
125
|
-
children: /* @__PURE__ */ jsx(Icon, { name: "field-error" })
|
|
126
|
-
})
|
|
127
|
-
]
|
|
128
|
-
}),
|
|
129
|
-
!!errorMessage?.message && /* @__PURE__ */ jsxs("div", {
|
|
130
|
-
"aria-live": "polite",
|
|
131
|
-
"aria-atomic": true,
|
|
132
|
-
className: "adyen-kyc-error-text",
|
|
133
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
134
|
-
className: "u-screen-reader-only",
|
|
135
|
-
children: `${label}:`
|
|
136
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
137
|
-
id: elementIds.error,
|
|
138
|
-
children: [errorMessage.message, showErrorIconBottom && /* @__PURE__ */ jsx("span", {
|
|
139
|
-
className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid-bottom",
|
|
140
|
-
children: /* @__PURE__ */ jsx(Icon, { name: "field-error" })
|
|
141
|
-
})]
|
|
142
|
-
})]
|
|
143
|
-
}),
|
|
144
|
-
!errorMessage && formatGuidance && /* @__PURE__ */ jsx("span", {
|
|
145
|
-
id: elementIds.guidanceText,
|
|
146
|
-
"aria-live": "polite",
|
|
147
|
-
className: "adyen-kyc-guidance-text",
|
|
148
|
-
children: formatGuidance
|
|
149
|
-
})
|
|
150
|
-
]
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
//#endregion
|
|
154
|
-
export { Field as t };
|
|
@@ -1,20 +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] = "c4862ec5-2c27-4822-a380-75b3b1a83bd4", e._sentryDebugIdIdentifier = "sentry-dbid-c4862ec5-2c27-4822-a380-75b3b1a83bd4");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
var FormFlow_module_default = {
|
|
6
|
-
"form-flow": "_form-flow_1eou7_1",
|
|
7
|
-
formFlow: "_form-flow_1eou7_1",
|
|
8
|
-
"form-flow-content": "_form-flow-content_1eou7_9",
|
|
9
|
-
formFlowContent: "_form-flow-content_1eou7_9",
|
|
10
|
-
"form-flow-footer": "_form-flow-footer_1eou7_30",
|
|
11
|
-
formFlowFooter: "_form-flow-footer_1eou7_30",
|
|
12
|
-
"form-flow-footer-border": "_form-flow-footer-border_1eou7_45",
|
|
13
|
-
formFlowFooterBorder: "_form-flow-footer-border_1eou7_45",
|
|
14
|
-
"form-flow-actions": "_form-flow-actions_1eou7_49",
|
|
15
|
-
formFlowActions: "_form-flow-actions_1eou7_49",
|
|
16
|
-
"form-flow-primary-actions": "_form-flow-primary-actions_1eou7_56",
|
|
17
|
-
formFlowPrimaryActions: "_form-flow-primary-actions_1eou7_56"
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { FormFlow_module_default as t };
|
package/dist/Header-DvifUz7-.js
DELETED
|
@@ -1,93 +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] = "8f9749da-8a7d-4506-89d5-ec6ce64f545e", e._sentryDebugIdIdentifier = "sentry-dbid-8f9749da-8a7d-4506-89d5-ec6ce64f545e");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
6
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Bd5Eftf2.js";
|
|
7
|
-
import cx from "classnames";
|
|
8
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
9
|
-
import { defineSlots } from "named-slots";
|
|
10
|
-
var Header_module_default = {
|
|
11
|
-
header: "_header_15umz_1",
|
|
12
|
-
"header-margin": "_header-margin_15umz_7",
|
|
13
|
-
headerMargin: "_header-margin_15umz_7",
|
|
14
|
-
"header-margin-secondary": "_header-margin-secondary_15umz_11",
|
|
15
|
-
headerMarginSecondary: "_header-margin-secondary_15umz_11",
|
|
16
|
-
"header-left": "_header-left_15umz_15",
|
|
17
|
-
headerLeft: "_header-left_15umz_15",
|
|
18
|
-
"header-center": "_header-center_15umz_20",
|
|
19
|
-
headerCenter: "_header-center_15umz_20",
|
|
20
|
-
"header-right": "_header-right_15umz_25",
|
|
21
|
-
headerRight: "_header-right_15umz_25",
|
|
22
|
-
"header-content": "_header-content_15umz_30",
|
|
23
|
-
headerContent: "_header-content_15umz_30",
|
|
24
|
-
"header-actions": "_header-actions_15umz_36",
|
|
25
|
-
headerActions: "_header-actions_15umz_36",
|
|
26
|
-
"header-title": "_header-title_15umz_40",
|
|
27
|
-
headerTitle: "_header-title_15umz_40",
|
|
28
|
-
"header-title-primary": "_header-title-primary_15umz_45",
|
|
29
|
-
headerTitlePrimary: "_header-title-primary_15umz_45",
|
|
30
|
-
"header-title-secondary": "_header-title-secondary_15umz_52",
|
|
31
|
-
headerTitleSecondary: "_header-title-secondary_15umz_52",
|
|
32
|
-
"header-description": "_header-description_15umz_58",
|
|
33
|
-
headerDescription: "_header-description_15umz_58",
|
|
34
|
-
"header-description-primary": "_header-description-primary_15umz_65",
|
|
35
|
-
headerDescriptionPrimary: "_header-description-primary_15umz_65",
|
|
36
|
-
"header-description-secondary": "_header-description-secondary_15umz_69",
|
|
37
|
-
headerDescriptionSecondary: "_header-description-secondary_15umz_69"
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/components/ui/atoms/Header/Header.tsx
|
|
41
|
-
var alignmentStyles = {
|
|
42
|
-
left: Header_module_default.headerLeft,
|
|
43
|
-
center: Header_module_default.headerCenter,
|
|
44
|
-
right: Header_module_default.headerRight
|
|
45
|
-
};
|
|
46
|
-
var Header = ({ align = "left", children, description, secondary = false, status, title }) => {
|
|
47
|
-
const { Slot, hasSlot } = defineSlots(children ?? [], ["actions", "description"]);
|
|
48
|
-
const HeadingElement = secondary ? "h2" : "h1";
|
|
49
|
-
const rootClassname = cx(Header_module_default.header, alignmentStyles[align], {
|
|
50
|
-
[Header_module_default.headerMargin]: !secondary,
|
|
51
|
-
[Header_module_default.headerMarginSecondary]: secondary
|
|
52
|
-
});
|
|
53
|
-
const titleClassname = cx(Header_module_default.headerTitle, {
|
|
54
|
-
[Header_module_default.headerTitlePrimary]: !secondary,
|
|
55
|
-
[Header_module_default.headerTitleSecondary]: secondary
|
|
56
|
-
});
|
|
57
|
-
const descriptionClassname = cx(Header_module_default.headerDescription, {
|
|
58
|
-
[Header_module_default.headerDescriptionPrimary]: !secondary,
|
|
59
|
-
[Header_module_default.headerDescriptionSecondary]: secondary
|
|
60
|
-
});
|
|
61
|
-
return /* @__PURE__ */ jsxs("header", {
|
|
62
|
-
className: rootClassname,
|
|
63
|
-
children: [
|
|
64
|
-
status && /* @__PURE__ */ jsx(TaskVerificationStatus, {
|
|
65
|
-
status,
|
|
66
|
-
responsive: false
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsxs("div", {
|
|
69
|
-
className: Header_module_default.headerContent,
|
|
70
|
-
children: [/* @__PURE__ */ jsx(HeadingElement, {
|
|
71
|
-
className: titleClassname,
|
|
72
|
-
children: title
|
|
73
|
-
}), (hasSlot("description") || description) && /* @__PURE__ */ jsx("div", {
|
|
74
|
-
className: descriptionClassname,
|
|
75
|
-
children: /* @__PURE__ */ jsx(Slot, {
|
|
76
|
-
name: "description",
|
|
77
|
-
children: description
|
|
78
|
-
})
|
|
79
|
-
})]
|
|
80
|
-
}),
|
|
81
|
-
hasSlot("actions") && /* @__PURE__ */ jsx("div", {
|
|
82
|
-
className: Header_module_default.headerActions,
|
|
83
|
-
children: /* @__PURE__ */ jsx(StackLayout, {
|
|
84
|
-
gap: "small",
|
|
85
|
-
horizontal: true,
|
|
86
|
-
children: /* @__PURE__ */ jsx(Slot, { name: "actions" })
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
//#endregion
|
|
93
|
-
export { Header as t };
|