@adyen/kyc-components 4.23.0 → 4.24.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/4-people-DKuivE0m.js +35 -0
- package/dist/AcceptTermsOfServiceWorkflow-C3JrMbt5.js +28 -0
- package/dist/Accordion-Dgdxfe-d.js +112 -0
- package/dist/AccountSetupRejected-D63dyojj.js +19 -0
- package/dist/AdaptiveWorkflow-XhWdnJv-.js +33 -0
- package/dist/AdaptiveWorkflowComponent-pMWy1Vig.js +166 -0
- package/dist/AddressFields-BC3QHs2u.js +468 -0
- package/dist/Alert-Cc7p0N5h.js +172 -0
- package/dist/AnalyticsContext-CpimDlw4.js +21 -0
- package/dist/Avatar-oTPu6Ejy.js +54 -0
- package/dist/BusinessFinancingDropin-CxHK6KY3.js +1870 -0
- package/dist/BusinessFinancingPage-teAAjQl8.js +89 -0
- package/dist/BusinessRegistrationNumberField-DKka8aVU.js +103 -0
- package/dist/BusinessRegistrationNumberFieldGroup-Df6_sDA0.js +173 -0
- package/dist/BusinessTypeSelectionPage-BETJH6LZ.js +457 -0
- package/dist/Button-DPJ1k02w.js +108 -0
- package/dist/Checkbox-qfdF12cF.js +60 -0
- package/dist/ComponentGroup-SozxzKWw.js +32 -0
- package/dist/Confirm-DoN9R9Z3.js +77 -0
- package/dist/ConstitutionalDocument-Bxsr1hQb.js +1229 -0
- package/dist/ContactDetails-CiWftLi4.js +516 -0
- package/dist/ContextGuidance-BQPwRscq.js +29 -0
- package/dist/ContractViewer-CG9UNGz1.js +1030 -0
- package/dist/CountryField-DT6-Jr_b.js +38 -0
- package/dist/Currency-oeXHRWzy.js +211 -0
- package/dist/CustomerSupport-D0bE0zga.js +141 -0
- package/dist/DataConflictsModal-CCaMgguu.js +238 -0
- package/dist/DebugModal-Cvp7_Z-i.js +456 -0
- package/dist/DecisionMakerDetails-Bbb_8up2.js +569 -0
- package/dist/DecisionMakerDetailsPage-BDTMzs1X.js +121 -0
- package/dist/DecisionMakers-maoFXpGe.js +594 -0
- package/dist/Dropzone-ttbRg2LI.js +250 -0
- package/dist/EmbeddedStatus-CYd2p4sP.js +129 -0
- package/dist/EndStateLayout-zZPm8S5M.js +83 -0
- package/dist/EntityAssociation-C2_Xuvf5.js +163 -0
- package/dist/ErrorPanel-D4JNFkvi.js +205 -0
- package/dist/Field-DwDJQVSS.js +154 -0
- package/dist/FormFlow.module-DqMxjYHl.js +20 -0
- package/dist/GlobalEntryModal-CLoPJXFE.js +1203 -0
- package/dist/GlobalEntryPage-DNPSSZ3M.js +78 -0
- package/dist/Header-DVLlJ6we.js +93 -0
- package/dist/Icon-4XR6gZzk.js +175 -0
- package/dist/IdentityNumber-3V6ZqvHB.js +540 -0
- package/dist/IdentityNumberFieldGroup-CAjlgTWn.js +57 -0
- package/dist/IdentityScreeningWorkflow-CBStT1hs.js +307 -0
- package/dist/Image-Bn_Yyuof.js +33 -0
- package/dist/IndividualDropin-0t7Oj71F.js +4175 -0
- package/dist/IndustryCodeFieldGroup-C3Zro2ds.js +189 -0
- package/dist/InputDate-Bq3Sb-ZW.js +211 -0
- package/dist/InputText-CFDEmEtp.js +119 -0
- package/dist/Introduction-z2SqIq1W.js +326 -0
- package/dist/InvitedDecisionMakerComponent-CZOVc-t9.js +481 -0
- package/dist/JpAddressFields-F1YCOcbO.js +288 -0
- package/dist/LandingLayout-BsIoIFzs.js +76 -0
- package/dist/LegalCompanyNameField-Cosyjk52.js +108 -0
- package/dist/LegalName-CtqIpsfy.js +33 -0
- package/dist/LegalRepresentativeDetailsPage-DwIARCpj.js +73 -0
- package/dist/Link-CvYhseSD.js +32 -0
- package/dist/ListItem-CYTpdOMa.js +70 -0
- package/dist/Loader-BVtlpTeo.js +92 -0
- package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
- package/dist/MaybeModal-C4ySaA8A.js +24 -0
- package/dist/Modal-CHES6970.js +109 -0
- package/dist/Name-CdCsijr5.js +61 -0
- package/dist/NewSummary-D55f70wB.js +73 -0
- package/dist/NodeRenderer-B3G7pvjG.js +185 -0
- package/dist/PatriotActDisclosure-DqUZeLms.js +266 -0
- package/dist/PayoutDetailsDropin-LKMpfono.js +4104 -0
- package/dist/PayoutDetailsPage-KNHCeXgk.js +69 -0
- package/dist/ProgressBar-DWFxLMUA.js +38 -0
- package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
- package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
- package/dist/Review-CS_-zAlg.js +99 -0
- package/dist/RootBusinessDetailsPage-1z2_FAb6.js +67 -0
- package/dist/RootBusinessLinesPage-BgbkJaW8.js +1464 -0
- package/dist/RootIndividualDetailsPage-DA4hh_gc.js +82 -0
- package/dist/Select-phAxjMBQ.js +782 -0
- package/dist/SignPCIComponent-tBnZMn1u.js +373 -0
- package/dist/SingpassSelection-B6_DsZtn.js +156 -0
- package/dist/SoleProprietorshipPage-2s1kA9ZV.js +69 -0
- package/dist/SourceOfFundsPage-CTjUdOWK.js +2800 -0
- package/dist/SourceOfFundsWorkflow-BZabOpi_.js +28 -0
- package/dist/StateContext-B2_Pqd_y.js +9 -0
- package/dist/StateField-BpMwetvd.js +55 -0
- package/dist/Step-C6XxGAda.js +191 -0
- package/dist/StructuredList-nPasiuLi.js +56 -0
- package/dist/Summary-DM31WxLr.js +235 -0
- package/dist/Task-DwGA1eXE.js +129 -0
- package/dist/TaskGroup-T594JSYM.js +46 -0
- package/dist/TaskListItem-Dx3hKOqG.js +123 -0
- package/dist/TaskStepperContextProvider-DdcsqXT7.js +26 -0
- package/dist/TaskVerificationStatus-DEXk_ndE.js +125 -0
- package/dist/TaxInformationField-CV7SpMH1.js +242 -0
- package/dist/TaxInformationFieldGroup-DI2LzuNr.js +290 -0
- package/dist/TaxReportingDropin-xYwJ-ju7.js +480 -0
- package/dist/TaxReportingWorkflow-BHyHgiI-.js +28 -0
- package/dist/TermsOfServiceManagement-CNQ4J5Gn.js +644 -0
- package/dist/TextArea-qGEo3PFG.js +81 -0
- package/dist/TileGroup-D1-M64Ul.js +172 -0
- package/dist/ToastContext-B_wd2IY2.js +13 -0
- package/dist/ToastContextProvider-DjYKMflX.js +103 -0
- package/dist/TrustDetailsPage-Byj68n3F.js +1172 -0
- package/dist/TrustMemberCompanyPage-Bcz4Ql7s.js +108 -0
- package/dist/TrustMemberIndividualPage-D6CgWF88.js +108 -0
- package/dist/TrustMemberRoleAndTypePage-IUp5FVRW.js +937 -0
- package/dist/TrustMembersOverview-7EoKoSMg.js +453 -0
- package/dist/UboTaskItem-BmcGj5_U.js +115 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BKpJDhhU.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-D8VliL0i.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-D00bHhyf.js +256 -0
- package/dist/UnincorporatedPartnershipMembersOverview-Dw5IMSkd.js +160 -0
- package/dist/VerificationErrorAlert-CixajVtq.js +38 -0
- package/dist/Workflow-CWzMRGHX.js +228 -0
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
- package/dist/accountHolderUtils-CAu4V0ed.js +43 -0
- package/dist/adyen-business-financing.js +38 -37
- package/dist/adyen-individual-configuration.js +65 -65
- package/dist/adyen-individual-status.js +35 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +109 -101
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +9 -8
- package/dist/adyen-transfer-instrument-configuration.js +62 -61
- package/dist/adyen-transfer-instrument-management.js +76 -70
- package/dist/adyen-verification-status.js +10 -8
- package/dist/arrow-right-D2hul7WG.js +20 -0
- package/dist/bafinUtils-DDrD6bfK.js +96 -0
- package/dist/bag-CRRS1aow.js +20 -0
- package/dist/bank-BoirCLLW.js +20 -0
- package/dist/bg-BG-B0Ia8sQm.js +7 -0
- package/dist/bg-BG-B2xaZ3wB.js +7 -0
- package/dist/bg-BG-DAR7_x2a.js +7 -0
- package/dist/bg-BG-DqfAUTUt.js +7 -0
- package/dist/bg-BG-ivZjQNJZ.js +7 -0
- package/dist/bin-BOmfqfrr.js +30 -0
- package/dist/birthDateUtils-D6uk7zwm.js +84 -0
- package/dist/businessRegistrationNumberPatterns-A08SLm03.js +982 -0
- package/dist/capital-DTjbiurV.js +23 -0
- package/dist/cash-stack-7KpYpBek.js +33 -0
- package/dist/certificate-BPuoJ6Ip.js +23 -0
- package/dist/checkmark-BiSLf8M1.js +20 -0
- package/dist/checkmark-circle-Ams7bSve.js +28 -0
- package/dist/checkmark-circle-fill-_p4ss4ac.js +30 -0
- package/dist/checkmark-small-3bw4ftPV.js +20 -0
- package/dist/chevron-down-GgZawvoy.js +20 -0
- package/dist/chevron-left-TeZTTvo5.js +20 -0
- package/dist/chevron-right-Cg8XlTxx.js +20 -0
- package/dist/chevron-up-COQUTli0.js +20 -0
- package/dist/circle-CypWzg83.js +30 -0
- package/dist/circle-small-filled-DfdK2A35.js +20 -0
- package/dist/clock-DmfGJ2r9.js +28 -0
- package/dist/coins-CBvbB8_X.js +30 -0
- package/dist/constants-C8yo0_RA.js +233 -0
- package/dist/contract-D1_RJ_xh.js +20 -0
- package/dist/countries-BGMTpyJv.js +41 -0
- package/dist/country-BEZkohEO.js +25 -0
- package/dist/cross-BORHADVQ.js +20 -0
- package/dist/cross-circle-fill-CUXdo1x-.js +30 -0
- package/dist/cross-circle-fill-small-DdoPZZeo.js +20 -0
- package/dist/cs-CZ-BwO4yrI4.js +7 -0
- package/dist/cs-CZ-CHMQYoMF.js +7 -0
- package/dist/cs-CZ-DsKlW7_D.js +7 -0
- package/dist/cs-CZ-NVntX32n.js +7 -0
- package/dist/cs-CZ-ywYpJk1F.js +7 -0
- package/dist/da-DK-BvT8Ob4A.js +7 -0
- package/dist/da-DK-BzBfkSME.js +7 -0
- package/dist/da-DK-CE7jnGea.js +7 -0
- package/dist/da-DK-DH5YNYFM.js +7 -0
- package/dist/da-DK-LPtdP8h0.js +7 -0
- package/dist/datasetUtil-BdHPWsxZ.js +45 -0
- package/dist/de-DE-C9cUCFOi.js +7 -0
- package/dist/de-DE-Cn866nnd.js +7 -0
- package/dist/de-DE-DA4LpyZI.js +7 -0
- package/dist/de-DE-DKkoZQ0X.js +7 -0
- package/dist/de-DE-DY_EJohI.js +7 -0
- package/dist/de-DE-vdy64knk.js +7 -0
- package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
- package/dist/debugStore-Dwn1FXrh.js +9 -0
- package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
- package/dist/decisionMakerRoles-C6LMC4mh.js +185 -0
- package/dist/document-1-qvV57JdS.js +20 -0
- package/dist/document-person-DiJ7M8-D.js +28 -0
- package/dist/download-Ca4w0Yfr.js +23 -0
- package/dist/dropinUtils-DTBezwYT.js +491 -0
- package/dist/edit-1-D8VhDchs.js +20 -0
- package/dist/el-GR-ChapyKa7.js +7 -0
- package/dist/el-GR-Cvms0L4K.js +7 -0
- package/dist/el-GR-D9PjIB9j.js +7 -0
- package/dist/el-GR-Ov9hqMNe.js +7 -0
- package/dist/el-GR-aelq5Q0a.js +7 -0
- package/dist/el-GR-zFv0QxMR.js +7 -0
- package/dist/en-US-B7HQdrn_.js +7 -0
- package/dist/en-US-CI7y0UEH.js +7 -0
- package/dist/en-US-C_VjFvk_.js +7 -0
- package/dist/en-US-Cz4JoU20.js +41 -0
- package/dist/en-US-DPr5RN3e.js +7 -0
- package/dist/en-US-U0d3NI20.js +7 -0
- package/dist/en-US-tFsDZf7y.js +7 -0
- package/dist/entityAssociationUtil-CY0grcyH.js +58 -0
- package/dist/error-BvgoQFEI.js +36 -0
- package/dist/es-ES-BQrdtEfn.js +7 -0
- package/dist/es-ES-BdByhG4y.js +7 -0
- package/dist/es-ES-BzlHKYJK.js +7 -0
- package/dist/es-ES-DCUvAmKI.js +7 -0
- package/dist/es-ES-DdrA8McY.js +7 -0
- package/dist/es-ES-DhkTbihW.js +7 -0
- package/dist/es-LA-3WgncmHx.js +7 -0
- package/dist/es-LA-BxtxM3Ty.js +7 -0
- package/dist/es-LA-ChRHGYJP.js +7 -0
- package/dist/es-LA-JRuDva0n.js +7 -0
- package/dist/es-LA-i7tKJmA8.js +7 -0
- package/dist/et-EE-BXY66vAz.js +7 -0
- package/dist/et-EE-D8TSvkoE.js +7 -0
- package/dist/et-EE-DOgb4q9o.js +7 -0
- package/dist/et-EE-HHgM0CfO.js +7 -0
- package/dist/et-EE-V-YOCgoh.js +7 -0
- package/dist/external-link-Dy4le-8Q.js +20 -0
- package/dist/fi-FI-B-eTv4bG.js +7 -0
- package/dist/fi-FI-CClpbvJJ.js +7 -0
- package/dist/fi-FI-CVBmM-U1.js +7 -0
- package/dist/fi-FI-DCYPQ6vS.js +7 -0
- package/dist/fi-FI-DCbhu29J.js +7 -0
- package/dist/fieldConfigurations-CZCFghnK.js +11 -0
- package/dist/form-rules-B0RwhsVw.js +284 -0
- package/dist/formFieldsUtils-CnDkgahc.js +7 -0
- package/dist/formUtils-BHgG8yQZ.js +52 -0
- package/dist/formUtils-DVDcdZsP.js +84 -0
- package/dist/formatCurrency-BetgkQKi.js +23 -0
- package/dist/formatValidationError-q_w9DTrl.js +23 -0
- package/dist/fr-FR-B-jA_cbo.js +7 -0
- package/dist/fr-FR-BIyJL6Jj.js +7 -0
- package/dist/fr-FR-BzyefnBh.js +7 -0
- package/dist/fr-FR-C1xYwHeC.js +7 -0
- package/dist/fr-FR-D0hY9V44.js +7 -0
- package/dist/fr-FR-Doo1FVx-.js +7 -0
- package/dist/genUtils-nphCwt1A.js +60 -0
- package/dist/getDefaultRegistrationNumberType-CIu4WMln.js +1056 -0
- package/dist/getFormSlice-C1ma6Xd4.js +21 -0
- package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
- package/dist/getName-DgxRqagk.js +34 -0
- package/dist/getProblemsForEntity-Bn6dXidE.js +16 -0
- package/dist/getTrustedDecisionMakers-Ta-pURcL.js +25 -0
- package/dist/getTrustedFields-BJ88GlM-.js +28 -0
- package/dist/gift-Bs_mAgul.js +20 -0
- package/dist/globalStore-WASei98w.js +418 -0
- package/dist/graph-Co0JhGiY.js +32 -0
- package/dist/graph-up-DIvH9haf.js +38 -0
- package/dist/headquarter-BESfDGKh.js +42 -0
- package/dist/hotel-Vne7G5M6.js +33 -0
- package/dist/hr-HR-6Wj5Tf60.js +7 -0
- package/dist/hr-HR-B4FRVzrd.js +7 -0
- package/dist/hr-HR-B6z7-PYE.js +7 -0
- package/dist/hr-HR-BOYktLQ2.js +7 -0
- package/dist/hr-HR-Ct_41fWV.js +7 -0
- package/dist/http-fdIO--pH.js +204 -0
- package/dist/hu-HU-B7ofWKn_.js +7 -0
- package/dist/hu-HU-Bwm4UqZz.js +7 -0
- package/dist/hu-HU-CO_7jvk9.js +7 -0
- package/dist/hu-HU-CgJ_F3l2.js +7 -0
- package/dist/hu-HU-DXK7B0r_.js +7 -0
- package/dist/image-BQM21XCk.js +23 -0
- package/dist/info-DExoPRH5.js +32 -0
- package/dist/info-filled-11KMeUso.js +32 -0
- package/dist/invalidateRootLegalEntity-BHaVREw-.js +45 -0
- package/dist/isEmpty-Uewyl-r6.js +14 -0
- package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
- package/dist/it-IT-BFIW0DCO.js +7 -0
- package/dist/it-IT-CNr6PIu3.js +7 -0
- package/dist/it-IT-CQVFYSVx.js +7 -0
- package/dist/it-IT-DfGdOsTs.js +7 -0
- package/dist/it-IT-DgRuEpeD.js +7 -0
- package/dist/it-IT-tZ7dP-Ia.js +7 -0
- package/dist/ja-JP--tMJF7eu.js +7 -0
- package/dist/ja-JP-BjMyxZiN.js +7 -0
- package/dist/ja-JP-Ct54-uwM.js +7 -0
- package/dist/ja-JP-CtX9NZKD.js +7 -0
- package/dist/ja-JP-DAClbueM.js +7 -0
- package/dist/ja-JP-DOuEAOlh.js +7 -0
- package/dist/keys-Ce8YnRP2.js +20 -0
- package/dist/legalArrangementUtils-C68JdH6I.js +114 -0
- package/dist/listToRecord-DumSkYDz.js +10 -0
- package/dist/location-zRH5zJ8c.js +23 -0
- package/dist/lt-LT-BUuouq_-.js +7 -0
- package/dist/lt-LT-Cs3cvyKf.js +7 -0
- package/dist/lt-LT-DQp7UGdC.js +7 -0
- package/dist/lt-LT-DoYCfhZU.js +7 -0
- package/dist/lt-LT-DqtpAjOg.js +7 -0
- package/dist/lv-LV-BCXqSzkk.js +7 -0
- package/dist/lv-LV-BW0BscAd.js +7 -0
- package/dist/lv-LV-C3p57pZV.js +7 -0
- package/dist/lv-LV-ZmyUvPst.js +7 -0
- package/dist/lv-LV-cKvnQI3j.js +7 -0
- package/dist/mail-i1-zg-cv.js +20 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js +26 -0
- package/dist/mapExistingFile-BkwRTTRm.js +55 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js +74 -0
- package/dist/mapLegalEntityToIndividualSchema-CBKR-InO.js +251 -0
- package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
- package/dist/mapTransferInstrumentToPayoutAccount-ROfaTly6.js +44 -0
- package/dist/maskHelpers-C0wnCoJl.js +719 -0
- package/dist/minus-circle-filled-CxUdRO8J.js +30 -0
- package/dist/nl-NL-B77Xr99l.js +7 -0
- package/dist/nl-NL-BUwMAW5C.js +7 -0
- package/dist/nl-NL-B_MaTF5h.js +7 -0
- package/dist/nl-NL-CePL3t7P.js +7 -0
- package/dist/nl-NL-DR5SCDAF.js +7 -0
- package/dist/nl-NL-DqGE4Nz5.js +7 -0
- package/dist/no-NO-BePxpMbr.js +7 -0
- package/dist/no-NO-DGCfRiU8.js +7 -0
- package/dist/no-NO-DdI2BI_e.js +7 -0
- package/dist/no-NO-P8SZ1t-h.js +7 -0
- package/dist/no-NO-oL1v_O9N.js +7 -0
- package/dist/options-horizontal-D86T_xAF.js +30 -0
- package/dist/partner-Dje0ykF6.js +30 -0
- package/dist/patternValidators-DsrZkuOO.js +73 -0
- package/dist/pay-by-link-plane-DAiddPu6.js +33 -0
- package/dist/payout-DKiGv3F9.js +38 -0
- package/dist/pdf-CC8vqpTo.js +22320 -0
- package/dist/pdf.worker.min-CdKJICZZ.js +75124 -0
- package/dist/person-DgALGIIz.js +23 -0
- package/dist/pl-PL-6Q3Ue3F5.js +7 -0
- package/dist/pl-PL-B5PBixAB.js +7 -0
- package/dist/pl-PL-BCkw9R28.js +7 -0
- package/dist/pl-PL-BY6KUTBO.js +7 -0
- package/dist/pl-PL-D-s-JI6X.js +7 -0
- package/dist/plus-DlQKP2C9.js +20 -0
- package/dist/plus-circle-filled-BntUOVIJ.js +30 -0
- package/dist/processCapabilities-CWE5UFt8.js +870 -0
- package/dist/processValidationErrors-CjsNfiRK.js +62 -0
- package/dist/pt-BR-B_XHiDCU.js +7 -0
- package/dist/pt-BR-BvNR77Ru.js +7 -0
- package/dist/pt-BR-CrLCMcSz2.js +7 -0
- package/dist/pt-BR-MrUfWW4a.js +7 -0
- package/dist/pt-BR-vwt2tE7H.js +7 -0
- package/dist/pt-PT-B17is9TY.js +7 -0
- package/dist/pt-PT-BZNPd_Tb.js +7 -0
- package/dist/pt-PT-DDYnXawl.js +7 -0
- package/dist/pt-PT-DhF8wwYH.js +7 -0
- package/dist/pt-PT-Du2K44jh.js +7 -0
- package/dist/pt-PT-qAzFgjvF.js +7 -0
- package/dist/recurring-DZgT_ekJ.js +23 -0
- package/dist/resolveEnvironment-B3aGkYuN.js +1000 -0
- package/dist/revenue-accelerate-aMLYFVW6.js +30 -0
- package/dist/ro-RO-B3Fcn95o.js +7 -0
- package/dist/ro-RO-BA5GhaCE.js +7 -0
- package/dist/ro-RO-BmHe4pZ-.js +7 -0
- package/dist/ro-RO-DChAv29z.js +7 -0
- package/dist/ro-RO-W1t7Mnbn.js +7 -0
- package/dist/roleMetadata-Dm1FVuPT.js +56 -0
- package/dist/save-uDNye08N.js +20 -0
- package/dist/search-0OS6oe8N.js +30 -0
- package/dist/show-BWoS9-Y1.js +23 -0
- package/dist/sk-SK-BeNF_m_j.js +7 -0
- package/dist/sk-SK-C9CiQLgt.js +7 -0
- package/dist/sk-SK-CISCMQ2G.js +7 -0
- package/dist/sk-SK-CcoUWnJ4.js +7 -0
- package/dist/sk-SK-D10Kpths.js +7 -0
- package/dist/sl-SI-Bxu4m_5e.js +7 -0
- package/dist/sl-SI-DCMml0lX.js +7 -0
- package/dist/sl-SI-DmYiMn91.js +7 -0
- package/dist/sl-SI-DxomO9JQ.js +7 -0
- package/dist/sl-SI-Qe4hzx5a.js +7 -0
- package/dist/solution-payments-BMal7uJZ.js +20 -0
- package/dist/store-N7ZA4FKy.js +20 -0
- package/dist/style.css +2341 -2252
- package/dist/styles-DYaAeu4q.js +2337 -2248
- package/dist/summaryItem-uDWmtYtt.js +16 -0
- package/dist/sv-SE-B-CXDaXM.js +7 -0
- package/dist/sv-SE-BzPNBHOj.js +7 -0
- package/dist/sv-SE-C9SgeFv6.js +7 -0
- package/dist/sv-SE-DESDUMyu.js +7 -0
- package/dist/sv-SE-Dq6oK7B5.js +7 -0
- package/dist/sv-SE-issaSBHd.js +7 -0
- package/dist/terminal-1-0RlQpbUC.js +30 -0
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/translation-DbATp_35.js +684 -0
- package/dist/trustUtil-5cyXiJnX.js +98 -0
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
- package/dist/types/api/documents/documents.types.d.ts +9 -0
- package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +10 -2
- package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
- package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
- package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
- package/dist/types/components/Business/utils/utils.d.ts +2 -15
- package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
- package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
- package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
- package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
- package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
- package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
- package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +0 -4
- package/dist/types/core/errorMapping.d.ts +3 -4
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
- package/dist/types/core/process-field-configurations.d.ts +4 -6
- package/dist/types/core/user-events.d.ts +2 -4
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
- package/dist/types/router/OnboardingRouter.d.ts +1 -2
- package/dist/types/router/getDefaultTask.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
- package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
- package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +1 -2
- package/dist/types/types/errors/capability-problems.d.ts +5 -1
- package/dist/types/types/errors/entity-problems.d.ts +8 -5
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
- package/dist/types/utils/api/documentUtils.d.ts +21 -10
- package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
- package/dist/types/utils/api/processCapabilities.d.ts +11 -4
- package/dist/types/utils/bankUtils.d.ts +5 -0
- package/dist/types/utils/birthDateUtils.d.ts +6 -1
- package/dist/types/utils/businessUtils.d.ts +21 -6
- package/dist/types/utils/customerSupportUtils.d.ts +2 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
- package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +3 -3
- package/dist/types/utils/getTrustedFields.d.ts +4 -5
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
- package/dist/types/utils/mapping/getPage.d.ts +3 -4
- package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
- package/dist/types-B9zXzag-.js +18 -0
- package/dist/types-BA3bcGAv.js +58 -0
- package/dist/types-CZAHRt31.js +147 -0
- package/dist/types-Cwq1JAWT.js +31 -0
- package/dist/upload-C5NC1E4N.js +23 -0
- package/dist/uppercase-DvjwUM0n.js +7 -0
- package/dist/useAccountHolder-DDto9d9n.js +102 -0
- package/dist/useAdaptiveWorkflow-DryNv0zI.js +28 -0
- package/dist/useAllowedCountries-C-nqVePW.js +80 -0
- package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
- package/dist/useAssociatedLegalEntity-DtZtKlls.js +35 -0
- package/dist/useBusinessDetailsData-DFU0dLxw.js +4732 -0
- package/dist/useBusinessLines-BZfFqvS_.js +27 -0
- package/dist/useCanSeeIntroduction-DQbanJNE.js +38 -0
- package/dist/useCreateLegalEntity-qP7MeAmi.js +24 -0
- package/dist/useDataMissingRemediations-ttUrk09_.js +39 -0
- package/dist/useDataset-CdLBLq98.js +98 -0
- package/dist/useDeleteTransferInstrument-Dtv14H9I.js +31 -0
- package/dist/useForm-CWrbJG44.js +504 -0
- package/dist/useHideTaskStepper-Dk7ZQ3U8.js +26 -0
- package/dist/useId-BkDhUta2.js +28 -0
- package/dist/useIndustryCodes-BMK6IMiW.js +32 -0
- package/dist/useLegalEntity-DHA8TJeV.js +48 -0
- package/dist/useMultiForm-BxASst0O.js +790 -0
- package/dist/useNavigate-CO1Mcekp.js +246 -0
- package/dist/useOnboardingStatus-Cz6-hSX4.js +23 -0
- package/dist/usePciQuestionnaireList-CWz7Ngs6.js +26 -0
- package/dist/useSalesChannels-bV9DgyLW.js +47 -0
- package/dist/useScenarios-Bn93htbx.js +55 -0
- package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
- package/dist/useTaskLandedEvent-DwZHcMEQ.js +26 -0
- package/dist/useTaskStatus-DJxOWvuN.js +23 -0
- package/dist/useTermsOfServiceStatus-CyVxYqpg.js +39 -0
- package/dist/useToastContext-B6Mqc2HY.js +12 -0
- package/dist/useToggleContext-B_YexrbT.js +21 -0
- package/dist/useTrustMembers-DWo3WU8M.js +151 -0
- package/dist/useUnincorporatedPartnershipMembers-DwFPW09D.js +69 -0
- package/dist/useUpdateBusinessLines-JRPjqoe9.js +43 -0
- package/dist/useUpdateLegalEntity-CqmqXsbR.js +29 -0
- package/dist/utils-BWumuCvl.js +210 -0
- package/dist/utils-CJcGZvj1.js +178 -0
- package/dist/utils-CYUYe54m.js +24 -0
- package/dist/utils-Ck_mZapQ.js +1755 -0
- package/dist/utils-DdHbAadK.js +80 -0
- package/dist/utils-SKYT7xU4.js +52 -0
- package/dist/validate-BZ1-ZeKr.js +430 -0
- package/dist/validate-DTz70AWN.js +224 -0
- package/dist/validate-DUcT-JGF.js +178 -0
- package/dist/validate-Dr8UKZCX.js +126 -0
- package/dist/validateExtractionResult-CntKbt8c.js +343 -0
- package/dist/validationError-DV6t8Ubb.js +55 -0
- package/dist/validationResult-bjYBDjbU.js +29 -0
- package/dist/validatorUtils-D2O6AAZn.js +106 -0
- package/dist/warning-circle-fill-C2lMYPJW.js +30 -0
- package/dist/warning-diamond-filled-CQ2DdW5g.js +30 -0
- package/dist/webinar-BpZWqd-g.js +33 -0
- package/package.json +26 -26
- package/dist/4-people-Dxu4nHSX.js +0 -35
- package/dist/AcceptTermsOfServiceWorkflow-CvKbU2WY.js +0 -28
- package/dist/Accordion-Sjyj7C_t.js +0 -112
- package/dist/AccountSetupRejected-Cq_nlmLn.js +0 -18
- package/dist/AdaptiveWorkflow-CM7ZVGXv.js +0 -210
- package/dist/AdaptiveWorkflowComponent-tM1hJ1zF.js +0 -165
- package/dist/AddressFields-BsxEdBvQ.js +0 -464
- package/dist/Avatar-Zp1T9qAL.js +0 -54
- package/dist/BusinessFinancingDropin-vugW4Vvi.js +0 -1857
- package/dist/BusinessFinancingPage-0J_LImeN.js +0 -89
- package/dist/BusinessRegistrationNumberField-qdC_srMn.js +0 -101
- package/dist/BusinessRegistrationNumberFieldGroup-BvC9n4ou.js +0 -171
- package/dist/BusinessTypeSelectionPage-WCEqP4G2.js +0 -457
- package/dist/Button-DfRmINzF.js +0 -108
- package/dist/Checkbox-B730k3Yy.js +0 -108
- package/dist/ComponentGroup-CsnkYMbT.js +0 -32
- package/dist/ConstitutionalDocument-D92EPGmG.js +0 -1224
- package/dist/ContactDetails-DDSd6X0z.js +0 -511
- package/dist/ContextGuidance-B2ew1lzC.js +0 -29
- package/dist/ContractViewer-JtnAXSDa.js +0 -979
- package/dist/Currency-BKTf95Wp.js +0 -210
- package/dist/CustomerSupport-CCFayyJG.js +0 -140
- package/dist/DataConflictsModal-D-fP_eNs.js +0 -237
- package/dist/DebugModal-CG6CvUnj.js +0 -450
- package/dist/DecisionMakerDetails-DWC1nORL.js +0 -565
- package/dist/DecisionMakerDetailsPage-BVXA74FO.js +0 -122
- package/dist/DecisionMakers-Cvm_i6Uf.js +0 -589
- package/dist/Dropzone-CNHxDEc3.js +0 -250
- package/dist/EmbeddedStatus-tbJfdxm8.js +0 -129
- package/dist/EndStateLayout-BK1Hh02g.js +0 -83
- package/dist/EntityAssociation-i903L9Dh.js +0 -163
- package/dist/ErrorPanel-tnFOlOZU.js +0 -205
- package/dist/GlobalEntryModal-DQoIIvGS.js +0 -975
- package/dist/GlobalEntryPage-DLRGPpAu.js +0 -78
- package/dist/Icon-C3S5_kkS.js +0 -175
- package/dist/IdentityNumber-B8MXzXsO.js +0 -536
- package/dist/IdentityNumberFieldGroup-D7xb2TY7.js +0 -57
- package/dist/IdentityScreeningWorkflow-BdGXtdns.js +0 -307
- package/dist/Image-D82terx4.js +0 -33
- package/dist/IndividualDropin-C0vTSDYU.js +0 -4138
- package/dist/IndustryCodeFieldGroup-CGcE5yYR.js +0 -188
- package/dist/InputDate-Ci60MBrH.js +0 -211
- package/dist/InputText-CTpVF0Mu.js +0 -154
- package/dist/Introduction-Dx6DDaL7.js +0 -327
- package/dist/InvitedDecisionMakerComponent-Ckd26d6Y.js +0 -481
- package/dist/JpAddressFields-C9MbL5XV.js +0 -287
- package/dist/LegalCompanyNameField-D0jM5LDT.js +0 -108
- package/dist/LegalName-TjhII9_p.js +0 -33
- package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
- package/dist/Link-c2jAgGgc.js +0 -32
- package/dist/ListItem-C35r8558.js +0 -93
- package/dist/Loader-BEpMlKm2.js +0 -92
- package/dist/Modal-BsivDPTd.js +0 -129
- package/dist/Name-DMf8Uyof.js +0 -61
- package/dist/NewSummary-DxWLTnJy.js +0 -73
- package/dist/PatriotActDisclosure-ChZ_ePr2.js +0 -265
- package/dist/PayoutDetailsDropin-BhtJSFAS.js +0 -4073
- package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
- package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
- package/dist/Review-DImhCvoG.js +0 -99
- package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
- package/dist/RootBusinessLinesPage-C_p-CtCH.js +0 -1455
- package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
- package/dist/Select-ByVcS_J2.js +0 -1093
- package/dist/SignPCIComponent-CAwp2xCC.js +0 -370
- package/dist/SingpassSelection-Txx3gp_g.js +0 -157
- package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
- package/dist/SourceOfFundsPage-B22iW1ow.js +0 -2781
- package/dist/SourceOfFundsWorkflow-BKHZbLR_.js +0 -28
- package/dist/StateField-CsO_28Co.js +0 -296
- package/dist/Step-BUMarnLL.js +0 -191
- package/dist/Task-Bj_CjiHG.js +0 -129
- package/dist/TaskGroup-BMXhoq1Y.js +0 -46
- package/dist/TaskListItem-BIKdDEzU.js +0 -123
- package/dist/TaskStepperContextProvider-D0tKJplv.js +0 -26
- package/dist/TaskVerificationStatus-DPA4ZEPa.js +0 -125
- package/dist/TaxInformationFieldGroup-D_6IRGj9.js +0 -287
- package/dist/TaxReportingDropin-DA475crP.js +0 -475
- package/dist/TaxReportingWorkflow-kcto0Ysw.js +0 -28
- package/dist/TermsOfServiceManagement-HDnaIeWZ.js +0 -635
- package/dist/TextArea-qbFhi8Az.js +0 -81
- package/dist/TrustDetailsPage-BqVS0xOU.js +0 -1155
- package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
- package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
- package/dist/TrustMemberRoleAndTypePage-GXWuitmt.js +0 -927
- package/dist/TrustMembersOverview-BjJ5fPcC.js +0 -449
- package/dist/UboTaskItem-Aq3iNKX0.js +0 -115
- package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
- package/dist/UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js +0 -79
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js +0 -254
- package/dist/UnincorporatedPartnershipMembersOverview-CUczPfUl.js +0 -158
- package/dist/VerificationErrorAlert-BBfoLMwb.js +0 -64
- package/dist/Workflow-Do7P-qDn.js +0 -228
- package/dist/accountHolderUtils-DMi_DHCU.js +0 -44
- package/dist/arrow-right-Bk-ewsex.js +0 -20
- package/dist/bafinUtils-M2AASP_e.js +0 -1963
- package/dist/bag-9BNq_QQO.js +0 -20
- package/dist/bank-BRbxxVK5.js +0 -20
- package/dist/bg-BG-BtgA44Ui.js +0 -7
- package/dist/bg-BG-DX5QKxJz.js +0 -7
- package/dist/bg-BG-DYkxVgeJ.js +0 -7
- package/dist/bg-BG-K6LIkCdf.js +0 -7
- package/dist/bg-BG-uuNDTOoN.js +0 -7
- package/dist/bin-DE1613_5.js +0 -30
- package/dist/businessRegistrationNumberPatterns-C_MSKHlF.js +0 -981
- package/dist/capital-aNk7ragc.js +0 -23
- package/dist/cash-stack-DuKKc4Qj.js +0 -33
- package/dist/certificate-9gDKvXCm.js +0 -23
- package/dist/checkmark-BuqDN4WO.js +0 -20
- package/dist/checkmark-circle-OqcwA6N6.js +0 -28
- package/dist/checkmark-circle-fill-BfcUovCf.js +0 -30
- package/dist/checkmark-small-CBORXg_J.js +0 -20
- package/dist/chevron-down-CjRta08O.js +0 -20
- package/dist/chevron-left-BEm04mIh.js +0 -20
- package/dist/chevron-right-B2GkHG0J.js +0 -20
- package/dist/chevron-up-BKfe5Btb.js +0 -20
- package/dist/circle-C-uuRI8F.js +0 -30
- package/dist/circle-small-filled-Bkh5_ZEu.js +0 -20
- package/dist/clock-BWfWiMxz.js +0 -28
- package/dist/coins-Cw-jDTUz.js +0 -30
- package/dist/constants-BSBlqXY7.js +0 -231
- package/dist/contract-PFVBW8xa.js +0 -20
- package/dist/countries-BE4iGVAo.js +0 -41
- package/dist/country-zZC2TAQB.js +0 -25
- package/dist/cross-B37j1-r4.js +0 -20
- package/dist/cross-circle-fill-CcjwpLj2.js +0 -30
- package/dist/cross-circle-fill-small-CJ4fddNo.js +0 -20
- package/dist/cs-CZ-BJSrh3Vp.js +0 -7
- package/dist/cs-CZ-CMXGY6Ep.js +0 -7
- package/dist/cs-CZ-Ci8c58xJ.js +0 -7
- package/dist/cs-CZ-Cu1v5FA8.js +0 -7
- package/dist/cs-CZ-lJQmuyHq.js +0 -7
- package/dist/da-DK-B9O3xbY6.js +0 -7
- package/dist/da-DK-BNwXg4DX.js +0 -7
- package/dist/da-DK-C1kmOHvo.js +0 -7
- package/dist/da-DK-D53M_d04.js +0 -7
- package/dist/da-DK-DjAV5d9A.js +0 -7
- package/dist/de-DE-B3sSNcDv.js +0 -7
- package/dist/de-DE-C9N6F5oM.js +0 -7
- package/dist/de-DE-CjMOQMqQ.js +0 -7
- package/dist/de-DE-qJPTCQlG.js +0 -7
- package/dist/de-DE-qSBQE-6M.js +0 -7
- package/dist/de-DE-w4l6boYT.js +0 -7
- package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
- package/dist/decisionMakerRoles-APTR-Ah_.js +0 -185
- package/dist/document-1-B3vw8uuK.js +0 -20
- package/dist/document-person-CERdIfH0.js +0 -28
- package/dist/download-CthdK4dV.js +0 -23
- package/dist/edit-1-BW7NwWP7.js +0 -20
- package/dist/el-GR-BLNCX9mm.js +0 -7
- package/dist/el-GR-Bx996PXx.js +0 -7
- package/dist/el-GR-CgoxpC-Q.js +0 -7
- package/dist/el-GR-DaAMIpOR.js +0 -7
- package/dist/el-GR-DqTetsjB.js +0 -7
- package/dist/el-GR-pGsVWsOm.js +0 -7
- package/dist/en-US-B82BbZaB.js +0 -7
- package/dist/en-US-BUmtG-Wj.js +0 -27
- package/dist/en-US-C3i5Oge2.js +0 -7
- package/dist/en-US-C8karqc5.js +0 -7
- package/dist/en-US-CJPD8qHc.js +0 -7
- package/dist/en-US-D0fscfsz.js +0 -7
- package/dist/en-US-DapC--Cs.js +0 -7
- package/dist/entityAssociationUtil-CLBR9osP.js +0 -59
- package/dist/error-CpJV-CLa.js +0 -36
- package/dist/es-ES-C14ZT-97.js +0 -7
- package/dist/es-ES-DeT4zIDW.js +0 -7
- package/dist/es-ES-DyB2KXfT.js +0 -7
- package/dist/es-ES-U4-lDfZq.js +0 -7
- package/dist/es-ES-tVQDUTJN.js +0 -7
- package/dist/es-ES-wvcyuTNN.js +0 -7
- package/dist/es-LA-B5IRDCf_.js +0 -7
- package/dist/es-LA-B_hzWiiE.js +0 -7
- package/dist/es-LA-CG_cu1hM.js +0 -7
- package/dist/es-LA-ChLRkx-r.js +0 -7
- package/dist/es-LA-mFT_9PL_.js +0 -7
- package/dist/et-EE-4_ZUNt3W.js +0 -7
- package/dist/et-EE-BCWBT8XN.js +0 -7
- package/dist/et-EE-BQEyJFZb.js +0 -7
- package/dist/et-EE-DSK7kb3n.js +0 -7
- package/dist/et-EE-DWVzz1wR.js +0 -7
- package/dist/external-link-CFgynH5A.js +0 -20
- package/dist/fi-FI-B-7uBAf5.js +0 -7
- package/dist/fi-FI-BeJtSWIh.js +0 -7
- package/dist/fi-FI-Caa9ydMd.js +0 -7
- package/dist/fi-FI-D06EzKrW.js +0 -7
- package/dist/fi-FI-DgMsQBRO.js +0 -7
- package/dist/form-rules-zzbZ2bV6.js +0 -1089
- package/dist/formatCurrency-Cq3WFpdZ.js +0 -23
- package/dist/formatValidationError-BHvKLMYZ.js +0 -23
- package/dist/fr-FR-8a-RK9xd.js +0 -7
- package/dist/fr-FR-BCfqr4jm.js +0 -7
- package/dist/fr-FR-BTJoQq71.js +0 -7
- package/dist/fr-FR-CDv300-8.js +0 -7
- package/dist/fr-FR-D7DTFYe4.js +0 -7
- package/dist/fr-FR-Dl4NL-Nc.js +0 -7
- package/dist/genUtils-Ce61IJs8.js +0 -60
- package/dist/getDefaultRegistrationNumberType-CI1NVzJR.js +0 -1055
- package/dist/getFormSlice-DzRO0UUx.js +0 -52
- package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
- package/dist/getName-s7qmFean.js +0 -35
- package/dist/getProblemsForEntity-Bh9nSdOW.js +0 -16
- package/dist/getTrustedDecisionMakers-DX3nImM5.js +0 -25
- package/dist/gift-0jLCte2h.js +0 -20
- package/dist/graph-DrxuzQF7.js +0 -32
- package/dist/graph-up-4qLbS2Ds.js +0 -38
- package/dist/headquarter-3o2GHW5H.js +0 -42
- package/dist/hotel-pZlrEAK8.js +0 -33
- package/dist/hr-HR-B11sggmG.js +0 -7
- package/dist/hr-HR-BjxPRJ1o.js +0 -7
- package/dist/hr-HR-COdiWKoq.js +0 -7
- package/dist/hr-HR-CXH5M5JZ.js +0 -7
- package/dist/hr-HR-me1zsMas.js +0 -7
- package/dist/http-DsJtugN1.js +0 -204
- package/dist/hu-HU-BNlsrO-l.js +0 -7
- package/dist/hu-HU-BQ5310Yi.js +0 -7
- package/dist/hu-HU-D1ZZwcl0.js +0 -7
- package/dist/hu-HU-DkSsL94T.js +0 -7
- package/dist/hu-HU-Dp6xOBN_.js +0 -7
- package/dist/image-tfgNnE3G.js +0 -23
- package/dist/info-DJW5JooY.js +0 -32
- package/dist/info-filled-C5mP6T4Z.js +0 -32
- package/dist/it-IT-BORQC-7u.js +0 -7
- package/dist/it-IT-BlaVymCj.js +0 -7
- package/dist/it-IT-CawjvBDX.js +0 -7
- package/dist/it-IT-Cnk7j_gC.js +0 -7
- package/dist/it-IT-DIIRAF4_.js +0 -7
- package/dist/it-IT-x4LV31GV.js +0 -7
- package/dist/ja-JP-CyXnoIu3.js +0 -7
- package/dist/ja-JP-DBne3dbI.js +0 -7
- package/dist/ja-JP-DS8zN3mY.js +0 -7
- package/dist/ja-JP-Dpe9Odla.js +0 -7
- package/dist/ja-JP-DrHQO_Se.js +0 -7
- package/dist/ja-JP-h3E8hgLv.js +0 -7
- package/dist/legal-entity-type-0MfCGzUf.js +0 -13
- package/dist/legalArrangementUtils-xvCxpgzJ.js +0 -113
- package/dist/location-Dk0rAiaT.js +0 -23
- package/dist/lt-LT-8kOI6QVq.js +0 -7
- package/dist/lt-LT-B18sQY9g.js +0 -7
- package/dist/lt-LT-Byl8QeWO.js +0 -7
- package/dist/lt-LT-D3ZUJfjr.js +0 -7
- package/dist/lt-LT-Fc1lOUlz.js +0 -7
- package/dist/lv-LV-C70c94CI.js +0 -7
- package/dist/lv-LV-CXifQKfG.js +0 -7
- package/dist/lv-LV-DctYQmfH.js +0 -7
- package/dist/lv-LV-Mj_iV56f.js +0 -7
- package/dist/lv-LV-adiXoKhv.js +0 -7
- package/dist/mail-DG7MBDNE.js +0 -20
- package/dist/mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js +0 -26
- package/dist/mapExistingFile-CwGW1ru4.js +0 -55
- package/dist/mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js +0 -73
- package/dist/mapLegalEntityToIndividualSchema-ByhXwZqs.js +0 -214
- package/dist/mapTransferInstrumentToPayoutAccount-6eLKhumO.js +0 -44
- package/dist/minus-circle-filled-DglqAgJW.js +0 -30
- package/dist/nl-NL-BIpptPn4.js +0 -7
- package/dist/nl-NL-BWGCqpWp.js +0 -7
- package/dist/nl-NL-Bv8Zk-6e.js +0 -7
- package/dist/nl-NL-DOB0b0m4.js +0 -7
- package/dist/nl-NL-ehxkZFQd.js +0 -7
- package/dist/nl-NL-jt4eYGEY.js +0 -7
- package/dist/no-NO-BG1sYkpp.js +0 -7
- package/dist/no-NO-CeZQnyyD.js +0 -7
- package/dist/no-NO-Chwg5Roi.js +0 -7
- package/dist/no-NO-Dx_Z3uoZ.js +0 -7
- package/dist/no-NO-P5tRWhV9.js +0 -7
- package/dist/options-horizontal-CTUn7IEx.js +0 -30
- package/dist/partner-1StoI4_W.js +0 -30
- package/dist/pay-by-link-plane-Sa_qkL8C.js +0 -33
- package/dist/payout-BAYSxSqU.js +0 -38
- package/dist/pdf-uNYg4Mqz.js +0 -22315
- package/dist/pdf.worker.min-gK7UJW5a.js +0 -74644
- package/dist/person-Da15_s3G.js +0 -23
- package/dist/pl-PL-BsXtscoI.js +0 -7
- package/dist/pl-PL-CWFdZf24.js +0 -7
- package/dist/pl-PL-DSbuyzBx.js +0 -7
- package/dist/pl-PL-J9S3_lCf.js +0 -7
- package/dist/pl-PL-_KG-ZD1N.js +0 -7
- package/dist/plus-BQccvKkd.js +0 -20
- package/dist/plus-circle-filled-CqC30FRL.js +0 -30
- package/dist/processCapabilities-DRD0Aq2i.js +0 -874
- package/dist/processValidationErrors-oxuCOsth.js +0 -62
- package/dist/pt-BR-B2q9Nl16.js +0 -7
- package/dist/pt-BR-BYbyk6xS.js +0 -7
- package/dist/pt-BR-Cph-P8oH.js +0 -7
- package/dist/pt-BR-D1yTuXWd2.js +0 -7
- package/dist/pt-BR-fKlNUybd.js +0 -7
- package/dist/pt-PT-C1gtp2_N.js +0 -7
- package/dist/pt-PT-CQQkh5PS.js +0 -7
- package/dist/pt-PT-D8ldyR-j.js +0 -7
- package/dist/pt-PT-DAvsI-Tr.js +0 -7
- package/dist/pt-PT-DhokEMPi.js +0 -7
- package/dist/pt-PT-IPhkbQvT.js +0 -7
- package/dist/recurring-DSR1fNMh.js +0 -23
- package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
- package/dist/revenue-accelerate-CPhAVpPK.js +0 -30
- package/dist/ro-RO-C6xoaASq.js +0 -7
- package/dist/ro-RO-CP_IrOlX.js +0 -7
- package/dist/ro-RO-CQJk7Cpo.js +0 -7
- package/dist/ro-RO-CnMe6Mfw.js +0 -7
- package/dist/ro-RO-_BLhsnIB.js +0 -7
- package/dist/save-DQ-mJX8e.js +0 -20
- package/dist/search-DWqWTW_K.js +0 -30
- package/dist/show-BbhlD3IY.js +0 -23
- package/dist/sk-SK-BOc9IqyW.js +0 -7
- package/dist/sk-SK-Bb1CdAzD.js +0 -7
- package/dist/sk-SK-Br1Y4_CN.js +0 -7
- package/dist/sk-SK-Bx2_85dW.js +0 -7
- package/dist/sk-SK-C889qQFo.js +0 -7
- package/dist/sl-SI-B-Xa0hlk.js +0 -7
- package/dist/sl-SI-BQc61Sz2.js +0 -7
- package/dist/sl-SI-DHPadSTy.js +0 -7
- package/dist/sl-SI-DO9c7geI.js +0 -7
- package/dist/sl-SI-bkhhInrg.js +0 -7
- package/dist/solution-payments-D4BORMsX.js +0 -20
- package/dist/store-DWaq3ZiC.js +0 -20
- package/dist/sv-SE-BXrlr0X5.js +0 -7
- package/dist/sv-SE-Dk81lopg.js +0 -7
- package/dist/sv-SE-DzsWB30f.js +0 -7
- package/dist/sv-SE-IBYnJfbW.js +0 -7
- package/dist/sv-SE-X89Q6ZAq.js +0 -7
- package/dist/sv-SE-l_UVgmVu.js +0 -7
- package/dist/terminal-1-crR-pS_R.js +0 -30
- package/dist/translation-BOm4lmPx.js +0 -657
- package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +0 -15
- package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
- package/dist/types/core/models/api/attachment.d.ts +0 -7
- package/dist/types/core/models/api/document.d.ts +0 -25
- package/dist/types/core/models/api/entity-type.d.ts +0 -5
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
- package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
- package/dist/types/core/models/api/legal-entity.d.ts +0 -36
- package/dist/types/core/models/api/problem.d.ts +0 -12
- package/dist/types/core/models/api/remediating-action.d.ts +0 -5
- package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
- package/dist/types/core/models/api/verification-error.d.ts +0 -19
- package/dist/types-BeveNAZK.js +0 -19
- package/dist/types-wRlt8bxb.js +0 -58
- package/dist/upload-D85xAAAm.js +0 -23
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +0 -28
- package/dist/useBusinessDetailsData-Bja80UYy.js +0 -4722
- package/dist/useBusinessLines-BhSN6qCH.js +0 -27
- package/dist/useCanSeeIntroduction-BcfQC4IP.js +0 -38
- package/dist/useDataMissingRemediations-msU1AJvo.js +0 -39
- package/dist/useForm-DbDFfb2S.js +0 -502
- package/dist/useHideTaskStepper-CbMcV9mk.js +0 -26
- package/dist/useId-oOIS1nsj.js +0 -73
- package/dist/useIndustryCodes-uAj90IyS.js +0 -32
- package/dist/useLegalEntity-QQXN6YOm.js +0 -48
- package/dist/useNavigate-CiKOI5QV.js +0 -246
- package/dist/useOnboardingStatus-CsGUjkm-.js +0 -23
- package/dist/usePciQuestionnaireList-CFNJD8pS.js +0 -26
- package/dist/useSalesChannels-BvGJ9PT6.js +0 -47
- package/dist/useScenarios-CGcmXgJv.js +0 -55
- package/dist/useTaskLandedEvent-pmN03gtI.js +0 -26
- package/dist/useTaskStatus-CgrhdaE_.js +0 -23
- package/dist/useTermsOfServiceStatus-DbJDklA2.js +0 -39
- package/dist/useTrustMembers-f13Kf1Zk.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-K5jkCKfJ.js +0 -70
- package/dist/useUpdateBusinessLines-DCKYTzxd.js +0 -43
- package/dist/utils-2tir5QtF.js +0 -52
- package/dist/utils-BUOt0VrX.js +0 -179
- package/dist/utils-DBIDcVUN.js +0 -214
- package/dist/validate-BpZBKknS.js +0 -224
- package/dist/validate-CPTQceEQ.js +0 -151
- package/dist/validate-YBDlgvjy.js +0 -429
- package/dist/validate-u6nDNwf1.js +0 -126
- package/dist/validateExtractionResult-dH4TewHf.js +0 -343
- package/dist/validationError-B-B3GC86.js +0 -55
- package/dist/warning-circle-fill-BDTmKU1s.js +0 -30
- package/dist/warning-diamond-filled-BjDL-xa8.js +0 -30
- package/dist/webinar-YMbPoCx3.js +0 -33
|
@@ -1,1089 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "88dc39f0-a09c-479d-bd0e-c982c332e7b3", e._sentryDebugIdIdentifier = "sentry-dbid-88dc39f0-a09c-479d-bd0e-c982c332e7b3");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { nt as isEmpty } from "./resolveEnvironment-BYEL10Nc.js";
|
|
7
|
-
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
-
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
9
|
-
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
10
|
-
import { s as keysOf, t as cloneObject } from "./genUtils-Ce61IJs8.js";
|
|
11
|
-
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
12
|
-
import { E as dataMissingRemediationsToFieldsMap, h as businessDetailsApiKeyMapping, r as remediationHasFileUploadField, s as individualApiKeyMapping } from "./processCapabilities-DRD0Aq2i.js";
|
|
13
|
-
import { r as KEYBOARD_KEYS } from "./Modal-BsivDPTd.js";
|
|
14
|
-
import { i as formDebugInfo, n as useForwardedRef, r as InputBase, t as InputText } from "./InputText-CTpVF0Mu.js";
|
|
15
|
-
import { r as Field } from "./Select-ByVcS_J2.js";
|
|
16
|
-
import { forwardRef } from "preact/compat";
|
|
17
|
-
import { useCallback as useCallback$1, useEffect as useEffect$1, useLayoutEffect, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
18
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
19
|
-
//#region src/core/models/api/trusted-fields-provider.ts
|
|
20
|
-
var TrustedFieldsProviders = {
|
|
21
|
-
SINGPASS: "singpass",
|
|
22
|
-
KOMPANY: "kompany"
|
|
23
|
-
};
|
|
24
|
-
var LandingLayout_module_default = {
|
|
25
|
-
"landing-layout-image": "_landing-layout-image_1nous_1",
|
|
26
|
-
landingLayoutImage: "_landing-layout-image_1nous_1",
|
|
27
|
-
"landing-layout-help-action": "_landing-layout-help-action_1nous_11",
|
|
28
|
-
landingLayoutHelpAction: "_landing-layout-help-action_1nous_11",
|
|
29
|
-
"landing-layout-actions": "_landing-layout-actions_1nous_16",
|
|
30
|
-
landingLayoutActions: "_landing-layout-actions_1nous_16",
|
|
31
|
-
"landing-layout-errors": "_landing-layout-errors_1nous_23",
|
|
32
|
-
landingLayoutErrors: "_landing-layout-errors_1nous_23",
|
|
33
|
-
"landing-layout-disclaimer": "_landing-layout-disclaimer_1nous_31",
|
|
34
|
-
landingLayoutDisclaimer: "_landing-layout-disclaimer_1nous_31",
|
|
35
|
-
"landing-layout-center": "_landing-layout-center_1nous_36",
|
|
36
|
-
landingLayoutCenter: "_landing-layout-center_1nous_36"
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/ui/layout/LandingLayout/LandingLayout.tsx
|
|
40
|
-
var LandingLayout = ({ actions, content, description, error, disclaimer, helpAction, media, title }) => {
|
|
41
|
-
return /* @__PURE__ */ jsxs(StackLayout, {
|
|
42
|
-
gap: "large",
|
|
43
|
-
align: "center",
|
|
44
|
-
children: [
|
|
45
|
-
media && /* @__PURE__ */ jsx("div", {
|
|
46
|
-
role: "region",
|
|
47
|
-
className: LandingLayout_module_default.landingLayoutImage,
|
|
48
|
-
children: media
|
|
49
|
-
}),
|
|
50
|
-
error && /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: LandingLayout_module_default.landingLayoutErrors,
|
|
52
|
-
children: error
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ jsxs(StackLayout, {
|
|
55
|
-
gap: "small",
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ jsx(Typography, {
|
|
58
|
-
el: "h2",
|
|
59
|
-
className: LandingLayout_module_default.landingLayoutCenter,
|
|
60
|
-
variant: "title-l",
|
|
61
|
-
children: title
|
|
62
|
-
}),
|
|
63
|
-
description && /* @__PURE__ */ jsx(Typography, {
|
|
64
|
-
className: LandingLayout_module_default.landingLayoutCenter,
|
|
65
|
-
variant: "body",
|
|
66
|
-
color: "primary",
|
|
67
|
-
children: description
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ jsx("div", {
|
|
70
|
-
className: LandingLayout_module_default.landingLayoutHelpAction,
|
|
71
|
-
children: helpAction
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
}),
|
|
75
|
-
content,
|
|
76
|
-
/* @__PURE__ */ jsx("div", {
|
|
77
|
-
className: LandingLayout_module_default.landingLayoutActions,
|
|
78
|
-
children: /* @__PURE__ */ jsxs(StackLayout, {
|
|
79
|
-
gap: "small",
|
|
80
|
-
children: [actions, disclaimer && /* @__PURE__ */ jsx(Typography, {
|
|
81
|
-
variant: "caption",
|
|
82
|
-
color: "tertiary",
|
|
83
|
-
className: LandingLayout_module_default.landingLayoutDisclaimer,
|
|
84
|
-
children: disclaimer
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/utils/addLinkedFields.ts
|
|
93
|
-
var linkedFieldsMap = { "additionalInformation.vatNumber": ["additionalInformation.exemptedFromVat", "additionalInformation.vatAbsenceReason"] };
|
|
94
|
-
/**
|
|
95
|
-
* This function is used to process fields linked to other fields that have custom rules that can return either REQUIRED or OPTIONAL
|
|
96
|
-
* depending on the value of their links. An example of this is the Vat number, this will be REQUIRED when exemption is false but OPTIONAL when exemption is true.
|
|
97
|
-
* This needs to be done due to functions like isFieldRequiredToRemediateDataMissingError, which do not take into account the custom rules and instead mark
|
|
98
|
-
* these fields as required regardless of the rule.
|
|
99
|
-
*
|
|
100
|
-
* @param field - Field being processed
|
|
101
|
-
* @param formId - Form this field is associated to
|
|
102
|
-
* @param customRules - The rules associated to the form flow
|
|
103
|
-
* @param scenarioConfiguration - The static configuration returned from the scenario, i.e. L1, L, etc
|
|
104
|
-
* @param dataMissingErrors - Missing data problems on the LE response
|
|
105
|
-
* @param formFieldsWithExistingData - The current fields that have existing data within the LE response
|
|
106
|
-
*/
|
|
107
|
-
function calculateLinkedRequiredFields({ field, formId, customRules, scenarioConfiguration, dataMissingErrors, formFieldsWithExistingData }) {
|
|
108
|
-
const tldsField = makeTLDSFieldName(formId, field);
|
|
109
|
-
if (Boolean(linkedFieldsMap[tldsField])) {
|
|
110
|
-
const linkedFields = linkedFieldsMap[tldsField];
|
|
111
|
-
const fieldSettings = scenarioConfiguration?.[field];
|
|
112
|
-
const isFieldRequiredBySettings = fieldSettings && isFieldRequired(fieldSettings, customRules);
|
|
113
|
-
const isFieldPopulated = formFieldsWithExistingData?.includes(field);
|
|
114
|
-
const isFieldNeededToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, field, dataMissingErrors);
|
|
115
|
-
const areLinkedFieldsPopulated = linkedFields?.some((linkedField) => {
|
|
116
|
-
const linkedFieldKey = linkedField.split(".")[1];
|
|
117
|
-
return formFieldsWithExistingData?.includes(linkedFieldKey);
|
|
118
|
-
});
|
|
119
|
-
if (!(isFieldRequiredBySettings || isFieldPopulated || isFieldNeededToRemediateDataMissingError || areLinkedFieldsPopulated)) return {
|
|
120
|
-
isRequiredFromLinkedField: false,
|
|
121
|
-
isOptionalFromLinkedField: false
|
|
122
|
-
};
|
|
123
|
-
switch (field) {
|
|
124
|
-
case "vatNumber": {
|
|
125
|
-
const processedRule = customRules["countryUsesVat"]?.();
|
|
126
|
-
return {
|
|
127
|
-
isRequiredFromLinkedField: processedRule === "REQUIRED",
|
|
128
|
-
isOptionalFromLinkedField: processedRule === "OPTIONAL"
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
default: break;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
const rootLinkedField = Object.entries(linkedFieldsMap).find(([, linkedFields]) => linkedFields?.includes(tldsField))?.[0];
|
|
135
|
-
if (!rootLinkedField) return {
|
|
136
|
-
isRequiredFromLinkedField: false,
|
|
137
|
-
isOptionalFromLinkedField: false
|
|
138
|
-
};
|
|
139
|
-
const rootFieldKey = rootLinkedField.split(".")[1];
|
|
140
|
-
const rootFieldSettings = scenarioConfiguration?.[rootFieldKey];
|
|
141
|
-
const isRootFieldRequired = rootFieldSettings && isFieldRequired(rootFieldSettings, customRules);
|
|
142
|
-
const isRootFieldPopulated = formFieldsWithExistingData?.includes(rootFieldKey);
|
|
143
|
-
const areLinkedFieldsPopulated = linkedFieldsMap[rootLinkedField]?.some((linkedField) => {
|
|
144
|
-
const fieldKey = linkedField.split(".")[1];
|
|
145
|
-
return formFieldsWithExistingData?.includes(fieldKey);
|
|
146
|
-
});
|
|
147
|
-
const isRootFieldRequiredToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, rootFieldKey, dataMissingErrors);
|
|
148
|
-
if (!(isRootFieldRequired || isRootFieldPopulated || areLinkedFieldsPopulated || isRootFieldRequiredToRemediateDataMissingError)) return {
|
|
149
|
-
isRequiredFromLinkedField: false,
|
|
150
|
-
isOptionalFromLinkedField: false
|
|
151
|
-
};
|
|
152
|
-
switch (field) {
|
|
153
|
-
case "exemptedFromVat": {
|
|
154
|
-
const processedRule = customRules["isVatExempt"]?.();
|
|
155
|
-
return {
|
|
156
|
-
isRequiredFromLinkedField: processedRule === "REQUIRED",
|
|
157
|
-
isOptionalFromLinkedField: processedRule === "OPTIONAL"
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
case "vatAbsenceReason": {
|
|
161
|
-
const processedRule = customRules["isVatExempt"]?.();
|
|
162
|
-
return {
|
|
163
|
-
isRequiredFromLinkedField: processedRule === "REQUIRED",
|
|
164
|
-
isOptionalFromLinkedField: processedRule === "OPTIONAL"
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
default: return {
|
|
168
|
-
isRequiredFromLinkedField: false,
|
|
169
|
-
isOptionalFromLinkedField: false
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/core/process-field-configurations.ts
|
|
175
|
-
var logger = createLogger();
|
|
176
|
-
var composePerScenarioFormConfigurations = (scenarios = [], configurations) => scenarios.reduce((composedConfiguration, scenarioName) => ({
|
|
177
|
-
...composedConfiguration,
|
|
178
|
-
...configurations[scenarioName]
|
|
179
|
-
}), {});
|
|
180
|
-
var augmentWithCountryConfigs = (countrySpecificConfig, baseFormConfig) => {
|
|
181
|
-
if (!countrySpecificConfig) return baseFormConfig;
|
|
182
|
-
return keysOf(countrySpecificConfig).reduce((mergedConfig, field) => ({
|
|
183
|
-
...mergedConfig,
|
|
184
|
-
[field]: {
|
|
185
|
-
...baseFormConfig[field],
|
|
186
|
-
...countrySpecificConfig[field]
|
|
187
|
-
}
|
|
188
|
-
}), baseFormConfig);
|
|
189
|
-
};
|
|
190
|
-
var evaluateRules = (fieldSettings, customRules) => {
|
|
191
|
-
const ruleNames = [fieldSettings.rule, ...fieldSettings.rules ?? []].filter(Boolean);
|
|
192
|
-
return ruleNames.map((ruleName) => {
|
|
193
|
-
switch (ruleName) {
|
|
194
|
-
case "REQUIRED": return () => "REQUIRED";
|
|
195
|
-
case "OPTIONAL": return () => "OPTIONAL";
|
|
196
|
-
default: {
|
|
197
|
-
const ruleFn = customRules[ruleName];
|
|
198
|
-
if (!ruleFn) {
|
|
199
|
-
logger.error(`Rule with name '${ruleName}' is not defined`);
|
|
200
|
-
return () => void 0;
|
|
201
|
-
}
|
|
202
|
-
return ruleFn;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}).map((rule, index) => ({
|
|
206
|
-
ruleName: ruleNames[index],
|
|
207
|
-
result: rule()
|
|
208
|
-
}));
|
|
209
|
-
};
|
|
210
|
-
var isFieldRequired = (fieldSettings, customRules, reasons) => {
|
|
211
|
-
const ruleResults = evaluateRules(fieldSettings, customRules);
|
|
212
|
-
if (reasons) ruleResults.forEach(({ ruleName, result }) => {
|
|
213
|
-
reasons.push(`Rule '${ruleName}': ${result ?? "undefined"}`);
|
|
214
|
-
});
|
|
215
|
-
return ruleResults.every(({ result }) => result === "REQUIRED");
|
|
216
|
-
};
|
|
217
|
-
var isFieldOptional = (fieldSettings, customRules, reasons) => {
|
|
218
|
-
const ruleResults = evaluateRules(fieldSettings, customRules);
|
|
219
|
-
if (reasons) ruleResults.forEach(({ ruleName, result }) => {
|
|
220
|
-
reasons.push(`Rule '${ruleName}': ${result ?? "undefined"}`);
|
|
221
|
-
});
|
|
222
|
-
return ruleResults.every(({ result }) => result === "OPTIONAL");
|
|
223
|
-
};
|
|
224
|
-
/**
|
|
225
|
-
* function: getPropsFromScenarios
|
|
226
|
-
*
|
|
227
|
-
* Configurations are stored as a flat list of fields and their properties.(see identity.ts), they
|
|
228
|
-
* should be agnostic of how forms are structured and implemented. While parsing the configurations
|
|
229
|
-
* the form structure information will be used to generate props specific to the passed form.
|
|
230
|
-
* This also means the field names in configurations and forms should match.
|
|
231
|
-
*
|
|
232
|
-
* @returns value Eg:
|
|
233
|
-
* ```
|
|
234
|
-
* {
|
|
235
|
-
* requiredFields: {
|
|
236
|
-
* personalDetails: ['firstName', 'lastName', 'idNumber', 'residencyCountry' ],
|
|
237
|
-
* contactDetails: ['phoneNumber', 'email']
|
|
238
|
-
* },
|
|
239
|
-
* optionalFields: {
|
|
240
|
-
* contactDetails: ['email']
|
|
241
|
-
* },
|
|
242
|
-
* labels: {
|
|
243
|
-
* personalDetails: {
|
|
244
|
-
* firstName: 'givenName',
|
|
245
|
-
* lastName: 'surName'
|
|
246
|
-
* }
|
|
247
|
-
* },
|
|
248
|
-
* validators: {
|
|
249
|
-
* phoneNumber: {
|
|
250
|
-
* validate: (value, context?) => boolean;
|
|
251
|
-
* errorMessage?: string | ErrorMessageObject;
|
|
252
|
-
* modes: 'blur' | 'input';
|
|
253
|
-
* }
|
|
254
|
-
* }
|
|
255
|
-
*
|
|
256
|
-
* }
|
|
257
|
-
* ```
|
|
258
|
-
*/
|
|
259
|
-
function getPropsFromConfigurations({ scenarioConfiguration, forms, remediationActions, dataMissingErrors, fieldsWithExistingData, customRules, legalEntityType, legalEntityTrustedFields, remediationFieldAsOptional = false }) {
|
|
260
|
-
const requiredFields = {};
|
|
261
|
-
const optionalFields = {};
|
|
262
|
-
const allFields = {};
|
|
263
|
-
const obscuredFields = {};
|
|
264
|
-
const trustedFields = {};
|
|
265
|
-
const fieldDebugStore = {};
|
|
266
|
-
formDebugInfo.value = {};
|
|
267
|
-
if (!scenarioConfiguration) return;
|
|
268
|
-
const readonly = ["legalFormDescription"];
|
|
269
|
-
/**
|
|
270
|
-
* Converts the LEM model trusted mappings to the component form field mappings
|
|
271
|
-
*/
|
|
272
|
-
const trustedFieldMappings = legalEntityTrustedFields?.reduce((acc, trusted) => {
|
|
273
|
-
switch (trusted.provider) {
|
|
274
|
-
case TrustedFieldsProviders.KOMPANY:
|
|
275
|
-
if (legalEntityType === "organization") return [...acc, ...trusted.fields.map((tf) => businessDetailsApiKeyMapping[tf])];
|
|
276
|
-
return acc;
|
|
277
|
-
case TrustedFieldsProviders.SINGPASS:
|
|
278
|
-
if (legalEntityType === "organization") {
|
|
279
|
-
const orgFields = trusted.fields.filter((field) => field.split(".")[0] === "organization");
|
|
280
|
-
return [...acc, ...orgFields.map((tf) => businessDetailsApiKeyMapping[tf])];
|
|
281
|
-
}
|
|
282
|
-
if (legalEntityType === "individual") {
|
|
283
|
-
const individualFields = trusted.fields.filter((field) => field.split(".")[0] === "individual");
|
|
284
|
-
return [...acc, ...individualFields.map((tf) => individualApiKeyMapping[tf])];
|
|
285
|
-
}
|
|
286
|
-
return acc;
|
|
287
|
-
default: return acc;
|
|
288
|
-
}
|
|
289
|
-
}, []);
|
|
290
|
-
Object.entries(forms).forEach(([_formId, formDetails]) => {
|
|
291
|
-
const formId = _formId;
|
|
292
|
-
const formFieldsWithExistingData = fieldsWithExistingData.filter((field) => field.startsWith(formId)).map((field) => field.slice(field.lastIndexOf(".") + 1));
|
|
293
|
-
if (trustedFieldMappings) trustedFields[formId] = getFormTrustedFields(formId, trustedFieldMappings);
|
|
294
|
-
formDetails.fields?.forEach((_field) => {
|
|
295
|
-
const field = _field;
|
|
296
|
-
const fieldName = `${formId}.${field}`;
|
|
297
|
-
const reasons = [];
|
|
298
|
-
const fieldSettings = scenarioConfiguration[field];
|
|
299
|
-
const isRequiredFromFieldConfig = fieldSettings && isFieldRequired(fieldSettings, customRules, reasons);
|
|
300
|
-
const isOptionalFromFieldConfig = fieldSettings && isFieldOptional(fieldSettings, customRules);
|
|
301
|
-
const isFieldRequiredByRemediationAction = showRemediationField(field, remediationActions);
|
|
302
|
-
if (isFieldRequiredByRemediationAction) reasons.push("Required by remediation action");
|
|
303
|
-
const isFieldNeededToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, field, dataMissingErrors);
|
|
304
|
-
if (isFieldNeededToRemediateDataMissingError) reasons.push("Required to remediate dataMissing error");
|
|
305
|
-
const isRequiredByRemediationAction = !remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
306
|
-
const isOptionalByRemediationAction = remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
307
|
-
const isRequiredFieldPopulated = !isOptionalFromFieldConfig && formFieldsWithExistingData.includes(field);
|
|
308
|
-
if (isRequiredFieldPopulated) reasons.push("Required because field is already populated");
|
|
309
|
-
const { isRequiredFromLinkedField, isOptionalFromLinkedField } = calculateLinkedRequiredFields({
|
|
310
|
-
field,
|
|
311
|
-
formId,
|
|
312
|
-
customRules,
|
|
313
|
-
scenarioConfiguration,
|
|
314
|
-
dataMissingErrors,
|
|
315
|
-
formFieldsWithExistingData
|
|
316
|
-
});
|
|
317
|
-
if (isRequiredFromLinkedField) reasons.push("Required by linked field");
|
|
318
|
-
if (isOptionalFromLinkedField) reasons.push("Optional by linked field");
|
|
319
|
-
const isRequired = (isRequiredFromFieldConfig || isRequiredByRemediationAction || isFieldNeededToRemediateDataMissingError || isRequiredFieldPopulated || isRequiredFromLinkedField) && !isOptionalFromLinkedField;
|
|
320
|
-
if (isRequired && !readonly.includes(field)) {
|
|
321
|
-
requiredFields[formId] = requiredFields[formId] ? [...requiredFields[formId], field] : [field];
|
|
322
|
-
allFields[formId] = allFields[formId] ? [...allFields[formId], field] : [field];
|
|
323
|
-
}
|
|
324
|
-
const isOptional = !isRequired && (isOptionalFromFieldConfig || isOptionalByRemediationAction || isOptionalFromLinkedField);
|
|
325
|
-
if (isOptional) {
|
|
326
|
-
optionalFields[formId] = optionalFields[formId] ? [...optionalFields[formId], field] : [field];
|
|
327
|
-
allFields[formId] = allFields[formId] ? [...allFields[formId], field] : [field];
|
|
328
|
-
}
|
|
329
|
-
fieldDebugStore[fieldName] = {
|
|
330
|
-
status: isRequired ? "REQUIRED" : isOptional ? "OPTIONAL" : "HIDDEN",
|
|
331
|
-
reasons
|
|
332
|
-
};
|
|
333
|
-
if (fieldSettings?.obscured) obscuredFields[formId] = obscuredFields[formId] ? [...obscuredFields[formId], field] : [field];
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
formDebugInfo.value = fieldDebugStore;
|
|
337
|
-
return {
|
|
338
|
-
requiredFields,
|
|
339
|
-
optionalFields,
|
|
340
|
-
allFields,
|
|
341
|
-
obscuredFields,
|
|
342
|
-
trustedFields
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* The following field is made a visible "required" field if :
|
|
347
|
-
* - is a remediation action field AND is a document upload field
|
|
348
|
-
* @param field - field key
|
|
349
|
-
* @param remediationActions - array of remediation actions
|
|
350
|
-
*/
|
|
351
|
-
var showRemediationField = (field, remediationActions) => remediationActions.some((rem) => rem.fields?.includes(field) && remediationHasFileUploadField(rem));
|
|
352
|
-
var makeTLDSFieldName = (formId, fieldName) => {
|
|
353
|
-
if (fieldName === "proofOfOrganizationTaxInfo") return `${formId}.taxDocument`;
|
|
354
|
-
return `${formId}.${fieldName}`;
|
|
355
|
-
};
|
|
356
|
-
var isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
|
|
357
|
-
return dataMissingErrors.flatMap((error) => error.remediatingActions).filter((remediatingAction) => !!remediatingAction && remediatingAction.code in dataMissingRemediationsToFieldsMap).flatMap((remediatingAction) => dataMissingRemediationsToFieldsMap[remediatingAction.code]).filter((missingField) => Boolean(missingField)).map((missingField) => makeTLDSFieldName(formId, missingField)).includes(makeTLDSFieldName(formId, field));
|
|
358
|
-
};
|
|
359
|
-
var getFormTrustedFields = (formId, trustedFields) => trustedFields.filter((field) => field.split(".")[0] === formId).map((field) => field.split(".").filter((item) => formId !== item).join("."));
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/utils/fieldConfigurations.ts
|
|
362
|
-
var resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
363
|
-
if (typeof countryEntry === "object") return countryEntry;
|
|
364
|
-
if (typeof countryEntry === "function") return countryEntry(params);
|
|
365
|
-
return defaultMetadata;
|
|
366
|
-
};
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region src/utils/formFields/formFieldsUtils.ts
|
|
369
|
-
/**
|
|
370
|
-
* Replaces full-width Latin characters with regular (half-width) characters.
|
|
371
|
-
*
|
|
372
|
-
* E.g. `test@email123.com` -> `test@email123.com`
|
|
373
|
-
*/
|
|
374
|
-
var convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
375
|
-
//#endregion
|
|
376
|
-
//#region src/utils/masking/displayValueToPureValue.ts
|
|
377
|
-
var cachedStripPatterns = /* @__PURE__ */ new Map();
|
|
378
|
-
var makeStripPattern = (mask) => {
|
|
379
|
-
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
380
|
-
const nonInputChars = mask.tokens.filter((token) => token.type === "nonInput" && !token.includeInValue).map((token) => token.char);
|
|
381
|
-
const strippedChars = [...new Set(nonInputChars.filter((char) => !inputPatterns.some((pattern) => pattern.test(char))))];
|
|
382
|
-
const stripPattern = new RegExp(`[${strippedChars.join("")}]`, "g");
|
|
383
|
-
cachedStripPatterns.set(mask, stripPattern);
|
|
384
|
-
return stripPattern;
|
|
385
|
-
};
|
|
386
|
-
/**
|
|
387
|
-
* Takes a formatted value and converts it back into a pure value by stripping the non-input /
|
|
388
|
-
* non-included characters in a given {@link Mask}.
|
|
389
|
-
*
|
|
390
|
-
* This is the inverse of {@link matchAgainstMask}.
|
|
391
|
-
*
|
|
392
|
-
* @see matchAgainstMask
|
|
393
|
-
*/
|
|
394
|
-
var displayValueToPureValue = (displayValue, mask) => {
|
|
395
|
-
const stripPattern = cachedStripPatterns.get(mask) ?? makeStripPattern(mask);
|
|
396
|
-
return displayValue.replaceAll(stripPattern, "");
|
|
397
|
-
};
|
|
398
|
-
//#endregion
|
|
399
|
-
//#region src/utils/isValueObscured.ts
|
|
400
|
-
var isValueObscured = (value) => typeof value === "string" && !!value.match(/[*]{1,}/)?.length;
|
|
401
|
-
//#endregion
|
|
402
|
-
//#region src/utils/masking/shiftRight.ts
|
|
403
|
-
var shiftRight = (possibleShifts, matchedTokens, remainingTokens) => {
|
|
404
|
-
let shiftsToTry = [...possibleShifts];
|
|
405
|
-
let current = {
|
|
406
|
-
matchedTokens,
|
|
407
|
-
remainingTokens
|
|
408
|
-
};
|
|
409
|
-
while (current.remainingTokens.length > 0 && shiftsToTry.length > 0) {
|
|
410
|
-
const possibleShift = shiftsToTry[0];
|
|
411
|
-
const shifted = tryShift(current.matchedTokens, current.remainingTokens, possibleShift.fromIndex, possibleShift.shiftDistance);
|
|
412
|
-
if (shifted === "notPossible") shiftsToTry = shiftsToTry.slice(1);
|
|
413
|
-
else {
|
|
414
|
-
current = shifted;
|
|
415
|
-
shiftsToTry = [...possibleShifts];
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return current;
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Returns all possible shifts of optional inputs, sorted by best to worst
|
|
422
|
-
* @param mask
|
|
423
|
-
*/
|
|
424
|
-
var findPossibleShifts = (mask) => {
|
|
425
|
-
const inputOnlyMask = mask.filter((t) => t.type === "input");
|
|
426
|
-
const optionals = inputOnlyMask.filter((t) => t.optional);
|
|
427
|
-
const possibleShifts = [];
|
|
428
|
-
for (const optional of optionals) {
|
|
429
|
-
const index = inputOnlyMask.indexOf(optional);
|
|
430
|
-
for (let i = index + 1; i < inputOnlyMask.length; i += 1) if (inputOnlyMask[i].type === "input") possibleShifts.push({
|
|
431
|
-
fromIndex: index,
|
|
432
|
-
shiftDistance: i - index
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
return possibleShifts.sort((s1, s2) => {
|
|
436
|
-
if (s1.fromIndex === s2.fromIndex) return s2.shiftDistance - s1.shiftDistance;
|
|
437
|
-
return s1.fromIndex - s2.fromIndex;
|
|
438
|
-
});
|
|
439
|
-
};
|
|
440
|
-
var tryShift = (matchedTokens, remainingTokens, fromIndex, shiftDistance) => {
|
|
441
|
-
const normalizedTokens = [...matchedTokens.map((token, i) => ({
|
|
442
|
-
...token,
|
|
443
|
-
currentValue: token.char,
|
|
444
|
-
originalIndex: i
|
|
445
|
-
})), ...remainingTokens.map((token, i) => ({
|
|
446
|
-
...token,
|
|
447
|
-
currentValue: null,
|
|
448
|
-
originalIndex: i + matchedTokens.length
|
|
449
|
-
}))];
|
|
450
|
-
const normalizedInputTokens = normalizedTokens.filter((token) => token.type === "input");
|
|
451
|
-
if (!normalizedTokens[fromIndex] || normalizedTokens[fromIndex].currentValue === null) return "notPossible";
|
|
452
|
-
if (shiftDistance > normalizedInputTokens.slice(fromIndex + 1).filter((t) => !t.currentValue).length) return "notPossible";
|
|
453
|
-
for (let i = 0; i < normalizedInputTokens.length; i += 1) {
|
|
454
|
-
const token = normalizedInputTokens[i];
|
|
455
|
-
if (i < fromIndex) token.potentialValue = token.currentValue;
|
|
456
|
-
else if (i < fromIndex + shiftDistance) token.potentialValue = null;
|
|
457
|
-
else token.potentialValue = normalizedInputTokens[i - shiftDistance].currentValue;
|
|
458
|
-
}
|
|
459
|
-
if (!normalizedInputTokens.every((token) => {
|
|
460
|
-
if (!token.potentialValue) return token.optional;
|
|
461
|
-
return token.allow?.test(token.potentialValue) ?? true;
|
|
462
|
-
})) return "notPossible";
|
|
463
|
-
let matchedUpTo = 0;
|
|
464
|
-
for (let i = 0; i < normalizedTokens.length; i += 1) {
|
|
465
|
-
const token = normalizedInputTokens.find((t) => t.originalIndex === i) ?? normalizedTokens[i];
|
|
466
|
-
if (token.type === "input" && !token.potentialValue && !token.optional) break;
|
|
467
|
-
matchedUpTo = i + 1;
|
|
468
|
-
}
|
|
469
|
-
return {
|
|
470
|
-
matchedTokens: normalizedTokens.slice(0, matchedUpTo).map((token) => ({
|
|
471
|
-
...token,
|
|
472
|
-
char: token.type === "nonInput" ? token.char : token.potentialValue
|
|
473
|
-
})),
|
|
474
|
-
remainingTokens: normalizedTokens.slice(matchedUpTo)
|
|
475
|
-
};
|
|
476
|
-
};
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region src/utils/masking/stripNonAllowedValues.ts
|
|
479
|
-
var cachedAllowedPatterns = /* @__PURE__ */ new Map();
|
|
480
|
-
/**
|
|
481
|
-
* Creates a regular expression that matches any of the provided patterns.
|
|
482
|
-
*
|
|
483
|
-
* @param regexArray - An array of regular expressions.
|
|
484
|
-
* @returns A combined regular expression.
|
|
485
|
-
*/
|
|
486
|
-
var combineRegexArray = (regexArray) => {
|
|
487
|
-
const combinedPattern = regexArray.map((pattern) => {
|
|
488
|
-
const match = String(pattern).match(/\/?(.*)\//);
|
|
489
|
-
return match ? match[1] : pattern;
|
|
490
|
-
}).join("|");
|
|
491
|
-
return new RegExp(`(?:${combinedPattern})`, "g");
|
|
492
|
-
};
|
|
493
|
-
/**
|
|
494
|
-
* Creates a regular expression that matches the allowed input patterns for the given mask.
|
|
495
|
-
*
|
|
496
|
-
* @param mask - The mask definition.
|
|
497
|
-
* @returns The compiled regular expression.
|
|
498
|
-
*/
|
|
499
|
-
var createAllowedPattern = (mask) => {
|
|
500
|
-
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
501
|
-
const allowedRegex = combineRegexArray([...new Set(inputPatterns.map((r) => r.toString()))].map((str) => {
|
|
502
|
-
const [_, pattern] = str.match(/\/(.*)\/([gimsuy]*)/) || [];
|
|
503
|
-
return new RegExp(pattern);
|
|
504
|
-
}));
|
|
505
|
-
cachedAllowedPatterns.set(mask, allowedRegex);
|
|
506
|
-
return allowedRegex;
|
|
507
|
-
};
|
|
508
|
-
var replaceNonMatchingChars = (value, allowedInputPatterns) => {
|
|
509
|
-
const matches = value.match(allowedInputPatterns);
|
|
510
|
-
return matches ? matches.join("") : "";
|
|
511
|
-
};
|
|
512
|
-
var stripNonAllowedValues = (pureValue, mask) => {
|
|
513
|
-
return replaceNonMatchingChars(pureValue, cachedAllowedPatterns.get(mask) ?? createAllowedPattern(mask));
|
|
514
|
-
};
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region src/utils/masking/matchAgainstMask.ts
|
|
517
|
-
var getAvailableInputTokens = (tokens) => {
|
|
518
|
-
const availableTokens = [];
|
|
519
|
-
for (const token of tokens) {
|
|
520
|
-
if (token.type === "nonInput") {
|
|
521
|
-
if (token.includeInValue) availableTokens.push({
|
|
522
|
-
...token,
|
|
523
|
-
offset: tokens.indexOf(token)
|
|
524
|
-
});
|
|
525
|
-
continue;
|
|
526
|
-
}
|
|
527
|
-
availableTokens.push({
|
|
528
|
-
...token,
|
|
529
|
-
offset: tokens.indexOf(token)
|
|
530
|
-
});
|
|
531
|
-
if (token.type !== "input" || !token.optional) break;
|
|
532
|
-
}
|
|
533
|
-
return availableTokens;
|
|
534
|
-
};
|
|
535
|
-
var findMatchingToken = (tokensWithOffset, char) => tokensWithOffset.find((token) => token.type === "nonInput" || !token.allow || token.allow.test(char)) ?? null;
|
|
536
|
-
var getEagerSuffix = (tokens) => {
|
|
537
|
-
let suffix = "";
|
|
538
|
-
for (const token of tokens) {
|
|
539
|
-
if (token.type === "input") if (token.optional) continue;
|
|
540
|
-
else break;
|
|
541
|
-
if (!token.displayEagerly) break;
|
|
542
|
-
suffix += token.char;
|
|
543
|
-
}
|
|
544
|
-
return suffix;
|
|
545
|
-
};
|
|
546
|
-
var getPotentialForMoreOptionalInput = (tokens) => tokens.some((token) => token.type === "input" && token.optional);
|
|
547
|
-
/**
|
|
548
|
-
* Takes some pure value e.g. `NL123456` and a {@link Mask}, and returns a `partialCorrect`,
|
|
549
|
-
* `correct` or `mismatch` {@link MaskResult} accordingly.
|
|
550
|
-
*
|
|
551
|
-
* This is the inverse of {@link displayValueToPureValue}.
|
|
552
|
-
*
|
|
553
|
-
* @returns the result of matching the given value against the mask
|
|
554
|
-
* @param pureValue the pure, unformatted input value
|
|
555
|
-
* @param mask the mask to match against
|
|
556
|
-
* @param acceptObscuredValue whether to accept
|
|
557
|
-
*
|
|
558
|
-
* @see displayValueToPureValue
|
|
559
|
-
*/
|
|
560
|
-
var matchAgainstMask = (pureValue, mask, acceptObscuredValue = false, stripNonAllowedInputs = false) => {
|
|
561
|
-
let tokensToProcess = [...mask.tokens];
|
|
562
|
-
let charsToProcess = pureValue;
|
|
563
|
-
let charIndex = 0;
|
|
564
|
-
let matchedTokens = [];
|
|
565
|
-
if (acceptObscuredValue && isValueObscured(pureValue)) return {
|
|
566
|
-
outcome: "obscureCorrect",
|
|
567
|
-
displayValue: pureValue
|
|
568
|
-
};
|
|
569
|
-
const shiftChars = (increment) => {
|
|
570
|
-
charIndex += increment;
|
|
571
|
-
charsToProcess = charsToProcess.slice(increment);
|
|
572
|
-
};
|
|
573
|
-
const shiftTokens = (increment) => {
|
|
574
|
-
tokensToProcess = tokensToProcess.slice(increment);
|
|
575
|
-
};
|
|
576
|
-
const displayValue = () => matchedTokens.map((token) => token.char).join("");
|
|
577
|
-
const getNonInputCharacters = () => matchedTokens.filter((token) => token.type === "nonInput" && token.includeInValue === false).map((token) => token.char).join("");
|
|
578
|
-
while (true) {
|
|
579
|
-
let partialDisplayValue = displayValue();
|
|
580
|
-
if (stripNonAllowedInputs) {
|
|
581
|
-
partialDisplayValue = partialDisplayValue.replaceAll(getNonInputCharacters(), "");
|
|
582
|
-
if (!partialDisplayValue.length) partialDisplayValue = stripNonAllowedValues(charsToProcess, mask);
|
|
583
|
-
}
|
|
584
|
-
const char = charsToProcess[0];
|
|
585
|
-
const token = tokensToProcess[0];
|
|
586
|
-
if (!char && !tokensToProcess.some((t) => t.type === "input" && !t.optional)) return {
|
|
587
|
-
outcome: "correct",
|
|
588
|
-
displayValue: displayValue() + getEagerSuffix(tokensToProcess),
|
|
589
|
-
potentialForMoreOptionalInput: getPotentialForMoreOptionalInput(tokensToProcess)
|
|
590
|
-
};
|
|
591
|
-
if (!char) {
|
|
592
|
-
const output = shiftRight(mask.possibleShifts, matchedTokens, tokensToProcess);
|
|
593
|
-
matchedTokens = output.matchedTokens;
|
|
594
|
-
tokensToProcess = output.remainingTokens;
|
|
595
|
-
return {
|
|
596
|
-
outcome: "partialCorrect",
|
|
597
|
-
displayValue: displayValue() + getEagerSuffix(tokensToProcess)
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
if (!token) return {
|
|
601
|
-
outcome: "mismatch",
|
|
602
|
-
badChar: char,
|
|
603
|
-
mismatchAtChar: charIndex,
|
|
604
|
-
mismatchedToken: "inputTooLong",
|
|
605
|
-
partialDisplayValue
|
|
606
|
-
};
|
|
607
|
-
if (token.type === "nonInput") {
|
|
608
|
-
if (token.includeInValue) {
|
|
609
|
-
if (char !== token.char) return {
|
|
610
|
-
outcome: "mismatch",
|
|
611
|
-
badChar: char,
|
|
612
|
-
mismatchAtChar: charIndex,
|
|
613
|
-
mismatchedToken: token,
|
|
614
|
-
partialDisplayValue
|
|
615
|
-
};
|
|
616
|
-
shiftChars(1);
|
|
617
|
-
}
|
|
618
|
-
matchedTokens.push(token);
|
|
619
|
-
shiftTokens(1);
|
|
620
|
-
}
|
|
621
|
-
if (token.type === "input") {
|
|
622
|
-
const matchingToken = findMatchingToken(getAvailableInputTokens(tokensToProcess), char);
|
|
623
|
-
if (!matchingToken) return {
|
|
624
|
-
outcome: "mismatch",
|
|
625
|
-
badChar: char,
|
|
626
|
-
mismatchAtChar: charIndex,
|
|
627
|
-
mismatchedToken: token,
|
|
628
|
-
partialDisplayValue
|
|
629
|
-
};
|
|
630
|
-
matchedTokens.push({
|
|
631
|
-
...matchingToken,
|
|
632
|
-
char
|
|
633
|
-
});
|
|
634
|
-
shiftTokens(matchingToken.offset + 1);
|
|
635
|
-
shiftChars(1);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
//#endregion
|
|
640
|
-
//#region src/components/ui/molecules/InputEmail/InputEmail.tsx
|
|
641
|
-
var InputEmail = forwardRef(({ onInput, transformInput, ...props }, ref) => {
|
|
642
|
-
const [cursorPosition, setCursorPosition] = useState$1(null);
|
|
643
|
-
const localRef = useForwardedRef(ref);
|
|
644
|
-
const inputHandler = useCallback$1((event) => {
|
|
645
|
-
const inputEl = event.currentTarget;
|
|
646
|
-
if (transformInput) {
|
|
647
|
-
setCursorPosition(inputEl.selectionStart);
|
|
648
|
-
const transformedInput = transformInput(inputEl.value);
|
|
649
|
-
onInput({
|
|
650
|
-
...event,
|
|
651
|
-
target: {
|
|
652
|
-
...event.target,
|
|
653
|
-
value: transformedInput
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
} else onInput(event);
|
|
657
|
-
}, [transformInput, onInput]);
|
|
658
|
-
useLayoutEffect(() => {
|
|
659
|
-
if (cursorPosition && localRef.current?.selectionStart !== cursorPosition) localRef?.current?.setSelectionRange(cursorPosition, cursorPosition, "none");
|
|
660
|
-
}, [cursorPosition, localRef]);
|
|
661
|
-
return /* @__PURE__ */ jsx(InputBase, {
|
|
662
|
-
...props,
|
|
663
|
-
onInput: inputHandler,
|
|
664
|
-
ref: localRef,
|
|
665
|
-
type: "email",
|
|
666
|
-
autoCapitalize: "off"
|
|
667
|
-
});
|
|
668
|
-
});
|
|
669
|
-
//#endregion
|
|
670
|
-
//#region src/components/ui/molecules/InputTelephone/InputTelephone.tsx
|
|
671
|
-
var InputTelephone = forwardRef(({ onInput, transformInput, ...props }, ref) => {
|
|
672
|
-
const [cursorPosition, setCursorPosition] = useState$1(null);
|
|
673
|
-
const localRef = useForwardedRef(ref);
|
|
674
|
-
const inputHandler = useCallback$1((event) => {
|
|
675
|
-
const inputEl = event.currentTarget;
|
|
676
|
-
if (transformInput) {
|
|
677
|
-
setCursorPosition(inputEl.selectionStart);
|
|
678
|
-
const transformedInput = transformInput(inputEl.value);
|
|
679
|
-
onInput({
|
|
680
|
-
...event,
|
|
681
|
-
target: {
|
|
682
|
-
...event.target,
|
|
683
|
-
value: transformedInput
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
} else onInput(event);
|
|
687
|
-
}, [transformInput, onInput]);
|
|
688
|
-
useLayoutEffect(() => {
|
|
689
|
-
if (cursorPosition && localRef.current?.selectionStart !== cursorPosition) localRef?.current?.setSelectionRange(cursorPosition, cursorPosition, "none");
|
|
690
|
-
}, [cursorPosition, localRef]);
|
|
691
|
-
return /* @__PURE__ */ jsx(InputBase, {
|
|
692
|
-
...props,
|
|
693
|
-
onInput: inputHandler,
|
|
694
|
-
ref: localRef,
|
|
695
|
-
type: "tel"
|
|
696
|
-
});
|
|
697
|
-
});
|
|
698
|
-
var MaskedInput_module_default = {
|
|
699
|
-
mismatch: "_mismatch_nyvqg_1",
|
|
700
|
-
mismatchShake: "_mismatchShake_nyvqg_1"
|
|
701
|
-
};
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region src/components/ui/molecules/MaskedInput/MaskedInput.tsx
|
|
704
|
-
var deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullishValue, hasBlurred, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, t) => {
|
|
705
|
-
if (isDisabled) return { isError: false };
|
|
706
|
-
if (isOptional && hasNullishValue) return { isError: false };
|
|
707
|
-
if (isValid && (!potentiallyMoreOptionalCharacters || !isFocused)) return {
|
|
708
|
-
isError: false,
|
|
709
|
-
text: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
710
|
-
name: "checkmark-small",
|
|
711
|
-
className: "adyen-kyc-helper-text__valid-format-check"
|
|
712
|
-
}), t(($) => $["formatIsCorrect"])] })
|
|
713
|
-
};
|
|
714
|
-
if (isFocused && formatGuidance) return {
|
|
715
|
-
isError: false,
|
|
716
|
-
text: formatGuidance
|
|
717
|
-
};
|
|
718
|
-
if (!isValid && (shouldValidate || hasBlurred)) return {
|
|
719
|
-
isError: true,
|
|
720
|
-
errorMessage,
|
|
721
|
-
text: formatGuidance
|
|
722
|
-
};
|
|
723
|
-
return { isError: false };
|
|
724
|
-
};
|
|
725
|
-
var MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
726
|
-
var Inner = ({ name, inputState, optional, disabled, readonly, placeholder, displayValue, inputRef, type, id, showingMismatch, onInput, onBlur, onFocus, onPaste, onKeyDown, ...props }) => {
|
|
727
|
-
switch (type) {
|
|
728
|
-
case "text": return /* @__PURE__ */ jsx(InputText, {
|
|
729
|
-
id,
|
|
730
|
-
"aria-describedby": props["aria-describedby"],
|
|
731
|
-
"aria-label": props["aria-label"],
|
|
732
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
733
|
-
"aria-invalid": inputState.isError,
|
|
734
|
-
"aria-placeholder": placeholder,
|
|
735
|
-
ref: inputRef,
|
|
736
|
-
name,
|
|
737
|
-
isValid: !inputState.isError,
|
|
738
|
-
isInvalid: inputState.isError,
|
|
739
|
-
required: !optional,
|
|
740
|
-
disabled,
|
|
741
|
-
readonly,
|
|
742
|
-
placeholder,
|
|
743
|
-
value: displayValue,
|
|
744
|
-
className: showingMismatch ? MaskedInput_module_default.mismatch : void 0,
|
|
745
|
-
onInput,
|
|
746
|
-
onPaste,
|
|
747
|
-
onKeyDown,
|
|
748
|
-
onFocusHandler: onFocus,
|
|
749
|
-
onBlurHandler: onBlur
|
|
750
|
-
});
|
|
751
|
-
case "email": return /* @__PURE__ */ jsx(InputEmail, {
|
|
752
|
-
id,
|
|
753
|
-
"aria-describedby": props["aria-describedby"],
|
|
754
|
-
"aria-label": props["aria-label"],
|
|
755
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
756
|
-
"aria-invalid": inputState.isError,
|
|
757
|
-
"aria-placeholder": placeholder,
|
|
758
|
-
ref: inputRef,
|
|
759
|
-
name,
|
|
760
|
-
isValid: !inputState.isError,
|
|
761
|
-
isInvalid: inputState.isError,
|
|
762
|
-
required: !optional,
|
|
763
|
-
disabled,
|
|
764
|
-
readonly,
|
|
765
|
-
placeholder,
|
|
766
|
-
value: displayValue,
|
|
767
|
-
onInput,
|
|
768
|
-
onPaste,
|
|
769
|
-
onKeyDown,
|
|
770
|
-
onFocusHandler: onFocus,
|
|
771
|
-
onBlurHandler: onBlur
|
|
772
|
-
});
|
|
773
|
-
case "tel": return /* @__PURE__ */ jsx(InputTelephone, {
|
|
774
|
-
id,
|
|
775
|
-
"aria-describedby": props["aria-describedby"],
|
|
776
|
-
"aria-label": props["aria-label"],
|
|
777
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
778
|
-
"aria-invalid": inputState.isError,
|
|
779
|
-
"aria-placeholder": placeholder,
|
|
780
|
-
ref: inputRef,
|
|
781
|
-
name,
|
|
782
|
-
isValid: !inputState.isError,
|
|
783
|
-
isInvalid: inputState.isError,
|
|
784
|
-
required: !optional,
|
|
785
|
-
disabled,
|
|
786
|
-
readonly,
|
|
787
|
-
placeholder,
|
|
788
|
-
value: displayValue,
|
|
789
|
-
onInput,
|
|
790
|
-
onPaste,
|
|
791
|
-
onKeyDown,
|
|
792
|
-
onFocusHandler: onFocus,
|
|
793
|
-
onBlurHandler: onBlur
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
var MaskedInput = ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, type = "text", readonly = false, disabled = false, optional = false, formatGuidance = "", acceptObscuredValue = false, helper, helperPosition = "below", persistHelper = false, useFieldComponent = true, stripNonAllowedInputs = false }) => {
|
|
798
|
-
const hasExistingData = !isEmpty(value);
|
|
799
|
-
const [preservingMismatchedValue, setPreservingMismatchedValue] = useState$1(false);
|
|
800
|
-
const [isFocused, setIsFocused] = useState$1(false);
|
|
801
|
-
const [hasBlurred, setHasBlurred] = useState$1(hasExistingData);
|
|
802
|
-
const [caretReturnPosition, setCaretReturnPosition] = useState$1(null);
|
|
803
|
-
const inputRef = useRef$1(null);
|
|
804
|
-
const [showingMismatch, setShowingMismatch] = useState$1(false);
|
|
805
|
-
const { t } = useTranslation("ui");
|
|
806
|
-
const onAnimationEnd = (event) => {
|
|
807
|
-
if (!event.animationName.includes(MISMATCH_ANIMATION_NAME)) return;
|
|
808
|
-
setShowingMismatch(false);
|
|
809
|
-
};
|
|
810
|
-
const onMismatch = useCallback$1((mismatch) => {
|
|
811
|
-
if (!inputRef.current) return;
|
|
812
|
-
setShowingMismatch(true);
|
|
813
|
-
inputRef.current.addEventListener("animationend", onAnimationEnd);
|
|
814
|
-
onMismatchExternal?.(mismatch);
|
|
815
|
-
}, [onMismatchExternal]);
|
|
816
|
-
useEffect$1(() => {
|
|
817
|
-
const inputEl = inputRef.current;
|
|
818
|
-
if (inputEl) return () => {
|
|
819
|
-
inputEl.removeEventListener("animationend", onAnimationEnd);
|
|
820
|
-
};
|
|
821
|
-
}, []);
|
|
822
|
-
const getMaskResult = useCallback$1((pureValue) => {
|
|
823
|
-
if (!mask) return {
|
|
824
|
-
outcome: "partialCorrect",
|
|
825
|
-
displayValue: pureValue
|
|
826
|
-
};
|
|
827
|
-
return matchAgainstMask(transformOnType ? transformOnType(pureValue) : pureValue, mask, acceptObscuredValue, stripNonAllowedInputs);
|
|
828
|
-
}, [
|
|
829
|
-
mask,
|
|
830
|
-
transformOnType,
|
|
831
|
-
acceptObscuredValue,
|
|
832
|
-
stripNonAllowedInputs
|
|
833
|
-
]);
|
|
834
|
-
const displayValueToPure = useCallback$1((displayValue) => {
|
|
835
|
-
if (!mask) return displayValue;
|
|
836
|
-
return displayValueToPureValue(displayValue, mask);
|
|
837
|
-
}, [mask]);
|
|
838
|
-
const maskResult = useMemo$1(() => getMaskResult(value), [getMaskResult, value]);
|
|
839
|
-
const displayValue = preservingMismatchedValue ? value : maskResult.outcome === "mismatch" ? maskResult.partialDisplayValue : maskResult.displayValue;
|
|
840
|
-
const inputState = deriveInputState(validationIsValid && maskResult.outcome !== "mismatch", isFocused, disabled, optional, !displayValue, hasBlurred, errorMessage, shouldValidate, maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput, formatGuidance, t);
|
|
841
|
-
useEffect$1(() => {
|
|
842
|
-
if (mask && maskResult.outcome === "mismatch") {
|
|
843
|
-
const strippedValue = displayValueToPure(value);
|
|
844
|
-
if (getMaskResult(strippedValue).outcome !== "mismatch") {
|
|
845
|
-
onInput(strippedValue);
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
setPreservingMismatchedValue(true);
|
|
849
|
-
if (stripNonAllowedInputs) onInput(maskResult.partialDisplayValue);
|
|
850
|
-
}
|
|
851
|
-
}, [
|
|
852
|
-
mask,
|
|
853
|
-
maskResult,
|
|
854
|
-
value,
|
|
855
|
-
onInput,
|
|
856
|
-
displayValueToPure,
|
|
857
|
-
getMaskResult,
|
|
858
|
-
stripNonAllowedInputs
|
|
859
|
-
]);
|
|
860
|
-
useLayoutEffect(() => {
|
|
861
|
-
if (caretReturnPosition && inputRef.current && caretReturnPosition !== inputRef.current.selectionStart) {
|
|
862
|
-
inputRef.current.setSelectionRange(caretReturnPosition, caretReturnPosition, "none");
|
|
863
|
-
setCaretReturnPosition(null);
|
|
864
|
-
}
|
|
865
|
-
}, [caretReturnPosition]);
|
|
866
|
-
const handleInput = useCallback$1((event) => {
|
|
867
|
-
const inputEl = event.currentTarget;
|
|
868
|
-
if (!inputEl) return;
|
|
869
|
-
const newPureValue = displayValueToPure(inputEl.value);
|
|
870
|
-
const newMaskResult = getMaskResult(newPureValue);
|
|
871
|
-
const returnCaretLater = (offset = 0) => {
|
|
872
|
-
if (!inputEl.selectionStart) return;
|
|
873
|
-
setCaretReturnPosition(inputEl.selectionStart + offset);
|
|
874
|
-
};
|
|
875
|
-
const cancelInput = () => {
|
|
876
|
-
returnCaretLater(-1);
|
|
877
|
-
inputEl.value = displayValue;
|
|
878
|
-
if (typeof event.preventDefault === "function") {
|
|
879
|
-
event.preventDefault();
|
|
880
|
-
event.stopPropagation();
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
if (newMaskResult.outcome === "mismatch") {
|
|
884
|
-
if (newMaskResult.partialDisplayValue) {
|
|
885
|
-
if (newMaskResult.mismatchedToken === "inputTooLong" && displayValue) {
|
|
886
|
-
cancelInput();
|
|
887
|
-
onMismatch(newMaskResult);
|
|
888
|
-
return;
|
|
889
|
-
}
|
|
890
|
-
cancelInput();
|
|
891
|
-
onMismatch(newMaskResult);
|
|
892
|
-
setPreservingMismatchedValue(false);
|
|
893
|
-
onInput(newMaskResult.partialDisplayValue);
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
cancelInput();
|
|
897
|
-
onMismatch(newMaskResult);
|
|
898
|
-
return;
|
|
899
|
-
}
|
|
900
|
-
if (inputEl.selectionStart && inputEl.selectionStart < inputEl.value.length) returnCaretLater();
|
|
901
|
-
setPreservingMismatchedValue(false);
|
|
902
|
-
inputEl.value = newMaskResult.displayValue;
|
|
903
|
-
onInput(newPureValue);
|
|
904
|
-
}, [
|
|
905
|
-
displayValue,
|
|
906
|
-
displayValueToPure,
|
|
907
|
-
getMaskResult,
|
|
908
|
-
onInput,
|
|
909
|
-
onMismatch
|
|
910
|
-
]);
|
|
911
|
-
const handleBlur = useCallback$1((event, fieldOnBlur) => {
|
|
912
|
-
fieldOnBlur?.(event);
|
|
913
|
-
const eventWithProcessedValue = {
|
|
914
|
-
...event,
|
|
915
|
-
currentTarget: {
|
|
916
|
-
...event.currentTarget,
|
|
917
|
-
value: displayValueToPure(event.currentTarget.value)
|
|
918
|
-
},
|
|
919
|
-
target: {
|
|
920
|
-
...event.target,
|
|
921
|
-
value: displayValueToPure(event.currentTarget.value)
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
onBlur?.(eventWithProcessedValue);
|
|
925
|
-
setIsFocused(false);
|
|
926
|
-
setHasBlurred(true);
|
|
927
|
-
}, [displayValueToPure, onBlur]);
|
|
928
|
-
const handlePaste = useCallback$1((event) => {
|
|
929
|
-
const pasteValue = event.clipboardData?.getData("text/plain");
|
|
930
|
-
const inputEl = event.currentTarget;
|
|
931
|
-
const { selectionStart, selectionEnd } = inputEl;
|
|
932
|
-
if (!pasteValue || !selectionStart || selectionStart !== selectionEnd) return;
|
|
933
|
-
const pureDisplayValue = displayValueToPure(displayValue);
|
|
934
|
-
const purePasteValue = displayValueToPure(pasteValue);
|
|
935
|
-
const newPureValue = pureDisplayValue.slice(0, selectionStart) + purePasteValue + pureDisplayValue.slice(selectionStart);
|
|
936
|
-
if (newPureValue.startsWith(pureDisplayValue + pureDisplayValue)) {
|
|
937
|
-
const withPrefixRemoved = newPureValue.replace(pureDisplayValue, "");
|
|
938
|
-
event.preventDefault();
|
|
939
|
-
inputEl.value = withPrefixRemoved;
|
|
940
|
-
handleInput({
|
|
941
|
-
...event,
|
|
942
|
-
currentTarget: inputEl,
|
|
943
|
-
target: inputEl
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
}, [
|
|
947
|
-
displayValue,
|
|
948
|
-
displayValueToPure,
|
|
949
|
-
handleInput
|
|
950
|
-
]);
|
|
951
|
-
const handleFocus = useCallback$1((event, fieldOnFocus) => {
|
|
952
|
-
onFocus?.();
|
|
953
|
-
fieldOnFocus?.(event);
|
|
954
|
-
setIsFocused(true);
|
|
955
|
-
}, [onFocus]);
|
|
956
|
-
const handleKeyDown = useCallback$1((event) => {
|
|
957
|
-
const inputEl = event.currentTarget;
|
|
958
|
-
const isCaretAtEndWithNoSelection = inputEl.selectionStart === inputEl.value.length && inputEl.selectionStart === inputEl.selectionEnd;
|
|
959
|
-
if (event.key !== KEYBOARD_KEYS.backspace || !isCaretAtEndWithNoSelection) return;
|
|
960
|
-
event.preventDefault();
|
|
961
|
-
const withLastCharRemoved = value.slice(0, value.length - 1);
|
|
962
|
-
const newMaskResult = getMaskResult(withLastCharRemoved);
|
|
963
|
-
if (newMaskResult.outcome === "mismatch") {
|
|
964
|
-
inputEl.value = newMaskResult.partialDisplayValue;
|
|
965
|
-
onMismatch(newMaskResult);
|
|
966
|
-
} else {
|
|
967
|
-
inputEl.value = newMaskResult.displayValue;
|
|
968
|
-
onInput(withLastCharRemoved);
|
|
969
|
-
}
|
|
970
|
-
}, [
|
|
971
|
-
getMaskResult,
|
|
972
|
-
onInput,
|
|
973
|
-
onMismatch,
|
|
974
|
-
value
|
|
975
|
-
]);
|
|
976
|
-
const getHelper = () => {
|
|
977
|
-
if (inputState.isError && !persistHelper) return inputState.text;
|
|
978
|
-
if (helper) return /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("div", { children: helper }), /* @__PURE__ */ jsx("div", {
|
|
979
|
-
style: { display: persistHelper ? "flex" : "unset" },
|
|
980
|
-
children: inputState.text
|
|
981
|
-
})] });
|
|
982
|
-
return inputState.text;
|
|
983
|
-
};
|
|
984
|
-
return useFieldComponent ? /* @__PURE__ */ jsx(Field, {
|
|
985
|
-
name,
|
|
986
|
-
label,
|
|
987
|
-
isValid: !inputState.isError,
|
|
988
|
-
errorMessage: inputState.errorMessage,
|
|
989
|
-
helper: getHelper(),
|
|
990
|
-
helperPosition,
|
|
991
|
-
disabled,
|
|
992
|
-
optional,
|
|
993
|
-
children: ({ onBlurHandler: fieldOnBlur, onFocusHandler: fieldOnFocus, id, ...childProps }) => /* @__PURE__ */ jsx(Inner, {
|
|
994
|
-
...childProps,
|
|
995
|
-
id,
|
|
996
|
-
name,
|
|
997
|
-
optional,
|
|
998
|
-
disabled,
|
|
999
|
-
readonly,
|
|
1000
|
-
placeholder,
|
|
1001
|
-
displayValue,
|
|
1002
|
-
inputRef,
|
|
1003
|
-
inputState,
|
|
1004
|
-
type,
|
|
1005
|
-
showingMismatch,
|
|
1006
|
-
onInput: handleInput,
|
|
1007
|
-
onBlur: (event) => {
|
|
1008
|
-
handleBlur(event, fieldOnBlur);
|
|
1009
|
-
},
|
|
1010
|
-
onPaste: handlePaste,
|
|
1011
|
-
onFocus: (event) => {
|
|
1012
|
-
handleFocus(event, fieldOnFocus);
|
|
1013
|
-
},
|
|
1014
|
-
onKeyDown: handleKeyDown
|
|
1015
|
-
})
|
|
1016
|
-
}) : /* @__PURE__ */ jsx(Inner, {
|
|
1017
|
-
name,
|
|
1018
|
-
"aria-label": label,
|
|
1019
|
-
optional,
|
|
1020
|
-
disabled,
|
|
1021
|
-
readonly,
|
|
1022
|
-
placeholder,
|
|
1023
|
-
displayValue,
|
|
1024
|
-
inputRef,
|
|
1025
|
-
inputState,
|
|
1026
|
-
type,
|
|
1027
|
-
showingMismatch,
|
|
1028
|
-
onInput: handleInput,
|
|
1029
|
-
onBlur: (event) => {
|
|
1030
|
-
handleBlur(event);
|
|
1031
|
-
},
|
|
1032
|
-
onPaste: handlePaste,
|
|
1033
|
-
onFocus: (event) => {
|
|
1034
|
-
handleFocus(event);
|
|
1035
|
-
},
|
|
1036
|
-
onKeyDown: handleKeyDown
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
//#endregion
|
|
1040
|
-
//#region src/utils/makeArrayOfRepeatedObjects.ts
|
|
1041
|
-
var makeArrayOfRepeatedObjects = (length, obj) => {
|
|
1042
|
-
const array = [];
|
|
1043
|
-
for (let i = 0; i < length; i += 1) array.push(cloneObject(obj));
|
|
1044
|
-
return array;
|
|
1045
|
-
};
|
|
1046
|
-
//#endregion
|
|
1047
|
-
//#region src/utils/masking/maskHelpers.ts
|
|
1048
|
-
var nonInputs = (str, options) => Array.from(str).map((char) => ({
|
|
1049
|
-
type: "nonInput",
|
|
1050
|
-
char,
|
|
1051
|
-
includeInValue: options?.includeInValue ?? false,
|
|
1052
|
-
displayEagerly: options?.displayEagerly ?? true
|
|
1053
|
-
}));
|
|
1054
|
-
var spacer = nonInputs(" ")[0];
|
|
1055
|
-
var alphaInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, {
|
|
1056
|
-
type: "input",
|
|
1057
|
-
allow: /[A-Za-z]/,
|
|
1058
|
-
optional
|
|
1059
|
-
});
|
|
1060
|
-
var numericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, {
|
|
1061
|
-
type: "input",
|
|
1062
|
-
allow: /\d/,
|
|
1063
|
-
optional
|
|
1064
|
-
});
|
|
1065
|
-
var alphanumericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, {
|
|
1066
|
-
type: "input",
|
|
1067
|
-
allow: /[\dA-Za-z]/,
|
|
1068
|
-
optional
|
|
1069
|
-
});
|
|
1070
|
-
var customInputs = (length, regex, optional = false) => makeArrayOfRepeatedObjects(length, {
|
|
1071
|
-
type: "input",
|
|
1072
|
-
allow: regex,
|
|
1073
|
-
optional
|
|
1074
|
-
});
|
|
1075
|
-
var makeMask = (...tokens) => ({
|
|
1076
|
-
tokens,
|
|
1077
|
-
possibleShifts: findPossibleShifts(tokens)
|
|
1078
|
-
});
|
|
1079
|
-
//#endregion
|
|
1080
|
-
//#region src/utils/masking/transformers/uppercase.ts
|
|
1081
|
-
var uppercase = (str) => str?.toUpperCase() ?? str;
|
|
1082
|
-
//#endregion
|
|
1083
|
-
//#region src/types/form-rules.ts
|
|
1084
|
-
/**
|
|
1085
|
-
* Identity function that guarantees strictly typed rules with the provided rule names
|
|
1086
|
-
*/
|
|
1087
|
-
var createFormRules = (rules) => rules;
|
|
1088
|
-
//#endregion
|
|
1089
|
-
export { getPropsFromConfigurations as _, customInputs as a, numericInputs as c, InputEmail as d, isValueObscured as f, composePerScenarioFormConfigurations as g, augmentWithCountryConfigs as h, alphanumericInputs as i, spacer as l, resolveFieldMetadata as m, uppercase as n, makeMask as o, convertFullToHalf as p, alphaInputs as r, nonInputs as s, createFormRules as t, MaskedInput as u, LandingLayout as v, TrustedFieldsProviders as y };
|