@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,18 +1,19 @@
|
|
|
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] = "d6756e7c-349b-4056-a764-ed6fb9e92b7f", e._sentryDebugIdIdentifier = "sentry-dbid-d6756e7c-349b-4056-a764-ed6fb9e92b7f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
7
|
-
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-
|
|
8
|
-
import { a as translateTranslatable, o as Field } from "./Select-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
6
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
|
|
7
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-E0Wffo2-.js";
|
|
8
|
+
import { a as translateTranslatable, o as Field } from "./Select-DTqe0uNK.js";
|
|
9
|
+
import { r as MaskedInput } from "./dropinUtils-DBnjaFWb.js";
|
|
10
|
+
import { _ as taxInformationDefaultFieldMetadata, d as TaxIdNumberTypeSelector, g as taxInformationDefaultFieldConfig, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, z as getTaxIdNumberOptions } from "./bafinUtils-CFvCTqAt.js";
|
|
11
|
+
import { t as formatValidationError } from "./formatValidationError-DIPpFoJQ.js";
|
|
12
12
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
13
|
-
import {
|
|
13
|
+
import { t as toTanStackValidators } from "./tanstackValidation-BgAM9eKo.js";
|
|
14
|
+
import { useCallback, useEffect, useRef } from "preact/hooks";
|
|
14
15
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
|
-
import {
|
|
16
|
+
import { useSelector } from "@tanstack/preact-form";
|
|
16
17
|
//#region src/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.tsx
|
|
17
18
|
function ExemptedFromTaxField({ field, label, checked, onChange }) {
|
|
18
19
|
return /* @__PURE__ */ jsx(Field, {
|
|
@@ -85,166 +86,121 @@ var TaxInformationFieldGroup = withForm({
|
|
|
85
86
|
const taxNumberPath = `${taxInfoPath}.number`;
|
|
86
87
|
const taxTypePath = `${taxInfoPath}.type`;
|
|
87
88
|
const exemptedPath = `${taxInfoPath}.numberAbsent`;
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const exemptedFromTax = useStore(form.store, (s) => getNestedValue(s.values, exemptedPath));
|
|
89
|
+
const taxInformation = useSelector(form.store, (s) => getNestedValue(s.values, taxInfoPath));
|
|
90
|
+
const exemptedFromTax = useSelector(form.store, (s) => getNestedValue(s.values, exemptedPath));
|
|
91
91
|
const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
|
|
92
|
-
const
|
|
93
|
-
const taxIdNumberType = useMemo(() => {
|
|
94
|
-
if (currentTaxInformation?.numberAbsent) return "exempted";
|
|
95
|
-
if (currentTaxInformation?.type) return currentTaxInformation.type;
|
|
96
|
-
if (isUsSoleProp) return void 0;
|
|
97
|
-
return findExistingTaxInformation(taxInformations, country)?.type;
|
|
98
|
-
}, [
|
|
99
|
-
currentTaxInformation?.type,
|
|
100
|
-
currentTaxInformation?.numberAbsent,
|
|
101
|
-
taxInformations,
|
|
102
|
-
isUsSoleProp,
|
|
103
|
-
country
|
|
104
|
-
]);
|
|
92
|
+
const taxIdNumberType = taxInformation?.numberAbsent ? "exempted" : taxInformation?.type;
|
|
105
93
|
const options = getTaxIdNumberOptions(country, entityType);
|
|
106
94
|
const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
|
|
107
95
|
const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country);
|
|
108
96
|
const fieldMetadata = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
109
|
-
taxIdNumberType:
|
|
97
|
+
taxIdNumberType: taxInformation?.type,
|
|
110
98
|
companyType: entityType
|
|
111
99
|
}, taxInformationDefaultFieldMetadata);
|
|
112
100
|
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels?.exemptedFromTax;
|
|
113
|
-
const updateTaxInfo = useCallback((
|
|
114
|
-
const
|
|
115
|
-
...
|
|
116
|
-
numberAbsent:
|
|
117
|
-
} :
|
|
118
|
-
|
|
119
|
-
form.setFieldValue(taxInfoPath, updated);
|
|
101
|
+
const updateTaxInfo = useCallback((entry) => {
|
|
102
|
+
const normalized = canSaveAbsentState ? {
|
|
103
|
+
...entry,
|
|
104
|
+
numberAbsent: entry.numberAbsent ?? false
|
|
105
|
+
} : entry;
|
|
106
|
+
form.setFieldValue(taxInfoPath, normalized);
|
|
120
107
|
}, [
|
|
121
108
|
canSaveAbsentState,
|
|
122
|
-
country,
|
|
123
109
|
form,
|
|
124
|
-
taxInfoPath
|
|
125
|
-
defaultData
|
|
110
|
+
taxInfoPath
|
|
126
111
|
]);
|
|
127
|
-
const updateTaxType = useCallback((type
|
|
128
|
-
updateTaxInfo(
|
|
112
|
+
const updateTaxType = useCallback((type) => {
|
|
113
|
+
updateTaxInfo({
|
|
129
114
|
country,
|
|
130
|
-
number:
|
|
115
|
+
number: taxInformation?.number,
|
|
131
116
|
type
|
|
132
117
|
});
|
|
133
118
|
}, [
|
|
134
119
|
country,
|
|
135
|
-
|
|
120
|
+
taxInformation?.number,
|
|
136
121
|
updateTaxInfo
|
|
137
122
|
]);
|
|
138
|
-
const removeCountryTaxInfo = useCallback(() => {
|
|
139
|
-
form.setFieldValue(taxInfoPath, removeTaxInfoForCountry(taxInformations, country));
|
|
140
|
-
}, [
|
|
141
|
-
country,
|
|
142
|
-
form,
|
|
143
|
-
taxInfoPath,
|
|
144
|
-
taxInformations
|
|
145
|
-
]);
|
|
146
|
-
const addTaxAbsentStatus = useCallback((absent) => {
|
|
147
|
-
form.setFieldValue(taxInfoPath, upsertTaxInfoForCountry(taxInformations, country, {
|
|
148
|
-
country,
|
|
149
|
-
numberAbsent: absent
|
|
150
|
-
}));
|
|
151
|
-
}, [
|
|
152
|
-
country,
|
|
153
|
-
form,
|
|
154
|
-
taxInfoPath,
|
|
155
|
-
taxInformations
|
|
156
|
-
]);
|
|
157
123
|
const setUenAsTaxId = useCallback((uen) => {
|
|
158
|
-
updateTaxInfo(
|
|
124
|
+
updateTaxInfo({
|
|
159
125
|
country,
|
|
160
126
|
number: uen ?? "",
|
|
161
127
|
type: "UEN"
|
|
162
128
|
});
|
|
163
129
|
}, [country, updateTaxInfo]);
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
130
|
+
const setExemptedFromTax = useCallback((exempted) => {
|
|
131
|
+
if (exempted) {
|
|
132
|
+
updateTaxInfo({
|
|
133
|
+
country,
|
|
134
|
+
numberAbsent: true
|
|
135
|
+
});
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
updateTaxInfo(canSaveAbsentState ? {
|
|
139
|
+
country,
|
|
140
|
+
numberAbsent: false
|
|
141
|
+
} : { country });
|
|
166
142
|
}, [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
143
|
+
canSaveAbsentState,
|
|
144
|
+
country,
|
|
145
|
+
updateTaxInfo
|
|
170
146
|
]);
|
|
171
147
|
const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
|
|
172
148
|
if (!canExempt && taxIdType === "exempted") throw new Error(`${country} does not allow tax exemptions`);
|
|
173
149
|
if (taxIdType === "exempted") {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
|
|
150
|
+
setExemptedFromTax(true);
|
|
151
|
+
return;
|
|
177
152
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
form.setFieldValue(isUenPath, true);
|
|
182
|
-
setUenAsTaxId(registrationNumber);
|
|
183
|
-
} else {
|
|
184
|
-
form.setFieldValue(isUenPath, false);
|
|
185
|
-
removeCountryTaxInfo();
|
|
186
|
-
}
|
|
153
|
+
if (country === "SG" && taxIdType === "UEN") {
|
|
154
|
+
setUenAsTaxId(registrationNumber);
|
|
155
|
+
return;
|
|
187
156
|
}
|
|
188
|
-
updateTaxType(taxIdType
|
|
157
|
+
updateTaxType(taxIdType);
|
|
189
158
|
}, [
|
|
190
|
-
addTaxAbsentStatus,
|
|
191
159
|
canExempt,
|
|
192
|
-
canSaveAbsentState,
|
|
193
160
|
country,
|
|
194
|
-
exemptedPath,
|
|
195
|
-
form,
|
|
196
|
-
isUenPath,
|
|
197
|
-
removeCountryTaxInfo,
|
|
198
161
|
registrationNumber,
|
|
162
|
+
setExemptedFromTax,
|
|
199
163
|
setUenAsTaxId,
|
|
200
164
|
updateTaxType
|
|
201
165
|
]);
|
|
202
|
-
const handleTaxNumberChange = useCallback((e, mode) => {
|
|
166
|
+
const handleTaxNumberChange = useCallback((e, field, mode) => {
|
|
203
167
|
const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
|
|
204
|
-
|
|
205
|
-
|
|
168
|
+
if (mode === "input") field.handleChange(value);
|
|
169
|
+
else field.handleBlur();
|
|
170
|
+
const resolvedType = taxInformation?.type ?? (taxIdNumberType === "exempted" ? void 0 : taxIdNumberType);
|
|
171
|
+
updateTaxInfo({
|
|
206
172
|
country,
|
|
207
173
|
number: value,
|
|
208
174
|
type: resolvedType
|
|
209
175
|
});
|
|
210
176
|
}, [
|
|
211
177
|
country,
|
|
212
|
-
|
|
178
|
+
taxInformation?.type,
|
|
213
179
|
taxIdNumberType,
|
|
214
180
|
updateTaxInfo
|
|
215
181
|
]);
|
|
216
|
-
const handleExemptedFromTaxChange = useCallback((exempted) => {
|
|
217
|
-
form.setFieldValue(exemptedPath, exempted);
|
|
218
|
-
if (canSaveAbsentState) addTaxAbsentStatus(exempted);
|
|
219
|
-
else removeCountryTaxInfo();
|
|
220
|
-
}, [
|
|
221
|
-
addTaxAbsentStatus,
|
|
222
|
-
canSaveAbsentState,
|
|
223
|
-
exemptedPath,
|
|
224
|
-
form,
|
|
225
|
-
removeCountryTaxInfo
|
|
226
|
-
]);
|
|
227
182
|
const prevCountryRef = useRef(country);
|
|
228
183
|
useEffect(() => {
|
|
229
184
|
if (!country || prevCountryRef.current === country) return;
|
|
230
185
|
prevCountryRef.current = country;
|
|
231
|
-
const hasSavedTaxId = defaultData?.find((t) => t.country === country);
|
|
232
|
-
if (currentTaxInformation && !hasSavedTaxId) return;
|
|
233
186
|
if (entityType === "soleProprietorship") return;
|
|
234
|
-
|
|
187
|
+
const hasSavedTaxId = defaultData?.country === country;
|
|
188
|
+
if (!hasSavedTaxId && taxInformation?.country === country) return;
|
|
189
|
+
form.setFieldValue(taxInfoPath, hasSavedTaxId ? defaultData : void 0);
|
|
235
190
|
}, [
|
|
236
191
|
country,
|
|
237
|
-
currentTaxInformation,
|
|
238
192
|
defaultData,
|
|
239
193
|
entityType,
|
|
240
|
-
|
|
194
|
+
form,
|
|
195
|
+
taxInfoPath,
|
|
196
|
+
taxInformation
|
|
241
197
|
]);
|
|
242
198
|
useEffect(() => {
|
|
243
|
-
if (country === "SG" && registrationNumber && registrationNumber !==
|
|
199
|
+
if (country === "SG" && registrationNumber && registrationNumber !== taxInformation?.number) setUenAsTaxId(registrationNumber);
|
|
244
200
|
}, [
|
|
245
|
-
registrationNumber,
|
|
246
|
-
currentTaxInformation?.number,
|
|
247
201
|
country,
|
|
202
|
+
registrationNumber,
|
|
203
|
+
taxInformation?.number,
|
|
248
204
|
setUenAsTaxId
|
|
249
205
|
]);
|
|
250
206
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -262,17 +218,18 @@ var TaxInformationFieldGroup = withForm({
|
|
|
262
218
|
}),
|
|
263
219
|
/* @__PURE__ */ jsx(form.Field, {
|
|
264
220
|
name: taxNumberPath,
|
|
221
|
+
validators: toTanStackValidators(fieldMetadata.validators),
|
|
265
222
|
children: (field) => /* @__PURE__ */ jsx(TaxIdNumberInputField, {
|
|
266
223
|
field,
|
|
267
224
|
fieldMetadata,
|
|
268
|
-
currentValue:
|
|
225
|
+
currentValue: taxInformation?.number ?? "",
|
|
269
226
|
placeholder,
|
|
270
227
|
readonly,
|
|
271
228
|
optional,
|
|
272
229
|
shouldValidate: true,
|
|
273
230
|
disabled: Boolean(exemptedFromTax),
|
|
274
|
-
onInput: (e) => handleTaxNumberChange(e, "input"),
|
|
275
|
-
onBlur: (e) => handleTaxNumberChange(e, "blur")
|
|
231
|
+
onInput: (e) => handleTaxNumberChange(e, field, "input"),
|
|
232
|
+
onBlur: (e) => handleTaxNumberChange(e, field, "blur")
|
|
276
233
|
})
|
|
277
234
|
}),
|
|
278
235
|
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(form.Field, {
|
|
@@ -281,7 +238,7 @@ var TaxInformationFieldGroup = withForm({
|
|
|
281
238
|
field,
|
|
282
239
|
label: labels?.exemptedFromTax,
|
|
283
240
|
checked: Boolean(exemptedFromTax),
|
|
284
|
-
onChange:
|
|
241
|
+
onChange: setExemptedFromTax
|
|
285
242
|
})
|
|
286
243
|
})
|
|
287
244
|
] });
|
|
@@ -1,29 +1,30 @@
|
|
|
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] = "b9b1dfdd-6acd-436a-a8ac-3b80f7ef8d9a", e._sentryDebugIdIdentifier = "sentry-dbid-b9b1dfdd-6acd-436a-a8ac-3b80f7ef8d9a");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, ct as isEmpty } from "./registerEmbed-DQqTWYX2.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
-
import { t as Icon } from "./Icon-
|
|
8
|
+
import { t as Icon } from "./Icon-D2IGgB2L.js";
|
|
9
9
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
10
10
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
11
|
-
import { n as IconButton, t as Button } from "./Button-
|
|
11
|
+
import { n as IconButton, t as Button } from "./Button-EhGM-oCO.js";
|
|
12
12
|
import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
13
13
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
14
14
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
15
15
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
|
-
import {
|
|
16
|
+
import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
|
|
17
|
+
import { t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
|
|
17
18
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
18
|
-
import {
|
|
19
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
20
|
-
import { o as Field } from "./Select-
|
|
21
|
-
import { o as StructuredList } from "./utils-
|
|
22
|
-
import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-
|
|
23
|
-
import {
|
|
24
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
19
|
+
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
|
|
20
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-E0Wffo2-.js";
|
|
21
|
+
import { o as Field } from "./Select-DTqe0uNK.js";
|
|
22
|
+
import { o as StructuredList } from "./utils-B_dD2dvD.js";
|
|
23
|
+
import { h as useUpdateLegalEntity, m as isEmpty$1 } from "./StateField-DgYpF1_M.js";
|
|
24
|
+
import { H as FormContextProvider, I as useMultiForm, n as getRequiredForms, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-DBnjaFWb.js";
|
|
25
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
|
|
25
26
|
import { r as getFormProps } from "./getProps-DVqK7eRw.js";
|
|
26
|
-
import { t as Link } from "./Link-
|
|
27
|
+
import { t as Link } from "./Link-BtWj5mVH.js";
|
|
27
28
|
import { t as useTaskStatus } from "./useTaskStatus-4nAPf_uD.js";
|
|
28
29
|
import { lazy } from "preact/compat";
|
|
29
30
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
@@ -1,11 +1,11 @@
|
|
|
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] = "42b55fc0-80d5-473c-86f8-18250003ff67", e._sentryDebugIdIdentifier = "sentry-dbid-42b55fc0-80d5-473c-86f8-18250003ff67");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
5
|
+
import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
|
|
6
6
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
7
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
8
|
-
import { TaxReportingDropin } from "./TaxReportingDropin-
|
|
7
|
+
import { t as useHideTaskStepper } from "./useHideTaskStepper-DvHXw3zd.js";
|
|
8
|
+
import { TaxReportingDropin } from "./TaxReportingDropin-CR1Cpz3u.js";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
10
10
|
//#region src/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.tsx
|
|
11
11
|
var TaxReportingWorkflow = ({ node }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
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] = "e830ebd3-5efe-4c2c-aa83-a3218e46165b", e._sentryDebugIdIdentifier = "sentry-dbid-e830ebd3-5efe-4c2c-aa83-a3218e46165b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, o as __exportAll, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { P as _rolldown_dynamic_import_helper_default, T as Alert, s as doesLegalEntityRequiresLegalRepresentative } 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, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
@@ -14,18 +14,18 @@ import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
|
14
14
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
15
15
|
import { a as getLegalRepresentative } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
16
16
|
import { a as getOwnSignatories } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
17
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
18
|
-
import {
|
|
17
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
|
|
18
|
+
import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
|
|
19
19
|
import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-FDpSDjco.js";
|
|
20
20
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
21
|
-
import { n as
|
|
22
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
21
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-DrJp13W1.js";
|
|
22
|
+
import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
|
|
23
23
|
import { t as downloadFile } from "./file-1IenVoh8.js";
|
|
24
|
-
import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-
|
|
24
|
+
import { c as MaybeModal, o as Field, p as LoaderWrapper, r as getLanguageCode, s as ProgressBar, t as Select } from "./Select-DTqe0uNK.js";
|
|
25
25
|
import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
|
|
26
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
27
|
-
import { t as useForm } from "./useForm-
|
|
28
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
26
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CuOu8Sqr.js";
|
|
27
|
+
import { t as useForm } from "./useForm-CwWvs060.js";
|
|
28
|
+
import { t as formatValidationError } from "./formatValidationError-DIPpFoJQ.js";
|
|
29
29
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
30
30
|
import { t as ContractViewer } from "./ContractViewer-CG9UNGz1.js";
|
|
31
31
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
@@ -164,6 +164,7 @@ var serviceAgreementTypesTranslationMapping = {
|
|
|
164
164
|
adyenIssuing: "accountHolderTerms",
|
|
165
165
|
adyenForPlatformsAdvanced: "paymentProcessingTerms",
|
|
166
166
|
adyenCapital: "capitalUserTerms",
|
|
167
|
+
adyenCapitalCashAdvance: "capitalUserTerms",
|
|
167
168
|
adyenAccount: "businessAccountTerms",
|
|
168
169
|
adyenCard: "cardUserTerms",
|
|
169
170
|
adyenFranchisee: "franchiseesTAndCs",
|
|
@@ -487,33 +488,33 @@ function TermsOfServiceManagement({ legalEntityId, modalView = false, onClose, o
|
|
|
487
488
|
{
|
|
488
489
|
ns: "common",
|
|
489
490
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
|
|
490
|
-
"../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
491
|
-
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-
|
|
492
|
-
"../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
493
|
-
"../../../language/locales/de-DE.json": () => import("./de-DE-
|
|
494
|
-
"../../../language/locales/el-GR.json": () => import("./el-GR-
|
|
491
|
+
"../../../language/locales/bg-BG.json": () => import("./bg-BG-CdDdNATP.js"),
|
|
492
|
+
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CQoPRxwA.js"),
|
|
493
|
+
"../../../language/locales/da-DK.json": () => import("./da-DK-CEe5TTUa.js"),
|
|
494
|
+
"../../../language/locales/de-DE.json": () => import("./de-DE-ut0CGES0.js"),
|
|
495
|
+
"../../../language/locales/el-GR.json": () => import("./el-GR-BEWi0DRN.js"),
|
|
495
496
|
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-myDXMUbk.js"),
|
|
496
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
497
|
-
"../../../language/locales/es-ES.json": () => import("./es-ES-
|
|
498
|
-
"../../../language/locales/es-LA.json": () => import("./es-LA-
|
|
499
|
-
"../../../language/locales/et-EE.json": () => import("./et-EE-
|
|
500
|
-
"../../../language/locales/fi-FI.json": () => import("./fi-FI-
|
|
501
|
-
"../../../language/locales/fr-FR.json": () => import("./fr-FR-
|
|
502
|
-
"../../../language/locales/hr-HR.json": () => import("./hr-HR-
|
|
503
|
-
"../../../language/locales/hu-HU.json": () => import("./hu-HU-
|
|
504
|
-
"../../../language/locales/it-IT.json": () => import("./it-IT-
|
|
505
|
-
"../../../language/locales/ja-JP.json": () => import("./ja-JP-
|
|
506
|
-
"../../../language/locales/lt-LT.json": () => import("./lt-LT-
|
|
507
|
-
"../../../language/locales/lv-LV.json": () => import("./lv-LV-
|
|
508
|
-
"../../../language/locales/nl-NL.json": () => import("./nl-NL-
|
|
509
|
-
"../../../language/locales/no-NO.json": () => import("./no-NO-
|
|
510
|
-
"../../../language/locales/pl-PL.json": () => import("./pl-PL-
|
|
511
|
-
"../../../language/locales/pt-BR.json": () => import("./pt-BR-
|
|
512
|
-
"../../../language/locales/pt-PT.json": () => import("./pt-PT-
|
|
513
|
-
"../../../language/locales/ro-RO.json": () => import("./ro-RO-
|
|
514
|
-
"../../../language/locales/sk-SK.json": () => import("./sk-SK-
|
|
515
|
-
"../../../language/locales/sl-SI.json": () => import("./sl-SI-
|
|
516
|
-
"../../../language/locales/sv-SE.json": () => import("./sv-SE-
|
|
497
|
+
"../../../language/locales/en-US.json": () => import("./en-US-BWzZpVaj.js"),
|
|
498
|
+
"../../../language/locales/es-ES.json": () => import("./es-ES-3Z6u7_Cv.js"),
|
|
499
|
+
"../../../language/locales/es-LA.json": () => import("./es-LA-BgYaYfYK.js"),
|
|
500
|
+
"../../../language/locales/et-EE.json": () => import("./et-EE-CxTHKlGm.js"),
|
|
501
|
+
"../../../language/locales/fi-FI.json": () => import("./fi-FI-BE-RoRL5.js"),
|
|
502
|
+
"../../../language/locales/fr-FR.json": () => import("./fr-FR-Db4EY5iv.js"),
|
|
503
|
+
"../../../language/locales/hr-HR.json": () => import("./hr-HR-qvMOxoRF.js"),
|
|
504
|
+
"../../../language/locales/hu-HU.json": () => import("./hu-HU-BNk4CovT.js"),
|
|
505
|
+
"../../../language/locales/it-IT.json": () => import("./it-IT-RatP9WIw.js"),
|
|
506
|
+
"../../../language/locales/ja-JP.json": () => import("./ja-JP-BILx8dc7.js"),
|
|
507
|
+
"../../../language/locales/lt-LT.json": () => import("./lt-LT-CZ2yA_Km.js"),
|
|
508
|
+
"../../../language/locales/lv-LV.json": () => import("./lv-LV-AGwJD157.js"),
|
|
509
|
+
"../../../language/locales/nl-NL.json": () => import("./nl-NL-DNXcBpml.js"),
|
|
510
|
+
"../../../language/locales/no-NO.json": () => import("./no-NO-vY4nfY9g.js"),
|
|
511
|
+
"../../../language/locales/pl-PL.json": () => import("./pl-PL-KmUtZ6lq.js"),
|
|
512
|
+
"../../../language/locales/pt-BR.json": () => import("./pt-BR-tQCWRhmf.js"),
|
|
513
|
+
"../../../language/locales/pt-PT.json": () => import("./pt-PT-ZNVCYAr4.js"),
|
|
514
|
+
"../../../language/locales/ro-RO.json": () => import("./ro-RO-DDdUFz6E.js"),
|
|
515
|
+
"../../../language/locales/sk-SK.json": () => import("./sk-SK-DdDdEYiT.js"),
|
|
516
|
+
"../../../language/locales/sl-SI.json": () => import("./sl-SI-vefne3eU.js"),
|
|
517
|
+
"../../../language/locales/sv-SE.json": () => import("./sv-SE-DIDlUvzM.js")
|
|
517
518
|
}), `../../../language/locales/${lang}.json`, 6)
|
|
518
519
|
},
|
|
519
520
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
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] = "76d33eaf-2d23-42c5-afa5-294256710000", e._sentryDebugIdIdentifier = "sentry-dbid-76d33eaf-2d23-42c5-afa5-294256710000");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
|
-
import { n as debouncedInputEvent } from "./Checkbox-
|
|
8
|
-
import {
|
|
9
|
-
import { i as convertFullToHalf } from "./unincorporatedPartnership-
|
|
7
|
+
import { n as debouncedInputEvent } from "./Checkbox-CyMoenl6.js";
|
|
8
|
+
import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
|
|
9
|
+
import { i as convertFullToHalf } from "./unincorporatedPartnership-E0Wffo2-.js";
|
|
10
10
|
import { useState } from "preact/hooks";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
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] = "1d9a707a-ba77-482c-8790-be22ef752470", e._sentryDebugIdIdentifier = "sentry-dbid-1d9a707a-ba77-482c-8790-be22ef752470");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { o as Field } from "./Select-
|
|
6
|
+
import { U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ft as isValidMinLength, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-DQqTWYX2.js";
|
|
7
|
+
import { a as InputBase } from "./RadioGroup-CEi7ZDGi.js";
|
|
8
|
+
import { o as Field } from "./Select-DTqe0uNK.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 { jsx } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/adaptiveWorkflow/components/Shared/Fields/TextField/validators.ts
|
|
13
13
|
var containsText = (val) => {
|
|
@@ -35,21 +35,23 @@ var contextMap = { legalName: {
|
|
|
35
35
|
//#region src/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.tsx
|
|
36
36
|
var TextField = withForm({
|
|
37
37
|
props: {},
|
|
38
|
-
render: function TextFieldRender({ form, node }) {
|
|
38
|
+
render: function TextFieldRender({ form, node, disabled }) {
|
|
39
|
+
const { id, path } = node;
|
|
39
40
|
const { t } = useTranslation("common");
|
|
40
|
-
const { label, helperText, validators } = contextMap[
|
|
41
|
+
const { label, helperText, validators } = contextMap[id] || {};
|
|
41
42
|
return /* @__PURE__ */ jsx(form.Field, {
|
|
42
|
-
name:
|
|
43
|
+
name: path,
|
|
43
44
|
validators: {
|
|
44
45
|
onBlur: ({ value }) => getValidationError(validators?.blur || defaultValidators.blur, value, t),
|
|
45
46
|
onChange: ({ value }) => getValidationError(validators?.change || defaultValidators.change, value, t)
|
|
46
47
|
},
|
|
47
48
|
children: (field) => {
|
|
48
49
|
return /* @__PURE__ */ jsx(Field, {
|
|
49
|
-
name:
|
|
50
|
-
label: label ? t(($) => $[label]) :
|
|
50
|
+
name: id,
|
|
51
|
+
label: label ? t(($) => $[label]) : id,
|
|
51
52
|
helper: helperText && t(($) => $[helperText]),
|
|
52
53
|
isValid: !field.state.meta.errors.length,
|
|
54
|
+
disabled,
|
|
53
55
|
errorMessage: field.state.meta.errors.length ? {
|
|
54
56
|
key: field.state.meta.errors[0],
|
|
55
57
|
message: field.state.meta.errors[0]
|
|
@@ -59,6 +61,7 @@ var TextField = withForm({
|
|
|
59
61
|
...props,
|
|
60
62
|
type: "text",
|
|
61
63
|
"aria-required": true,
|
|
64
|
+
disabled,
|
|
62
65
|
value: field.state.value,
|
|
63
66
|
onInput: (e) => field.handleChange(e.currentTarget.value),
|
|
64
67
|
onBlur: field.handleBlur
|