@adyen/kyc-components 4.21.0 → 4.22.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-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-D2mvc_PB.js} +5 -5
- package/dist/{Accordion-DC7Iuj-J.js → Accordion-DEivLTcw.js} +1 -1
- package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-pcQcFAhQ.js} +1 -1
- package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-C0EsaW8F.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-Nk2CJaU4.js} +54 -54
- package/dist/{AddressField-M0N4sAfl.js → AddressFields-3kqeRdC_.js} +108 -173
- package/dist/{Avatar-BKTdqNpO.js → Avatar-DHyXCNwV.js} +1 -1
- package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-BOECqGNd.js} +104 -197
- package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-DSy5an97.js} +30 -30
- package/dist/BusinessRegistrationNumberField-DHccXqsX.js +101 -0
- package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-2e9GKH-i.js} +5 -6
- package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-BraXRUrg.js} +13 -13
- package/dist/{Button-DSD_afG_.js → Button-nDbNtBn3.js} +1 -1
- package/dist/{Checkbox-Bc98rXHW.js → Checkbox-BiKnP2fS.js} +1 -1
- package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-Due-N8Yz.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-CtRHXMb9.js} +67 -105
- package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-Syyy5BfB.js} +5 -5
- package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-D8leB0D6.js} +2 -2
- package/dist/{Currency-BlBJnPV7.js → Currency-CFsMnSP0.js} +5 -5
- package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-DqayB3BM.js} +13 -12
- package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-Bz2SYyi5.js} +6 -6
- package/dist/{DebugModal-BAf5ZU42.js → DebugModal-fH0uKl1E.js} +10 -10
- package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-7IPREpy1.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-Bs9q7sxc.js} +34 -34
- package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-Dw66GRhZ.js} +40 -40
- package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CjLSK2UN.js} +7 -7
- package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-BIVFBjzu.js} +3 -3
- package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-D2CSEwEn.js} +2 -2
- package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-LF_5ihhI.js} +6 -6
- package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-tLtZnFnX.js} +3 -3
- package/dist/{GlobalEntryModal-DAf4bqoT.js → GlobalEntryModal-CY-t1fGQ.js} +279 -79
- package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-xX4ruKnx.js} +7 -7
- package/dist/{Icon-CurE93CX.js → Icon-BcaP-f1D.js} +1 -1
- package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-4ky6SOcb.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-BKKmSfLG.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-D0eNj4nD.js} +13 -13
- package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-PKwY3D-0.js} +4 -4
- package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-DrQiG_Vy.js} +252 -224
- package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-jm8KFccr.js} +3 -3
- package/dist/InputDate-C14J5Af2.js +211 -0
- package/dist/{InputText-BvrH0bId.js → InputText-Dr-Wg0uc.js} +2 -2
- package/dist/{Introduction-Cc1kb6ZF.js → Introduction-DXAxkrDG.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-CPMIUjiE.js} +61 -61
- package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-olKUlhpt.js} +8 -8
- package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-BrdI-awc.js} +4 -4
- package/dist/{LegalName-CeRLeIRV.js → LegalName-CWoSqy0V.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-Ca3FLoSd.js} +30 -30
- package/dist/{Link-B-gN0d8l.js → Link-opuU6bLF.js} +1 -1
- package/dist/{ListItem-BGdnopqb.js → ListItem-CbjOa0L_.js} +2 -2
- package/dist/{Modal-smcFQS1n.js → Modal-BDNS-0rS.js} +3 -3
- package/dist/{Name-CjSRwrBX.js → Name-CxlxPgUR.js} +4 -4
- package/dist/{NewSummary-BBgZk5N5.js → NewSummary-mLsovGX8.js} +6 -6
- package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-kOnDnF8P.js} +10 -113
- package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-CZ77wefd.js} +26 -26
- package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-Cyy-fDbK.js} +7 -7
- package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-C0mNADXE.js} +10 -17
- package/dist/{Review-D5P6Ac8i.js → Review-CDtJh9j3.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-CnVWFx0H.js} +30 -30
- package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-Dtx9X-mD.js} +23 -23
- package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-q8PZ0Khk.js} +31 -31
- package/dist/{Select-VeoEeZS8.js → Select-UO37dd_q.js} +5 -5
- package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-D21OqVWo.js} +38 -38
- package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-CRYphIRT.js} +4 -4
- package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-BKB0sRiP.js} +30 -30
- package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-C2ZEp0lT.js} +26 -26
- package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-Cy12c7ou.js} +4 -4
- package/dist/{StateField-Bez_WtWb.js → StateField-CWS8eXex.js} +8 -34
- package/dist/{Step-Onf402RU.js → Step-CYG94mSp.js} +9 -13
- package/dist/{StructuredList-36A9DDQa.js → StructuredList-CqZM_5X9.js} +3 -3
- package/dist/{Task-DiyDnOz9.js → Task-D6xuGucd.js} +11 -11
- package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-C4ND30dB.js} +3 -3
- package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-Dc6n6llv.js} +9 -9
- package/dist/TaskStepperContextProvider-CvChF1W5.js +26 -0
- package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-pjPK5vVN.js} +1 -1
- package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-BACQgHQ7.js} +7 -8
- package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-DmOclyYQ.js} +14 -14
- package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-CBEB7oAn.js} +4 -4
- package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-No_9QGjv.js} +37 -37
- package/dist/{TextArea-CZ6EPFIm.js → TextArea-BzY5efza.js} +3 -3
- package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-BHjbebZX.js} +79 -68
- package/dist/TrustMemberCompanyPage-BSe-Pn1O.js +109 -0
- package/dist/TrustMemberIndividualPage-DxlZQF6W.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-AtlXyfKk.js} +40 -39
- package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-DpmUv4Vj.js} +36 -36
- package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-ESC2Ze3o.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-BVpz27KZ.js} +30 -30
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js} +31 -31
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js} +7 -7
- package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-BCEhkhpr.js} +2 -2
- package/dist/{Workflow-CKPX92cv.js → Workflow-CzSGihyD.js} +6 -6
- package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-3WiED1-j.js} +1 -1
- package/dist/adyen-business-financing.js +31 -31
- package/dist/adyen-individual-configuration.js +56 -56
- package/dist/adyen-individual-status.js +29 -29
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +55 -57
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +30 -30
- package/dist/adyen-transfer-instrument-management.js +38 -38
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-DkDlAHgN.js → bafinUtils-h8n1IbJ9.js} +45 -21
- package/dist/{bg-BG-D4mSRREu.js → bg-BG-BizRzO_4.js} +2 -2
- package/dist/bg-BG-BtgA44Ui.js +7 -0
- package/dist/{bg-BG-BeFIiwVZ.js → bg-BG-DFFyUYhz.js} +1 -4
- package/dist/bg-BG-DYkxVgeJ.js +7 -0
- package/dist/{constants-CpzwsYLt.js → constants-B9iXz9xK.js} +3 -3
- package/dist/cs-CZ-Ci8c58xJ.js +7 -0
- package/dist/{cs-CZ-DHfA1xjQ.js → cs-CZ-DbxpNCVt.js} +1 -4
- package/dist/cs-CZ-DcUnrLLF.js +7 -0
- package/dist/cs-CZ-lJQmuyHq.js +7 -0
- package/dist/da-DK-C1kmOHvo.js +7 -0
- package/dist/da-DK-D53M_d04.js +7 -0
- package/dist/da-DK-DxZQbdeO.js +7 -0
- package/dist/{da-DK--DlccBc0.js → da-DK-zLJRzcB1.js} +1 -4
- package/dist/{de-DE-B_iHAkLT.js → de-DE-BMfqDClD.js} +1 -4
- package/dist/de-DE-BnxQPuqK.js +7 -0
- package/dist/de-DE-qJPTCQlG.js +7 -0
- package/dist/de-DE-qSBQE-6M.js +7 -0
- package/dist/el-GR-Bx996PXx.js +7 -0
- package/dist/el-GR-CgoxpC-Q.js +7 -0
- package/dist/{el-GR-C6jyW53I.js → el-GR-Dv4ru2dp.js} +2 -2
- package/dist/{el-GR-D09thseu.js → el-GR-RfSX8m4j.js} +1 -4
- package/dist/{en-US-Del1h5SS.js → en-US-BUmtG-Wj.js} +5 -1
- package/dist/en-US-C_-DId-G.js +7 -0
- package/dist/{error-DYzwu0no.js → error-CHFF8jLc.js} +2 -2
- package/dist/{es-ES-Bpxn6XGC.js → es-ES-CYw82sbG.js} +1 -4
- package/dist/es-ES-DNhmrVEV.js +7 -0
- package/dist/es-ES-DyB2KXfT.js +7 -0
- package/dist/es-ES-U4-lDfZq.js +7 -0
- package/dist/es-LA-B5IRDCf_.js +7 -0
- package/dist/{es-LA-C8U1qPSu.js → es-LA-BctkHpgC.js} +5 -5
- package/dist/es-LA-C9A4OcR1.js +7 -0
- package/dist/{es-LA-DWAiA7Dw.js → es-LA-CG_cu1hM.js} +2 -2
- package/dist/{es-LA-CJdZb5eY.js → es-LA-CgkOJrPJ.js} +2 -2
- package/dist/es-LA-ChLRkx-r.js +7 -0
- package/dist/{es-LA-CjxlB1WZ.js → es-LA-DDXEJd1M.js} +1 -4
- package/dist/{es-LA-DBBkFhgU.js → es-LA-DcnCNM5a.js} +2 -2
- package/dist/es-LA-Oe31aP7N.js +7 -0
- package/dist/{es-LA-CE8hE_Qb.js → es-LA-s415mKU0.js} +2 -2
- package/dist/et-EE-4_ZUNt3W.js +7 -0
- package/dist/et-EE-BgBr1C0u.js +7 -0
- package/dist/{et-EE-Dtc7YYb4.js → et-EE-BlZkCwz8.js} +1 -4
- package/dist/et-EE-DSK7kb3n.js +7 -0
- package/dist/fi-FI-BSsXGaNE.js +7 -0
- package/dist/{fi-FI-DBhYlO4B.js → fi-FI-CNoPIGJP.js} +1 -4
- package/dist/fi-FI-D06EzKrW.js +7 -0
- package/dist/fi-FI-DgMsQBRO.js +7 -0
- package/dist/{form-rules-Cy_z1LiE.js → form-rules-CKwx5XtT.js} +82 -75
- package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DZ1CxHdw.js} +1 -1
- package/dist/fr-FR-BTJoQq71.js +7 -0
- package/dist/{fr-FR-Dsh0Vb20.js → fr-FR-C88I1PF4.js} +2 -2
- package/dist/{fr-FR-N8UDU_0Y.js → fr-FR-CQZLvhS1.js} +1 -4
- package/dist/fr-FR-Dl4NL-Nc.js +7 -0
- package/dist/{CompanyRegistrationNumberTypeSelector-CX4-v376.js → getDefaultRegistrationNumberType-6m6DEmW8.js} +49 -49
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-DzRO0UUx.js} +19 -2
- package/dist/{getProblemsForEntity-CTxd78-9.js → getProblemsForEntity-CfzojTAS.js} +1 -1
- package/dist/{getTrustedDecisionMakers-DWVtW7JE.js → getTrustedDecisionMakers-qs2frwk2.js} +1 -1
- package/dist/hr-HR-B11sggmG.js +7 -0
- package/dist/{hr-HR-GLRwxTIZ.js → hr-HR-C6-nBPZJ.js} +1 -4
- package/dist/hr-HR-COdiWKoq.js +7 -0
- package/dist/hr-HR-HlAOaG4N.js +7 -0
- package/dist/{hu-HU-s1MKqwI4.js → hu-HU-CKm1kMo5.js} +1 -4
- package/dist/hu-HU-DkSsL94T.js +7 -0
- package/dist/hu-HU-Dp6xOBN_.js +7 -0
- package/dist/hu-HU-s1kS1v8Y.js +7 -0
- package/dist/it-IT-BlaVymCj.js +7 -0
- package/dist/it-IT-CawjvBDX.js +7 -0
- package/dist/{it-IT-xXO07yyz.js → it-IT-DPOJ9mKi.js} +2 -2
- package/dist/{it-IT-2reNk09A.js → it-IT-DjUFw9e_.js} +1 -4
- package/dist/{ja-JP-Bf97gKqg.js → ja-JP-Ce_xNqZj.js} +1 -4
- package/dist/ja-JP-DGj167Zw.js +7 -0
- package/dist/ja-JP-Dpe9Odla.js +7 -0
- package/dist/ja-JP-h3E8hgLv.js +7 -0
- package/dist/{types-CdxNdaM6.js → legalArrangementUtils-skU_cq9L.js} +4 -3
- package/dist/lt-LT-B18sQY9g.js +7 -0
- package/dist/{lt-LT-BUgsY7cD.js → lt-LT-BQD7QWIk.js} +1 -4
- package/dist/lt-LT-CEpjHJry.js +7 -0
- package/dist/lt-LT-Fc1lOUlz.js +7 -0
- package/dist/lv-LV-COsG0cJY.js +7 -0
- package/dist/{lv-LV-BpniO6xp.js → lv-LV-DHwdYWGZ.js} +1 -4
- package/dist/lv-LV-DctYQmfH.js +7 -0
- package/dist/lv-LV-adiXoKhv.js +7 -0
- package/dist/{mapExistingFile-R6-FnjjY.js → mapExistingFile-CDahgHsP.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-C-kAGmiq.js → mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-ChE9qTUB.js} +6 -6
- package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js} +2 -2
- package/dist/nl-NL-9sJ9sG_Q.js +7 -0
- package/dist/nl-NL-BIpptPn4.js +7 -0
- package/dist/{nl-NL-_B3Ey_x1.js → nl-NL-Cdmgljzx.js} +1 -4
- package/dist/nl-NL-DOB0b0m4.js +7 -0
- package/dist/no-NO-BG1sYkpp.js +7 -0
- package/dist/no-NO-DnsCTUl4.js +7 -0
- package/dist/{no-NO-CytzrDfA.js → no-NO-MhaaDGft.js} +1 -4
- package/dist/no-NO-P5tRWhV9.js +7 -0
- package/dist/{pl-PL-DLBeIbY5.js → pl-PL-B0tX08_r.js} +1 -4
- package/dist/pl-PL-BX9Xsn_R.js +7 -0
- package/dist/pl-PL-J9S3_lCf.js +7 -0
- package/dist/pl-PL-_KG-ZD1N.js +7 -0
- package/dist/{processCapabilities-uXoRmB5x.js → processCapabilities-BfskhjUw.js} +2 -1
- package/dist/{processValidationErrors-CxYdVSIk.js → processValidationErrors-CRWq2tu-.js} +3 -3
- package/dist/pt-BR-BYbyk6xS.js +7 -0
- package/dist/{pt-BR-Cf5Jif3w.js → pt-BR-CExpeuK1.js} +1 -4
- package/dist/pt-BR-D23HWCOv2.js +7 -0
- package/dist/pt-BR-fKlNUybd.js +7 -0
- package/dist/{pt-PT-Cg7oMqTO.js → pt-PT-CedGAyU5.js} +1 -4
- package/dist/pt-PT-D8ldyR-j.js +7 -0
- package/dist/pt-PT-DAvsI-Tr.js +7 -0
- package/dist/pt-PT-oMj1KA74.js +7 -0
- package/dist/{resolveEnvironment-iYzRliVi.js → resolveEnvironment-D2iMH7UD.js} +69 -70
- package/dist/{ro-RO-UHWXt9rv.js → ro-RO-C-lRWe1h.js} +1 -4
- package/dist/ro-RO-CQJk7Cpo.js +7 -0
- package/dist/ro-RO-CnMe6Mfw.js +7 -0
- package/dist/ro-RO-Cri5-XPn.js +7 -0
- package/dist/sk-SK-Br1Y4_CN.js +7 -0
- package/dist/sk-SK-Bx2_85dW.js +7 -0
- package/dist/{sk-SK-BQHhBpDH.js → sk-SK-D1duuBif.js} +1 -4
- package/dist/sk-SK-XvPPBgTO.js +7 -0
- package/dist/sl-SI-B31X-t8A.js +7 -0
- package/dist/sl-SI-DHPadSTy.js +7 -0
- package/dist/{sl-SI-DOAJBgQV.js → sl-SI-DO9c7geI.js} +2 -2
- package/dist/{sl-SI-CTrggdef.js → sl-SI-iGtJR9Tk.js} +1 -4
- package/dist/style.css +21 -0
- package/dist/styles-DYaAeu4q.js +21 -0
- package/dist/{sv-SE-Bk55FXGN.js → sv-SE-9GnBnxvb.js} +1 -4
- package/dist/sv-SE-BXrlr0X5.js +7 -0
- package/dist/sv-SE-DBANqFwL.js +7 -0
- package/dist/sv-SE-l_UVgmVu.js +7 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -9
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +2 -40
- package/dist/types/components/Business/utils/utils.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +6 -8
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +13 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +12 -3
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.d.ts +4 -0
- package/dist/types/components/GlobalEntry/forms/PrimaryPartner/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +2 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +2 -7
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +38 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/{components/UnincorporatedPartnership/types/types.d.ts → utils/legalArrangementUtils.d.ts} +2 -1
- package/dist/types/{components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts → utils/unincorporatedParnershipUtils.d.ts} +3 -3
- package/dist/{types-Ai_80DXu.js → types-Bdfu7HN6.js} +1 -1
- package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-DZQuIMNw.js} +83 -180
- package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-BGYdkMIE.js} +3 -3
- package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
- package/dist/{useForm-CEXA_F3u.js → useForm-BJq32Ve1.js} +2 -2
- package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-CcCmW80A.js} +9 -8
- package/dist/{useId-CZMbF_sJ.js → useId-BMocIuPK.js} +1 -1
- package/dist/{useNavigate-RRamr3fr.js → useNavigate-D4ypqPBN.js} +33 -33
- package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-BCzs8Xya.js} +3 -3
- package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-Cf1fN_gV.js} +1 -1
- package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
- package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-DqpnYNNj.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-w3dG_nyc.js} +2 -2
- package/dist/{useUpdateLegalEntity-Cp9Cq-yR.js → useUpdateLegalEntity-CvACAgDP.js} +1 -1
- package/dist/{utils-DxOvaA3u.js → utils-BMhvbUV1.js} +6 -6
- package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
- package/dist/validate-BqIbVY0E.js +151 -0
- package/dist/{validate-BevFCyzw.js → validate-Dfw99Sal.js} +5 -31
- package/dist/{validate-BbOeJY9-.js → validate-DiEa5w30.js} +4 -4
- package/dist/{validate--p4TuNQC.js → validate-RLWN-I5L.js} +68 -51
- package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-DueyX5oY.js} +2 -2
- package/dist/{validationError-BLSF1VbX.js → validationError-BhICjGiF.js} +1 -1
- package/package.json +1 -1
- package/dist/InputDate-Cgld5B0-.js +0 -52
- package/dist/TaskStepperContextProvider-DuM9tlet.js +0 -81
- package/dist/TrustMemberCompanyPage-Bzcvc0Cz.js +0 -109
- package/dist/TrustMemberIndividualPage-DN_epZ5a.js +0 -110
- package/dist/bg-BG-CXqERnFH.js +0 -7
- package/dist/bg-BG-DbS559bK.js +0 -7
- package/dist/cs-CZ-4yvBEVL0.js +0 -7
- package/dist/cs-CZ-DAXMHrMi.js +0 -7
- package/dist/cs-CZ-DySBJFlc.js +0 -7
- package/dist/da-DK-BVaEiAWd.js +0 -7
- package/dist/da-DK-BuvKW6Sq.js +0 -7
- package/dist/da-DK-D3mbpcHG.js +0 -7
- package/dist/de-DE-BQaqplTp.js +0 -7
- package/dist/de-DE-BqujMxXu.js +0 -7
- package/dist/de-DE-D6R-XC2F.js +0 -7
- package/dist/el-GR-B1NjHThy.js +0 -7
- package/dist/el-GR-CedmhUFh.js +0 -7
- package/dist/en-US-D4NrsDmW.js +0 -7
- package/dist/es-ES-BM5RTwb7.js +0 -7
- package/dist/es-ES-C64v4NJD.js +0 -7
- package/dist/es-ES-DTUHhE47.js +0 -7
- package/dist/es-LA-B7pY2dp1.js +0 -7
- package/dist/es-LA-BjZq9RK_.js +0 -7
- package/dist/es-LA-CcMAcJ7u.js +0 -7
- package/dist/es-LA-DlL8vCjJ.js +0 -7
- package/dist/et-EE-DqhEsLik.js +0 -7
- package/dist/et-EE-FtKFvr3u.js +0 -7
- package/dist/et-EE-wDQx9HoZ.js +0 -7
- package/dist/fi-FI-KMP96Qxc.js +0 -7
- package/dist/fi-FI-RfGqWbnB.js +0 -7
- package/dist/fi-FI-SFw2grVp.js +0 -7
- package/dist/fr-FR-C8IPWMDL.js +0 -7
- package/dist/fr-FR-zDxTr2D3.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/hr-HR-COvc9TZy.js +0 -7
- package/dist/hr-HR-Cqgf9B0v.js +0 -7
- package/dist/hr-HR-DPjuJ54x.js +0 -7
- package/dist/hu-HU-DIjDe5aa.js +0 -7
- package/dist/hu-HU-DyM1X3r6.js +0 -7
- package/dist/hu-HU-hB61p4H9.js +0 -7
- package/dist/it-IT-BKTDLRBT.js +0 -7
- package/dist/it-IT-BMXQzE0P.js +0 -7
- package/dist/ja-JP-BhHK_ru2.js +0 -7
- package/dist/ja-JP-BuFZko8b.js +0 -7
- package/dist/ja-JP-DbLRpEVj.js +0 -7
- package/dist/lt-LT-Be3q6tyu.js +0 -7
- package/dist/lt-LT-Btr5el2q.js +0 -7
- package/dist/lt-LT-D4raqCUa.js +0 -7
- package/dist/lv-LV-8wOWTo3r.js +0 -7
- package/dist/lv-LV-DBms129k.js +0 -7
- package/dist/lv-LV-DCeyOqHY.js +0 -7
- package/dist/nl-NL-CdHkQcOS.js +0 -7
- package/dist/nl-NL-Dyb3tkBi.js +0 -7
- package/dist/nl-NL-UhYf45fo.js +0 -7
- package/dist/no-NO-B-xCUkf4.js +0 -7
- package/dist/no-NO-DN7Ovyir.js +0 -7
- package/dist/no-NO-DXDddmYv.js +0 -7
- package/dist/pl-PL-BmiDQi18.js +0 -7
- package/dist/pl-PL-CBwRmIu5.js +0 -7
- package/dist/pl-PL-Cc09pXO8.js +0 -7
- package/dist/pt-BR-DA4PVtVa2.js +0 -7
- package/dist/pt-BR-DXGEP6IP.js +0 -7
- package/dist/pt-BR-hMhyqixD.js +0 -7
- package/dist/pt-PT-BXIKj_3F.js +0 -7
- package/dist/pt-PT-D2qX_lOd.js +0 -7
- package/dist/pt-PT-QU0CQs-d.js +0 -7
- package/dist/ro-RO-CQjOM8e-.js +0 -7
- package/dist/ro-RO-D4TQUwVB.js +0 -7
- package/dist/ro-RO-DNye-gMC.js +0 -7
- package/dist/sk-SK-2jlbtz2r.js +0 -7
- package/dist/sk-SK-CszMszV5.js +0 -7
- package/dist/sk-SK-CwbBfCsU.js +0 -7
- package/dist/sl-SI-9XdXVgB8.js +0 -7
- package/dist/sl-SI-Cyx0QtxG.js +0 -7
- package/dist/sv-SE--LlaHl85.js +0 -7
- package/dist/sv-SE-CqhSdYBe.js +0 -7
- package/dist/sv-SE-kbf3zbjX.js +0 -7
- package/dist/types/components/Shared/forms/Address/Address.d.ts +0 -3
- package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
- package/dist/validate-BjD_UO5x.js +0 -125
package/dist/{AcceptTermsOfServiceWorkflow-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-D2mvc_PB.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "56f5196e-050e-40b1-9afe-7f02e8a2256e", e._sentryDebugIdIdentifier = "sentry-dbid-56f5196e-050e-40b1-9afe-7f02e8a2256e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
6
|
-
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-
|
|
7
|
-
import { t as useTaskStepperContext } from "./useTaskStepperContext-
|
|
8
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
5
|
+
import { t as EndStateLayout } from "./EndStateLayout-D2CSEwEn.js";
|
|
6
|
+
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-No_9QGjv.js";
|
|
7
|
+
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
8
|
+
import { t as useHideTaskStepper } from "./useHideTaskStepper-CcCmW80A.js";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
10
10
|
//#region src/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.tsx
|
|
11
11
|
var AcceptTermsOfServiceWorkflow = ({ node }) => {
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "541be778-75da-4af1-99de-b330812d6a66", e._sentryDebugIdIdentifier = "sentry-dbid-541be778-75da-4af1-99de-b330812d6a66");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as Icon } from "./Icon-
|
|
5
|
+
import { t as Icon } from "./Icon-BcaP-f1D.js";
|
|
6
6
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "75680866-bf49-4206-bbb9-89f3eb636db8", e._sentryDebugIdIdentifier = "sentry-dbid-75680866-bf49-4206-bbb9-89f3eb636db8");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { S as AlertIcon, k as Header } from "./resolveEnvironment-
|
|
6
|
+
import { S as AlertIcon, k as Header } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/Shared/AccountSetupRejected/AccountSetupRejected.tsx
|
|
9
9
|
function AccountSetupRejected() {
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "23b963ac-d601-4ef6-901f-03c8d8e50751", e._sentryDebugIdIdentifier = "sentry-dbid-23b963ac-d601-4ef6-901f-03c8d8e50751");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
6
|
-
import { r as resolveComponentProps } from "./utils-
|
|
6
|
+
import { r as resolveComponentProps } from "./utils-P67T6pKI.js";
|
|
7
7
|
import { Suspense, lazy } from "preact/compat";
|
|
8
8
|
import { useContext as useContext$1, useEffect as useEffect$1 } from "preact/hooks";
|
|
9
9
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -17,21 +17,21 @@ function useWorkflowContext() {
|
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/adaptiveWorkflow/component-registry.ts
|
|
20
|
-
var Workflow = lazy(async () => (await import("./Workflow-
|
|
21
|
-
var TaskGroup = lazy(async () => (await import("./TaskGroup-
|
|
22
|
-
var Task = lazy(async () => (await import("./Task-
|
|
23
|
-
var Step = lazy(async () => (await import("./Step-
|
|
24
|
-
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-
|
|
25
|
-
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-
|
|
26
|
-
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-
|
|
27
|
-
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-
|
|
28
|
-
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-
|
|
29
|
-
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-
|
|
30
|
-
var LegalName = lazy(async () => (await import("./LegalName-
|
|
31
|
-
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-
|
|
32
|
-
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-
|
|
33
|
-
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-
|
|
34
|
-
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-
|
|
20
|
+
var Workflow = lazy(async () => (await import("./Workflow-CzSGihyD.js")).Workflow);
|
|
21
|
+
var TaskGroup = lazy(async () => (await import("./TaskGroup-C4ND30dB.js")).TaskGroup);
|
|
22
|
+
var Task = lazy(async () => (await import("./Task-D6xuGucd.js")).Task);
|
|
23
|
+
var Step = lazy(async () => (await import("./Step-CYG94mSp.js")).Step);
|
|
24
|
+
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-Due-N8Yz.js")).ComponentGroup);
|
|
25
|
+
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-ESC2Ze3o.js")).UboTaskItem);
|
|
26
|
+
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-Cy12c7ou.js")).SourceOfFundsWorkflow);
|
|
27
|
+
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-CBEB7oAn.js")).TaxReportingWorkflow);
|
|
28
|
+
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-D2mvc_PB.js")).AcceptTermsOfServiceWorkflow);
|
|
29
|
+
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-D0eNj4nD.js")).IdentityScreeningWorkflow);
|
|
30
|
+
var LegalName = lazy(async () => (await import("./LegalName-CWoSqy0V.js")).LegalName);
|
|
31
|
+
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-BACQgHQ7.js")).TaxInformationFieldGroup);
|
|
32
|
+
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-2e9GKH-i.js")).BusinessRegistrationNumberFieldGroup);
|
|
33
|
+
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-jm8KFccr.js")).IndustryCodeFieldGroup);
|
|
34
|
+
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-BKKmSfLG.js")).IdentityNumberFieldGroup);
|
|
35
35
|
var LAYOUT_COMPONENT_MAP = {
|
|
36
36
|
layout: Workflow,
|
|
37
37
|
taskGroup: TaskGroup,
|
package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-Nk2CJaU4.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "edd6b6cc-6c46-4d3c-a304-6991ea84a6a4", e._sentryDebugIdIdentifier = "sentry-dbid-edd6b6cc-6c46-4d3c-a304-6991ea84a6a4");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
-
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-
|
|
8
|
+
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-C0EsaW8F.js";
|
|
9
9
|
import { t as useAdaptiveWorkflow } from "./useAdaptiveWorkflow-DsQESk9f.js";
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -61,65 +61,65 @@ var AdaptiveWorkflowComponent = ({ onBack }) => {
|
|
|
61
61
|
{
|
|
62
62
|
ns: "common",
|
|
63
63
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
64
|
-
"../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
65
|
-
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-
|
|
66
|
-
"../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
67
|
-
"../../../language/locales/de-DE.json": () => import("./de-DE-
|
|
68
|
-
"../../../language/locales/el-GR.json": () => import("./el-GR-
|
|
64
|
+
"../../../language/locales/bg-BG.json": () => import("./bg-BG-BizRzO_4.js"),
|
|
65
|
+
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-DcUnrLLF.js"),
|
|
66
|
+
"../../../language/locales/da-DK.json": () => import("./da-DK-DxZQbdeO.js"),
|
|
67
|
+
"../../../language/locales/de-DE.json": () => import("./de-DE-BnxQPuqK.js"),
|
|
68
|
+
"../../../language/locales/el-GR.json": () => import("./el-GR-Dv4ru2dp.js"),
|
|
69
69
|
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CqF1qVJV.js"),
|
|
70
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
71
|
-
"../../../language/locales/es-ES.json": () => import("./es-ES-
|
|
72
|
-
"../../../language/locales/es-LA.json": () => import("./es-LA-
|
|
73
|
-
"../../../language/locales/et-EE.json": () => import("./et-EE-
|
|
74
|
-
"../../../language/locales/fi-FI.json": () => import("./fi-FI-
|
|
75
|
-
"../../../language/locales/fr-FR.json": () => import("./fr-FR-
|
|
76
|
-
"../../../language/locales/hr-HR.json": () => import("./hr-HR-
|
|
77
|
-
"../../../language/locales/hu-HU.json": () => import("./hu-HU-
|
|
78
|
-
"../../../language/locales/it-IT.json": () => import("./it-IT-
|
|
79
|
-
"../../../language/locales/ja-JP.json": () => import("./ja-JP-
|
|
80
|
-
"../../../language/locales/lt-LT.json": () => import("./lt-LT-
|
|
81
|
-
"../../../language/locales/lv-LV.json": () => import("./lv-LV-
|
|
82
|
-
"../../../language/locales/nl-NL.json": () => import("./nl-NL-
|
|
83
|
-
"../../../language/locales/no-NO.json": () => import("./no-NO-
|
|
84
|
-
"../../../language/locales/pl-PL.json": () => import("./pl-PL-
|
|
85
|
-
"../../../language/locales/pt-BR.json": () => import("./pt-BR-
|
|
86
|
-
"../../../language/locales/pt-PT.json": () => import("./pt-PT-
|
|
87
|
-
"../../../language/locales/ro-RO.json": () => import("./ro-RO-
|
|
88
|
-
"../../../language/locales/sk-SK.json": () => import("./sk-SK-
|
|
89
|
-
"../../../language/locales/sl-SI.json": () => import("./sl-SI-
|
|
90
|
-
"../../../language/locales/sv-SE.json": () => import("./sv-SE-
|
|
70
|
+
"../../../language/locales/en-US.json": () => import("./en-US-C_-DId-G.js"),
|
|
71
|
+
"../../../language/locales/es-ES.json": () => import("./es-ES-DNhmrVEV.js"),
|
|
72
|
+
"../../../language/locales/es-LA.json": () => import("./es-LA-Oe31aP7N.js"),
|
|
73
|
+
"../../../language/locales/et-EE.json": () => import("./et-EE-BgBr1C0u.js"),
|
|
74
|
+
"../../../language/locales/fi-FI.json": () => import("./fi-FI-BSsXGaNE.js"),
|
|
75
|
+
"../../../language/locales/fr-FR.json": () => import("./fr-FR-C88I1PF4.js"),
|
|
76
|
+
"../../../language/locales/hr-HR.json": () => import("./hr-HR-HlAOaG4N.js"),
|
|
77
|
+
"../../../language/locales/hu-HU.json": () => import("./hu-HU-s1kS1v8Y.js"),
|
|
78
|
+
"../../../language/locales/it-IT.json": () => import("./it-IT-DPOJ9mKi.js"),
|
|
79
|
+
"../../../language/locales/ja-JP.json": () => import("./ja-JP-DGj167Zw.js"),
|
|
80
|
+
"../../../language/locales/lt-LT.json": () => import("./lt-LT-CEpjHJry.js"),
|
|
81
|
+
"../../../language/locales/lv-LV.json": () => import("./lv-LV-COsG0cJY.js"),
|
|
82
|
+
"../../../language/locales/nl-NL.json": () => import("./nl-NL-9sJ9sG_Q.js"),
|
|
83
|
+
"../../../language/locales/no-NO.json": () => import("./no-NO-DnsCTUl4.js"),
|
|
84
|
+
"../../../language/locales/pl-PL.json": () => import("./pl-PL-BX9Xsn_R.js"),
|
|
85
|
+
"../../../language/locales/pt-BR.json": () => import("./pt-BR-D23HWCOv2.js"),
|
|
86
|
+
"../../../language/locales/pt-PT.json": () => import("./pt-PT-oMj1KA74.js"),
|
|
87
|
+
"../../../language/locales/ro-RO.json": () => import("./ro-RO-Cri5-XPn.js"),
|
|
88
|
+
"../../../language/locales/sk-SK.json": () => import("./sk-SK-XvPPBgTO.js"),
|
|
89
|
+
"../../../language/locales/sl-SI.json": () => import("./sl-SI-B31X-t8A.js"),
|
|
90
|
+
"../../../language/locales/sv-SE.json": () => import("./sv-SE-DBANqFwL.js")
|
|
91
91
|
}), `../../../language/locales/${lang}.json`, 6)
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
ns: "individual",
|
|
95
95
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
96
|
-
"../../Individual/language/bg-BG.json": () => import("./bg-BG-
|
|
97
|
-
"../../Individual/language/cs-CZ.json": () => import("./cs-CZ-
|
|
98
|
-
"../../Individual/language/da-DK.json": () => import("./da-DK-
|
|
99
|
-
"../../Individual/language/de-DE.json": () => import("./de-DE-
|
|
100
|
-
"../../Individual/language/el-GR.json": () => import("./el-GR-
|
|
96
|
+
"../../Individual/language/bg-BG.json": () => import("./bg-BG-BtgA44Ui.js"),
|
|
97
|
+
"../../Individual/language/cs-CZ.json": () => import("./cs-CZ-Ci8c58xJ.js"),
|
|
98
|
+
"../../Individual/language/da-DK.json": () => import("./da-DK-C1kmOHvo.js"),
|
|
99
|
+
"../../Individual/language/de-DE.json": () => import("./de-DE-qSBQE-6M.js"),
|
|
100
|
+
"../../Individual/language/el-GR.json": () => import("./el-GR-CgoxpC-Q.js"),
|
|
101
101
|
"../../Individual/language/en-US.instructions.json": () => import("./en-US.instructions-DfgivDPI.js"),
|
|
102
102
|
"../../Individual/language/en-US.json": () => import("./en-US-C3i5Oge2.js"),
|
|
103
|
-
"../../Individual/language/es-ES.json": () => import("./es-ES-
|
|
104
|
-
"../../Individual/language/es-LA.json": () => import("./es-LA-
|
|
105
|
-
"../../Individual/language/et-EE.json": () => import("./et-EE-
|
|
106
|
-
"../../Individual/language/fi-FI.json": () => import("./fi-FI-
|
|
107
|
-
"../../Individual/language/fr-FR.json": () => import("./fr-FR-
|
|
108
|
-
"../../Individual/language/hr-HR.json": () => import("./hr-HR-
|
|
109
|
-
"../../Individual/language/hu-HU.json": () => import("./hu-HU-
|
|
110
|
-
"../../Individual/language/it-IT.json": () => import("./it-IT-
|
|
111
|
-
"../../Individual/language/ja-JP.json": () => import("./ja-JP-
|
|
112
|
-
"../../Individual/language/lt-LT.json": () => import("./lt-LT-
|
|
113
|
-
"../../Individual/language/lv-LV.json": () => import("./lv-LV-
|
|
114
|
-
"../../Individual/language/nl-NL.json": () => import("./nl-NL-
|
|
115
|
-
"../../Individual/language/no-NO.json": () => import("./no-NO-
|
|
116
|
-
"../../Individual/language/pl-PL.json": () => import("./pl-PL-
|
|
117
|
-
"../../Individual/language/pt-BR.json": () => import("./pt-BR-
|
|
118
|
-
"../../Individual/language/pt-PT.json": () => import("./pt-PT-
|
|
119
|
-
"../../Individual/language/ro-RO.json": () => import("./ro-RO-
|
|
120
|
-
"../../Individual/language/sk-SK.json": () => import("./sk-SK-
|
|
121
|
-
"../../Individual/language/sl-SI.json": () => import("./sl-SI-
|
|
122
|
-
"../../Individual/language/sv-SE.json": () => import("./sv-SE
|
|
103
|
+
"../../Individual/language/es-ES.json": () => import("./es-ES-DyB2KXfT.js"),
|
|
104
|
+
"../../Individual/language/es-LA.json": () => import("./es-LA-ChLRkx-r.js"),
|
|
105
|
+
"../../Individual/language/et-EE.json": () => import("./et-EE-DSK7kb3n.js"),
|
|
106
|
+
"../../Individual/language/fi-FI.json": () => import("./fi-FI-DgMsQBRO.js"),
|
|
107
|
+
"../../Individual/language/fr-FR.json": () => import("./fr-FR-BTJoQq71.js"),
|
|
108
|
+
"../../Individual/language/hr-HR.json": () => import("./hr-HR-COdiWKoq.js"),
|
|
109
|
+
"../../Individual/language/hu-HU.json": () => import("./hu-HU-DkSsL94T.js"),
|
|
110
|
+
"../../Individual/language/it-IT.json": () => import("./it-IT-CawjvBDX.js"),
|
|
111
|
+
"../../Individual/language/ja-JP.json": () => import("./ja-JP-Dpe9Odla.js"),
|
|
112
|
+
"../../Individual/language/lt-LT.json": () => import("./lt-LT-Fc1lOUlz.js"),
|
|
113
|
+
"../../Individual/language/lv-LV.json": () => import("./lv-LV-DctYQmfH.js"),
|
|
114
|
+
"../../Individual/language/nl-NL.json": () => import("./nl-NL-BIpptPn4.js"),
|
|
115
|
+
"../../Individual/language/no-NO.json": () => import("./no-NO-P5tRWhV9.js"),
|
|
116
|
+
"../../Individual/language/pl-PL.json": () => import("./pl-PL-_KG-ZD1N.js"),
|
|
117
|
+
"../../Individual/language/pt-BR.json": () => import("./pt-BR-fKlNUybd.js"),
|
|
118
|
+
"../../Individual/language/pt-PT.json": () => import("./pt-PT-DAvsI-Tr.js"),
|
|
119
|
+
"../../Individual/language/ro-RO.json": () => import("./ro-RO-CQJk7Cpo.js"),
|
|
120
|
+
"../../Individual/language/sk-SK.json": () => import("./sk-SK-Bx2_85dW.js"),
|
|
121
|
+
"../../Individual/language/sl-SI.json": () => import("./sl-SI-DO9c7geI.js"),
|
|
122
|
+
"../../Individual/language/sv-SE.json": () => import("./sv-SE-l_UVgmVu.js")
|
|
123
123
|
}), `../../Individual/language/${lang}.json`, 5)
|
|
124
124
|
},
|
|
125
125
|
{
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4d31ee23-23f8-4322-821c-03a805f6b7ff", e._sentryDebugIdIdentifier = "sentry-dbid-4d31ee23-23f8-4322-821c-03a805f6b7ff");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { X as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-D2iMH7UD.js";
|
|
7
|
+
import { t as Icon } from "./Icon-BcaP-f1D.js";
|
|
8
8
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
9
|
+
import { i as useAnalyticsContext } from "./Modal-BDNS-0rS.js";
|
|
10
|
+
import { t as InputText } from "./InputText-Dr-Wg0uc.js";
|
|
11
|
+
import { f as translateTranslatable, r as Field, t as Select } from "./Select-UO37dd_q.js";
|
|
12
|
+
import { k as createFormUtils, u as CountryField } from "./RadioGroup-C0mNADXE.js";
|
|
13
|
+
import { r as useDebouncedCallback } from "./Checkbox-BiKnP2fS.js";
|
|
14
|
+
import { a as getAddressSchemaLabelsByCountry, f as addressFields, i as getAddressSchemaForCountry, l as CONDENSED_ADDRESS_FIELDS, n as StateField, o as getKeyForField, u as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./StateField-CWS8eXex.js";
|
|
15
|
+
import { r as countrySpecificFormatters } from "./InputDate-C14J5Af2.js";
|
|
16
|
+
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
16
17
|
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
17
18
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
18
19
|
import { useQuery } from "@tanstack/preact-query";
|
|
@@ -37,170 +38,56 @@ var useProviderStatus = (data, options) => {
|
|
|
37
38
|
});
|
|
38
39
|
};
|
|
39
40
|
//#endregion
|
|
40
|
-
//#region src/
|
|
41
|
+
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.ts
|
|
42
|
+
var JP_ONLY_ADDRESS_FIELDS = [
|
|
43
|
+
"jaHaniStateOrProvince",
|
|
44
|
+
"jaHaniCity",
|
|
45
|
+
"jaHaniStreet",
|
|
46
|
+
"jaKanaStateOrProvince",
|
|
47
|
+
"jaKanaCity",
|
|
48
|
+
"street2FullWidth"
|
|
49
|
+
];
|
|
50
|
+
var ALL_ADDRESS_FIELDS = [...addressFields, ...JP_ONLY_ADDRESS_FIELDS];
|
|
41
51
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
52
|
+
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
53
|
+
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
54
|
+
*
|
|
55
|
+
* @param prefix - `registrationAddress` or `operationalAddress`
|
|
56
|
+
* @param trustedFields - trustedFields on legal entity
|
|
57
|
+
* @returns An array of the nested field keys that are trusted
|
|
45
58
|
*/
|
|
46
|
-
var
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return useQuery({
|
|
55
|
-
queryKey: ["addressCleanse", data],
|
|
56
|
-
queryFn: () => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data),
|
|
57
|
-
...options
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var useAddressCleanseImperatively = () => {
|
|
61
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
62
|
-
return useCallback((data) => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data), [baseUrl.value, rootLegalEntityId.value]);
|
|
63
|
-
};
|
|
64
|
-
var formatAddressForCleanse = ({ street, street2, city, country, postalCode }) => {
|
|
65
|
-
if (!street || !country) return void 0;
|
|
66
|
-
return [
|
|
67
|
-
street,
|
|
68
|
-
street2,
|
|
69
|
-
city,
|
|
70
|
-
country,
|
|
71
|
-
postalCode
|
|
72
|
-
].filter(Boolean).join(" ");
|
|
73
|
-
};
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/components/Shared/forms/Address/validate.formats.ts
|
|
76
|
-
var createFormatByDigits = (digits) => {
|
|
77
|
-
return {
|
|
78
|
-
formatter: (val) => val ? val.replace(getFormattingRegEx("^\\d", "g"), "").substring(0, digits) : void 0,
|
|
79
|
-
format: new Array(digits).fill("9").join(""),
|
|
80
|
-
maxlength: digits
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
var addressDisallowedChars = getFormattingRegEx(SPECIAL_CHARS.replace(/[-(\\/)]/g, ""));
|
|
84
|
-
var addressFormatters = {
|
|
85
|
-
postalCode: { formatter: (val, context) => {
|
|
86
|
-
const specificRule = countrySpecificFormatters[context?.state.data.country]?.postalCode?.formatter;
|
|
87
|
-
if (specificRule) return specificRule(val);
|
|
88
|
-
return val;
|
|
89
|
-
} },
|
|
90
|
-
street: { formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0 },
|
|
91
|
-
street2: { formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0 },
|
|
92
|
-
city: { formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0 }
|
|
93
|
-
};
|
|
94
|
-
var countrySpecificFormatters = {
|
|
95
|
-
[CountryCodes.Australia]: { postalCode: createFormatByDigits(4) },
|
|
96
|
-
[CountryCodes.Austria]: { postalCode: createFormatByDigits(4) },
|
|
97
|
-
[CountryCodes.Belgium]: { postalCode: createFormatByDigits(4) },
|
|
98
|
-
[CountryCodes.Brazil]: { postalCode: createFormatByDigits(8) },
|
|
99
|
-
[CountryCodes.Bulgaria]: { postalCode: createFormatByDigits(4) },
|
|
100
|
-
[CountryCodes.Canada]: { postalCode: {
|
|
101
|
-
format: "A9A 9A9 or A9A9A9",
|
|
102
|
-
maxlength: 7
|
|
103
|
-
} },
|
|
104
|
-
[CountryCodes.Croatia]: { postalCode: {
|
|
105
|
-
format: "[1-5]9999",
|
|
106
|
-
maxlength: 5
|
|
107
|
-
} },
|
|
108
|
-
[CountryCodes.Cyprus]: { postalCode: createFormatByDigits(4) },
|
|
109
|
-
[CountryCodes.CzechRepublic]: { postalCode: {
|
|
110
|
-
format: "999 99",
|
|
111
|
-
maxlength: 6
|
|
112
|
-
} },
|
|
113
|
-
[CountryCodes.Denmark]: { postalCode: {
|
|
114
|
-
format: "9999",
|
|
115
|
-
maxlength: 7
|
|
116
|
-
} },
|
|
117
|
-
[CountryCodes.Estonia]: { postalCode: createFormatByDigits(5) },
|
|
118
|
-
[CountryCodes.Finland]: { postalCode: createFormatByDigits(5) },
|
|
119
|
-
[CountryCodes.France]: { postalCode: createFormatByDigits(5) },
|
|
120
|
-
[CountryCodes.Germany]: { postalCode: createFormatByDigits(5) },
|
|
121
|
-
[CountryCodes.Gibraltar]: { postalCode: {
|
|
122
|
-
format: "GX11 1AA",
|
|
123
|
-
maxlength: 8
|
|
124
|
-
} },
|
|
125
|
-
[CountryCodes.Greece]: { postalCode: {
|
|
126
|
-
format: "999 99",
|
|
127
|
-
maxlength: 6
|
|
128
|
-
} },
|
|
129
|
-
[CountryCodes.Hungary]: { postalCode: createFormatByDigits(4) },
|
|
130
|
-
[CountryCodes.Iceland]: { postalCode: createFormatByDigits(3) },
|
|
131
|
-
[CountryCodes.Ireland]: { postalCode: {
|
|
132
|
-
format: "A99 A999",
|
|
133
|
-
maxlength: 8
|
|
134
|
-
} },
|
|
135
|
-
[CountryCodes.Italy]: { postalCode: createFormatByDigits(5) },
|
|
136
|
-
[CountryCodes.Japan]: { postalCode: createFormatByDigits(7) },
|
|
137
|
-
[CountryCodes.Latvia]: { postalCode: {
|
|
138
|
-
format: "9999 or LV-9999",
|
|
139
|
-
maxlength: 7
|
|
140
|
-
} },
|
|
141
|
-
[CountryCodes.Liechtenstein]: { postalCode: createFormatByDigits(4) },
|
|
142
|
-
[CountryCodes.Lithuania]: { postalCode: {
|
|
143
|
-
format: "9999 or 99999 or LT-99999",
|
|
144
|
-
maxlength: 8
|
|
145
|
-
} },
|
|
146
|
-
[CountryCodes.Luxembourg]: { postalCode: createFormatByDigits(4) },
|
|
147
|
-
[CountryCodes.Malaysia]: { postalCode: createFormatByDigits(5) },
|
|
148
|
-
[CountryCodes.Malta]: { postalCode: {
|
|
149
|
-
format: "2 or 3 letters + 2 or 4 digits (with optional space)",
|
|
150
|
-
maxlength: 8
|
|
151
|
-
} },
|
|
152
|
-
[CountryCodes.Monaco]: { postalCode: {
|
|
153
|
-
format: "980NN",
|
|
154
|
-
maxlength: 5
|
|
155
|
-
} },
|
|
156
|
-
[CountryCodes.Netherlands]: { postalCode: {
|
|
157
|
-
format: "9999AA",
|
|
158
|
-
maxlength: 7
|
|
159
|
-
} },
|
|
160
|
-
[CountryCodes.NewZealand]: { postalCode: createFormatByDigits(4) },
|
|
161
|
-
[CountryCodes.Norway]: { postalCode: createFormatByDigits(4) },
|
|
162
|
-
[CountryCodes.Poland]: { postalCode: {
|
|
163
|
-
formatter: (val) => {
|
|
164
|
-
if (!val) return void 0;
|
|
165
|
-
const nuVal = val.replace(getFormattingRegEx("^\\d-", "g"), "");
|
|
166
|
-
const maxlength = nuVal.includes("-") ? 6 : 5;
|
|
167
|
-
return nuVal.substring(0, maxlength);
|
|
168
|
-
},
|
|
169
|
-
format: "99-999",
|
|
170
|
-
maxlength: 6
|
|
171
|
-
} },
|
|
172
|
-
[CountryCodes.Portugal]: { postalCode: {
|
|
173
|
-
formatter: (val) => {
|
|
174
|
-
if (!val) return void 0;
|
|
175
|
-
return val.replace(getFormattingRegEx("^\\d-", "g"), "").substring(0, 8);
|
|
176
|
-
},
|
|
177
|
-
format: "9999-999",
|
|
178
|
-
maxlength: 8
|
|
179
|
-
} },
|
|
180
|
-
[CountryCodes.PuertoRico]: { postalCode: createFormatByDigits(5) },
|
|
181
|
-
[CountryCodes.Romania]: { postalCode: createFormatByDigits(6) },
|
|
182
|
-
[CountryCodes.Singapore]: { postalCode: createFormatByDigits(6) },
|
|
183
|
-
[CountryCodes.Slovakia]: { postalCode: {
|
|
184
|
-
format: "99999 or SK-99999",
|
|
185
|
-
maxlength: 8
|
|
186
|
-
} },
|
|
187
|
-
[CountryCodes.Slovenia]: { postalCode: {
|
|
188
|
-
format: "9999 or SI-9999",
|
|
189
|
-
maxlength: 7
|
|
190
|
-
} },
|
|
191
|
-
[CountryCodes.Spain]: { postalCode: createFormatByDigits(5) },
|
|
192
|
-
[CountryCodes.Sweden]: { postalCode: createFormatByDigits(5) },
|
|
193
|
-
[CountryCodes.Switzerland]: { postalCode: createFormatByDigits(4) },
|
|
194
|
-
[CountryCodes.UnitedKingdom]: { postalCode: {
|
|
195
|
-
formatter: (val) => val ? val.replace(getFormattingRegEx(SPECIAL_CHARS), "").substring(0, 8) : void 0,
|
|
196
|
-
format: "AA99 9AA or A99 9AA or A9 9AA",
|
|
197
|
-
maxlength: 8
|
|
198
|
-
} },
|
|
199
|
-
[CountryCodes.UnitedStates]: { postalCode: {
|
|
200
|
-
format: "12345 or 12345-6789",
|
|
201
|
-
maxlength: 10
|
|
202
|
-
} }
|
|
59
|
+
var getNestedTrustedFields = (prefix, trustedFields) => {
|
|
60
|
+
if (!trustedFields) return [];
|
|
61
|
+
const flattenedTrustedFields = [];
|
|
62
|
+
for (const trustedField of trustedFields) {
|
|
63
|
+
const [group, field] = trustedField.split(".");
|
|
64
|
+
if (group === prefix && field) flattenedTrustedFields.push(`${prefix}${capitalize(field)}`);
|
|
65
|
+
}
|
|
66
|
+
return flattenedTrustedFields;
|
|
203
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Flattens a nested address schema using the provided prefix to avoid collisions so each
|
|
70
|
+
* field can be handled individually.
|
|
71
|
+
*
|
|
72
|
+
* `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
|
|
73
|
+
*/
|
|
74
|
+
function flattenAddressSchema(prefix, address) {
|
|
75
|
+
const flattenedAddressSchema = {};
|
|
76
|
+
for (const field of ALL_ADDRESS_FIELDS) flattenedAddressSchema[`${prefix}${capitalize(field)}`] = address?.[field];
|
|
77
|
+
return flattenedAddressSchema;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Nests a flattened address schema, removing the provided prefix from each field. Used for
|
|
81
|
+
* utilities that still expect nested data.
|
|
82
|
+
*
|
|
83
|
+
* `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
|
|
84
|
+
*/
|
|
85
|
+
function nestAddressSchema(prefix, flatData) {
|
|
86
|
+
const nestedAddressSchema = {};
|
|
87
|
+
for (const field of ALL_ADDRESS_FIELDS) nestedAddressSchema[field] = flatData?.[`${prefix}${capitalize(field)}`];
|
|
88
|
+
return nestedAddressSchema;
|
|
89
|
+
}
|
|
90
|
+
var getPrefixedAddressFieldNames = (prefix) => ALL_ADDRESS_FIELDS.map((field) => `${prefix}${capitalize(field)}`);
|
|
204
91
|
//#endregion
|
|
205
92
|
//#region src/api/address/useRetrieveAddress.ts
|
|
206
93
|
var retrieveAddress = async (legalEntityId, baseUrl, addressId) => {
|
|
@@ -495,7 +382,6 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
|
|
|
495
382
|
data: { stateOrProvince: value },
|
|
496
383
|
valid: { stateOrProvince: valid?.stateOrProvince },
|
|
497
384
|
errors: { stateOrProvince: errorMessage },
|
|
498
|
-
isBusinessSearch: false,
|
|
499
385
|
readonly: Boolean(readOnly),
|
|
500
386
|
selectedCountry: data.country,
|
|
501
387
|
handleChangeFor,
|
|
@@ -526,4 +412,53 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
|
|
|
526
412
|
}
|
|
527
413
|
}
|
|
528
414
|
//#endregion
|
|
529
|
-
|
|
415
|
+
//#region src/components/Shared/forms/Address/AddressFields.tsx
|
|
416
|
+
var COUNTRIES_WITH_FORMATTED_ADDRESSES = ["US", "NL"];
|
|
417
|
+
function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType }) {
|
|
418
|
+
const { t } = useTranslation("common");
|
|
419
|
+
const formUtils = createFormUtils({
|
|
420
|
+
data,
|
|
421
|
+
labels: getAddressSchemaLabelsByCountry(data.country),
|
|
422
|
+
readOnly,
|
|
423
|
+
requiredFields,
|
|
424
|
+
optionalFields,
|
|
425
|
+
readOnlyFields,
|
|
426
|
+
trustedFields
|
|
427
|
+
}, t);
|
|
428
|
+
const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
429
|
+
const createField = (fieldName) => {
|
|
430
|
+
const hideField = hideCountry && fieldName === "country";
|
|
431
|
+
return /* @__PURE__ */ jsx(AddressField, {
|
|
432
|
+
schema: addressFields,
|
|
433
|
+
data,
|
|
434
|
+
valid: valid ?? {},
|
|
435
|
+
errors: errors ?? {},
|
|
436
|
+
fieldProblems: fieldValidationErrors,
|
|
437
|
+
fieldName,
|
|
438
|
+
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, data.country, true),
|
|
439
|
+
hideField,
|
|
440
|
+
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
441
|
+
optional: formUtils.isOptionalField(fieldName),
|
|
442
|
+
trimOnBlur: true,
|
|
443
|
+
handleChangeFor: handleFieldChange
|
|
444
|
+
}, fieldName);
|
|
445
|
+
};
|
|
446
|
+
if (data.country && COUNTRIES_WITH_FORMATTED_ADDRESSES.includes(data.country)) {
|
|
447
|
+
const condensedFields = CONDENSED_ADDRESS_FIELDS[data.country] ?? [];
|
|
448
|
+
switch (data.country) {
|
|
449
|
+
default: return /* @__PURE__ */ jsxs("fieldset", {
|
|
450
|
+
"aria-label": t(($) => $[addressType]),
|
|
451
|
+
children: [addressFields.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
452
|
+
className: "adyen-kyc-address__condensed-fields",
|
|
453
|
+
children: condensedFields.map((field) => createField(field))
|
|
454
|
+
})]
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
459
|
+
"aria-label": t(($) => $[addressType]),
|
|
460
|
+
children: addressFields.map((fieldName) => createField(fieldName))
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
//#endregion
|
|
464
|
+
export { getPrefixedAddressFieldNames as a, getNestedTrustedFields as i, ALL_ADDRESS_FIELDS as n, nestAddressSchema as o, flattenAddressSchema as r, useProviderStatus as s, AddressFields as t };
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "26c5e8e0-33d0-4147-97fd-df15ae6931b9", e._sentryDebugIdIdentifier = "sentry-dbid-26c5e8e0-33d0-4147-97fd-df15ae6931b9");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as Icon } from "./Icon-
|
|
5
|
+
import { t as Icon } from "./Icon-BcaP-f1D.js";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
8
|
var Avatar_module_default = {
|