@adyen/kyc-components 4.20.1 → 4.21.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/AcceptTermsOfServiceWorkflow-BX4PavSh.js +28 -0
- package/dist/{Accordion-BWdAGMRb.js → Accordion-DC7Iuj-J.js} +3 -2
- package/dist/{AccountSetupRejected-DQdpjNnj.js → AccountSetupRejected-U97LE7iR.js} +2 -2
- package/dist/AdaptiveWorkflow-DnvzkolP.js +210 -0
- package/dist/{AdaptiveWorkflowComponent-ww43_J9E.js → AdaptiveWorkflowComponent-nyRU4M-H.js} +35 -34
- package/dist/{AddressField-Cq44IQgb.js → AddressField-OygGZ6XH.js} +13 -79
- package/dist/{Avatar-CeZIQS8n.js → Avatar-BKTdqNpO.js} +2 -2
- package/dist/{BusinessFinancingDropin-CMeomX1F.js → BusinessFinancingDropin-BGFKtVmf.js} +155 -36
- package/dist/{BusinessFinancingPage-CvNhVMFK.js → BusinessFinancingPage-HggLO02u.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-TuTjE9TJ.js → BusinessRegistrationNumberField-CLtSzZ4H.js} +28 -133
- package/dist/BusinessRegistrationNumberFieldGroup-BfuSULya.js +172 -0
- package/dist/{BusinessTypeSelectionPage-BwGIUiyr.js → BusinessTypeSelectionPage-C9BYbNj1.js} +19 -16
- package/dist/{Button-Cm7cT6BX.js → Button-DSD_afG_.js} +4 -85
- package/dist/{Checkbox-faFUul66.js → Checkbox-B-hhlkoQ.js} +2 -2
- package/dist/{CompanyRegistrationNumberTypeSelector-BUY0kPkh.js → CompanyRegistrationNumberTypeSelector-BlW3-gmE.js} +6 -8
- package/dist/ComponentGroup-o36ZWZoO.js +32 -0
- package/dist/{ContactDetails-Dlnfdc4z.js → ContactDetails-DwH0Wdi1.js} +8 -9
- package/dist/{ContextGuidance-DPortRSU.js → ContextGuidance-Digds0A2.js} +3 -3
- package/dist/{Currency-rLOMcO9B.js → Currency-BSsyM5Mm.js} +9 -8
- package/dist/{CustomerSupport-CytLCSpZ.js → CustomerSupport-CrNlpDnm.js} +16 -15
- package/dist/{DataConflictsModal-D_pGAWW3.js → DataConflictsModal-CnePHHgB.js} +10 -9
- package/dist/{DebugModal-DGUzeYey.js → DebugModal-BSNHP5Ae.js} +13 -13
- package/dist/{DecisionMakerDetails-sppE8Dg7.js → DecisionMakerDetails-DwU-PnMz.js} +59 -22
- package/dist/{DecisionMakerDetailsPage-tuj8OdWO.js → DecisionMakerDetailsPage-B6soHNL0.js} +35 -17
- package/dist/{DecisionMakers-arwYqEpw.js → DecisionMakers-Cq0TqVBQ.js} +22 -20
- package/dist/{Dropzone-MXpQ2JX4.js → Dropzone-JYR4c6bX.js} +9 -7
- package/dist/{EmbeddedStatus-uz3Ivsyw.js → EmbeddedStatus-CkSg9-9r.js} +5 -4
- package/dist/{EndStateLayout-BUK64Vqu.js → EndStateLayout-CarfWtTC.js} +4 -3
- package/dist/{EntityAssociation-DIMugfMW.js → EntityAssociation-DjvGgE2E.js} +7 -7
- package/dist/{ErrorPanel-BnNNDGTX.js → ErrorPanel-CMHH1nTS.js} +6 -6
- package/dist/GlobalEntryModal-CFk22iXk.js +589 -0
- package/dist/{GlobalEntryPage-CQHkux-h.js → GlobalEntryPage-DjJZ8GP4.js} +35 -34
- package/dist/Icon-CurE93CX.js +175 -0
- package/dist/{validateExtractionResult-C-fw1L8Y.js → IdentityNumber-DHn--v-7.js} +7 -344
- package/dist/IdentityNumberFieldGroup-ivJ1jyGI.js +57 -0
- package/dist/IdentityScreeningWorkflow-zNOsMLhY.js +307 -0
- package/dist/{Image-8SOcICah.js → Image-D82terx4.js} +2 -2
- package/dist/{Individual.rules-D8zkDeJr.js → Individual.rules-CKRy22gy.js} +9 -10
- package/dist/{IndividualDropin-B0z9XvoK.js → IndividualDropin-iGwLttHz.js} +86 -82
- package/dist/IndustryCodeFieldGroup-9CC2Ujpm.js +188 -0
- package/dist/{InputDate-DDVX2D-5.js → InputDate-9I-vTE2B.js} +2 -2
- package/dist/{InputText-Cf9ccCaj.js → InputText-Co02nT5L.js} +41 -6
- package/dist/{Introduction-BvzjJX0Y.js → Introduction-BrP3b2Vs.js} +9 -8
- package/dist/{InvitedDecisionMakerComponent-rlvJWIWV.js → InvitedDecisionMakerComponent-DmZh2BsQ.js} +48 -46
- package/dist/{JpAddressFields-D0aE5hUZ.js → JpAddressFields-_PYHM7ee.js} +51 -11
- package/dist/{LegalCompanyNameField-DnE5UUFG.js → LegalCompanyNameField-C04RZp2O.js} +5 -5
- package/dist/LegalName-uERLVj_B.js +33 -0
- package/dist/{LegalRepresentativeDetailsPage-BfHh2J1h.js → LegalRepresentativeDetailsPage-Ci3oO3ix.js} +11 -11
- package/dist/{Link-B7RA2gSt.js → Link-B-gN0d8l.js} +2 -2
- package/dist/{ListItem-Cy46BXUv.js → ListItem-BGdnopqb.js} +3 -3
- package/dist/Loader-BEpMlKm2.js +92 -0
- package/dist/{Modal-nylR9F4X.js → Modal-C6gfqa3Z.js} +3 -3
- package/dist/{Name-D97x3Aer.js → Name-PDN2ZxmV.js} +5 -5
- package/dist/{NewSummary-CsF_b2Zb.js → NewSummary-BKUTkBAU.js} +10 -9
- package/dist/{PatriotActDisclosure-BzEYbRQD.js → PatriotActDisclosure-D6J1hjaU.js} +110 -222
- package/dist/{PayoutDetailsDropin-BjwvWgAh.js → PayoutDetailsDropin-CEbLLMkT.js} +243 -156
- package/dist/{PayoutDetailsPage-CsjL4b5T.js → PayoutDetailsPage-z-U987Uw.js} +9 -9
- package/dist/{CountryField-VqtzxZj3.js → RadioGroup-B_lHSMq9.js} +168 -13
- package/dist/{Review-B4-4DJTu.js → Review-DRxhY1FP.js} +8 -8
- package/dist/RootBusinessDetailsPage-Dgezqj6k.js +68 -0
- package/dist/{RootBusinessLinesPage-B8ZXd9tg.js → RootBusinessLinesPage-DHL_atq0.js} +34 -30
- package/dist/{RootIndividualDetailsPage-8O0fCQUV.js → RootIndividualDetailsPage-DmF9Av8J.js} +12 -12
- package/dist/{Select-Da38B3jF.js → Select-PqhoL_oQ.js} +11 -8
- package/dist/{useSettingsContext-Bpf4UqRT.js → SettingsContext-Dl-9WWCI.js} +2 -8
- package/dist/{SignPCIComponent-muiSGWD3.js → SignPCIComponent-BT1s1NJx.js} +44 -43
- package/dist/{SingpassSelection-C1I_GGrp.js → SingpassSelection-B91AO2sW.js} +7 -6
- package/dist/SoleProprietorshipPage-Cy7D2N5d.js +70 -0
- package/dist/{SourceOfFundsPage-DboMDhBD.js → SourceOfFundsPage-Co81WwYJ.js} +40 -38
- package/dist/SourceOfFundsWorkflow-xv-wmYjn.js +28 -0
- package/dist/{utils-CZ_zNEGG.js → StateField-uZDljrxJ.js} +82 -8
- package/dist/Step-cy9IjT4h.js +195 -0
- package/dist/{StructuredList-BfGbwPzv.js → StructuredList-BKWmLAYe.js} +6 -5
- package/dist/Task-B05SmIvp.js +129 -0
- package/dist/TaskGroup-CCneo6Tt.js +46 -0
- package/dist/{TaskListItem-CQWioWnf.js → TaskListItem-DRUWL-3r.js} +12 -58
- package/dist/TaskStepperContextProvider-DuM9tlet.js +81 -0
- package/dist/{TaskVerificationStatus-DMj8rsZ_.js → TaskVerificationStatus-DCfFNRJc.js} +4 -3
- package/dist/TaxInformationFieldGroup-pBDZmrIx.js +288 -0
- package/dist/{TaxReportingDropin-DYnviwxF.js → TaxReportingDropin-DLiaJcDy.js} +23 -21
- package/dist/TaxReportingWorkflow-BD7DTvXl.js +28 -0
- package/dist/{TermsOfServiceManagement-CFDcCJkl.js → TermsOfServiceManagement-dIJFQSNn.js} +49 -47
- package/dist/{TextArea-CoS-i-FF.js → TextArea-E1LIeudB.js} +7 -13
- package/dist/{TrustDetailsPage-6GCRIYdn.js → TrustDetailsPage-CVIKeFQW.js} +433 -442
- package/dist/TrustMemberCompanyPage-B5F1D3QE.js +109 -0
- package/dist/{TrustMemberIndividualPage-41KD5wSm.js → TrustMemberIndividualPage-BovRg-Mq.js} +12 -12
- package/dist/{TrustMemberRoleAndTypePage-BkoEQlM_.js → TrustMemberRoleAndTypePage-CofPOUX5.js} +48 -47
- package/dist/{TrustMembersOverview-UT6oZiPL.js → TrustMembersOverview-d_SZlrW5.js} +42 -40
- package/dist/Typography-CAc_f5Iq.js +80 -0
- package/dist/UboTaskItem-CG07K7K_.js +115 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-BAzZlvV1.js → UnincorporatedPartnershipIndividualPage-kobyT_Sc.js} +11 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DElRc81a.js → UnincorporatedPartnershipMemberCompanyPage-MvFM-iYR.js} +36 -36
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CTRU0rjh.js → UnincorporatedPartnershipMemberRoleAndTypePage-DWu78HTQ.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-ChdENSmG.js → UnincorporatedPartnershipMembersOverview-B-WsX9qd.js} +10 -9
- package/dist/{VerificationErrorAlert-ByZiFlOj.js → VerificationErrorAlert-D6Fwj_k3.js} +5 -5
- package/dist/Workflow-CZMd0lUc.js +228 -0
- package/dist/{accountHolderUtils-CU6LiED8.js → accountHolderUtils-Bf4y2QFq.js} +3 -3
- package/dist/adyen-business-financing.js +35 -35
- package/dist/adyen-individual-configuration.js +37 -37
- package/dist/adyen-individual-status.js +34 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +67 -63
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +44 -41
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{utils-CG6SkgWX.js → bafinUtils-CT-a64QP.js} +684 -167
- package/dist/{bg-BG-qQc6pN4K.js → bg-BG-BeFIiwVZ.js} +3 -1
- package/dist/bg-BG-CXqERnFH.js +7 -0
- package/dist/bg-BG-D4mSRREu.js +7 -0
- package/dist/{bg-BG-Smu9r9Kp.js → bg-BG-DpSUitm0.js} +12 -2
- package/dist/{constants-DXvDP3Pp.js → constants-B8ghpskV.js} +5 -5
- package/dist/{countries-CPj8hkLs.js → countries-BE4iGVAo.js} +1 -1
- package/dist/{country-IYuKDSdC.js → country-DkgapJ4w.js} +2 -2
- package/dist/cs-CZ-C_VaBRMS.js +23 -0
- package/dist/cs-CZ-DAXMHrMi.js +7 -0
- package/dist/{cs-CZ-Jsmhr_B3.js → cs-CZ-DHfA1xjQ.js} +3 -1
- package/dist/cs-CZ-DySBJFlc.js +7 -0
- package/dist/{da-DK-CXZXQspY.js → da-DK--DlccBc0.js} +3 -1
- package/dist/da-DK-BVaEiAWd.js +7 -0
- package/dist/da-DK-BfaKncp5.js +23 -0
- package/dist/da-DK-BuvKW6Sq.js +7 -0
- package/dist/de-DE-BQaqplTp.js +7 -0
- package/dist/{de-DE-BRJ0jBty.js → de-DE-B_iHAkLT.js} +3 -1
- package/dist/de-DE-BqujMxXu.js +7 -0
- package/dist/de-DE-GUfA18ps.js +23 -0
- package/dist/{decisionMaker-Dt53wKqO.js → decisionMaker-M0Tm92JR.js} +1 -1
- package/dist/{decisionMakerRoles-CTy0faoW.js → decisionMakerRoles-DbKnutwk.js} +3 -3
- package/dist/el-GR-B1NjHThy.js +7 -0
- package/dist/el-GR-C6jyW53I.js +7 -0
- package/dist/{el-GR-DEBvBgI-.js → el-GR-CJqHd-CD.js} +12 -2
- package/dist/{el-GR-BMGYrO4V.js → el-GR-D09thseu.js} +3 -1
- package/dist/en-US-C3i5Oge2.js +7 -0
- package/dist/en-US-CJPD8qHc.js +7 -0
- package/dist/{en-US-BFM81i9K.js → en-US-CO9xzDL5.js} +1 -4
- package/dist/en-US-D4NrsDmW.js +7 -0
- package/dist/{en-US.instructions-pRLq5gXB.js → en-US.instructions-CqF1qVJV.js} +2 -1
- package/dist/{entityAssociationUtil-DLXInibJ.js → entityAssociationUtil-CLBR9osP.js} +1 -1
- package/dist/{error-eM2RouhV.js → error-DIUYkZG-.js} +3 -3
- package/dist/es-ES-BM5RTwb7.js +7 -0
- package/dist/{es-ES-pt4yy_U2.js → es-ES-Bpxn6XGC.js} +3 -1
- package/dist/es-ES-C64v4NJD.js +7 -0
- package/dist/es-ES-IobfbI71.js +23 -0
- package/dist/es-LA--YYwwbVo.js +23 -0
- package/dist/es-LA-B7pY2dp1.js +7 -0
- package/dist/es-LA-CcMAcJ7u.js +7 -0
- package/dist/{es-LA-CGrMi4rR.js → es-LA-CjxlB1WZ.js} +3 -1
- package/dist/et-EE-DqYCOl2Y.js +23 -0
- package/dist/{et-EE-dDMeDiTJ.js → et-EE-Dtc7YYb4.js} +3 -1
- package/dist/{et-EE-BGpsJPjk.js → et-EE-FtKFvr3u.js} +2 -2
- package/dist/{et-EE-OAYKzRjG.js → et-EE-wDQx9HoZ.js} +2 -2
- package/dist/{fi-FI-iRb7nS7X.js → fi-FI-DBhYlO4B.js} +3 -1
- package/dist/{fi-FI-BTG87BwH.js → fi-FI-DSCFTLoG.js} +12 -2
- package/dist/fi-FI-KMP96Qxc.js +7 -0
- package/dist/fi-FI-SFw2grVp.js +7 -0
- package/dist/{MaskedInput-CoYYGwNR.js → form-rules-DCZ-uyGo.js} +378 -14
- package/dist/formHook-Dgi2CgbT.js +24 -0
- package/dist/{formatValidationError-ORR7cERM.js → formatValidationError-HjSxukRu.js} +2 -2
- package/dist/fr-FR-C8IPWMDL.js +7 -0
- package/dist/fr-FR-Dsh0Vb20.js +7 -0
- package/dist/{fr-FR-DUrcyeOg.js → fr-FR-N8UDU_0Y.js} +3 -1
- package/dist/fr-FR-ZWnkRO7z.js +23 -0
- package/dist/{AnalyticsContext-BnRQ9H1u.js → genUtils-Ce61IJs8.js} +2 -17
- package/dist/{getLegalEntityCountry-BHh7Ux8v.js → getLegalEntityCountry-CNE5uei8.js} +1 -1
- package/dist/{getName-C5jqdkJg.js → getName-s7qmFean.js} +2 -2
- package/dist/{getProblemsForEntity-DStlTvE-.js → getProblemsForEntity-CTxd78-9.js} +4 -4
- package/dist/{getTrustedDecisionMakers-CAbhvydj.js → getTrustedDecisionMakers-DWVtW7JE.js} +2 -2
- package/dist/hr-HR-2a3ywU0e.js +23 -0
- package/dist/hr-HR-COvc9TZy.js +7 -0
- package/dist/hr-HR-Cqgf9B0v.js +7 -0
- package/dist/{hr-HR-LnDb18bf.js → hr-HR-GLRwxTIZ.js} +3 -1
- package/dist/{http-D6AdUBhO.js → http-DsJtugN1.js} +2 -2
- package/dist/hu-HU-BOXBLK1a.js +23 -0
- package/dist/{hu-HU-VLUIAFMp.js → hu-HU-DIjDe5aa.js} +2 -2
- package/dist/{hu-HU-D9Avt-9f.js → hu-HU-DyM1X3r6.js} +2 -2
- package/dist/{hu-HU-Cc7wqn6A.js → hu-HU-s1MKqwI4.js} +3 -1
- package/dist/{isEmpty-MyMko24J.js → isEmpty-DD8Insy0.js} +2 -2
- package/dist/{it-IT-BPA_Upt_.js → it-IT-2reNk09A.js} +3 -1
- package/dist/it-IT-BKTDLRBT.js +7 -0
- package/dist/it-IT-Dj2NtH7G.js +23 -0
- package/dist/it-IT-xXO07yyz.js +7 -0
- package/dist/{ja-JP-CYb1SAoz.js → ja-JP-Bf97gKqg.js} +3 -1
- package/dist/ja-JP-BhHK_ru2.js +7 -0
- package/dist/ja-JP-DbLRpEVj.js +7 -0
- package/dist/{ja-JP-Yi2wExJE.js → ja-JP-lXTbRXBb.js} +12 -2
- package/dist/{localizeDateString-D-MlYN4V.js → localizeDateString-Dxlqr4rL.js} +2 -2
- package/dist/logger-Z8AeTE4x.js +29 -0
- package/dist/{lt-LT-B9Nm7OZQ.js → lt-LT-BUgsY7cD.js} +3 -1
- package/dist/lt-LT-Be3q6tyu.js +7 -0
- package/dist/lt-LT-Btr5el2q.js +7 -0
- package/dist/lt-LT-COUN4qC5.js +23 -0
- package/dist/lv-LV-8wOWTo3r.js +7 -0
- package/dist/{lv-LV-DkjsE74u.js → lv-LV-BpniO6xp.js} +3 -1
- package/dist/lv-LV-DCeyOqHY.js +7 -0
- package/dist/lv-LV-DKbvF9t_.js +23 -0
- package/dist/{mapExistingFile-LvvzPjnk.js → mapExistingFile-R6-FnjjY.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DiN9hWC4.js → mapJpAddressSchemaToAddressLocalizations-CnoGHZz_.js} +3 -3
- package/dist/{mapLegalEntityToIndividualSchema-BlX7EATz.js → mapLegalEntityToIndividualSchema-C5lQR5IO.js} +10 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js → mapTransferInstrumentToPayoutAccount-D-RdVquH.js} +3 -3
- package/dist/nl-NL-CdHkQcOS.js +7 -0
- package/dist/nl-NL-CtK4OR3t.js +23 -0
- package/dist/nl-NL-Dyb3tkBi.js +7 -0
- package/dist/{nl-NL-BtdPxlFm.js → nl-NL-_B3Ey_x1.js} +3 -1
- package/dist/no-NO-B-xCUkf4.js +7 -0
- package/dist/no-NO-CxZumo2p.js +23 -0
- package/dist/{no-NO-BIhMgC99.js → no-NO-CytzrDfA.js} +3 -1
- package/dist/no-NO-DXDddmYv.js +7 -0
- package/dist/pl-PL-CBwRmIu5.js +7 -0
- package/dist/pl-PL-Cc09pXO8.js +7 -0
- package/dist/pl-PL-Csv1Lg5y.js +23 -0
- package/dist/{pl-PL-BT6NmGgO.js → pl-PL-DLBeIbY5.js} +3 -1
- package/dist/{processCapabilities-BSpmJOEd.js → processCapabilities-uXoRmB5x.js} +2 -2
- package/dist/{processValidationErrors-BKl8a-jj.js → processValidationErrors-Cm3cBtN7.js} +3 -3
- package/dist/{pt-BR-B0SUw4uu.js → pt-BR-Cf5Jif3w.js} +3 -1
- package/dist/pt-BR-DA4PVtVa2.js +7 -0
- package/dist/pt-BR-IBsCApUj.js +23 -0
- package/dist/pt-BR-hMhyqixD.js +7 -0
- package/dist/pt-PT-CYKk0WDI.js +23 -0
- package/dist/{pt-PT-KikTTc5A.js → pt-PT-Cg7oMqTO.js} +3 -1
- package/dist/pt-PT-D2qX_lOd.js +7 -0
- package/dist/pt-PT-QU0CQs-d.js +7 -0
- package/dist/{resolveEnvironment-hjjNXWog.js → resolveEnvironment-wbFNXSP-.js} +68 -46
- package/dist/ro-RO-23qEGblz.js +23 -0
- package/dist/ro-RO-CQjOM8e-.js +7 -0
- package/dist/ro-RO-DNye-gMC.js +7 -0
- package/dist/{ro-RO-DajmyI4j.js → ro-RO-UHWXt9rv.js} +3 -1
- package/dist/sk-SK-2jlbtz2r.js +7 -0
- package/dist/{sk-SK-DJWcs0qJ.js → sk-SK-BQHhBpDH.js} +3 -1
- package/dist/sk-SK-CwbBfCsU.js +7 -0
- package/dist/sk-SK-D8j8B4ng.js +23 -0
- package/dist/sl-SI-333ryFnM.js +23 -0
- package/dist/sl-SI-9XdXVgB8.js +7 -0
- package/dist/{sl-SI-C_QeUL6t.js → sl-SI-CTrggdef.js} +3 -1
- package/dist/sl-SI-Cyx0QtxG.js +7 -0
- package/dist/style.css +693 -672
- package/dist/styles-DYaAeu4q.js +693 -672
- package/dist/{sv-SE-D3MOTV-T.js → sv-SE-Bk55FXGN.js} +3 -1
- package/dist/sv-SE-CqhSdYBe.js +7 -0
- package/dist/sv-SE-CwsP7bTA.js +23 -0
- package/dist/sv-SE-kbf3zbjX.js +7 -0
- package/dist/{translation-DH4IlMCP.js → translation-BOm4lmPx.js} +3 -271
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +5 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +32 -39
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/{useCustomerDataV2.d.ts → useCustomerData.d.ts} +4 -9
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow/IdentityScreening.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/{IdentityScreeningWorkflow.d.ts → IdentityScreeningWorkflow/IdentityScreeningWorkflow.d.ts} +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowEndState → Layout/Workflow/WorkflowEndState}/WorkflowEndState.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowHeading → Layout/Workflow/WorkflowHeading}/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +4 -5
- package/dist/types/adaptiveWorkflow/components/types.d.ts +4 -108
- package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/formHook.d.ts +2 -2
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +2 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +0 -17
- package/dist/types/components/Business/utils/utils.d.ts +0 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +0 -22
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +4 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +8 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +23 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +6 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +3 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +4 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +7 -2
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +1 -0
- package/dist/types/components/Shared/VerifiedWith/VerifiedWith.d.ts +7 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/constants.d.ts +2 -0
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +13 -0
- package/dist/types/components/Trust/forms/Trust/form-ids.d.ts +2 -0
- package/dist/types/components/Trust/{tasks/TrustDropin/Trust.d.ts → forms/Trust/forms.d.ts} +3 -4
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -20
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +2 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +3 -3
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +15 -0
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +19 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BLWT7WnU.js → types-Ai_80DXu.js} +1 -1
- package/dist/{types-B4LsyK73.js → types-BeveNAZK.js} +1 -1
- package/dist/{types-Bm4RGrSI.js → types-CdxNdaM6.js} +1 -1
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +28 -0
- package/dist/{useAssociatedLegalEntity-CzQlHWXy.js → useAssociatedLegalEntity-BdcoiUby.js} +3 -3
- package/dist/{useBusinessDetailsData-D2MIWs9I.js → useBusinessDetailsData-D6CY5gWd.js} +87 -182
- package/dist/{useBusinessLines-D-rc-Z6G.js → useBusinessLines-BhSN6qCH.js} +2 -2
- package/dist/{useCanSeeIntroduction-DAYvQxRg.js → useCanSeeIntroduction-Ci3FC4DJ.js} +4 -5
- package/dist/{useCreateLegalEntity-Ctdmk3Ky.js → useCreateLegalEntity-CYZd_62a.js} +2 -2
- package/dist/{useDataMissingRemediations-DNZ_UDbI.js → useDataMissingRemediations-Cd-jucOu.js} +3 -3
- package/dist/{useForm-BkEqxjgn.js → useForm-D9htlwjI.js} +5 -5
- package/dist/useHideTaskStepper-MdPt1zI8.js +25 -0
- package/dist/{useId-B2M7rcNd.js → useId-zuKUQ8ly.js} +4 -4
- package/dist/useIndustryCodes-uAj90IyS.js +32 -0
- package/dist/{useLegalEntity-DR51Q4mE.js → useLegalEntity-QQXN6YOm.js} +2 -2
- package/dist/{useNavigate-CeEPS3BR.js → useNavigate-BPlIHbOr.js} +33 -33
- package/dist/{useOnboardingStatus-op5TyMUR.js → useOnboardingStatus-CsGUjkm-.js} +2 -2
- package/dist/{usePciQuestionnaireList-BZsgbrTy.js → usePciQuestionnaireList-CFNJD8pS.js} +2 -2
- package/dist/{useSalesChannels-Mi6DmHab.js → useSalesChannels-CSp1PYlL.js} +5 -5
- package/dist/{useScenarios-Bne3C0PV.js → useScenarios-CGcmXgJv.js} +3 -3
- package/dist/{useTaskLandedEvent-C7fcguXK.js → useTaskLandedEvent-BCvoFRym.js} +2 -2
- package/dist/{useTaskStatus-Be6XyW54.js → useTaskStatus-CgrhdaE_.js} +2 -2
- package/dist/useTaskStepperContext-BIEhTt1x.js +15 -0
- package/dist/{useTermsOfServiceStatus-D0NHUKl_.js → useTermsOfServiceStatus-DbJDklA2.js} +2 -2
- package/dist/{useTrustMembers-BKaKSFec.js → useTrustMembers-BR2VfPMj.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-C5CNWe_U.js → useUnincorporatedPartnershipMembers-00l8eNLk.js} +5 -5
- package/dist/{useUpdateBusinessLines-D6D9DAn1.js → useUpdateBusinessLines-DCKYTzxd.js} +4 -29
- package/dist/{useUpdateLegalEntity-wZJRlSHa.js → useUpdateLegalEntity-B6oM8kXX.js} +3 -3
- package/dist/{utils-Bp2bSMJk.js → utils-2s4JuDg2.js} +8 -8
- package/dist/{utils-DwujAUJC.js → utils-Br7Ah3uy.js} +1 -1
- package/dist/utils-CFaGY5aD.js +52 -0
- package/dist/{validate-BfsM7uNT.js → validate-B7VTIiia.js} +1 -1
- package/dist/{validate-BNu91k9j.js → validate-D3UP_q_2.js} +10 -6
- package/dist/validate-Pfp0KXdh.js +125 -0
- package/dist/{validate-CnZK23pT.js → validate-_NwYQ8tj.js} +4 -4
- package/dist/validateExtractionResult-BnSV5Z6F.js +343 -0
- package/dist/{validationError-DTNzhkYS.js → validationError-BgIcYxoa.js} +2 -2
- package/package.json +2 -2
- package/dist/AdaptiveWorkflow-CD9PxlZB.js +0 -5112
- package/dist/Address-Bcs8E1cy.js +0 -133
- package/dist/GlobalEntryModal-DUiam_Uk.js +0 -353
- package/dist/JpAddress-DwUCwWLj.js +0 -284
- package/dist/JpAddress.module-D2L5W268.js +0 -48
- package/dist/RadioGroup-DH-VltHL.js +0 -84
- package/dist/RootBusinessDetailsPage-DxRO2WXZ.js +0 -68
- package/dist/SoleProprietorshipPage-DLUSIiSo.js +0 -70
- package/dist/TrustMemberCompanyPage-DeRhNqs1.js +0 -109
- package/dist/bafinUtils-CMvRbzzm.js +0 -276
- package/dist/bg-BG-BkIvSbsH.js +0 -7
- package/dist/bg-BG-Bmveyt6S.js +0 -7
- package/dist/cs-CZ-BQ5B0-Kt.js +0 -13
- package/dist/cs-CZ-CPvgcrDs.js +0 -7
- package/dist/cs-CZ-D5CQd_YI.js +0 -7
- package/dist/da-DK-Bl0-8FN4.js +0 -7
- package/dist/da-DK-CXAIXO3c.js +0 -13
- package/dist/da-DK-D5969QKP.js +0 -7
- package/dist/de-DE-DFQGGPCj.js +0 -13
- package/dist/de-DE-Hah2EvAY.js +0 -7
- package/dist/de-DE-uDUBu-3n.js +0 -7
- package/dist/debugStore-DpSgCNGn.js +0 -40
- package/dist/el-GR-C9KGlGa7.js +0 -7
- package/dist/el-GR-DWh7gn7M.js +0 -7
- package/dist/en-US-DqhKW1eC.js +0 -7
- package/dist/en-US-MqobYcqc.js +0 -7
- package/dist/en-US-X8pjkwa3.js +0 -7
- package/dist/es-ES-C7XCTACS.js +0 -7
- package/dist/es-ES-DSwi-qfd.js +0 -7
- package/dist/es-ES-_qbfha1o.js +0 -13
- package/dist/es-LA-0IrX8yr2.js +0 -7
- package/dist/es-LA-1H8dAUVR.js +0 -7
- package/dist/es-LA-DF0v3VMe.js +0 -13
- package/dist/et-EE-evCiUrFW.js +0 -13
- package/dist/fi-FI-BdrXeX9d.js +0 -7
- package/dist/fi-FI-Cdof5NRG.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/form-rules-DV3hxYqZ.js +0 -359
- package/dist/fr-FR-DIiBHkhs.js +0 -13
- package/dist/fr-FR-NOULV1vy.js +0 -7
- package/dist/fr-FR-hleHEr-Y.js +0 -7
- package/dist/hr-HR--ti3n_XO.js +0 -7
- package/dist/hr-HR-2h3d5-q3.js +0 -7
- package/dist/hr-HR-DofgeWWO.js +0 -13
- package/dist/hu-HU-FdLZGnBz.js +0 -13
- package/dist/it-IT-CWIAGNlE.js +0 -7
- package/dist/it-IT-CXgZZgyU.js +0 -13
- package/dist/it-IT-Dq5z7p1-.js +0 -7
- package/dist/ja-JP-C1c2UPpy.js +0 -7
- package/dist/ja-JP-Dyhw0Ycj.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/lt-LT-BMI4JzrS.js +0 -7
- package/dist/lt-LT-BZ6seLuB.js +0 -13
- package/dist/lt-LT-C62dFtWW.js +0 -7
- package/dist/lv-LV-CMYrAWqu.js +0 -13
- package/dist/lv-LV-LkNZQ__4.js +0 -7
- package/dist/lv-LV-W0I-UUyj.js +0 -7
- package/dist/nl-NL-C9HoBicG.js +0 -7
- package/dist/nl-NL-CC2r7Ldv.js +0 -7
- package/dist/nl-NL-CiH1raQa.js +0 -13
- package/dist/no-NO-Bo9rlROU.js +0 -7
- package/dist/no-NO-Ce2vzrp7.js +0 -13
- package/dist/no-NO-V7_rz3uN.js +0 -7
- package/dist/patternValidators-B21mvXul.js +0 -73
- package/dist/pl-PL-2QyKX67Y.js +0 -7
- package/dist/pl-PL-STp7eeFE.js +0 -7
- package/dist/pl-PL-aErZF5Xz.js +0 -13
- package/dist/pt-BR-CFGpH3BW.js +0 -7
- package/dist/pt-BR-D08Fo1qY.js +0 -7
- package/dist/pt-BR-hRRebYjo.js +0 -13
- package/dist/pt-PT-BAQWYDe6.js +0 -7
- package/dist/pt-PT-BHR4CEnv.js +0 -7
- package/dist/pt-PT-UAIvemf-.js +0 -13
- package/dist/ro-RO-BJeKitCz.js +0 -13
- package/dist/ro-RO-ni-ZNqXU.js +0 -7
- package/dist/ro-RO-wG0rfL5w.js +0 -7
- package/dist/sk-SK-DJinBnS1.js +0 -7
- package/dist/sk-SK-DQAGAOJW.js +0 -7
- package/dist/sk-SK-ztSYyXUE.js +0 -13
- package/dist/sl-SI-B-MLX0nT.js +0 -7
- package/dist/sl-SI-BY4TzP-F.js +0 -13
- package/dist/sl-SI-DUaLO_J7.js +0 -7
- package/dist/sv-SE-5uxyEq2a.js +0 -7
- package/dist/sv-SE-CNQCI2nX.js +0 -7
- package/dist/sv-SE-CrUbxniG.js +0 -13
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +0 -46
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/components/DynamicForm/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/DynamicForm/useCustomerData.d.ts +0 -25
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +0 -5
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +0 -18
- package/dist/types/adaptiveWorkflow/components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxReportingWorkflow/TaxReportingWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +0 -34
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +0 -16
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +0 -7
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +0 -7
- package/dist/uppercase-DvjwUM0n.js +0 -7
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContextProvider.d.ts +0 -0
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/useWorkflowContext.d.ts +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "667a893f-0a8b-4db5-a0a8-2a79b16cc78e", e._sentryDebugIdIdentifier = "sentry-dbid-667a893f-0a8b-4db5-a0a8-2a79b16cc78e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-wbFNXSP-.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
+
import { t as Button } from "./Button-DSD_afG_.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
10
|
+
import { _ as LandingLayout } from "./form-rules-DCZ-uyGo.js";
|
|
11
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-CFk22iXk.js";
|
|
12
|
+
import { t as Image } from "./Image-D82terx4.js";
|
|
13
|
+
import { t as Link } from "./Link-B-gN0d8l.js";
|
|
13
14
|
import { lazy } from "preact/compat";
|
|
14
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
15
16
|
import { Show } from "@preact/signals/utils";
|
|
@@ -21,32 +22,32 @@ var GlobalEntryPage = () => {
|
|
|
21
22
|
addResourceBundles(i18n, [{
|
|
22
23
|
ns: "globalEntry",
|
|
23
24
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
24
|
-
"../language/bg-BG.json": () => import("./bg-BG-
|
|
25
|
-
"../language/cs-CZ.json": () => import("./cs-CZ-
|
|
26
|
-
"../language/da-DK.json": () => import("./da-DK-
|
|
27
|
-
"../language/de-DE.json": () => import("./de-DE-
|
|
28
|
-
"../language/el-GR.json": () => import("./el-GR-
|
|
25
|
+
"../language/bg-BG.json": () => import("./bg-BG-DpSUitm0.js"),
|
|
26
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-C_VaBRMS.js"),
|
|
27
|
+
"../language/da-DK.json": () => import("./da-DK-BfaKncp5.js"),
|
|
28
|
+
"../language/de-DE.json": () => import("./de-DE-GUfA18ps.js"),
|
|
29
|
+
"../language/el-GR.json": () => import("./el-GR-CJqHd-CD.js"),
|
|
29
30
|
"../language/en-US.json": () => import("./en-US-Del1h5SS.js"),
|
|
30
|
-
"../language/es-ES.json": () => import("./es-ES-
|
|
31
|
-
"../language/es-LA.json": () => import("./es-LA
|
|
32
|
-
"../language/et-EE.json": () => import("./et-EE-
|
|
33
|
-
"../language/fi-FI.json": () => import("./fi-FI-
|
|
34
|
-
"../language/fr-FR.json": () => import("./fr-FR-
|
|
35
|
-
"../language/hr-HR.json": () => import("./hr-HR-
|
|
36
|
-
"../language/hu-HU.json": () => import("./hu-HU-
|
|
37
|
-
"../language/it-IT.json": () => import("./it-IT-
|
|
38
|
-
"../language/ja-JP.json": () => import("./ja-JP-
|
|
39
|
-
"../language/lt-LT.json": () => import("./lt-LT-
|
|
40
|
-
"../language/lv-LV.json": () => import("./lv-LV-
|
|
41
|
-
"../language/nl-NL.json": () => import("./nl-NL-
|
|
42
|
-
"../language/no-NO.json": () => import("./no-NO-
|
|
43
|
-
"../language/pl-PL.json": () => import("./pl-PL-
|
|
44
|
-
"../language/pt-BR.json": () => import("./pt-BR-
|
|
45
|
-
"../language/pt-PT.json": () => import("./pt-PT-
|
|
46
|
-
"../language/ro-RO.json": () => import("./ro-RO-
|
|
47
|
-
"../language/sk-SK.json": () => import("./sk-SK-
|
|
48
|
-
"../language/sl-SI.json": () => import("./sl-SI-
|
|
49
|
-
"../language/sv-SE.json": () => import("./sv-SE-
|
|
31
|
+
"../language/es-ES.json": () => import("./es-ES-IobfbI71.js"),
|
|
32
|
+
"../language/es-LA.json": () => import("./es-LA--YYwwbVo.js"),
|
|
33
|
+
"../language/et-EE.json": () => import("./et-EE-DqYCOl2Y.js"),
|
|
34
|
+
"../language/fi-FI.json": () => import("./fi-FI-DSCFTLoG.js"),
|
|
35
|
+
"../language/fr-FR.json": () => import("./fr-FR-ZWnkRO7z.js"),
|
|
36
|
+
"../language/hr-HR.json": () => import("./hr-HR-2a3ywU0e.js"),
|
|
37
|
+
"../language/hu-HU.json": () => import("./hu-HU-BOXBLK1a.js"),
|
|
38
|
+
"../language/it-IT.json": () => import("./it-IT-Dj2NtH7G.js"),
|
|
39
|
+
"../language/ja-JP.json": () => import("./ja-JP-lXTbRXBb.js"),
|
|
40
|
+
"../language/lt-LT.json": () => import("./lt-LT-COUN4qC5.js"),
|
|
41
|
+
"../language/lv-LV.json": () => import("./lv-LV-DKbvF9t_.js"),
|
|
42
|
+
"../language/nl-NL.json": () => import("./nl-NL-CtK4OR3t.js"),
|
|
43
|
+
"../language/no-NO.json": () => import("./no-NO-CxZumo2p.js"),
|
|
44
|
+
"../language/pl-PL.json": () => import("./pl-PL-Csv1Lg5y.js"),
|
|
45
|
+
"../language/pt-BR.json": () => import("./pt-BR-IBsCApUj.js"),
|
|
46
|
+
"../language/pt-PT.json": () => import("./pt-PT-CYKk0WDI.js"),
|
|
47
|
+
"../language/ro-RO.json": () => import("./ro-RO-23qEGblz.js"),
|
|
48
|
+
"../language/sk-SK.json": () => import("./sk-SK-D8j8B4ng.js"),
|
|
49
|
+
"../language/sl-SI.json": () => import("./sl-SI-333ryFnM.js"),
|
|
50
|
+
"../language/sv-SE.json": () => import("./sv-SE-CwsP7bTA.js")
|
|
50
51
|
}), `../language/${lang}.json`, 3)
|
|
51
52
|
}]);
|
|
52
53
|
if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -0,0 +1,175 @@
|
|
|
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] = "4437b10f-b030-47f1-b7e0-4f6e235f74a4", e._sentryDebugIdIdentifier = "sentry-dbid-4437b10f-b030-47f1-b7e0-4f6e235f74a4");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
|
+
import { Suspense, lazy } from "preact/compat";
|
|
7
|
+
import cx from "classnames";
|
|
8
|
+
import { jsx } from "preact/jsx-runtime";
|
|
9
|
+
var Svg_module_default = {
|
|
10
|
+
"svg-icon": "_svg-icon_cdxs7_1",
|
|
11
|
+
svgIcon: "_svg-icon_cdxs7_1",
|
|
12
|
+
"svg-image": "_svg-image_cdxs7_18",
|
|
13
|
+
svgImage: "_svg-image_cdxs7_18"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/ui/atoms/Svg/svgs.ts
|
|
17
|
+
/**
|
|
18
|
+
* Icons are fetched from @adyen/ui-assets-icons-16 package
|
|
19
|
+
* @see https://adyen-ui-assets.netlify.app/
|
|
20
|
+
*
|
|
21
|
+
* This is a subset of the available icons in the package, not because
|
|
22
|
+
* of a specific optimization, but vite needs complete paths to icons as
|
|
23
|
+
* shown below for static analysis.
|
|
24
|
+
*
|
|
25
|
+
* How to add a new icon?
|
|
26
|
+
* Search for it in the url/package above, add the entry below changing
|
|
27
|
+
* the object key and the svg filename.
|
|
28
|
+
*/
|
|
29
|
+
var icons = {
|
|
30
|
+
"arrow-right": lazy(() => import("./arrow-right-Bk-ewsex.js")),
|
|
31
|
+
bag: lazy(() => import("./bag-9BNq_QQO.js")),
|
|
32
|
+
bank: lazy(() => import("./bank-BRbxxVK5.js")),
|
|
33
|
+
bin: lazy(() => import("./bin-DE1613_5.js")),
|
|
34
|
+
check: lazy(() => import("./checkmark-BuqDN4WO.js")),
|
|
35
|
+
certificate: lazy(() => import("./certificate-9gDKvXCm.js")),
|
|
36
|
+
checkmark: lazy(() => import("./checkmark-circle-fill-BfcUovCf.js")),
|
|
37
|
+
"checkmark-circle": lazy(() => import("./checkmark-circle-OqcwA6N6.js")),
|
|
38
|
+
"checkmark-small": lazy(() => import("./checkmark-small-CBORXg_J.js")),
|
|
39
|
+
"chevron-down": lazy(() => import("./chevron-down-CjRta08O.js")),
|
|
40
|
+
"chevron-right": lazy(() => import("./chevron-right-B2GkHG0J.js")),
|
|
41
|
+
"chevron-left": lazy(() => import("./chevron-left-BEm04mIh.js")),
|
|
42
|
+
"chevron-up": lazy(() => import("./chevron-up-BKfe5Btb.js")),
|
|
43
|
+
"cash-stack": lazy(() => import("./cash-stack-DuKKc4Qj.js")),
|
|
44
|
+
circle: lazy(() => import("./circle-C-uuRI8F.js")),
|
|
45
|
+
"circle-small-filled": lazy(() => import("./circle-small-filled-Bkh5_ZEu.js")),
|
|
46
|
+
clock: lazy(() => import("./clock-BWfWiMxz.js")),
|
|
47
|
+
company: lazy(() => import("./headquarter-3o2GHW5H.js")),
|
|
48
|
+
capital: lazy(() => import("./capital-aNk7ragc.js")),
|
|
49
|
+
"company-2": lazy(() => import("./hotel-pZlrEAK8.js")),
|
|
50
|
+
contract: lazy(() => import("./contract-PFVBW8xa.js")),
|
|
51
|
+
cross: lazy(() => import("./cross-B37j1-r4.js")),
|
|
52
|
+
coins: lazy(() => import("./coins-Cw-jDTUz.js")),
|
|
53
|
+
"decision-maker": lazy(() => import("./person-Da15_s3G.js")),
|
|
54
|
+
document: lazy(() => import("./document-1-B3vw8uuK.js")),
|
|
55
|
+
download: lazy(() => import("./download-CthdK4dV.js")),
|
|
56
|
+
edit: lazy(() => import("./edit-1-BW7NwWP7.js")),
|
|
57
|
+
"external-link": lazy(() => import("./external-link-CFgynH5A.js")),
|
|
58
|
+
"graph-up": lazy(() => import("./graph-up-4qLbS2Ds.js")),
|
|
59
|
+
graph: lazy(() => import("./graph-DrxuzQF7.js")),
|
|
60
|
+
gift: lazy(() => import("./gift-0jLCte2h.js")),
|
|
61
|
+
"field-error": lazy(() => import("./warning-circle-fill-BDTmKU1s.js")),
|
|
62
|
+
headquarter: lazy(() => import("./headquarter-3o2GHW5H.js")),
|
|
63
|
+
"info-circle": lazy(() => import("./info-DJW5JooY.js")),
|
|
64
|
+
"info-circle-filled": lazy(() => import("./info-filled-C5mP6T4Z.js")),
|
|
65
|
+
image: lazy(() => import("./image-tfgNnE3G.js")),
|
|
66
|
+
location: lazy(() => import("./location-Dk0rAiaT.js")),
|
|
67
|
+
"more-horiz": lazy(() => import("./options-horizontal-CTUn7IEx.js")),
|
|
68
|
+
mail: lazy(() => import("./mail-DG7MBDNE.js")),
|
|
69
|
+
minusCircleFilled: lazy(() => import("./minus-circle-filled-DglqAgJW.js")),
|
|
70
|
+
payByLinkPlane: lazy(() => import("./pay-by-link-plane-Sa_qkL8C.js")),
|
|
71
|
+
payout: lazy(() => import("./payout-BAYSxSqU.js")),
|
|
72
|
+
pci: lazy(() => import("./checkmark-circle-OqcwA6N6.js")),
|
|
73
|
+
plus: lazy(() => import("./plus-BQccvKkd.js")),
|
|
74
|
+
plusCircleFilled: lazy(() => import("./plus-circle-filled-CqC30FRL.js")),
|
|
75
|
+
recurring: lazy(() => import("./recurring-DSR1fNMh.js")),
|
|
76
|
+
remove: lazy(() => import("./cross-circle-fill-small-CJ4fddNo.js")),
|
|
77
|
+
error: lazy(() => import("./cross-circle-fill-CcjwpLj2.js")),
|
|
78
|
+
"revenue-accelerate": lazy(() => import("./revenue-accelerate-CPhAVpPK.js")),
|
|
79
|
+
save: lazy(() => import("./save-DQ-mJX8e.js")),
|
|
80
|
+
search: lazy(() => import("./search-DWqWTW_K.js")),
|
|
81
|
+
show: lazy(() => import("./show-BbhlD3IY.js")),
|
|
82
|
+
solutionPayments: lazy(() => import("./solution-payments-D4BORMsX.js")),
|
|
83
|
+
store: lazy(() => import("./store-DWaq3ZiC.js")),
|
|
84
|
+
terminal: lazy(() => import("./terminal-1-crR-pS_R.js")),
|
|
85
|
+
trust: lazy(() => import("./partner-1StoI4_W.js")),
|
|
86
|
+
user: lazy(() => import("./person-Da15_s3G.js")),
|
|
87
|
+
"user-business": lazy(() => import("./document-person-CERdIfH0.js")),
|
|
88
|
+
upload: lazy(() => import("./upload-D85xAAAm.js")),
|
|
89
|
+
"users-3": lazy(() => import("./4-people-Dxu4nHSX.js")),
|
|
90
|
+
warning: lazy(() => import("./warning-diamond-filled-BjDL-xa8.js")),
|
|
91
|
+
webinar: lazy(() => import("./webinar-YMbPoCx3.js"))
|
|
92
|
+
};
|
|
93
|
+
var customIcons = {
|
|
94
|
+
review: lazy(() => import("./review-CN-zt9-S.js")),
|
|
95
|
+
"funds-in": lazy(() => import("./funds-in-BvQVahzR.js")),
|
|
96
|
+
house: lazy(() => import("./house-DFPq_koC.js")),
|
|
97
|
+
reporting: lazy(() => import("./reporting-B084dXT2.js"))
|
|
98
|
+
};
|
|
99
|
+
var svgs = {
|
|
100
|
+
...icons,
|
|
101
|
+
...customIcons
|
|
102
|
+
};
|
|
103
|
+
var unscalableIconNames = [
|
|
104
|
+
"bin",
|
|
105
|
+
"check",
|
|
106
|
+
"checkmark",
|
|
107
|
+
"checkmark-small",
|
|
108
|
+
"chevron-right",
|
|
109
|
+
"chevron-left",
|
|
110
|
+
"company",
|
|
111
|
+
"contract",
|
|
112
|
+
"cross",
|
|
113
|
+
"decision-maker",
|
|
114
|
+
"document",
|
|
115
|
+
"download",
|
|
116
|
+
"edit",
|
|
117
|
+
"error",
|
|
118
|
+
"info-circle",
|
|
119
|
+
"info-circle-filled",
|
|
120
|
+
"image",
|
|
121
|
+
"location",
|
|
122
|
+
"payout",
|
|
123
|
+
"pci",
|
|
124
|
+
"plus",
|
|
125
|
+
"remove",
|
|
126
|
+
"save",
|
|
127
|
+
"search",
|
|
128
|
+
"trust",
|
|
129
|
+
"user",
|
|
130
|
+
"upload",
|
|
131
|
+
"warning"
|
|
132
|
+
];
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/ui/atoms/Svg/Svg.tsx
|
|
135
|
+
var logger = createLogger();
|
|
136
|
+
var Svg = ({ className, name, testId, title }) => {
|
|
137
|
+
const LazyLoadedSvg = svgs[name];
|
|
138
|
+
/**
|
|
139
|
+
* TODO: temporary solution to add a viewbox to the ui-asset-icons
|
|
140
|
+
* If the package gets the viewbox we can safely remove this
|
|
141
|
+
* If it doesn't we can remove the package and go back to non-package icons
|
|
142
|
+
*
|
|
143
|
+
* This is used as a conditional below to make sure that svg that have a viewbox
|
|
144
|
+
* do not see it getting removed by viewBox={undefined}
|
|
145
|
+
*/
|
|
146
|
+
const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
|
|
147
|
+
if (!LazyLoadedSvg) {
|
|
148
|
+
logger.error(`No such svg: "${name}"`);
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
return /* @__PURE__ */ jsx("span", {
|
|
152
|
+
className: cx(Svg_module_default[`svg-icon`], className),
|
|
153
|
+
"data-testid": testId ?? "svg-icon",
|
|
154
|
+
children: /* @__PURE__ */ jsx(Suspense, {
|
|
155
|
+
fallback: null,
|
|
156
|
+
children: viewBox ? /* @__PURE__ */ jsx(LazyLoadedSvg, {
|
|
157
|
+
"aria-hidden": true,
|
|
158
|
+
viewBox,
|
|
159
|
+
title: title || name
|
|
160
|
+
}) : /* @__PURE__ */ jsx(LazyLoadedSvg, {
|
|
161
|
+
"aria-hidden": true,
|
|
162
|
+
title: title || name
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/ui/atoms/Icon/Icon.tsx
|
|
169
|
+
var Icon = ({ name, className, ...props }) => /* @__PURE__ */ jsx(Svg, {
|
|
170
|
+
className,
|
|
171
|
+
name,
|
|
172
|
+
...props
|
|
173
|
+
});
|
|
174
|
+
//#endregion
|
|
175
|
+
export { Icon as t };
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "31f4e12d-2e80-4e33-9a67-b8342d5881af", e._sentryDebugIdIdentifier = "sentry-dbid-31f4e12d-2e80-4e33-9a67-b8342d5881af");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { n as IconButton, t as Button } from "./Button-Cm7cT6BX.js";
|
|
7
|
-
import { r as httpPost, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
8
|
-
import { c as keysOf, l as valuesOf, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
5
|
+
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
9
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
|
-
import { f as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as localizeDateString } from "./localizeDateString-D-MlYN4V.js";
|
|
15
|
-
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
16
|
-
import { o as validatePatternOnBlur } from "./patternValidators-B21mvXul.js";
|
|
17
|
-
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
18
|
-
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
19
|
-
import { useMemo } from "preact/hooks";
|
|
7
|
+
import { a as uppercase, c as customInputs, d as numericInputs, f as spacer, l as makeMask, n as MaskedInput, o as alphaInputs, s as alphanumericInputs, u as nonInputs } from "./form-rules-DCZ-uyGo.js";
|
|
8
|
+
import { f as translateTranslatable, r as Field } from "./Select-PqhoL_oQ.js";
|
|
9
|
+
import { A as createFormUtils, c as validatePatternOnBlur, j as mergeFieldMetadataIntoProps, l as resolveFieldMetadata } from "./RadioGroup-B_lHSMq9.js";
|
|
10
|
+
import { t as Checkbox } from "./Checkbox-B-hhlkoQ.js";
|
|
20
11
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
21
|
-
import { useMutation, useQuery } from "@tanstack/preact-query";
|
|
22
12
|
//#region src/utils/regex/countryIdNumberPatterns.ts
|
|
23
13
|
var CountryIdNumberPatterns = {
|
|
24
14
|
[CountryCodes.Brazil]: /^\d{11}$/,
|
|
@@ -526,331 +516,4 @@ function IdentityNumber(props) {
|
|
|
526
516
|
})] }) });
|
|
527
517
|
}
|
|
528
518
|
//#endregion
|
|
529
|
-
|
|
530
|
-
var extractDocumentInformation = async (legalEntityId, baseUrl, data) => httpPost({
|
|
531
|
-
baseUrl,
|
|
532
|
-
path: `legalEntities/${legalEntityId}/providers/idVerification/extract`
|
|
533
|
-
}, data);
|
|
534
|
-
var useExtractDocumentInformation = (options) => {
|
|
535
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
536
|
-
return useMutation({
|
|
537
|
-
mutationFn: (data) => extractDocumentInformation(rootLegalEntityId.value, baseUrl.value, data),
|
|
538
|
-
...options
|
|
539
|
-
});
|
|
540
|
-
};
|
|
541
|
-
//#endregion
|
|
542
|
-
//#region src/utils/addressToString.tsx
|
|
543
|
-
/**
|
|
544
|
-
* Maps an Address object from the API model to the local AddressSchema used by forms.
|
|
545
|
-
* This is the single source of truth for this conversion.
|
|
546
|
-
* @param address - The Address object from the API (uses `street`, `street2`).
|
|
547
|
-
* @returns An AddressSchema object for use in UI components (uses `street`, `street2`).
|
|
548
|
-
*/
|
|
549
|
-
var mapApiAddressToSchema = (address) => ({
|
|
550
|
-
street: address.street,
|
|
551
|
-
street2: address.street2,
|
|
552
|
-
city: address.city,
|
|
553
|
-
postalCode: address.postalCode,
|
|
554
|
-
stateOrProvince: address.stateOrProvince,
|
|
555
|
-
country: address.country
|
|
556
|
-
});
|
|
557
|
-
var appendWithPreSeparator = (existing, separator, appendix) => existing.length === 0 ? appendix : `${existing}${separator}${appendix}`;
|
|
558
|
-
var addressToString = ({ street, street2, postalCode, city, stateOrProvince, country }, datasetUtils) => {
|
|
559
|
-
let out = "";
|
|
560
|
-
if (street) out = street;
|
|
561
|
-
if (street2) out = appendWithPreSeparator(out, " ", street2);
|
|
562
|
-
if (city) out = appendWithPreSeparator(out, ", ", city);
|
|
563
|
-
if (postalCode) out = appendWithPreSeparator(out, " ", postalCode);
|
|
564
|
-
if (stateOrProvince) out = appendWithPreSeparator(out, ", ", stateOrProvince);
|
|
565
|
-
if (country) out = appendWithPreSeparator(out, ", ", datasetUtils.getCountryName(country) ?? country);
|
|
566
|
-
return out;
|
|
567
|
-
};
|
|
568
|
-
//#endregion
|
|
569
|
-
//#region src/hooks/useDataConflicts.ts
|
|
570
|
-
var defaultConflictRule = (provided, detected) => {
|
|
571
|
-
if (detected === void 0 || detected === null) return { hasConflict: false };
|
|
572
|
-
if (provided === void 0 || provided === null) return {
|
|
573
|
-
hasConflict: false,
|
|
574
|
-
resolvedValue: detected
|
|
575
|
-
};
|
|
576
|
-
if (typeof provided === "string" && typeof detected === "string") return { hasConflict: provided.trim().toLowerCase() !== detected.trim().toLowerCase() };
|
|
577
|
-
return { hasConflict: !objectsDeepEqual(provided, detected) };
|
|
578
|
-
};
|
|
579
|
-
/**
|
|
580
|
-
* A factory function that returns a conflict rule for the `Address` model.
|
|
581
|
-
* The rule handles enrichment (auto-resolution) and deep equality checks.
|
|
582
|
-
*/
|
|
583
|
-
var createAddressConflictRule = (datasetUtils) => (provided, detected) => {
|
|
584
|
-
if (!detected || Object.keys(detected).length === 0) return { hasConflict: false };
|
|
585
|
-
if (!provided) return {
|
|
586
|
-
hasConflict: false,
|
|
587
|
-
resolvedValue: detected
|
|
588
|
-
};
|
|
589
|
-
if (provided.country !== detected.country) return { hasConflict: true };
|
|
590
|
-
const { country: _country, ...otherProvidedDetails } = provided;
|
|
591
|
-
if (valuesOf(otherProvidedDetails).every((value) => !value || value === "")) return {
|
|
592
|
-
hasConflict: false,
|
|
593
|
-
resolvedValue: detected
|
|
594
|
-
};
|
|
595
|
-
return { hasConflict: addressToString(mapApiAddressToSchema(provided), datasetUtils) !== addressToString(mapApiAddressToSchema(detected), datasetUtils) };
|
|
596
|
-
};
|
|
597
|
-
/**
|
|
598
|
-
* A hook to compare two data objects and identify conflicting properties.
|
|
599
|
-
* It supports custom rules for complex comparisons and can auto-resolve certain conflicts.
|
|
600
|
-
*
|
|
601
|
-
* @template T The shape of the data objects being compared.
|
|
602
|
-
* @param providedData The primary data source (e.g., user input).
|
|
603
|
-
* @param detectedData The secondary data source (e.g., OCR extraction).
|
|
604
|
-
* @param rules A map of custom conflict rules for specific properties.
|
|
605
|
-
* @param onAutoResolve
|
|
606
|
-
* @returns An object containing the conflict status and any resolved data.
|
|
607
|
-
*/
|
|
608
|
-
var useDataConflicts = (providedData, detectedData, rules = {}, onAutoResolve) => {
|
|
609
|
-
const { conflictingProperties, wasAutoResolved, resolvedData, hasConflicts } = useMemo(() => {
|
|
610
|
-
if (!providedData || !detectedData) return {
|
|
611
|
-
hasConflicts: false,
|
|
612
|
-
conflictingProperties: [],
|
|
613
|
-
wasAutoResolved: false,
|
|
614
|
-
resolvedData: void 0
|
|
615
|
-
};
|
|
616
|
-
const propertiesToCompare = keysOf(detectedData);
|
|
617
|
-
const conflictingProperties = [];
|
|
618
|
-
const autoResolvedPatches = /* @__PURE__ */ new Map();
|
|
619
|
-
for (const property of propertiesToCompare) {
|
|
620
|
-
const result = (rules[property] || defaultConflictRule)(providedData[property], detectedData[property]);
|
|
621
|
-
if (result.hasConflict) conflictingProperties.push(property);
|
|
622
|
-
else if (result.resolvedValue !== void 0) autoResolvedPatches.set(property, result.resolvedValue);
|
|
623
|
-
}
|
|
624
|
-
const hasConflicts = conflictingProperties.length > 0;
|
|
625
|
-
const wasAutoResolved = autoResolvedPatches.size > 0;
|
|
626
|
-
const resolvedData = wasAutoResolved ? {
|
|
627
|
-
...providedData ?? {},
|
|
628
|
-
...Object.fromEntries(autoResolvedPatches)
|
|
629
|
-
} : void 0;
|
|
630
|
-
if (wasAutoResolved && !hasConflicts && resolvedData) onAutoResolve?.(resolvedData);
|
|
631
|
-
return {
|
|
632
|
-
hasConflicts,
|
|
633
|
-
conflictingProperties,
|
|
634
|
-
wasAutoResolved,
|
|
635
|
-
resolvedData
|
|
636
|
-
};
|
|
637
|
-
}, [
|
|
638
|
-
providedData,
|
|
639
|
-
detectedData,
|
|
640
|
-
rules,
|
|
641
|
-
onAutoResolve
|
|
642
|
-
]);
|
|
643
|
-
return {
|
|
644
|
-
hasConflicts,
|
|
645
|
-
conflictingProperties,
|
|
646
|
-
wasAutoResolved,
|
|
647
|
-
resolvedData
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
var IdVerificationMethod_module_default = {
|
|
651
|
-
"verification-header-image": "_verification-header-image_1vivf_1",
|
|
652
|
-
verificationHeaderImage: "_verification-header-image_1vivf_1",
|
|
653
|
-
"or-separator": "_or-separator_1vivf_5",
|
|
654
|
-
orSeparator: "_or-separator_1vivf_5"
|
|
655
|
-
};
|
|
656
|
-
//#endregion
|
|
657
|
-
//#region src/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.ts
|
|
658
|
-
/**
|
|
659
|
-
* Converts and flattens an {@link IndividualSchema} to an {@link IndividualConflictsSchema}.
|
|
660
|
-
*
|
|
661
|
-
* This is useful for comparing two {@link IndividualSchema} objects field by field.
|
|
662
|
-
*
|
|
663
|
-
* @param {IndividualSchema} individualSchema - The schema to convert.
|
|
664
|
-
* @returns {IndividualConflictsSchema} The flattened schema.
|
|
665
|
-
*/
|
|
666
|
-
var toIndividualConflictSchema = ({ basicDetails, additionalPersonalDetails }) => {
|
|
667
|
-
return {
|
|
668
|
-
firstName: basicDetails?.firstName,
|
|
669
|
-
lastName: basicDetails?.lastName,
|
|
670
|
-
email: basicDetails?.email,
|
|
671
|
-
phoneNumber: basicDetails?.phoneNumber,
|
|
672
|
-
birthDate: additionalPersonalDetails?.birthDate,
|
|
673
|
-
nationality: additionalPersonalDetails?.nationality,
|
|
674
|
-
address: {
|
|
675
|
-
street: additionalPersonalDetails?.street,
|
|
676
|
-
street2: additionalPersonalDetails?.street2,
|
|
677
|
-
postalCode: additionalPersonalDetails?.postalCode,
|
|
678
|
-
city: additionalPersonalDetails?.city,
|
|
679
|
-
stateOrProvince: additionalPersonalDetails?.stateOrProvince,
|
|
680
|
-
country: additionalPersonalDetails?.country
|
|
681
|
-
},
|
|
682
|
-
idNumber: additionalPersonalDetails?.idNumber,
|
|
683
|
-
typeOfIdentity: additionalPersonalDetails?.typeOfIdentity,
|
|
684
|
-
issuerState: additionalPersonalDetails?.issuerState,
|
|
685
|
-
licenseCardNumber: additionalPersonalDetails?.licenseCardNumber,
|
|
686
|
-
expiryDate: additionalPersonalDetails?.expiryDate
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
/**
|
|
690
|
-
* Converts an {@link IndividualConflictsSchema} back to an {@link IndividualSchema}.
|
|
691
|
-
*
|
|
692
|
-
* This is useful for reconstructing the original schema after a comparison.
|
|
693
|
-
*
|
|
694
|
-
* @param {IndividualConflictsSchema} conflictSchema - The flattened schema to convert.
|
|
695
|
-
* @returns {IndividualSchema} The reconstructed schema.
|
|
696
|
-
*/
|
|
697
|
-
var fromIndividualConflictSchema = ({ firstName, lastName, email, phoneNumber, birthDate, nationality, address, ...idFields }) => ({
|
|
698
|
-
basicDetails: {
|
|
699
|
-
firstName,
|
|
700
|
-
lastName,
|
|
701
|
-
email,
|
|
702
|
-
phoneNumber
|
|
703
|
-
},
|
|
704
|
-
additionalPersonalDetails: {
|
|
705
|
-
birthDate,
|
|
706
|
-
nationality,
|
|
707
|
-
...idFields,
|
|
708
|
-
...address
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
//#endregion
|
|
712
|
-
//#region src/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.ts
|
|
713
|
-
var logger = createLogger();
|
|
714
|
-
var mapExtractionResultToSchema = (result, restrictCountryOfResidenceTo) => {
|
|
715
|
-
const { firstName, lastName, issuingCountry, issuingState, dateOfBirth, address, documentNumber, documentType, nationality, placeOfBirth } = result;
|
|
716
|
-
const schema = {
|
|
717
|
-
basicDetails: {
|
|
718
|
-
firstName,
|
|
719
|
-
lastName
|
|
720
|
-
},
|
|
721
|
-
additionalPersonalDetails: {}
|
|
722
|
-
};
|
|
723
|
-
let issuingCountryIsCountryOfResidency = false;
|
|
724
|
-
if (issuingCountry) {
|
|
725
|
-
const countryFromOcr = issuingCountry;
|
|
726
|
-
if (!restrictCountryOfResidenceTo || restrictCountryOfResidenceTo.includes(countryFromOcr)) {
|
|
727
|
-
schema.additionalPersonalDetails.country = countryFromOcr;
|
|
728
|
-
issuingCountryIsCountryOfResidency = true;
|
|
729
|
-
} else {
|
|
730
|
-
schema.additionalPersonalDetails.nationality = countryFromOcr;
|
|
731
|
-
issuingCountryIsCountryOfResidency = false;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
if (dateOfBirth) schema.additionalPersonalDetails.birthDate = dateOfBirth;
|
|
735
|
-
if (issuingState) schema.additionalPersonalDetails.issuerState = issuingState;
|
|
736
|
-
if (nationality) schema.additionalPersonalDetails.nationality = nationality;
|
|
737
|
-
if (address && issuingCountryIsCountryOfResidency && Object.keys(address).length > 0) schema.additionalPersonalDetails = {
|
|
738
|
-
...schema.additionalPersonalDetails,
|
|
739
|
-
...mapAddressToSchema(address)
|
|
740
|
-
};
|
|
741
|
-
if (documentType) switch (documentType) {
|
|
742
|
-
case "identityCard":
|
|
743
|
-
schema.additionalPersonalDetails.typeOfIdentity = "proofOfIdentityCard";
|
|
744
|
-
schema.additionalPersonalDetails.idNumber = documentNumber;
|
|
745
|
-
break;
|
|
746
|
-
case "driversLicense":
|
|
747
|
-
schema.additionalPersonalDetails.typeOfIdentity = "driversLicense";
|
|
748
|
-
schema.additionalPersonalDetails.licenseCardNumber = documentNumber;
|
|
749
|
-
break;
|
|
750
|
-
case "passport":
|
|
751
|
-
schema.additionalPersonalDetails.typeOfIdentity = "passport";
|
|
752
|
-
schema.additionalPersonalDetails.idNumber = documentNumber;
|
|
753
|
-
break;
|
|
754
|
-
default:
|
|
755
|
-
logger.warn(`document type "${documentType}" not recognised`);
|
|
756
|
-
break;
|
|
757
|
-
}
|
|
758
|
-
return schema;
|
|
759
|
-
};
|
|
760
|
-
var mapAddressToSchema = ({ street, street2, city, postalCode, stateOrProvince }) => ({
|
|
761
|
-
street,
|
|
762
|
-
street2,
|
|
763
|
-
city,
|
|
764
|
-
postalCode,
|
|
765
|
-
stateOrProvince
|
|
766
|
-
});
|
|
767
|
-
//#endregion
|
|
768
|
-
//#region src/api/idVerificationProviders/useIdVerificationToken.ts
|
|
769
|
-
var getIdVerificationToken = async (rootLegalEntityId, baseUrl, request) => httpPost({
|
|
770
|
-
baseUrl,
|
|
771
|
-
path: `legalEntities/${rootLegalEntityId}/providers/idVerification/initiate`
|
|
772
|
-
}, request);
|
|
773
|
-
/**
|
|
774
|
-
* Retrieves a token that we can use to proceed with ID verification for the given set of applicant
|
|
775
|
-
* details.
|
|
776
|
-
*
|
|
777
|
-
* **Note:** on the backend we re-use an existing Onfido applicant if a `legalEntityId` is sent
|
|
778
|
-
* and we have previously generated a token for that same legal entity. Therefore, this request
|
|
779
|
-
* effectively idempotent.
|
|
780
|
-
*/
|
|
781
|
-
var useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legalEntityId, options) => {
|
|
782
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
783
|
-
const data = firstName && lastName && residencyCountry ? {
|
|
784
|
-
name: {
|
|
785
|
-
firstName,
|
|
786
|
-
lastName
|
|
787
|
-
},
|
|
788
|
-
country: residencyCountry,
|
|
789
|
-
origin: `${window.location.origin}/*`,
|
|
790
|
-
consents: [{
|
|
791
|
-
name: "privacy_notices_read",
|
|
792
|
-
granted: true
|
|
793
|
-
}],
|
|
794
|
-
...legalEntityId ? { legalEntityId } : {}
|
|
795
|
-
} : void 0;
|
|
796
|
-
return useQuery({
|
|
797
|
-
enabled: Boolean(firstName && lastName && residencyCountry),
|
|
798
|
-
queryKey: ["idVerificationToken", data],
|
|
799
|
-
queryFn: () => getIdVerificationToken(rootLegalEntityId.value, baseUrl.value, data),
|
|
800
|
-
...options
|
|
801
|
-
});
|
|
802
|
-
};
|
|
803
|
-
var UploadedDocument_module_default = {
|
|
804
|
-
"uploaded-document": "_uploaded-document_vsv6u_1",
|
|
805
|
-
uploadedDocument: "_uploaded-document_vsv6u_1"
|
|
806
|
-
};
|
|
807
|
-
//#endregion
|
|
808
|
-
//#region src/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.tsx
|
|
809
|
-
var UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
810
|
-
const { t, i18n } = useTranslation("common");
|
|
811
|
-
return /* @__PURE__ */ jsxs("article", {
|
|
812
|
-
className: UploadedDocument_module_default.uploadedDocument,
|
|
813
|
-
children: [
|
|
814
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
|
|
815
|
-
el: "h4",
|
|
816
|
-
variant: "title",
|
|
817
|
-
children: t(($) => $[document.idDocumentType])
|
|
818
|
-
}), /* @__PURE__ */ jsx(Typography, {
|
|
819
|
-
el: "p",
|
|
820
|
-
variant: "body",
|
|
821
|
-
children: t(($) => $["uploadedOn"], { date: localizeDateString(document.modificationDate, i18n.language, { month: "short" }) ?? "" })
|
|
822
|
-
})] }),
|
|
823
|
-
/* @__PURE__ */ jsx(Spacer, {}),
|
|
824
|
-
/* @__PURE__ */ jsx(IconButton, {
|
|
825
|
-
onClick: onDelete,
|
|
826
|
-
icon: "bin",
|
|
827
|
-
variant: "secondary",
|
|
828
|
-
ariaLabel: t(($) => $["delete"])
|
|
829
|
-
}),
|
|
830
|
-
/* @__PURE__ */ jsx(Button, {
|
|
831
|
-
onClick: onUpdate,
|
|
832
|
-
variant: "secondary",
|
|
833
|
-
children: t(($) => $["update"])
|
|
834
|
-
})
|
|
835
|
-
]
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
//#endregion
|
|
839
|
-
//#region src/components/Individual/forms/IdVerificationMethod/validateExtractionResult.ts
|
|
840
|
-
/**
|
|
841
|
-
* Validates the OCR extraction result against business rules.
|
|
842
|
-
* @param extractionResult - The data extracted from the document.
|
|
843
|
-
* @returns A translation key for an error message if validation fails, otherwise null.
|
|
844
|
-
*/
|
|
845
|
-
var validateExtractionResult = (extractionResult) => {
|
|
846
|
-
const { isExpired, isValidDocumentType, isUnderage, minimumOnboardingAge } = extractionResult;
|
|
847
|
-
if (isExpired) return { key: "theDocumentYouUploadedIsExpired" };
|
|
848
|
-
if (!isValidDocumentType) return { key: "theDocumentTypeYouUploadedIsNotSupported" };
|
|
849
|
-
if (isUnderage) return {
|
|
850
|
-
key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
|
|
851
|
-
options: { values: { minimumOnboardingAge: minimumOnboardingAge?.toString() ?? "" } }
|
|
852
|
-
};
|
|
853
|
-
return null;
|
|
854
|
-
};
|
|
855
|
-
//#endregion
|
|
856
|
-
export { licenseCardNumberDefaultConfig as _, fromIndividualConflictSchema as a, createAddressConflictRule as c, useExtractDocumentInformation as d, IdentityNumber as f, getAsyncIdNumberValidationRule as g, defaultFieldMetadata as h, mapExtractionResultToSchema as i, useDataConflicts as l, defaultFieldConfig as m, UploadedDocument as n, toIndividualConflictSchema as o, idNumberFields as p, useIdVerificationToken as r, IdVerificationMethod_module_default as s, validateExtractionResult as t, addressToString as u, licenseCardNumberDefaultMetadata as v };
|
|
519
|
+
export { getAsyncIdNumberValidationRule as a, defaultFieldMetadata as i, idNumberFields as n, licenseCardNumberDefaultConfig as o, defaultFieldConfig as r, licenseCardNumberDefaultMetadata as s, IdentityNumber as t };
|