@adyen/kyc-components 4.27.0 → 4.28.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-CAxQpi_3.js → 4-people-C_-N5Vvz.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-CLTk8Oyx.js → AcceptTermsOfServiceWorkflow-CWGZOKtu.js} +4 -4
- package/dist/{Accordion-CTQfC17W.js → Accordion-DyU-Pxob.js} +1 -1
- package/dist/{AccountSetupRejected-DaFbhfSI.js → AccountSetupRejected-Bs7galfS.js} +2 -2
- package/dist/{AdaptiveWorkflow-42UsUwm-.js → AdaptiveWorkflow-DXJ1u52c.js} +117 -48
- package/dist/{AdaptiveWorkflowComponent-DZwG4TmA.js → AdaptiveWorkflowComponent-Bmo1CJwM.js} +29 -29
- package/dist/{AddressFields-D78Szxmw.js → AddressFields-M5jupF8l.js} +10 -10
- package/dist/{Avatar-yJfk9A6l.js → Avatar-BBJO6JWY.js} +1 -1
- package/dist/{BusinessFinancingDropin-Sxpsw1Ib.js → BusinessFinancingDropin-Bbw34hVf.js} +34 -34
- package/dist/{BusinessFinancingPage-DBIhC8Us.js → BusinessFinancingPage-CvD-Tk_-.js} +54 -54
- package/dist/{BusinessRegistrationNumberField-BdMxV-Tb.js → BusinessRegistrationNumberField-B1O-D58L.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-Cj8O_z1t.js → BusinessRegistrationNumberFieldGroup-C8UNd3to.js} +12 -7
- package/dist/{BusinessTypeSelectionPage-qHvILw07.js → BusinessTypeSelectionPage-B10xJcSU.js} +12 -12
- package/dist/{Button-BYafPrZH.js → Button-EhGM-oCO.js} +1 -1
- package/dist/{Checkbox-CEkD-Lpm.js → Checkbox-CyMoenl6.js} +3 -3
- package/dist/{ComponentGroup-DVHVDBTY.js → ComponentGroup-Jgi1oBjC.js} +10 -9
- package/dist/{ConstitutionalDocument-CRmlhFeL.js → ConstitutionalDocument-bMwKgqNu.js} +16 -15
- package/dist/{ContactDetails-Cqfks3uk.js → ContactDetails-Dfr6ysdg.js} +5 -5
- package/dist/{ContextGuidance-DfK3CyBg.js → ContextGuidance-C7seYQD4.js} +3 -3
- package/dist/{CountryField-BjQOdWzz.js → CountryField-EEsbyp0x.js} +8 -6
- package/dist/{Currency-CbDX0TMX.js → Currency-dsFhBAjy.js} +8 -8
- package/dist/{CustomerSupport-DhHfxyq-.js → CustomerSupport-CJVqvdU5.js} +34 -13
- package/dist/{DateField-B2QaXKJu.js → DateField-t7FT_iiL.js} +13 -9
- package/dist/{DebugModal-Bg9rzwSn.js → DebugModal-BTrunkih.js} +154 -109
- package/dist/{DecisionMakerDetails-AoJgg4cg.js → DecisionMakerDetails-DMljWAWQ.js} +13 -13
- package/dist/{DecisionMakerDetailsPage-C_AdIcGC.js → DecisionMakerDetailsPage-B5c_0PN_.js} +7 -7
- package/dist/{DecisionMakers-C6l8bABC.js → DecisionMakers-a3DaG-6U.js} +14 -14
- package/dist/{Dropzone-DgxhMiDp.js → Dropzone-448ZL9VM.js} +7 -7
- package/dist/{EmailField-CXN3LYZ2.js → EmailField-Cra7AXIF.js} +12 -9
- package/dist/{EmbeddedStatus-mdQsQfof.js → EmbeddedStatus-aQaNHawQ.js} +2 -2
- package/dist/{EndStateLayout-B-M90Rnh.js → EndStateLayout-CBzxX67s.js} +2 -2
- package/dist/{EntityAssociation-D_q0Wc3i.js → EntityAssociation-CGquqR8h.js} +6 -6
- package/dist/{ErrorPanel-CPEt21Se.js → ErrorPanel-CXMvMtur.js} +4 -4
- package/dist/{GlobalEntryModal-BLcLbtbY.js → GlobalEntryModal-CM5T8FKp.js} +312 -100
- package/dist/{GlobalEntryPage-DWOIX03S.js → GlobalEntryPage-BP588kux.js} +32 -32
- package/dist/Icon-D2IGgB2L.js +175 -0
- package/dist/{IdentityNumber-B9Jnp2Kq.js → IdentityNumber-DnA5GktA.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-BSl7SDIS.js → IdentityNumberFieldGroup-R8A5uEoN.js} +38 -16
- package/dist/{IdentityScreeningWorkflow-GYt_zgUF.js → IdentityScreeningWorkflow-BEf9j8g8.js} +14 -13
- package/dist/{IndividualDropin-Diyiw3Hi.js → IndividualDropin-BunW0Y1z.js} +60 -39
- package/dist/{IndustryCodeFieldGroup-C2-FCfpN.js → IndustryCodeFieldGroup-Dgped8t4.js} +8 -10
- package/dist/{InputDate-BHrNsorX.js → InputDate-PcZy5N0W.js} +3 -3
- package/dist/{Introduction-DYn_jO1o.js → Introduction-CLSqIBpQ.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CUe2AxiZ.js → InvitedDecisionMakerComponent-BxhfJSKq.js} +36 -36
- package/dist/{JpAddressFields-C4qtHjp0.js → JpAddressFields-CapPuNBU.js} +9 -9
- package/dist/{LegalCompanyNameField-DFo-ZOZk.js → LegalCompanyNameField-4bmqY29I.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BOfRTyqK.js → LegalRepresentativeDetailsPage-DxOy9vCU.js} +3 -3
- package/dist/{Link-DwPkGikd.js → Link-BtWj5mVH.js} +1 -1
- package/dist/{ListItem-n927geYb.js → ListItem-aX6AyCay.js} +3 -3
- package/dist/{Name-DOj6CpgZ.js → Name-CsOs3hQG.js} +4 -4
- package/dist/{NumberField-CkdysfUI.js → NumberField-D8xlMgic.js} +12 -9
- package/dist/{PatriotActDisclosure-DkqbHOFx.js → PatriotActDisclosure-CTwsaivh.js} +10 -10
- package/dist/{PayoutDetailsDropin-CF7itBsp.js → PayoutDetailsDropin-DAzIUYe4.js} +30 -28
- package/dist/{PayoutDetailsPage-Dc_D071R.js → PayoutDetailsPage-VLk0DpD7.js} +4 -4
- package/dist/{InputText-BwXmy0Yr.js → RadioGroup-CEi7ZDGi.js} +80 -5
- package/dist/{Review-Ku4iYkp6.js → Review-B03d6GlL.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CTSZl23n.js → RootBusinessDetailsPage-bY2g62IM.js} +4 -4
- package/dist/{RootBusinessLinesPage-TqlW5o-4.js → RootBusinessLinesPage-DKqmR8rB.js} +21 -21
- package/dist/{RootIndividualDetailsPage-DG6IUpC8.js → RootIndividualDetailsPage-YA9xZU8y.js} +4 -4
- package/dist/{Select-DPJ8234F.js → Select-DTqe0uNK.js} +5 -6
- package/dist/{SignPCIComponent-DHIPpLKT.js → SignPCIComponent-CXGnjpKO.js} +38 -38
- package/dist/{SingpassSelection-BRJCTmKj.js → SingpassSelection-CDHJdkCZ.js} +5 -5
- package/dist/SingpassSelectionCTA-sVs1ou1t.js +71 -0
- package/dist/{SoleProprietorshipPage-JOV_QddZ.js → SoleProprietorshipPage-DCjHOTI3.js} +4 -4
- package/dist/{SourceOfFundsPage-DxQADTn7.js → SourceOfFundsPage-BEPx4XB0.js} +22 -22
- package/dist/{SourceOfFundsWorkflow-fFGA8BYS.js → SourceOfFundsWorkflow-CWYq6pxv.js} +4 -4
- package/dist/{StateField-LcRkkvIH.js → StateField-DgYpF1_M.js} +6 -6
- package/dist/{Step-DaFQX--s.js → Step-DGmEuzNc.js} +15 -9
- package/dist/{Summary-DgLYHPLg.js → Summary-CzJ698Zr.js} +2 -2
- package/dist/{SummarySection-CLaB0E12.js → SummarySection-uydAtNRx.js} +4 -4
- package/dist/{Task-CkhQ3vzl.js → Task-CxQnoPlO.js} +41 -31
- package/dist/{TaskGroup-BSPFdlu9.js → TaskGroup-CNvLui70.js} +10 -6
- package/dist/{TaskListItem-B87Vgx8N.js → TaskListItem-D84K14gG.js} +10 -10
- package/dist/{TaskStepperContextProvider-DiMf4UV6.js → TaskStepperContextProvider-C36jSigo.js} +1 -1
- package/dist/{TaskVerificationStatus-C1CllzL1.js → TaskVerificationStatus-Br7t30ur.js} +1 -1
- package/dist/{TaxInformationFieldGroup-BBASFehB.js → TaxInformationFieldGroup-hUnJmpAo.js} +68 -111
- package/dist/{TaxReportingDropin-BvJ-hNA-.js → TaxReportingDropin-CR1Cpz3u.js} +14 -13
- package/dist/{TaxReportingWorkflow-BrlpMImh.js → TaxReportingWorkflow-NIVnKcpn.js} +4 -4
- package/dist/{TermsOfServiceManagement-B4H2Aia2.js → TermsOfServiceManagement-BJclOKlD.js} +38 -37
- package/dist/{TextArea-CAZrG_yC.js → TextArea-CvDM-4De.js} +4 -4
- package/dist/{TextField-DTv1BPA3.js → TextField-DBCBCZMg.js} +13 -10
- package/dist/{TrustDetailsPage-DYXIzcxJ.js → TrustDetailsPage-B_6vHQnx.js} +30 -23
- package/dist/{TrustMemberCompanyPage-pvj9sHs2.js → TrustMemberCompanyPage-DSTdfCRt.js} +5 -5
- package/dist/{TrustMemberIndividualPage-Dm4S4Vhu.js → TrustMemberIndividualPage-CxD06on9.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-HY6FQpRj.js → TrustMemberRoleAndTypePage-Bwl9Dv6w.js} +20 -20
- package/dist/{TrustMembersOverview-Bcs79IWP.js → TrustMembersOverview-Bl_tZ47h.js} +12 -12
- package/dist/{UboTaskItem-BYQusWWl.js → UboTaskItem-CYSbY0FC.js} +15 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-sBN7kPiI.js → UnincorporatedPartnershipIndividualPage-DLpkOoQr.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DHgq0TLx.js → UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx5UGEcg.js → UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js} +10 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-DxIfkkY7.js → UnincorporatedPartnershipMembersOverview-GVimwN0S.js} +6 -6
- package/dist/{VerificationErrorAlert-C_qKEwHw.js → VerificationErrorAlert-BjsV8ARt.js} +3 -3
- package/dist/{WebsiteField-BYZAR8k8.js → WebsiteField-Sz7RUbW_.js} +13 -10
- package/dist/{Workflow-ty27ZzKS.js → Workflow-Cty0HzIp.js} +11 -8
- package/dist/{accountHolderUtils-CVX0JkJf.js → accountHolderUtils-DEWA3MWe.js} +2 -2
- package/dist/adyen-business-financing.js +56 -57
- package/dist/adyen-individual-configuration.js +30 -31
- package/dist/adyen-individual-status.js +30 -31
- package/dist/adyen-invited-decision-maker.js +4 -5
- package/dist/adyen-onboarding.js +52 -178
- package/dist/adyen-terms-of-service-management.js +4 -5
- package/dist/adyen-terms-of-service-status.js +4 -5
- package/dist/adyen-transfer-instrument-configuration.js +30 -31
- package/dist/adyen-transfer-instrument-management.js +37 -38
- package/dist/adyen-verification-status.js +4 -5
- package/dist/{arrow-right-BwP9nNDE.js → arrow-right-3zKAXB3D.js} +2 -2
- package/dist/{bafinUtils-DNq-JBP5.js → bafinUtils-CFvCTqAt.js} +91 -34
- package/dist/{bag-Cnk9dcZg.js → bag-B8b-Jb8Y.js} +2 -2
- package/dist/{bank-UssyP-aG.js → bank-CQrF7P3r.js} +2 -2
- package/dist/bg-BG-CdDdNATP.js +7 -0
- package/dist/{bg-BG-CmuahJEZ.js → bg-BG-g1moSV5i.js} +8 -2
- package/dist/{bg-BG-ClMsmcda.js → bg-BG-s01xQ0IE.js} +16 -2
- package/dist/{bin--Ft4cPCj.js → bin-C4Fu9PHF.js} +2 -2
- package/dist/{capital-BbOFhTHY.js → capital-C1L-Fbue.js} +2 -2
- package/dist/{cash-stack-LTzc8hQZ.js → cash-stack-BpmsCe5x.js} +2 -2
- package/dist/{certificate-CswNcwlI.js → certificate-CEXTu9K7.js} +2 -2
- package/dist/{checkmark-DH1abKZn.js → checkmark-CuqH-tPn.js} +2 -2
- package/dist/{checkmark-circle-VWM-JsI6.js → checkmark-circle-LpY4tMPD.js} +2 -2
- package/dist/{checkmark-circle-fill-AuW2DQDT.js → checkmark-circle-fill-Cp6YFYCT.js} +2 -2
- package/dist/{checkmark-small-B6vsnsSO.js → checkmark-small-DFtNt2po.js} +2 -2
- package/dist/{chevron-down-BGAMP7CF.js → chevron-down-DhQJv6Ph.js} +2 -2
- package/dist/{chevron-left-EjFIt8Cd.js → chevron-left-DkLDfa2Z.js} +2 -2
- package/dist/{chevron-right-B5zb9mkt.js → chevron-right-BZFBWefp.js} +2 -2
- package/dist/{chevron-up-DZiittpJ.js → chevron-up-DRtWAeDd.js} +2 -2
- package/dist/{circle-CygvxRY_.js → circle-KULHbBX2.js} +2 -2
- package/dist/{circle-small-filled-PeElhgJU.js → circle-small-filled-CcOlAzmF.js} +2 -2
- package/dist/{clock-CQXEE5jK.js → clock-DEbxrDAd.js} +2 -2
- package/dist/{coins-C7syygUR.js → coins-C0-5yKat.js} +2 -2
- package/dist/{constants-D2FD75EZ.js → constants-Ctu_3qBl.js} +6 -17
- package/dist/{contract-BWEAd7e-.js → contract-B91Vhtk_.js} +2 -2
- package/dist/{cross-vK6qh9R0.js → cross-DX3n6F6N.js} +2 -2
- package/dist/{cross-circle-fill-Bxj_fgQE.js → cross-circle-fill-CrWmQTCZ.js} +2 -2
- package/dist/{cross-circle-fill-small-DwUKcL9P.js → cross-circle-fill-small-BnYkSjuU.js} +2 -2
- package/dist/cs-CZ-CQoPRxwA.js +7 -0
- package/dist/{cs-CZ-DUNmRoYr.js → cs-CZ-CX7RYS3J.js} +8 -2
- package/dist/{cs-CZ-DyLd-erd.js → cs-CZ-DfKxKCsI.js} +16 -2
- package/dist/{da-DK-Dhr4p-qj.js → da-DK-BrKeONXP.js} +16 -2
- package/dist/da-DK-CEe5TTUa.js +7 -0
- package/dist/{da-DK-CWWLFjfT.js → da-DK-Cs_2K6Rd.js} +8 -2
- package/dist/{de-DE-QDT6VVq9.js → de-DE-CaVZKsmT.js} +16 -2
- package/dist/{de-DE-LLIuFER0.js → de-DE-oR2bSTbA.js} +8 -2
- package/dist/de-DE-ut0CGES0.js +7 -0
- package/dist/{document-1-BPWF8zKf.js → document-1-CEBgjg1t.js} +2 -2
- package/dist/{document-person-DVRFNq7g.js → document-person-DO7-omhK.js} +2 -2
- package/dist/{download-DfdpoHdN.js → download-CG9nbHZJ.js} +2 -2
- package/dist/{dropinUtils-QIBtEAdk.js → dropinUtils-DBnjaFWb.js} +13 -88
- package/dist/{edit-1-BgVB06zI.js → edit-1-CCyg-Tid.js} +2 -2
- package/dist/el-GR-BEWi0DRN.js +7 -0
- package/dist/{el-GR-V2cZ5gjl.js → el-GR-DHA0rkvc.js} +16 -2
- package/dist/{el-GR-D9MFsese.js → el-GR-_mz9wRt2.js} +8 -2
- package/dist/{en-US-BMMx67Za.js → en-US-B7V_rOZV.js} +4 -2
- package/dist/en-US-BLUu-I1a.js +7 -0
- package/dist/en-US-BWzZpVaj.js +7 -0
- package/dist/{error-ChMPaOO8.js → error-C05wuAm2.js} +3 -3
- package/dist/es-ES-3Z6u7_Cv.js +7 -0
- package/dist/{es-ES-N-uqwvEU.js → es-ES-B9_eURa2.js} +8 -2
- package/dist/{es-ES-SsReQJzQ.js → es-ES-DsWec_oM.js} +16 -2
- package/dist/es-LA-BgYaYfYK.js +7 -0
- package/dist/{es-LA-DcnCNM5a.js → es-LA-BlWaKaxj.js} +8 -2
- package/dist/{es-LA-DTXCg1tj.js → es-LA-D0FhHrwN.js} +16 -2
- package/dist/{et-EE-Bg3WOS9m.js → et-EE-Bp9-vCYs.js} +16 -2
- package/dist/et-EE-CxTHKlGm.js +7 -0
- package/dist/{et-EE-CkJhiCVw.js → et-EE-D5kWenqz.js} +8 -2
- package/dist/{external-link-BbXGAtFE.js → external-link-De5M4oQX.js} +2 -2
- package/dist/fi-FI-BE-RoRL5.js +7 -0
- package/dist/{fi-FI-D0ZPYGD3.js → fi-FI-DBuyocuK.js} +8 -2
- package/dist/{fi-FI-B1RyWVH2.js → fi-FI-DcwOxjVV.js} +16 -2
- package/dist/{useIndustryCodes-La1cU8oH.js → fieldConfig-28YDsFPu.js} +13 -2
- package/dist/{formatDataForSummary-GZH9C1ax.js → formatDataForSummary-Ccs4H7BO.js} +10 -10
- package/dist/{formatValidationError-C_3FU4uR.js → formatValidationError-DIPpFoJQ.js} +2 -2
- package/dist/{fr-FR-DXXrJUKC.js → fr-FR-CISoBKEC.js} +8 -2
- package/dist/fr-FR-Db4EY5iv.js +7 -0
- package/dist/{fr-FR-C3Zi7-JE.js → fr-FR-_ytHUJlx.js} +16 -2
- package/dist/{getDefaultRegistrationNumberType-CayCB3n0.js → getDefaultRegistrationNumberType-C3OAyMCv.js} +5 -4
- package/dist/{getTrustedDecisionMakers-DByctgob.js → getTrustedDecisionMakers-CD9uLmHi.js} +2 -2
- package/dist/{getValidationError-DnDzz5ju.js → getValidationError-C00cY5Gg.js} +2 -2
- package/dist/{gift-BjS6ErNG.js → gift-BSFlM5Ut.js} +2 -2
- package/dist/{graph-B8rX9eXr.js → graph-DsJyeMAQ.js} +2 -2
- package/dist/{graph-up-Dwaq7upe.js → graph-up-NgJWuRLx.js} +2 -2
- package/dist/{headquarter-CXwws_UP.js → headquarter-DfM7M5jR.js} +2 -2
- package/dist/{hotel-CD5Lv9P7.js → hotel-rSbiYsRy.js} +2 -2
- package/dist/{hr-HR-BeZ1eUy7.js → hr-HR-CXYzhrLe.js} +8 -2
- package/dist/{hr-HR-CH9yGEPn.js → hr-HR-Cb9wbqiH.js} +16 -2
- package/dist/hr-HR-qvMOxoRF.js +7 -0
- package/dist/hu-HU-BNk4CovT.js +7 -0
- package/dist/{hu-HU-BhliM1LD.js → hu-HU-HetRpHop.js} +8 -2
- package/dist/{hu-HU-DpUG3GwC.js → hu-HU-d15vxL_S.js} +16 -2
- package/dist/{image-BTE2a8ZV.js → image-CMNC56qX.js} +2 -2
- package/dist/{info-BTc0bCCM.js → info-B41z2nKP.js} +2 -2
- package/dist/{info-filled-DhYinieW.js → info-filled-uHSCed8u.js} +2 -2
- package/dist/{useId-MW2hvVJz.js → invalidateRootLegalEntity-DrJp13W1.js} +4 -26
- package/dist/{it-IT-BEEsgu4Z.js → it-IT-DBatLxXf.js} +16 -2
- package/dist/{it-IT-BULBjWDc.js → it-IT-DUCIA7fo.js} +8 -2
- package/dist/it-IT-RatP9WIw.js +7 -0
- package/dist/ja-JP-BILx8dc7.js +7 -0
- package/dist/{ja-JP-BjMyxZiN.js → ja-JP-BNHFH7FM.js} +2 -2
- package/dist/{ja-JP-CcXk7Gcc.js → ja-JP-BRdSqCDF.js} +16 -2
- package/dist/{ja-JP-ByMh2iUh.js → ja-JP-CmiLlpqW.js} +8 -2
- package/dist/{location-CwE3Q0gg.js → location-BKdbMTik.js} +2 -2
- package/dist/lt-LT-CZ2yA_Km.js +7 -0
- package/dist/{lt-LT-CGgbFwbx.js → lt-LT-DbzhtTak.js} +16 -2
- package/dist/{lt-LT-CiKIZfk8.js → lt-LT-YfU6BGpp.js} +8 -2
- package/dist/lv-LV-AGwJD157.js +7 -0
- package/dist/{lv-LV-Ck_aQ4ML.js → lv-LV-B17wL3y6.js} +16 -2
- package/dist/{lv-LV-u-vJn6T3.js → lv-LV-C0PK4MKA.js} +8 -2
- package/dist/{mail-CIeugZTd.js → mail-BRy0YL8P.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-FUdkDZLN.js → mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BCNX0LPr.js → mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-BUKwzRyA.js → mapTransferInstrumentToPayoutAccount-Dq0983R5.js} +2 -2
- package/dist/{minus-circle-filled-96DZCdcJ.js → minus-circle-filled-CLNsVzoi.js} +2 -2
- package/dist/{nl-NL-B8REgP66.js → nl-NL-CXeqs7dv.js} +8 -2
- package/dist/{nl-NL-_hbzuQ0h.js → nl-NL-CfQsmGB5.js} +16 -2
- package/dist/nl-NL-DNXcBpml.js +7 -0
- package/dist/{no-NO-B_ijkAtf.js → no-NO-B1dqTSiS.js} +16 -2
- package/dist/{no-NO-vasSCJdc.js → no-NO-C2sdKw0r.js} +8 -2
- package/dist/no-NO-vY4nfY9g.js +7 -0
- package/dist/{options-horizontal-BU9r-Xx3.js → options-horizontal-CRXmLqnK.js} +2 -2
- package/dist/{partner-C1SWc0pB.js → partner-cWS5lNgW.js} +2 -2
- package/dist/{pay-by-link-plane-xK4Zkol0.js → pay-by-link-plane-BAhi6LNR.js} +2 -2
- package/dist/{payout-zGf0LNbo.js → payout-3fsBXC47.js} +2 -2
- package/dist/{person-xTKhpEGR.js → person-Uffsnqkd.js} +2 -2
- package/dist/{pl-PL-wpXnySZL.js → pl-PL-BD5OF888.js} +8 -2
- package/dist/{pl-PL-u6DrL8IY.js → pl-PL-DSwjmRZS.js} +16 -2
- package/dist/pl-PL-KmUtZ6lq.js +7 -0
- package/dist/{plus-Cm_dWRpB.js → plus-CPdn1NyG.js} +2 -2
- package/dist/{plus-circle-filled-Df77eidx.js → plus-circle-filled-DN0LL-qV.js} +2 -2
- package/dist/{processValidationErrors-BtJpzvvf.js → processValidationErrors-D0qSlh3W.js} +3 -3
- package/dist/{pt-BR-C5d5CGRt.js → pt-BR-DEBXxRwN.js} +8 -2
- package/dist/{pt-BR-CPS77pGy.js → pt-BR-_3W6lRmq.js} +16 -2
- package/dist/pt-BR-tQCWRhmf.js +7 -0
- package/dist/{pt-PT-B6OslB_S.js → pt-PT-BLpMJNOh.js} +8 -2
- package/dist/{pt-PT-DIKqQR6V.js → pt-PT-BUEnW3xZ.js} +16 -2
- package/dist/pt-PT-ZNVCYAr4.js +7 -0
- package/dist/{recurring-BfwVHJ2Z.js → recurring-CMo7EaV-.js} +2 -2
- package/dist/{resolveEnvironment-A2E4srza.js → registerEmbed-DQqTWYX2.js} +106 -46
- package/dist/{revenue-accelerate-ClN0cx7Z.js → revenue-accelerate-BkzY3gMh.js} +2 -2
- package/dist/{ro-RO-Cg1nG9ns.js → ro-RO-B4LyC5yt.js} +16 -2
- package/dist/{ro-RO-dG27cZbT.js → ro-RO-CHA0yVBc.js} +8 -2
- package/dist/ro-RO-DDdUFz6E.js +7 -0
- package/dist/{roleMetadata-BFD8qjDC.js → roleMetadata-B1KP0JZL.js} +3 -3
- package/dist/{save-QK2A-teG.js → save-B1AE8MD9.js} +2 -2
- package/dist/{search-DVSyT7Q7.js → search-7HzLTqcY.js} +2 -2
- package/dist/{show-BRWLIRSA.js → show-DWurwnTZ.js} +2 -2
- package/dist/{sk-SK-Woc9AmiO.js → sk-SK-CI_QfG7S.js} +8 -2
- package/dist/{sk-SK-CRfiVN3e.js → sk-SK-CLhssOsk.js} +16 -2
- package/dist/sk-SK-DdDdEYiT.js +7 -0
- package/dist/{sl-SI-C03fXovT.js → sl-SI-DtZuFHYG.js} +8 -2
- package/dist/{sl-SI-Dpr3StsS.js → sl-SI-QgSjXf-1.js} +16 -2
- package/dist/sl-SI-vefne3eU.js +7 -0
- package/dist/{solution-payments-BZZceFVV.js → solution-payments-DhmPJwd_.js} +2 -2
- package/dist/{store-DLKKLXhn.js → store-fpEz2G1Q.js} +2 -2
- package/dist/style.css +184 -169
- package/dist/styles-DYaAeu4q.js +184 -169
- package/dist/{sv-SE-D5eIbgkk.js → sv-SE-B5pp1e_g.js} +8 -2
- package/dist/{sv-SE-CH4wMrUZ.js → sv-SE-BJgBNvRa.js} +16 -2
- package/dist/sv-SE-DIDlUvzM.js +7 -0
- package/dist/tanstackValidation-BgAM9eKo.js +20 -0
- package/dist/{terminal-1-CpAyEdjO.js → terminal-1-6ggvAFrO.js} +2 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +6 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +11 -11
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/utils/deriveNodeState.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/utils/tanstackValidation.d.ts +14 -0
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +2 -3
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +71 -12
- package/dist/types/api/draft/useCreateDraft.d.ts +3 -0
- package/dist/types/api/draft/useGetDraft.d.ts +5 -0
- package/dist/types/api/draft/useUpdateDraft.d.ts +3 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +21 -5
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -0
- package/dist/types/components/Business/utils/isEligibleForReducedBusinessDetailsFlow.d.ts +15 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +27 -27
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +3 -1
- package/dist/types/components/GlobalEntry/fields/SingpassSelectionCTA/SingpassSelectionCTA.d.ts +6 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +3 -2
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +9 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/SaveForLater/SaveForLaterButton.d.ts +8 -0
- package/dist/types/components/Shared/SaveForLater/draftMetadata.d.ts +24 -0
- package/dist/types/components/Shared/SaveForLater/useSaveForLater.d.ts +32 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugThemeEditor.d.ts +10 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +20 -8
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +11 -0
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +18 -1
- package/dist/types/components/Shared/forms/Address/rules.d.ts +10 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/context/ToggleContext/types.d.ts +16 -4
- package/dist/types/core/EmbedShell/themeMode.d.ts +12 -0
- package/dist/types/core/registerEmbed/registerEmbed.d.ts +12 -0
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/utils/deepMerge.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-DVMWWwBT.js → types-CP3D_hFv.js} +1 -1
- package/dist/{unincorporatedPartnership-7X9o2wKi.js → unincorporatedPartnership-E0Wffo2-.js} +2 -2
- package/dist/{upload-BI7LKlDm.js → upload-DF1deAl3.js} +2 -2
- package/dist/{useBusinessDetailsData-Cs15bK0B.js → useBusinessDetailsData-B2jIzpVP.js} +248 -158
- package/dist/{useCanSeeIntroduction-DzYOn-jJ.js → useCanSeeIntroduction-CguqBHaC.js} +3 -3
- package/dist/{useForm-CPOxg890.js → useForm-CwWvs060.js} +3 -3
- package/dist/{useHideTaskStepper-Betx9MGy.js → useHideTaskStepper-DvHXw3zd.js} +1 -1
- package/dist/{Modal-afeMXOOn.js → useId-BV444pyC.js} +27 -5
- package/dist/{useNavigate-C9pHkW9F.js → useNavigate-BPvz7b_2.js} +33 -33
- package/dist/{useSalesChannels-D2UblAHt.js → useSalesChannels-GPyBj7Bk.js} +2 -2
- package/dist/useSaveForLater-BSIOwMfL.js +200 -0
- package/dist/{useTaskLandedEvent-B_GbpCRR.js → useTaskLandedEvent-CuOu8Sqr.js} +2 -2
- package/dist/{useTrustMembers-bzYJw-8r.js → useTrustMembers-Dwbb5xh4.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-CM8pXQIa.js → useUnincorporatedPartnershipMembers-1bLF5aPT.js} +2 -2
- package/dist/{utils-Dpvxf5_a.js → utils-BPKdYHDB.js} +2 -2
- package/dist/{utils-B5D6FxHi.js → utils-B_dD2dvD.js} +3 -4
- package/dist/{utils-DTuKY6NW.js → utils-tMG2x_WY.js} +2 -2
- package/dist/{validate-CIG89n0Q.js → validate-BZLQWEd-.js} +2 -2
- package/dist/{validate-DCrnvbfv.js → validate-BlsJOvUC.js} +15 -10
- package/dist/{validate-DEqWFrmE.js → validate-DlL0gf63.js} +4 -4
- package/dist/{validate-D0s1xnXY.js → validate-Dtlyak_C.js} +3 -3
- package/dist/{validateExtractionResult-D3AuQo5-.js → validateExtractionResult-BD0Vu-XF.js} +2 -2
- package/dist/{warning-circle-fill-ClFvGo5m.js → warning-circle-fill-tyigXMGG.js} +2 -2
- package/dist/{warning-diamond-filled-CWyKR65i.js → warning-diamond-filled-uHVDhfcX.js} +2 -2
- package/dist/{webinar-DWX7Z5Wz.js → webinar-C70iLMbf.js} +2 -2
- package/package.json +5 -5
- package/dist/Icon-jVvV1zXc.js +0 -175
- package/dist/bg-BG-Cdrkwxmc.js +0 -7
- package/dist/cs-CZ-DpiH1UkS.js +0 -7
- package/dist/da-DK-B-BJLcqw.js +0 -7
- package/dist/de-DE-BxTGFyOs.js +0 -7
- package/dist/el-GR-IQwyd9ws.js +0 -7
- package/dist/en-US-8KLaHQaT.js +0 -7
- package/dist/en-US-DPr5RN3e.js +0 -7
- package/dist/es-ES-Cg2IadcX.js +0 -7
- package/dist/es-LA-DvMpG4FP.js +0 -7
- package/dist/et-EE-eGeytyQh.js +0 -7
- package/dist/fi-FI-C02wZfgW.js +0 -7
- package/dist/fr-FR-CE7k9H5_.js +0 -7
- package/dist/hr-HR-B12DcJ3l.js +0 -7
- package/dist/hu-HU-cosbDuos.js +0 -7
- package/dist/it-IT-CiKoOxzk.js +0 -7
- package/dist/ja-JP-D7PEVMmT.js +0 -7
- package/dist/lt-LT-C2oxTakB.js +0 -7
- package/dist/lv-LV-C_KVkpid.js +0 -7
- package/dist/nl-NL-CwNBy0Ku.js +0 -7
- package/dist/no-NO-VqkeNhzB.js +0 -7
- package/dist/pl-PL-Bp218jDD.js +0 -7
- package/dist/pt-BR-CPbFPNwq.js +0 -7
- package/dist/pt-PT-Bz39smeX.js +0 -7
- package/dist/ro-RO-jNItoBZk.js +0 -7
- package/dist/sk-SK-CsSqXqf_.js +0 -7
- package/dist/sl-SI-PRqWis0E.js +0 -7
- package/dist/sv-SE-Dv-rMOdB.js +0 -7
- package/dist/types/adaptiveWorkflow/components/types.d.ts +0 -50
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "953ec875-023d-4b41-b088-de2e72b61a88", e._sentryDebugIdIdentifier = "sentry-dbid-953ec875-023d-4b41-b088-de2e72b61a88");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
7
|
-
import { o as Field } from "./Select-
|
|
6
|
+
import { a as InputBase } from "./RadioGroup-CEi7ZDGi.js";
|
|
7
|
+
import { o as Field } from "./Select-DTqe0uNK.js";
|
|
8
8
|
import { t as checkDateInputSupport } from "./InputDate.utils-D4Ov0KIl.js";
|
|
9
9
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
10
|
-
import { t as getValidationError } from "./getValidationError-
|
|
10
|
+
import { t as getValidationError } from "./getValidationError-C00cY5Gg.js";
|
|
11
11
|
import { t as isNotEmpty } from "./sharedValidators-DODW7kuK.js";
|
|
12
12
|
import { useMemo } from "preact/hooks";
|
|
13
13
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -26,22 +26,24 @@ var contextMap = { birthDate: {
|
|
|
26
26
|
//#region src/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.tsx
|
|
27
27
|
var DateField = withForm({
|
|
28
28
|
props: {},
|
|
29
|
-
render: function DateFieldRender({ form, node }) {
|
|
29
|
+
render: function DateFieldRender({ form, node, disabled }) {
|
|
30
|
+
const { id, path } = node;
|
|
30
31
|
const { t } = useTranslation("common");
|
|
31
|
-
const { label, helperText, validators } = contextMap[
|
|
32
|
+
const { label, helperText, validators } = contextMap[id] || {};
|
|
32
33
|
const isDateInputSupported = useMemo(checkDateInputSupport, []);
|
|
33
34
|
return /* @__PURE__ */ jsx(form.Field, {
|
|
34
|
-
name:
|
|
35
|
+
name: path,
|
|
35
36
|
validators: {
|
|
36
37
|
onBlur: ({ value }) => getValidationError(validators?.blur, value, t),
|
|
37
38
|
onChange: ({ value }) => getValidationError(validators?.change, value, t)
|
|
38
39
|
},
|
|
39
40
|
children: (field) => {
|
|
40
41
|
return /* @__PURE__ */ jsx(Field, {
|
|
41
|
-
name:
|
|
42
|
-
label: label ? t(($) => $[label]) :
|
|
42
|
+
name: id,
|
|
43
|
+
label: label ? t(($) => $[label]) : id,
|
|
43
44
|
helper: helperText && t(($) => $[helperText]),
|
|
44
45
|
isValid: !field.state.meta.errors.length,
|
|
46
|
+
disabled,
|
|
45
47
|
errorMessage: field.state.meta.errors.length ? {
|
|
46
48
|
key: field.state.meta.errors[0],
|
|
47
49
|
message: field.state.meta.errors[0]
|
|
@@ -52,6 +54,7 @@ var DateField = withForm({
|
|
|
52
54
|
type: "date",
|
|
53
55
|
"aria-required": true,
|
|
54
56
|
value: field.state.value,
|
|
57
|
+
disabled,
|
|
55
58
|
onBlur: field.handleBlur,
|
|
56
59
|
onInput: (e) => field.handleChange(e.currentTarget.value)
|
|
57
60
|
}) : /* @__PURE__ */ jsx(InputBase, {
|
|
@@ -59,6 +62,7 @@ var DateField = withForm({
|
|
|
59
62
|
type: "text",
|
|
60
63
|
"aria-required": true,
|
|
61
64
|
value: field.state.value,
|
|
65
|
+
disabled,
|
|
62
66
|
onBlur: field.handleBlur,
|
|
63
67
|
onInput: (e) => field.handleChange(e.currentTarget.value),
|
|
64
68
|
maxLength: 10
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cba50cfc-38d8-48f5-aea5-a65c0450ad63", e._sentryDebugIdIdentifier = "sentry-dbid-cba50cfc-38d8-48f5-aea5-a65c0450ad63");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { F as ExperimentNames, I as FeatureNames, R as listToRecord, d as splitTaskIdentifier, o as useGlobalStore } from "./registerEmbed-DQqTWYX2.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
-
import { t as Icon } from "./Icon-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Icon } from "./Icon-D2IGgB2L.js";
|
|
9
|
+
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
10
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
11
11
|
import { c as valuesOf, o as entriesOf } from "./genUtils-nphCwt1A.js";
|
|
12
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
13
|
-
import { t as Accordion } from "./Accordion-
|
|
14
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Br7t30ur.js";
|
|
13
|
+
import { t as Accordion } from "./Accordion-DyU-Pxob.js";
|
|
14
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
|
|
15
|
+
import { n as Modal } from "./useId-BV444pyC.js";
|
|
16
|
+
import { o as formDebugInfo, r as InputText, s as SettingNames, t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
|
|
17
17
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
18
|
-
import { useMemo, useState } from "preact/hooks";
|
|
18
|
+
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
20
20
|
import MonogonCode from "monogon/preact";
|
|
21
|
+
import "monogon";
|
|
21
22
|
var Tabs_module_default = { tabs: "_tabs_d0c44_1" };
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region src/components/ui/molecules/Tabs/Tabs.tsx
|
|
@@ -291,8 +292,16 @@ var ROUNDNESS_VALUES = [
|
|
|
291
292
|
var THEME_KEYS = [...COLOR_KEYS, "roundness"];
|
|
292
293
|
/** Matches the hex color formats `ThemeGenerator` accepts; anything else throws inside the embed. */
|
|
293
294
|
var HEX_COLOR_REGEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
var THEME_MODES = [
|
|
296
|
+
"light",
|
|
297
|
+
"dark",
|
|
298
|
+
"system"
|
|
299
|
+
];
|
|
300
|
+
/**
|
|
301
|
+
* Example themes used to prefill the debug Theme tab, they mirror the "Adyen"
|
|
302
|
+
* playground preset: the same brand color with a palette per theme mode.
|
|
303
|
+
*/
|
|
304
|
+
var EXAMPLE_LIGHT_THEME = {
|
|
296
305
|
primary: "#0abf53",
|
|
297
306
|
background: "#ffffff",
|
|
298
307
|
neutral: "#f2f4f7",
|
|
@@ -300,6 +309,14 @@ var EXAMPLE_CUSTOM_THEME = {
|
|
|
300
309
|
outline: "#c8ccd0",
|
|
301
310
|
roundness: "medium"
|
|
302
311
|
};
|
|
312
|
+
var EXAMPLE_DARK_THEME = {
|
|
313
|
+
primary: "#0abf53",
|
|
314
|
+
background: "#001122",
|
|
315
|
+
neutral: "#0e2a47",
|
|
316
|
+
label: "#ffffff",
|
|
317
|
+
outline: "#33506e",
|
|
318
|
+
roundness: "medium"
|
|
319
|
+
};
|
|
303
320
|
/**
|
|
304
321
|
* Parses and validates a theme object entered as JSON in the debug Theme tab.
|
|
305
322
|
* Validation mirrors what `ThemeGenerator` accepts, so an applied theme can never
|
|
@@ -335,26 +352,37 @@ var parseCustomThemeInput = (input) => {
|
|
|
335
352
|
return { theme: customTheme };
|
|
336
353
|
};
|
|
337
354
|
var getOnboardingElement = () => document.querySelector("adyen-onboarding");
|
|
355
|
+
var initialThemeMode;
|
|
356
|
+
var getInitialThemeMode = () => initialThemeMode ?? getEmbedThemeMode();
|
|
357
|
+
/** Reads the embed's current `thememode`, `'light'` when it is unset or unknown. */
|
|
358
|
+
var getEmbedThemeMode = () => {
|
|
359
|
+
const thememode = getOnboardingElement()?.thememode;
|
|
360
|
+
const mode = typeof thememode === "string" && THEME_MODES.includes(thememode) ? thememode : "light";
|
|
361
|
+
initialThemeMode ??= mode;
|
|
362
|
+
return mode;
|
|
363
|
+
};
|
|
364
|
+
var resolveSystemThemeMode = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
338
365
|
/** Reads the custom theme currently set on the embed, if any. */
|
|
339
366
|
var getAppliedCustomTheme = () => {
|
|
340
367
|
const customtheme = getOnboardingElement()?.customtheme;
|
|
341
368
|
return typeof customtheme === "object" && customtheme !== null ? customtheme : void 0;
|
|
342
369
|
};
|
|
343
370
|
/**
|
|
344
|
-
* Applies the theme by setting the `customtheme` DOM property on the embed element
|
|
345
|
-
*
|
|
346
|
-
*
|
|
371
|
+
* Applies the theme by setting the `customtheme` DOM property on the embed element
|
|
372
|
+
*
|
|
373
|
+
* `preact-custom-element` re-renders the embed after each property change, and
|
|
374
|
+
* `useTheme` regenerates the SDK's CSS variables from the final pairing.
|
|
347
375
|
*
|
|
348
376
|
* @returns Whether an embed element was found and updated.
|
|
349
377
|
*/
|
|
350
|
-
var applyCustomTheme = (theme) => {
|
|
378
|
+
var applyCustomTheme = (theme, mode) => {
|
|
351
379
|
const element = getOnboardingElement();
|
|
352
380
|
if (!element) return false;
|
|
381
|
+
element.thememode = mode;
|
|
353
382
|
element.customtheme = theme;
|
|
354
383
|
return true;
|
|
355
384
|
};
|
|
356
385
|
/**
|
|
357
|
-
* Removes the custom theme by clearing the `customtheme` DOM property.
|
|
358
386
|
*
|
|
359
387
|
* `preact-custom-element` reflects the cleared property as an attribute holding
|
|
360
388
|
* the string "undefined", which would re-render the embed with a truthy string.
|
|
@@ -368,122 +396,139 @@ var resetCustomTheme = () => {
|
|
|
368
396
|
if (!element) return false;
|
|
369
397
|
element.customtheme = void 0;
|
|
370
398
|
element.removeAttribute("customtheme");
|
|
399
|
+
element.thememode = getInitialThemeMode();
|
|
371
400
|
return true;
|
|
372
401
|
};
|
|
373
402
|
var DebugTheme_module_default = {
|
|
374
|
-
themeTab: "
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
403
|
+
themeTab: "_themeTab_1nndo_1",
|
|
404
|
+
modeSelector: "_modeSelector_1nndo_8",
|
|
405
|
+
modeSelectorLabel: "_modeSelectorLabel_1nndo_14",
|
|
406
|
+
editor: "_editor_1nndo_18",
|
|
407
|
+
actions: "_actions_1nndo_27",
|
|
408
|
+
error: "_error_1nndo_32"
|
|
409
|
+
};
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/components/Shared/devex/DebugListener/DebugThemeEditor.tsx
|
|
412
|
+
/** The theme editor of the debug Theme tab, showing the draft of the selected theme mode. */
|
|
413
|
+
var DebugThemeEditor = ({ themeInput, error, onInput, onApply }) => {
|
|
414
|
+
const editorRef = useRef(null);
|
|
415
|
+
/**
|
|
416
|
+
* Keep the editor uncontrolled while typing: `monogon-code` rebuilds and re-highlights
|
|
417
|
+
* its whole content whenever its `content` attribute is written, so keystrokes are only
|
|
418
|
+
* mirrored into state, never fed back into the element. Its content is written here only
|
|
419
|
+
* for programmatic changes — prefill on mount, switching to the other mode's draft, or a
|
|
420
|
+
* reset — when the live value differs from the draft that should be shown.
|
|
421
|
+
*/
|
|
422
|
+
useEffect(() => {
|
|
423
|
+
const editor = editorRef.current;
|
|
424
|
+
if (editor && editor.value !== themeInput) editor.setAttribute("content", themeInput);
|
|
425
|
+
}, [themeInput]);
|
|
426
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
427
|
+
className: DebugTheme_module_default.editor,
|
|
428
|
+
children: [
|
|
429
|
+
/* @__PURE__ */ jsx("monogon-code", {
|
|
430
|
+
content: "",
|
|
431
|
+
lang: "json",
|
|
432
|
+
ref: editorRef,
|
|
433
|
+
onInput: (event) => {
|
|
434
|
+
onInput(event.currentTarget.value);
|
|
435
|
+
},
|
|
436
|
+
style: "min-height: 14em;"
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ jsx(Button, {
|
|
439
|
+
fullWidth: true,
|
|
440
|
+
onClick: onApply,
|
|
441
|
+
children: "Apply"
|
|
442
|
+
}),
|
|
443
|
+
error ? /* @__PURE__ */ jsx("p", {
|
|
444
|
+
className: DebugTheme_module_default.error,
|
|
445
|
+
children: error
|
|
446
|
+
}) : void 0
|
|
447
|
+
]
|
|
448
|
+
});
|
|
383
449
|
};
|
|
384
450
|
//#endregion
|
|
385
451
|
//#region src/components/Shared/devex/DebugListener/DebugTheme.tsx
|
|
386
|
-
var
|
|
452
|
+
var MODE_SELECTOR_ITEMS = [{
|
|
453
|
+
id: "light",
|
|
454
|
+
name: "Light"
|
|
455
|
+
}, {
|
|
456
|
+
id: "dark",
|
|
457
|
+
name: "Dark"
|
|
458
|
+
}];
|
|
459
|
+
var getInitialSelectedMode = () => {
|
|
460
|
+
const embedThemeMode = getEmbedThemeMode();
|
|
461
|
+
return embedThemeMode === "system" ? resolveSystemThemeMode() : embedThemeMode;
|
|
462
|
+
};
|
|
387
463
|
/** DebugTheme's code is AI-generated. TODO: Refactor or delete if this stays */
|
|
388
464
|
var DebugTheme = () => {
|
|
389
|
-
const [
|
|
390
|
-
|
|
391
|
-
|
|
465
|
+
const [themeInputs, setThemeInputs] = useState(() => {
|
|
466
|
+
const embedThemeMode = getEmbedThemeMode();
|
|
467
|
+
const appliedTheme = getAppliedCustomTheme();
|
|
468
|
+
return {
|
|
469
|
+
light: JSON.stringify(appliedTheme && embedThemeMode !== "dark" ? appliedTheme : EXAMPLE_LIGHT_THEME, null, 2),
|
|
470
|
+
dark: JSON.stringify(appliedTheme && embedThemeMode === "dark" ? appliedTheme : EXAMPLE_DARK_THEME, null, 2)
|
|
471
|
+
};
|
|
472
|
+
});
|
|
473
|
+
/** Theme mode whose draft the editor shows, and what Apply targets. */
|
|
474
|
+
const [selectedMode, setSelectedMode] = useState(getInitialSelectedMode);
|
|
475
|
+
const [error, setError] = useState();
|
|
476
|
+
const handleInput = (themeInput) => {
|
|
477
|
+
setThemeInputs((previous) => ({
|
|
478
|
+
...previous,
|
|
479
|
+
[selectedMode]: themeInput
|
|
480
|
+
}));
|
|
481
|
+
setError(void 0);
|
|
482
|
+
};
|
|
392
483
|
const handleApplyTheme = () => {
|
|
393
|
-
const { theme, error } = parseCustomThemeInput(
|
|
484
|
+
const { theme, error } = parseCustomThemeInput(themeInputs[selectedMode]);
|
|
394
485
|
if (error || !theme) {
|
|
395
|
-
|
|
396
|
-
type: "error",
|
|
397
|
-
message: error ?? "Unknown error"
|
|
398
|
-
});
|
|
486
|
+
setError(error ?? "Unknown error");
|
|
399
487
|
return;
|
|
400
488
|
}
|
|
401
|
-
|
|
402
|
-
setFeedback({
|
|
403
|
-
type: "error",
|
|
404
|
-
message: NO_EMBED_MESSAGE
|
|
405
|
-
});
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
setFeedback({
|
|
409
|
-
type: "success",
|
|
410
|
-
message: "Custom theme applied."
|
|
411
|
-
});
|
|
489
|
+
applyCustomTheme(theme, selectedMode);
|
|
412
490
|
};
|
|
413
491
|
const handleResetTheme = () => {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
});
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
setThemeInput(JSON.stringify(EXAMPLE_CUSTOM_THEME, null, 2));
|
|
422
|
-
setFeedback({
|
|
423
|
-
type: "success",
|
|
424
|
-
message: "Custom theme reset, back to the default theme."
|
|
492
|
+
resetCustomTheme();
|
|
493
|
+
setThemeInputs({
|
|
494
|
+
light: JSON.stringify(EXAMPLE_LIGHT_THEME, null, 2),
|
|
495
|
+
dark: JSON.stringify(EXAMPLE_DARK_THEME, null, 2)
|
|
425
496
|
});
|
|
497
|
+
setError(void 0);
|
|
426
498
|
};
|
|
427
499
|
return /* @__PURE__ */ jsxs("div", {
|
|
428
500
|
className: DebugTheme_module_default.themeTab,
|
|
429
501
|
children: [
|
|
430
|
-
/* @__PURE__ */ jsxs("
|
|
431
|
-
className: DebugTheme_module_default.
|
|
432
|
-
children: [
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
className: DebugTheme_module_default.warning,
|
|
446
|
-
children: NO_EMBED_MESSAGE
|
|
447
|
-
}),
|
|
448
|
-
/* @__PURE__ */ jsx("label", {
|
|
449
|
-
className: DebugTheme_module_default.label,
|
|
450
|
-
htmlFor: "debug-custom-theme-input",
|
|
451
|
-
children: "Custom theme object (JSON)"
|
|
452
|
-
}),
|
|
453
|
-
/* @__PURE__ */ jsx("textarea", {
|
|
454
|
-
id: "debug-custom-theme-input",
|
|
455
|
-
className: DebugTheme_module_default.themeInput,
|
|
456
|
-
rows: 10,
|
|
457
|
-
spellcheck: false,
|
|
458
|
-
"aria-invalid": feedback?.type === "error",
|
|
459
|
-
"aria-describedby": feedback ? "debug-custom-theme-feedback" : void 0,
|
|
460
|
-
value: themeInput,
|
|
461
|
-
onInput: (event) => {
|
|
462
|
-
setThemeInput(event.currentTarget.value);
|
|
463
|
-
setFeedback(void 0);
|
|
464
|
-
}
|
|
502
|
+
/* @__PURE__ */ jsxs("div", {
|
|
503
|
+
className: DebugTheme_module_default.modeSelector,
|
|
504
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
505
|
+
className: DebugTheme_module_default.modeSelectorLabel,
|
|
506
|
+
children: "Editing"
|
|
507
|
+
}), /* @__PURE__ */ jsx(RadioGroup, {
|
|
508
|
+
horizontal: true,
|
|
509
|
+
items: MODE_SELECTOR_ITEMS,
|
|
510
|
+
name: "debug-theme-mode",
|
|
511
|
+
value: selectedMode,
|
|
512
|
+
onChange: (mode) => {
|
|
513
|
+
setSelectedMode(mode);
|
|
514
|
+
setError(void 0);
|
|
515
|
+
}
|
|
516
|
+
})]
|
|
465
517
|
}),
|
|
466
|
-
/* @__PURE__ */ jsx(
|
|
467
|
-
|
|
468
|
-
|
|
518
|
+
/* @__PURE__ */ jsx(DebugThemeEditor, {
|
|
519
|
+
error,
|
|
520
|
+
onApply: handleApplyTheme,
|
|
521
|
+
onInput: handleInput,
|
|
522
|
+
themeInput: themeInputs[selectedMode]
|
|
469
523
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ jsx("div", {
|
|
471
525
|
className: DebugTheme_module_default.actions,
|
|
472
|
-
children:
|
|
473
|
-
onClick: handleApplyTheme,
|
|
474
|
-
children: "Apply theme"
|
|
475
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
526
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
476
527
|
variant: "tertiary",
|
|
477
528
|
onClick: handleResetTheme,
|
|
478
529
|
children: "Reset to default"
|
|
479
|
-
})
|
|
480
|
-
})
|
|
481
|
-
feedback ? /* @__PURE__ */ jsxs("p", {
|
|
482
|
-
id: "debug-custom-theme-feedback",
|
|
483
|
-
className: feedback.type === "error" ? DebugTheme_module_default.error : DebugTheme_module_default.success,
|
|
484
|
-
role: feedback.type === "error" ? "alert" : "status",
|
|
485
|
-
children: [feedback.type === "success" ? /* @__PURE__ */ jsx(Icon, { name: "check" }) : void 0, feedback.message]
|
|
486
|
-
}) : void 0
|
|
530
|
+
})
|
|
531
|
+
})
|
|
487
532
|
]
|
|
488
533
|
});
|
|
489
534
|
};
|
|
@@ -559,7 +604,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
559
604
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
560
605
|
const formDebugAvailable = Object.keys(formDebugInfo.value).length > 0;
|
|
561
606
|
const metadata = {
|
|
562
|
-
sdkVersion: "4.
|
|
607
|
+
sdkVersion: "4.28.0-beta.1",
|
|
563
608
|
locale: i18n.language,
|
|
564
609
|
rootLegalEntityId: rootLegalEntity.id
|
|
565
610
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aa8b8d7f-138d-4a21-a3a6-c909f1b72ba1", e._sentryDebugIdIdentifier = "sentry-dbid-aa8b8d7f-138d-4a21-a3a6-c909f1b72ba1");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { T as Alert } from "./registerEmbed-DQqTWYX2.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
10
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
11
11
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
13
13
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
14
|
import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
15
15
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
16
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
16
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Br7t30ur.js";
|
|
17
17
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
20
20
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
21
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
22
|
-
import {
|
|
23
|
-
import { t as ListItem } from "./ListItem-
|
|
24
|
-
import {
|
|
25
|
-
import { o as StructuredList, s as Confirm } from "./utils-
|
|
26
|
-
import { t as getIdNowMissingDataPoints } from "./bafinUtils-
|
|
21
|
+
import { i as useToggleContext } from "./Checkbox-CyMoenl6.js";
|
|
22
|
+
import { a as useAnalyticsContext, n as Modal } from "./useId-BV444pyC.js";
|
|
23
|
+
import { t as ListItem } from "./ListItem-aX6AyCay.js";
|
|
24
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-DrJp13W1.js";
|
|
25
|
+
import { o as StructuredList, s as Confirm } from "./utils-B_dD2dvD.js";
|
|
26
|
+
import { t as getIdNowMissingDataPoints } from "./bafinUtils-CFvCTqAt.js";
|
|
27
27
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
28
|
-
import { l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, r as mapLegalEntityToIndividualSchema, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-
|
|
29
|
-
import { t as SummarySection } from "./SummarySection-
|
|
28
|
+
import { l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, r as mapLegalEntityToIndividualSchema, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-Ccs4H7BO.js";
|
|
29
|
+
import { t as SummarySection } from "./SummarySection-uydAtNRx.js";
|
|
30
30
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
31
|
-
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-
|
|
31
|
+
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-CD9uLmHi.js";
|
|
32
32
|
import { useMemo, useState } from "preact/hooks";
|
|
33
33
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
34
34
|
import { skipToken, useMutation, useQueries, useQuery } from "@tanstack/preact-query";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c34cf527-9ac4-4d77-9e14-63d594b6113b", e._sentryDebugIdIdentifier = "sentry-dbid-c34cf527-9ac4-4d77-9e14-63d594b6113b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-DQqTWYX2.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
10
10
|
import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
11
11
|
import { c as individualBaseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
-
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-
|
|
14
|
-
import {
|
|
13
|
+
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-aX6AyCay.js";
|
|
14
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-DrJp13W1.js";
|
|
15
15
|
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
16
|
-
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-
|
|
16
|
+
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-CFvCTqAt.js";
|
|
17
17
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
18
|
-
import { t as IndividualDropin } from "./IndividualDropin-
|
|
19
|
-
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-
|
|
18
|
+
import { t as IndividualDropin } from "./IndividualDropin-BunW0Y1z.js";
|
|
19
|
+
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-CD9uLmHi.js";
|
|
20
20
|
import { useEffect } from "preact/hooks";
|
|
21
21
|
import { jsx } from "preact/jsx-runtime";
|
|
22
22
|
import { skipToken } from "@tanstack/preact-query";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "011b6871-b89a-40e4-9543-790361f29345", e._sentryDebugIdIdentifier = "sentry-dbid-011b6871-b89a-40e4-9543-790361f29345");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, a as useGetTaskStatus } from "./registerEmbed-DQqTWYX2.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
10
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
11
11
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
12
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
12
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Br7t30ur.js";
|
|
13
13
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
14
14
|
import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-B75YIdXZ.js";
|
|
15
15
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
16
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
17
17
|
import { r as getOwnDecisionMakers } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
18
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
19
|
-
import {
|
|
20
|
-
import { t as ListItem } from "./ListItem-
|
|
21
|
-
import {
|
|
18
|
+
import { i as useToggleContext } from "./Checkbox-CyMoenl6.js";
|
|
19
|
+
import { a as useAnalyticsContext, n as Modal } from "./useId-BV444pyC.js";
|
|
20
|
+
import { t as ListItem } from "./ListItem-aX6AyCay.js";
|
|
21
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-DrJp13W1.js";
|
|
22
22
|
import { t as useDataMissingRemediations } from "./useDataMissingRemediations-BfC7ECSn.js";
|
|
23
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
23
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-E0Wffo2-.js";
|
|
24
24
|
import { n as useCapabilityProblems } from "./getProblemsForEntity-FHk416BA.js";
|
|
25
|
-
import { h as useUpdateLegalEntity } from "./StateField-
|
|
26
|
-
import {
|
|
27
|
-
import { c as individualFormDefaultData, s as GuidanceQuestionValues } from "./formatDataForSummary-
|
|
28
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
29
|
-
import { i as useInvitationStatuses, n as getDecisionMakerDescription, t as DecisionMakerDetails } from "./DecisionMakerDetails-
|
|
25
|
+
import { h as useUpdateLegalEntity } from "./StateField-DgYpF1_M.js";
|
|
26
|
+
import { o as List } from "./dropinUtils-DBnjaFWb.js";
|
|
27
|
+
import { c as individualFormDefaultData, s as GuidanceQuestionValues } from "./formatDataForSummary-Ccs4H7BO.js";
|
|
28
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
|
|
29
|
+
import { i as useInvitationStatuses, n as getDecisionMakerDescription, t as DecisionMakerDetails } from "./DecisionMakerDetails-DMljWAWQ.js";
|
|
30
30
|
import { lazy } from "preact/compat";
|
|
31
31
|
import { useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
32
32
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "928233af-fd72-4d84-a032-48e571f417c9", e._sentryDebugIdIdentifier = "sentry-dbid-928233af-fd72-4d84-a032-48e571f417c9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { gt as StateContext } from "./registerEmbed-DQqTWYX2.js";
|
|
7
|
+
import { t as Icon } from "./Icon-D2IGgB2L.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
10
|
-
import {
|
|
11
|
-
import { t as useForm } from "./useForm-
|
|
12
|
-
import { i as bytesToSize, n as fileValidationRules, r as DropzoneFile, t as defaultFileValidationOptions } from "./validate-
|
|
9
|
+
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
|
+
import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
|
|
11
|
+
import { t as useForm } from "./useForm-CwWvs060.js";
|
|
12
|
+
import { i as bytesToSize, n as fileValidationRules, r as DropzoneFile, t as defaultFileValidationOptions } from "./validate-DlL0gf63.js";
|
|
13
13
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
14
14
|
import cx from "classnames";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8d1e66a0-b3a8-4597-a42c-84179e59947d", e._sentryDebugIdIdentifier = "sentry-dbid-8d1e66a0-b3a8-4597-a42c-84179e59947d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
7
|
-
import { o as Field } from "./Select-
|
|
6
|
+
import { a as InputBase } from "./RadioGroup-CEi7ZDGi.js";
|
|
7
|
+
import { o as Field } from "./Select-DTqe0uNK.js";
|
|
8
8
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
9
9
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
10
|
-
import { t as getValidationError } from "./getValidationError-
|
|
10
|
+
import { t as getValidationError } from "./getValidationError-C00cY5Gg.js";
|
|
11
11
|
import { t as isNotEmpty } from "./sharedValidators-DODW7kuK.js";
|
|
12
12
|
import { jsx } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.ts
|
|
@@ -22,21 +22,23 @@ var contextMap = { email: { label: "email" } };
|
|
|
22
22
|
//#region src/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.tsx
|
|
23
23
|
var EmailField = withForm({
|
|
24
24
|
props: {},
|
|
25
|
-
render: function EmailFieldRender({ form, node }) {
|
|
25
|
+
render: function EmailFieldRender({ form, node, disabled }) {
|
|
26
|
+
const { id, path } = node;
|
|
26
27
|
const { t } = useTranslation("common");
|
|
27
|
-
const { label, helperText, validators } = contextMap[
|
|
28
|
+
const { label, helperText, validators } = contextMap[id] || {};
|
|
28
29
|
return /* @__PURE__ */ jsx(form.Field, {
|
|
29
|
-
name:
|
|
30
|
+
name: path,
|
|
30
31
|
validators: {
|
|
31
32
|
onBlur: ({ value }) => getValidationError(validators?.blur || defaultValidators.blur, value, t),
|
|
32
33
|
onChange: ({ value }) => getValidationError(validators?.change || defaultValidators.change, value, t)
|
|
33
34
|
},
|
|
34
35
|
children: (field) => {
|
|
35
36
|
return /* @__PURE__ */ jsx(Field, {
|
|
36
|
-
name:
|
|
37
|
-
label: label ? t(($) => $[label]) :
|
|
37
|
+
name: id,
|
|
38
|
+
label: label ? t(($) => $[label]) : id,
|
|
38
39
|
helper: helperText && t(($) => $[helperText]),
|
|
39
40
|
isValid: !field.state.meta.errors.length,
|
|
41
|
+
disabled,
|
|
40
42
|
errorMessage: field.state.meta.errors.length ? {
|
|
41
43
|
key: field.state.meta.errors[0],
|
|
42
44
|
message: field.state.meta.errors[0]
|
|
@@ -47,6 +49,7 @@ var EmailField = withForm({
|
|
|
47
49
|
type: "email",
|
|
48
50
|
autoCapitalize: "off",
|
|
49
51
|
"aria-required": true,
|
|
52
|
+
disabled,
|
|
50
53
|
value: field.state.value,
|
|
51
54
|
onBlur: field.handleBlur,
|
|
52
55
|
onInput: (e) => field.handleChange(e.currentTarget.value)
|