@adyen/kyc-components 4.19.3 → 4.20.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-BnhH5-eC.js → Accordion-BWdAGMRb.js} +1 -1
- package/dist/{AccountSetupRejected-BSjJpsEe.js → AccountSetupRejected-C1_O6jJv.js} +2 -2
- package/dist/AdaptiveWorkflow-CcxnkwwU.js +5112 -0
- package/dist/{AdaptiveWorkflowComponent-BkFgsGiC.js → AdaptiveWorkflowComponent-CnzXTXn4.js} +36 -36
- package/dist/{Address-BBS-Y-VV.js → Address-C7EMPbk2.js} +8 -7
- package/dist/{AddressField-Dbe8-O83.js → AddressField-DLsx2U5w.js} +12 -253
- package/dist/{Avatar-Y_RdG_YY.js → Avatar-CeZIQS8n.js} +1 -1
- package/dist/{BusinessFinancingDropin-8bL2fkVm.js → BusinessFinancingDropin-x-tZL7h1.js} +33 -32
- package/dist/{BusinessFinancingPage-DV8aa_Xu.js → BusinessFinancingPage-esjygh4k.js} +33 -33
- package/dist/{utils-CKuxgSps.js → BusinessRegistrationNumberField-Di3jFH4D.js} +301 -53
- package/dist/{BusinessTypeSelectionPage-D29E9tt0.js → BusinessTypeSelectionPage-NggWJNN-.js} +18 -17
- package/dist/{Button-BuhgDsyo.js → Button-Cm7cT6BX.js} +1 -1
- package/dist/{Checkbox-CFN5ywvv.js → Checkbox-faFUul66.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-DkPByXrY.js → CompanyRegistrationNumberTypeSelector-Cx-ikuUx.js} +8 -8
- package/dist/{ContactDetails-BRBie-bX.js → ContactDetails-DEBmXhqi.js} +7 -7
- package/dist/{ContextGuidance-CgJpFWJX.js → ContextGuidance-BElID6dt.js} +2 -2
- package/dist/{CountryField-DT0dQp4X.js → CountryField-COQ0jZUr.js} +26 -21
- package/dist/{Currency-GB0vRGHi.js → Currency-BmZg_6ba.js} +8 -59
- package/dist/{CustomerSupport-D59Zi1On.js → CustomerSupport-CV8hjmuU.js} +14 -14
- package/dist/{DataConflictsModal-ylfWhjH6.js → DataConflictsModal-DEhX0dj-.js} +7 -7
- package/dist/{DebugModal-BO88XagR.js → DebugModal-CZWfupiD.js} +10 -10
- package/dist/{DecisionMakerDetails-BjylwRNE.js → DecisionMakerDetails-TM8gH66o.js} +17 -17
- package/dist/{DecisionMakerDetailsPage-D4A9J_Oi.js → DecisionMakerDetailsPage-BGBwZLa9.js} +12 -12
- package/dist/{DecisionMakers-BBKyOO7P.js → DecisionMakers-DVywCuuo.js} +18 -18
- package/dist/{Dropzone-2lpVgGQx.js → Dropzone-CNfh7t8n.js} +7 -7
- package/dist/{EmbeddedStatus-sHJnhw3K.js → EmbeddedStatus-uz3Ivsyw.js} +4 -4
- package/dist/{EndStateLayout-CddZpAGD.js → EndStateLayout-BUK64Vqu.js} +2 -2
- package/dist/{EntityAssociation-DsrNDRJa.js → EntityAssociation-AditEc-L.js} +7 -7
- package/dist/{ErrorPanel-CO-lz25B.js → ErrorPanel-Imjryvne.js} +4 -4
- package/dist/GlobalEntryModal-B3g2PO3M.js +353 -0
- package/dist/{GlobalEntryPage-BqwDgwib.js → GlobalEntryPage-DRgX-QRZ.js} +10 -10
- package/dist/{Image-Dc5Xg1_Y.js → Image-8SOcICah.js} +1 -1
- package/dist/{Individual.rules-CGEpeO1U.js → Individual.rules-Cf6J9EmJ.js} +7 -11
- package/dist/{IndividualDropin-L4_DKIAI.js → IndividualDropin-CYV3ZKHS.js} +64 -67
- package/dist/{InputDate-Cp2ga0F5.js → InputDate-DDVX2D-5.js} +2 -2
- package/dist/{InputText-CRkApOKK.js → InputText-Cf9ccCaj.js} +5 -5
- package/dist/{Introduction-3No8eERM.js → Introduction-DCzgsNoJ.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-DaLHjWMM.js → InvitedDecisionMakerComponent-DJLd6Lu5.js} +41 -41
- package/dist/{JpAddress-CFRhZj_H.js → JpAddress-DB2kYWl3.js} +19 -17
- package/dist/{JpAddress.module-Dn4Ju2bh.js → JpAddress.module-Du1BLOT6.js} +4 -4
- package/dist/{JpAddressFields-vOxKYbjD.js → JpAddressFields-DUFSKwxb.js} +15 -14
- package/dist/{LegalCompanyNameField-CSFXsi0w.js → LegalCompanyNameField-C9OqHgYV.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-Cys10cqd.js → LegalRepresentativeDetailsPage-B-cGHl1B.js} +8 -8
- package/dist/{Link-PH3F7iTO.js → Link-B7RA2gSt.js} +1 -1
- package/dist/{ListItem-B-gDVdRO.js → ListItem-Cy46BXUv.js} +27 -4
- package/dist/{MaskedInput-DzapJ4L6.js → MaskedInput-Cl4XQJWs.js} +11 -11
- package/dist/{Modal-BYdlsXkf.js → Modal-nylR9F4X.js} +1 -1
- package/dist/{Name-D-iTk5lL.js → Name-B4visbWf.js} +5 -5
- package/dist/{NewSummary-J3cpvFv5.js → NewSummary-Bfjw18hL.js} +6 -6
- package/dist/{PatriotActDisclosure-BhAvO8jw.js → PatriotActDisclosure-BGEKyaQt.js} +15 -15
- package/dist/{PayoutDetailsDropin-XjfiuWMg.js → PayoutDetailsDropin-jSQj2RD-.js} +187 -135
- package/dist/{PayoutDetailsPage-s5VdElP1.js → PayoutDetailsPage-BZdfX5jM.js} +10 -10
- package/dist/{RadioGroup-DDelawpF.js → RadioGroup-DVTPPMDE.js} +3 -3
- package/dist/{Review-iLlK8Gsw.js → Review-qQzdk3qb.js} +8 -8
- package/dist/{RootBusinessDetailsPage-CaJgVGuI.js → RootBusinessDetailsPage-TcUyXebg.js} +9 -9
- package/dist/{RootBusinessLinesPage-DG5vfFLx.js → RootBusinessLinesPage-BOqDtYb2.js} +30 -30
- package/dist/{RootIndividualDetailsPage-D8jRgkRh.js → RootIndividualDetailsPage-CEVQx7xD.js} +9 -9
- package/dist/{Select-B_JTzm_p.js → Select-Chv4JUrV.js} +12 -13
- package/dist/{SignPCIComponent-B5KSvmFl.js → SignPCIComponent-ETmKQluE.js} +56 -54
- package/dist/{SingpassSelection-Cp81PGow.js → SingpassSelection-o8XoJD5O.js} +6 -6
- package/dist/SoleProprietorshipPage-CG6uNgBk.js +70 -0
- package/dist/{SourceOfFundsPage-DOMW4CSL.js → SourceOfFundsPage-jKUQ4C86.js} +58 -44
- package/dist/{StructuredList-B7a8TRGN.js → StructuredList-C0ZSbjSm.js} +4 -4
- package/dist/{TaskListItem-BEKj7-IV.js → TaskListItem-DKIE7ZPn.js} +11 -11
- package/dist/{TaskVerificationStatus-ITLSeoau.js → TaskVerificationStatus-DMj8rsZ_.js} +1 -1
- package/dist/{TaxReportingDropin-DtSHC_PF.js → TaxReportingDropin-YQojYDDm.js} +18 -18
- package/dist/{TermsOfServiceManagement-BT2l5rmZ.js → TermsOfServiceManagement-DnMMVMcK.js} +68 -66
- package/dist/{TextArea-BzCbFjRp.js → TextArea-CoS-i-FF.js} +3 -3
- package/dist/{TrustDetailsPage-Ck61RWfw.js → TrustDetailsPage-CAkLJDcG.js} +341 -318
- package/dist/TrustMemberCompanyPage-Dk-7ziVe.js +109 -0
- package/dist/TrustMemberIndividualPage-CoDVqztD.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-pQFp7NgT.js → TrustMemberRoleAndTypePage-CHT8K362.js} +19 -19
- package/dist/{TrustMembersOverview-CBsA1RI-.js → TrustMembersOverview-vlUX7K6T.js} +14 -14
- package/dist/UnincorporatedPartnershipIndividualPage-zybaeGrq.js +79 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-auTPs-Tz.js → UnincorporatedPartnershipMemberCompanyPage-lp-NJ0pN.js} +37 -37
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CvA3KohN.js → UnincorporatedPartnershipMemberRoleAndTypePage-CMv_3G2I.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-Cox0rCBN.js → UnincorporatedPartnershipMembersOverview-BZdCH2jo.js} +9 -9
- package/dist/{VerificationErrorAlert-B0PC4P1y.js → VerificationErrorAlert-DYfqUstY.js} +4 -4
- package/dist/{accountHolderUtils-DBErj0sK.js → accountHolderUtils-C4FV_ij9.js} +1 -1
- package/dist/adyen-business-financing.js +34 -34
- package/dist/adyen-individual-configuration.js +34 -34
- package/dist/adyen-individual-status.js +33 -33
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +59 -59
- 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 +40 -40
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{bafinUtils-C0ZHrxmm.js → bafinUtils-BheS8P9F.js} +19 -19
- package/dist/bg-BG-Bmveyt6S.js +7 -0
- package/dist/{constants-O2G1QiRh.js → constants-vF9EIV5U.js} +4 -4
- package/dist/{country-BxigZW1s.js → country-IYuKDSdC.js} +14 -2
- package/dist/cs-CZ-D5CQd_YI.js +7 -0
- package/dist/da-DK-Bl0-8FN4.js +7 -0
- package/dist/de-DE-Hah2EvAY.js +7 -0
- package/dist/el-GR-C9KGlGa7.js +7 -0
- package/dist/{en-US-CWDI7JKT.js → en-US-BFM81i9K.js} +3 -1
- package/dist/{en-US-CeiLSh8o.js → en-US-BorLJXJ4.js} +3 -1
- package/dist/en-US-Del1h5SS.js +23 -0
- package/dist/en-US-DqhKW1eC.js +7 -0
- package/dist/en-US-X8pjkwa3.js +7 -0
- package/dist/{omitObscuredFieldsIfUnchanged-OWpeoceJ.js → error-G-MG9N7x.js} +19 -3
- package/dist/es-ES-DSwi-qfd.js +7 -0
- package/dist/es-LA-0IrX8yr2.js +7 -0
- package/dist/es-LA-1H8dAUVR.js +7 -0
- package/dist/es-LA-BjZq9RK_.js +7 -0
- package/dist/{es-LA-DU9jNyAv.js → es-LA-CGrMi4rR.js} +2 -2
- package/dist/{es-LA-DMpf5gAW.js → es-LA-DBBkFhgU.js} +2 -2
- package/dist/et-EE-BGpsJPjk.js +7 -0
- package/dist/fi-FI-BdrXeX9d.js +7 -0
- package/dist/{form-rules-wh_oE1AN.js → form-rules-DV3hxYqZ.js} +2 -2
- package/dist/formatValidationError-C7bubJ6u.js +23 -0
- package/dist/fr-FR-hleHEr-Y.js +7 -0
- package/dist/{getProblemsForEntity-set4Krmx.js → getProblemsForEntity-DStlTvE-.js} +2 -2
- package/dist/{getTrustedDecisionMakers-B_XpRta-.js → getTrustedDecisionMakers-CAbhvydj.js} +2 -2
- package/dist/hr-HR--ti3n_XO.js +7 -0
- package/dist/{http-CFac2y4i.js → http-D6AdUBhO.js} +57 -2
- package/dist/hu-HU-D9Avt-9f.js +7 -0
- package/dist/it-IT-Dq5z7p1-.js +7 -0
- package/dist/ja-JP-Dyhw0Ycj.js +7 -0
- package/dist/japanSupportUtils-H5Zfox2v.js +11 -0
- package/dist/{localizeDateString-BRB4gPDZ.js → localizeDateString-D-MlYN4V.js} +1 -1
- package/dist/lt-LT-BMI4JzrS.js +7 -0
- package/dist/lv-LV-LkNZQ__4.js +7 -0
- package/dist/mapExistingFile-LvvzPjnk.js +55 -0
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DRXCsaz1.js → mapJpAddressSchemaToAddressLocalizations-DDUtPeTO.js} +3 -51
- package/dist/{mapLegalEntityToIndividualSchema-CLIcMhX7.js → mapLegalEntityToIndividualSchema-mRiQ3tJY.js} +8 -8
- package/dist/{mapTransferInstrumentToPayoutAccount-DAXQcZKf.js → mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js} +2 -2
- package/dist/nl-NL-CC2r7Ldv.js +7 -0
- package/dist/no-NO-V7_rz3uN.js +7 -0
- package/dist/{patternValidators-Du9xAjZM.js → patternValidators-DZ7aKZAe.js} +1 -1
- package/dist/pl-PL-2QyKX67Y.js +7 -0
- package/dist/{processCapabilities-zti_0yUx.js → processCapabilities-BSpmJOEd.js} +13 -13
- package/dist/{processValidationErrors-ZmBA9Egc.js → processValidationErrors-DM-tJ5ua.js} +2 -2
- package/dist/pt-BR-D08Fo1qY.js +7 -0
- package/dist/pt-PT-BAQWYDe6.js +7 -0
- package/dist/{resolveEnvironment-CIuEEnSu.js → resolveEnvironment-BsUsq25-.js} +39 -39
- package/dist/ro-RO-wG0rfL5w.js +7 -0
- package/dist/sk-SK-DJinBnS1.js +7 -0
- package/dist/sl-SI-DUaLO_J7.js +7 -0
- package/dist/style.css +153 -139
- package/dist/styles-DYaAeu4q.js +153 -139
- package/dist/sv-SE-5uxyEq2a.js +7 -0
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/{translation-CcKrUksA.js → translation-DH4IlMCP.js} +6 -2
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +46 -0
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/contextMap.d.ts +5 -0
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/useCustomerDataV2.d.ts +28 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/SourceOfFundsWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/TaxReportingWorkflow.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +5 -0
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +8 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +8 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +20 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/WorkflowHeading/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/types.d.ts +31 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +22 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useHideTaskStepper.d.ts +6 -0
- package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -0
- package/dist/types/adaptiveWorkflow/utils/getNodeType.d.ts +11 -0
- package/dist/types/adaptiveWorkflow/utils/getProgressSteps.d.ts +4 -0
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +6 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/usePayoutAccountFormat.d.ts +10 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -29
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -27
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +2 -2
- package/dist/types/components/Business/forms/rules.d.ts +7 -3
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +2 -3
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/{SoleProprietorship → Business}/pages/SoleProprietorshipPage.d.ts +2 -2
- package/dist/types/components/{Trust → Business}/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/{UnincorporatedPartnership → Business}/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -5
- package/dist/types/components/Business/utils/utils.d.ts +3 -5
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +93 -93
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +5 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +2 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +13 -3
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +3 -0
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +2 -2
- package/dist/types/components/Individual/forms/GuidanceQuestion/GuidanceQuestion.d.ts +4 -3
- package/dist/types/components/{Trust → Individual}/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/{UnincorporatedPartnership → Individual}/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/RegistrationAndOperationalAddressFields.d.ts +3 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +53 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +28 -0
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +12 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +4 -4
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/TrustRegistrationAddress.d.ts +2 -0
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +9 -0
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/Trust.d.ts +2 -1
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +6 -0
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +8 -2
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -3
- package/dist/types/context/WorkflowContext/WorkflowContext.d.ts +3 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -3
- package/dist/types/hooks/useForm/types.d.ts +3 -2
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -16
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/router/routeConfig.d.ts +5 -5
- package/dist/types/types/form-rules.d.ts +0 -2
- package/dist/types/utils/country.d.ts +6 -0
- package/dist/types/utils/decodeJwt.d.ts +13 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/formUtils.d.ts +4 -3
- package/dist/types/utils/validation/formatValidationError.d.ts +11 -0
- package/dist/types/utils/validation/types.d.ts +4 -4
- package/dist/{types-lzI_sUwT.js → types-BLWT7WnU.js} +1 -1
- package/dist/{useAssociatedLegalEntity-DB8HCSwp.js → useAssociatedLegalEntity-CzQlHWXy.js} +2 -2
- package/dist/{useBusinessDetailsData-COrYhhx5.js → useBusinessDetailsData-BNf9xVKq.js} +129 -310
- package/dist/{useBusinessLines-CfQYLNkw.js → useBusinessLines-D-rc-Z6G.js} +1 -1
- package/dist/{useCanSeeIntroduction-C0Ls5q3Y.js → useCanSeeIntroduction-Uwz3o1s1.js} +1 -1
- package/dist/{useCreateLegalEntity-CVBjJUw_.js → useCreateLegalEntity-Ctdmk3Ky.js} +1 -1
- package/dist/{useDataMissingRemediations-BEdoAjt3.js → useDataMissingRemediations-DNZ_UDbI.js} +2 -2
- package/dist/{useForm-mnby7aNL.js → useForm-Bm5kOFLB.js} +3 -3
- package/dist/{useId-CpkOZVzk.js → useId-CIQmPG2J.js} +3 -3
- package/dist/{useLegalEntity-BqO7Fmt0.js → useLegalEntity-DR51Q4mE.js} +1 -1
- package/dist/{useNavigate-3tjPMUx9.js → useNavigate-DwSnqa-v.js} +33 -33
- package/dist/{useOnboardingStatus-Bg1z2ftv.js → useOnboardingStatus-op5TyMUR.js} +1 -1
- package/dist/{usePciQuestionnaireList-Dq1w684P.js → usePciQuestionnaireList-BZsgbrTy.js} +1 -1
- package/dist/{useSalesChannels-D66W1KV8.js → useSalesChannels-Mi6DmHab.js} +2 -2
- package/dist/{useScenarios-BunWDxgO.js → useScenarios-Bne3C0PV.js} +1 -1
- package/dist/{useTaskLandedEvent-BTVaABDA.js → useTaskLandedEvent-C7fcguXK.js} +1 -1
- package/dist/{useTaskStatus-B_-IRF4H.js → useTaskStatus-Be6XyW54.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CGIpBA0U.js → useTermsOfServiceStatus-D0NHUKl_.js} +1 -1
- package/dist/{useTrustMembers-DNacFMbe.js → useTrustMembers-CEUXUezm.js} +5 -5
- package/dist/{useUnincorporatedPartnershipMembers-DgD91qBf.js → useUnincorporatedPartnershipMembers-C5CNWe_U.js} +2 -2
- package/dist/{useUpdateBusinessLines-C2xW-32U.js → useUpdateBusinessLines-D6D9DAn1.js} +1 -1
- package/dist/{useUpdateLegalEntity-BwDNGWEv.js → useUpdateLegalEntity-C1KlPeao.js} +2 -2
- package/dist/{utils-BSUjLXoX.js → utils-BTWo42KA.js} +5 -5
- package/dist/{utils-CDTxJSnQ.js → utils-CEpJoi7o.js} +1 -1
- package/dist/{utils-DkJ03MkB.js → utils-c16NHFn9.js} +7 -7
- package/dist/{validate-K01plHbc.js → validate-BNu91k9j.js} +4 -4
- package/dist/validate-CbjnKo0X.js +250 -0
- package/dist/{validate-BShti_z8.js → validate-Ce2vF6Gx.js} +1 -1
- package/dist/{validateExtractionResult-mzxEgE7T.js → validateExtractionResult-D5gTSZhC.js} +10 -10
- package/dist/{validationError-CCy_FD-J.js → validationError-BAK8fc6r.js} +1 -1
- package/package.json +3 -4
- package/dist/AdaptiveWorkflow-CePa2kb-.js +0 -1896
- package/dist/GlobalEntryModal-ClB54Ua2.js +0 -188
- package/dist/SoleProprietorshipPage-BfSpYRb3.js +0 -70
- package/dist/TrustMemberCompanyPage-ChsPdxqZ.js +0 -109
- package/dist/TrustMemberIndividualPage-Dxlx84gI.js +0 -109
- package/dist/UnincorporatedPartnershipIndividualPage-Cklyql48.js +0 -79
- package/dist/bg-BG-BXAB4Qsj.js +0 -7
- package/dist/cs-CZ-DG5rPvy2.js +0 -7
- package/dist/da-DK-BnW-O75l.js +0 -7
- package/dist/de-DE-DUiPzmSc.js +0 -7
- package/dist/el-GR-1n3FJpd3.js +0 -7
- package/dist/en-US-B48_sHax.js +0 -13
- package/dist/en-US-BV2Gye3t.js +0 -7
- package/dist/en-US-CqjOvqxV.js +0 -7
- package/dist/es-ES-Cp45mlyV.js +0 -7
- package/dist/es-LA-BU32JqC-.js +0 -7
- package/dist/es-LA-Cyf48j4P.js +0 -7
- package/dist/es-LA-De_gTMKb.js +0 -7
- package/dist/et-EE-B4czzgF8.js +0 -7
- package/dist/fi-FI-D08MUkuM.js +0 -7
- package/dist/fr-FR-BxDpVfWO.js +0 -7
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/hr-HR-DGQMquDg.js +0 -7
- package/dist/hu-HU-Eofp7khl.js +0 -7
- package/dist/it-IT-CD7NJtJa.js +0 -7
- package/dist/ja-JP-YvXztswF.js +0 -7
- package/dist/lt-LT-Cjx4H-0R.js +0 -7
- package/dist/lv-LV-Ckf37gXo.js +0 -7
- package/dist/mapExistingFile-BOXehUNN.js +0 -138
- package/dist/nl-NL-DFHAkUK3.js +0 -7
- package/dist/no-NO-B6frLiko.js +0 -7
- package/dist/pl-PL-DnYkTdjO.js +0 -7
- package/dist/pt-BR-65dQv8uO.js +0 -7
- package/dist/pt-PT-D0fXeW1f.js +0 -7
- package/dist/ro-RO-CNj95qQn.js +0 -7
- package/dist/sk-SK-C0x9Vs2X.js +0 -7
- package/dist/sl-SI-BikBCOJK.js +0 -7
- package/dist/sv-SE-BGP9Lmku.js +0 -7
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddress.d.ts +0 -3
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +0 -3
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -26
- package/dist/types/components/Shared/forms/RegistrationAddress/validate.d.ts +0 -3
- package/dist/types/utils/getDisplayErrorMessage.d.ts +0 -2
- /package/dist/types/components/{SoleProprietorship → Trust}/hooks/useExemptSettlor.d.ts +0 -0
package/dist/{RootIndividualDetailsPage-D8jRgkRh.js → RootIndividualDetailsPage-CEVQx7xD.js}
RENAMED
|
@@ -1,19 +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] = "0759c39a-ca3e-4943-8808-1becc2d9c4ae", e._sentryDebugIdIdentifier = "sentry-dbid-0759c39a-ca3e-4943-8808-1becc2d9c4ae");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default, _ as isPartOfTrustFromLegalEntity, ft as useAccountHolder } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader } from "./Button-
|
|
8
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, _ as isPartOfTrustFromLegalEntity, ft as useAccountHolder } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { r as Loader } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
10
10
|
import { a as noop } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
11
|
-
import { C as EntityTypes, c as individualBaseMapping } from "./processCapabilities-
|
|
11
|
+
import { C as EntityTypes, c as individualBaseMapping } from "./processCapabilities-BSpmJOEd.js";
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
-
import {
|
|
14
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
13
|
+
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-Cy46BXUv.js";
|
|
14
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-DStlTvE-.js";
|
|
15
15
|
import { t as filterProblemsByTaskForms } from "./filterProblemsByTaskForms-DaJ3LZ2L.js";
|
|
16
|
-
import { n as individualForms, t as IndividualDropin } from "./IndividualDropin-
|
|
16
|
+
import { n as individualForms, t as IndividualDropin } from "./IndividualDropin-CYV3ZKHS.js";
|
|
17
17
|
import { jsx } from "preact/jsx-runtime";
|
|
18
18
|
//#region src/components/Individual/pages/RootIndividualDetailsPage.tsx
|
|
19
19
|
function RootIndividualDetailsPage({ asModal = false, hideSidebar = false, isTargetLegalEntityType = false, onSubmit, handleBackClick, handleCloseClick, handleHomeClick = noop }) {
|
|
@@ -1,14 +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] = "2e9aab75-a2b1-48f3-9677-494531504196", e._sentryDebugIdIdentifier = "sentry-dbid-2e9aab75-a2b1-48f3-9677-494531504196");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { I as ToastContextProvider } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader } from "./Button-
|
|
5
|
+
import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { I as ToastContextProvider } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { r as Loader } from "./Button-Cm7cT6BX.js";
|
|
8
8
|
import { a as noop, s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
|
-
import { i as useAnalyticsContext, r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
10
|
-
import { t as useId } from "./useId-
|
|
11
|
-
import { n as debouncedInputEvent, t as Checkbox } from "./Checkbox-
|
|
9
|
+
import { i as useAnalyticsContext, r as KEYBOARD_KEYS, t as Modal } from "./Modal-nylR9F4X.js";
|
|
10
|
+
import { t as useId } from "./useId-CIQmPG2J.js";
|
|
11
|
+
import { n as debouncedInputEvent, t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
12
12
|
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -229,12 +229,11 @@ var Field = ({ className, children, disabled, optional, errorMessage, formatGuid
|
|
|
229
229
|
const Label = el === "fieldset" ? "legend" : "label";
|
|
230
230
|
useEffect(() => {
|
|
231
231
|
if (!errorMessage) return;
|
|
232
|
-
const returnValue = typeof errorMessage === "string" && errorMessage || typeof errorMessage === "object" && errorMessage.key || "invalid";
|
|
233
232
|
userEvents.addFieldEvent("Encountered error", {
|
|
234
233
|
actionType: "input",
|
|
235
234
|
field: name,
|
|
236
235
|
returnType: "validation",
|
|
237
|
-
returnValue
|
|
236
|
+
returnValue: errorMessage.key
|
|
238
237
|
});
|
|
239
238
|
}, [
|
|
240
239
|
name,
|
|
@@ -301,16 +300,16 @@ var Field = ({ className, children, disabled, optional, errorMessage, formatGuid
|
|
|
301
300
|
})
|
|
302
301
|
]
|
|
303
302
|
}),
|
|
304
|
-
/* @__PURE__ */ jsxs("div", {
|
|
303
|
+
!!errorMessage?.message && /* @__PURE__ */ jsxs("div", {
|
|
305
304
|
"aria-live": "polite",
|
|
306
305
|
"aria-atomic": true,
|
|
307
306
|
className: "adyen-kyc-error-text",
|
|
308
307
|
children: [/* @__PURE__ */ jsx("span", {
|
|
309
308
|
className: "u-screen-reader-only",
|
|
310
309
|
children: `${label}:`
|
|
311
|
-
}),
|
|
310
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
312
311
|
id: elementIds.error,
|
|
313
|
-
children: [
|
|
312
|
+
children: [errorMessage.message, showErrorIconBottom && /* @__PURE__ */ jsx("span", {
|
|
314
313
|
className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid-bottom",
|
|
315
314
|
children: /* @__PURE__ */ jsx(Icon, { name: "field-error" })
|
|
316
315
|
})]
|
|
@@ -1088,4 +1087,4 @@ var Select = ({ id, items, filterable = true, readonly = false, onChange, onSele
|
|
|
1088
1087
|
});
|
|
1089
1088
|
};
|
|
1090
1089
|
//#endregion
|
|
1091
|
-
export { MaybeModal as a, getDataByFields as c,
|
|
1090
|
+
export { MaybeModal as a, getDataByFields as c, isTranslationObject as d, translateTranslatable as f, ProgressBar as i, omitKeys as l, SelectListItem as n, ValidationResult as o, LoaderWrapper as p, Field as r, addKeys as s, Select as t, getLanguageCode as u };
|
|
@@ -1,24 +1,25 @@
|
|
|
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] = "fc198123-e9ca-4a74-9e37-057ccbbe7aee", e._sentryDebugIdIdentifier = "sentry-dbid-fc198123-e9ca-4a74-9e37-057ccbbe7aee");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default, nt as isEmpty } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
9
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { l as __exportAll, n as addResourceBundles, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, nt as isEmpty } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { r as Loader, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as httpPost, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
10
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
11
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
12
12
|
import { r as getOwnDecisionMakers } from "./decisionMakerRoles-CTy0faoW.js";
|
|
13
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
14
|
-
import { n as usePciStatus, t as useSalesChannels } from "./useSalesChannels-
|
|
13
|
+
import { i as useAnalyticsContext } from "./Modal-nylR9F4X.js";
|
|
14
|
+
import { n as usePciStatus, t as useSalesChannels } from "./useSalesChannels-Mi6DmHab.js";
|
|
15
15
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
16
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
17
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
18
|
-
import { a as MaybeModal, r as Field, t as Select } from "./Select-
|
|
19
|
-
import { t as Checkbox } from "./Checkbox-
|
|
20
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
21
|
-
import { t as useForm } from "./useForm-
|
|
16
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-CIQmPG2J.js";
|
|
17
|
+
import { t as EndStateLayout } from "./EndStateLayout-BUK64Vqu.js";
|
|
18
|
+
import { a as MaybeModal, r as Field, t as Select } from "./Select-Chv4JUrV.js";
|
|
19
|
+
import { t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
20
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C7fcguXK.js";
|
|
21
|
+
import { t as useForm } from "./useForm-Bm5kOFLB.js";
|
|
22
|
+
import { t as formatValidationError } from "./formatValidationError-C7bubJ6u.js";
|
|
22
23
|
import { t as ContractViewer } from "./ContractViewer-JtnAXSDa.js";
|
|
23
24
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
24
25
|
import { useCallback, useMemo, useState } from "preact/hooks";
|
|
@@ -80,7 +81,8 @@ var pciValidationRules = {
|
|
|
80
81
|
//#region src/components/Contract/tasks/PciDropin/PciDropin.tsx
|
|
81
82
|
var PciFields = ["signer", "acceptPci"];
|
|
82
83
|
function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, asModal = false, needsSigning = true, handleCloseClick }) {
|
|
83
|
-
const { t } = useTranslation(
|
|
84
|
+
const { t: contractT } = useTranslation("contract");
|
|
85
|
+
const { t: commonT } = useTranslation("common");
|
|
84
86
|
const userEvents = useAnalyticsContext();
|
|
85
87
|
const { showToast } = useToastContext();
|
|
86
88
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -113,7 +115,7 @@ function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick,
|
|
|
113
115
|
});
|
|
114
116
|
setIsLoading(false);
|
|
115
117
|
showToast({
|
|
116
|
-
label:
|
|
118
|
+
label: contractT(($) => $["pciSignedSuccessfully"]),
|
|
117
119
|
variant: "success"
|
|
118
120
|
});
|
|
119
121
|
userEvents.addTaskEvent("Success", baseTracking);
|
|
@@ -121,7 +123,7 @@ function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick,
|
|
|
121
123
|
} catch (e) {
|
|
122
124
|
setIsLoading(false);
|
|
123
125
|
showToast({
|
|
124
|
-
label:
|
|
126
|
+
label: contractT(($) => $["signingFailed"]),
|
|
125
127
|
variant: "error"
|
|
126
128
|
});
|
|
127
129
|
userEvents.addTaskEvent("Encountered error", {
|
|
@@ -153,32 +155,32 @@ function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick,
|
|
|
153
155
|
* Analytics
|
|
154
156
|
*/
|
|
155
157
|
useTaskLandedEvent("PCI_DSS");
|
|
156
|
-
const acceptPciLabel = `${
|
|
158
|
+
const acceptPciLabel = `${contractT(($) => $["acknowledgePciRequirements"])} ${contractT(($) => $["basedOnTheAboveSignatory"])}`;
|
|
157
159
|
const actions = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
|
|
158
160
|
onClick: handleSignClick,
|
|
159
161
|
fullWidth: true,
|
|
160
162
|
disabled: isLoading,
|
|
161
|
-
children:
|
|
163
|
+
children: commonT(($) => $["sign"])
|
|
162
164
|
}), /* @__PURE__ */ jsx(Button, {
|
|
163
165
|
variant: "secondary",
|
|
164
166
|
onClick: goHome,
|
|
165
167
|
fullWidth: true,
|
|
166
|
-
children:
|
|
168
|
+
children: commonT(($) => $["finishLater"])
|
|
167
169
|
})] });
|
|
168
170
|
return /* @__PURE__ */ jsx(MaybeModal, {
|
|
169
171
|
inline: !asModal,
|
|
170
172
|
onClose: handleCloseClick,
|
|
171
173
|
inset: true,
|
|
172
174
|
children: !needsSigning ? /* @__PURE__ */ jsx(EndStateLayout, {
|
|
173
|
-
title:
|
|
174
|
-
description:
|
|
175
|
+
title: commonT(($) => $["agreementSigned"]),
|
|
176
|
+
description: contractT(($) => $["pciDssSelfServiceQuestionnaireSignedSuccessfully"]),
|
|
175
177
|
action: handleCloseClick && /* @__PURE__ */ jsx(Button, {
|
|
176
178
|
onClick: handleCloseClick,
|
|
177
179
|
fullWidth: true,
|
|
178
|
-
children:
|
|
180
|
+
children: commonT(($) => $["finish"])
|
|
179
181
|
})
|
|
180
182
|
}) : /* @__PURE__ */ jsxs(DetailViewLayout, {
|
|
181
|
-
title:
|
|
183
|
+
title: contractT(($) => $["pciDssSelfServiceQuestionnaire"]),
|
|
182
184
|
compact: asModal,
|
|
183
185
|
actions,
|
|
184
186
|
children: [
|
|
@@ -188,22 +190,22 @@ function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick,
|
|
|
188
190
|
}) }),
|
|
189
191
|
/* @__PURE__ */ jsx(Field, {
|
|
190
192
|
name: "signer",
|
|
191
|
-
label:
|
|
192
|
-
errorMessage: errors.signer?.errorMessage,
|
|
193
|
+
label: commonT(($) => $["signatory"]),
|
|
194
|
+
errorMessage: formatValidationError(errors.signer?.errorMessage, commonT),
|
|
193
195
|
isValid: valid.signer,
|
|
194
196
|
dataTestId: "signer",
|
|
195
197
|
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
196
198
|
...childProps,
|
|
197
199
|
onChange: handleChangeFor("signer", "blur"),
|
|
198
200
|
name: "signer",
|
|
199
|
-
placeholder:
|
|
201
|
+
placeholder: contractT(($) => $["selectSigner"]),
|
|
200
202
|
selected: data.signer,
|
|
201
203
|
items: signers
|
|
202
204
|
})
|
|
203
205
|
}),
|
|
204
206
|
/* @__PURE__ */ jsx(Field, {
|
|
205
207
|
name: "acceptPci",
|
|
206
|
-
errorMessage: errors.acceptPci?.errorMessage,
|
|
208
|
+
errorMessage: formatValidationError(errors.acceptPci?.errorMessage, commonT),
|
|
207
209
|
isValid: valid.acceptPci,
|
|
208
210
|
showErrorIconBottom: true,
|
|
209
211
|
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
@@ -228,33 +230,33 @@ function SignPCIComponent({ modalView = false, onClose, onSigned, onUnmount, sel
|
|
|
228
230
|
{
|
|
229
231
|
ns: "common",
|
|
230
232
|
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
231
|
-
"../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
232
|
-
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-
|
|
233
|
-
"../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
234
|
-
"../../../language/locales/de-DE.json": () => import("./de-DE-
|
|
235
|
-
"../../../language/locales/el-GR.json": () => import("./el-GR-
|
|
233
|
+
"../../../language/locales/bg-BG.json": () => import("./bg-BG-Bmveyt6S.js"),
|
|
234
|
+
"../../../language/locales/cs-CZ.json": () => import("./cs-CZ-D5CQd_YI.js"),
|
|
235
|
+
"../../../language/locales/da-DK.json": () => import("./da-DK-Bl0-8FN4.js"),
|
|
236
|
+
"../../../language/locales/de-DE.json": () => import("./de-DE-Hah2EvAY.js"),
|
|
237
|
+
"../../../language/locales/el-GR.json": () => import("./el-GR-C9KGlGa7.js"),
|
|
236
238
|
"../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-pRLq5gXB.js"),
|
|
237
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
238
|
-
"../../../language/locales/es-ES.json": () => import("./es-ES-
|
|
239
|
-
"../../../language/locales/es-LA.json": () => import("./es-LA-
|
|
240
|
-
"../../../language/locales/et-EE.json": () => import("./et-EE-
|
|
241
|
-
"../../../language/locales/fi-FI.json": () => import("./fi-FI-
|
|
242
|
-
"../../../language/locales/fr-FR.json": () => import("./fr-FR-
|
|
243
|
-
"../../../language/locales/hr-HR.json": () => import("./hr-HR
|
|
244
|
-
"../../../language/locales/hu-HU.json": () => import("./hu-HU-
|
|
245
|
-
"../../../language/locales/it-IT.json": () => import("./it-IT-
|
|
246
|
-
"../../../language/locales/ja-JP.json": () => import("./ja-JP-
|
|
247
|
-
"../../../language/locales/lt-LT.json": () => import("./lt-LT-
|
|
248
|
-
"../../../language/locales/lv-LV.json": () => import("./lv-LV-
|
|
249
|
-
"../../../language/locales/nl-NL.json": () => import("./nl-NL-
|
|
250
|
-
"../../../language/locales/no-NO.json": () => import("./no-NO-
|
|
251
|
-
"../../../language/locales/pl-PL.json": () => import("./pl-PL-
|
|
252
|
-
"../../../language/locales/pt-BR.json": () => import("./pt-BR-
|
|
253
|
-
"../../../language/locales/pt-PT.json": () => import("./pt-PT-
|
|
254
|
-
"../../../language/locales/ro-RO.json": () => import("./ro-RO-
|
|
255
|
-
"../../../language/locales/sk-SK.json": () => import("./sk-SK-
|
|
256
|
-
"../../../language/locales/sl-SI.json": () => import("./sl-SI-
|
|
257
|
-
"../../../language/locales/sv-SE.json": () => import("./sv-SE-
|
|
239
|
+
"../../../language/locales/en-US.json": () => import("./en-US-X8pjkwa3.js"),
|
|
240
|
+
"../../../language/locales/es-ES.json": () => import("./es-ES-DSwi-qfd.js"),
|
|
241
|
+
"../../../language/locales/es-LA.json": () => import("./es-LA-1H8dAUVR.js"),
|
|
242
|
+
"../../../language/locales/et-EE.json": () => import("./et-EE-BGpsJPjk.js"),
|
|
243
|
+
"../../../language/locales/fi-FI.json": () => import("./fi-FI-BdrXeX9d.js"),
|
|
244
|
+
"../../../language/locales/fr-FR.json": () => import("./fr-FR-hleHEr-Y.js"),
|
|
245
|
+
"../../../language/locales/hr-HR.json": () => import("./hr-HR--ti3n_XO.js"),
|
|
246
|
+
"../../../language/locales/hu-HU.json": () => import("./hu-HU-D9Avt-9f.js"),
|
|
247
|
+
"../../../language/locales/it-IT.json": () => import("./it-IT-Dq5z7p1-.js"),
|
|
248
|
+
"../../../language/locales/ja-JP.json": () => import("./ja-JP-Dyhw0Ycj.js"),
|
|
249
|
+
"../../../language/locales/lt-LT.json": () => import("./lt-LT-BMI4JzrS.js"),
|
|
250
|
+
"../../../language/locales/lv-LV.json": () => import("./lv-LV-LkNZQ__4.js"),
|
|
251
|
+
"../../../language/locales/nl-NL.json": () => import("./nl-NL-CC2r7Ldv.js"),
|
|
252
|
+
"../../../language/locales/no-NO.json": () => import("./no-NO-V7_rz3uN.js"),
|
|
253
|
+
"../../../language/locales/pl-PL.json": () => import("./pl-PL-2QyKX67Y.js"),
|
|
254
|
+
"../../../language/locales/pt-BR.json": () => import("./pt-BR-D08Fo1qY.js"),
|
|
255
|
+
"../../../language/locales/pt-PT.json": () => import("./pt-PT-BAQWYDe6.js"),
|
|
256
|
+
"../../../language/locales/ro-RO.json": () => import("./ro-RO-wG0rfL5w.js"),
|
|
257
|
+
"../../../language/locales/sk-SK.json": () => import("./sk-SK-DJinBnS1.js"),
|
|
258
|
+
"../../../language/locales/sl-SI.json": () => import("./sl-SI-DUaLO_J7.js"),
|
|
259
|
+
"../../../language/locales/sv-SE.json": () => import("./sv-SE-5uxyEq2a.js")
|
|
258
260
|
}), `../../../language/locales/${lang}.json`, 6)
|
|
259
261
|
},
|
|
260
262
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cf55f2da-88f2-4527-84d6-5df8a9bf04be", e._sentryDebugIdIdentifier = "sentry-dbid-cf55f2da-88f2-4527-84d6-5df8a9bf04be");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, r as useTranslation } from "./translation-
|
|
6
|
-
import { t as Button } from "./Button-
|
|
5
|
+
import { i as Typography, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { t as Button } from "./Button-Cm7cT6BX.js";
|
|
7
7
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
8
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
9
9
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
10
|
-
import { r as Field } from "./Select-
|
|
11
|
-
import { t as Image } from "./Image-
|
|
12
|
-
import { t as useForm } from "./useForm-
|
|
10
|
+
import { r as Field } from "./Select-Chv4JUrV.js";
|
|
11
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
12
|
+
import { t as useForm } from "./useForm-Bm5kOFLB.js";
|
|
13
13
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
14
14
|
import { lazy } from "preact/compat";
|
|
15
15
|
import { useState as useState$1 } from "preact/hooks";
|
|
@@ -0,0 +1,70 @@
|
|
|
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] = "b3339d4f-4f97-4f72-afa7-eff934d28e81", e._sentryDebugIdIdentifier = "sentry-dbid-b3339d4f-4f97-4f72-afa7-eff934d28e81");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { r as Loader } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as useLegalEntity } from "./useLegalEntity-DR51Q4mE.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
10
|
+
import { C as EntityTypes } from "./processCapabilities-BSpmJOEd.js";
|
|
11
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
12
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-DStlTvE-.js";
|
|
13
|
+
import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BNf9xVKq.js";
|
|
14
|
+
import { jsx } from "preact/jsx-runtime";
|
|
15
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
16
|
+
//#region src/components/Business/pages/SoleProprietorshipPage.tsx
|
|
17
|
+
function SoleProprietorshipPage({ solePropId, onSubmit, handleHomeClick }) {
|
|
18
|
+
const { i18n } = useTranslation();
|
|
19
|
+
const { data: solePropLe } = useLegalEntity(solePropId ?? skipToken);
|
|
20
|
+
const capabilityProblems = useCapabilityProblems();
|
|
21
|
+
const { data, isLoading } = useBusinessDetailsData(TaskTypes.TRUST_MEMBER_COMPANY, solePropLe);
|
|
22
|
+
addResourceBundles(i18n, [{
|
|
23
|
+
ns: "business",
|
|
24
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
25
|
+
"../language/bg-BG.json": () => import("./bg-BG-BkIvSbsH.js"),
|
|
26
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-CPvgcrDs.js"),
|
|
27
|
+
"../language/da-DK.json": () => import("./da-DK-D5969QKP.js"),
|
|
28
|
+
"../language/de-DE.json": () => import("./de-DE-uDUBu-3n.js"),
|
|
29
|
+
"../language/el-GR.json": () => import("./el-GR-DWh7gn7M.js"),
|
|
30
|
+
"../language/en-US.json": () => import("./en-US-DqhKW1eC.js"),
|
|
31
|
+
"../language/es-ES.json": () => import("./es-ES-C7XCTACS.js"),
|
|
32
|
+
"../language/es-LA.json": () => import("./es-LA-0IrX8yr2.js"),
|
|
33
|
+
"../language/et-EE.json": () => import("./et-EE-OAYKzRjG.js"),
|
|
34
|
+
"../language/fi-FI.json": () => import("./fi-FI-Cdof5NRG.js"),
|
|
35
|
+
"../language/fr-FR.json": () => import("./fr-FR-NOULV1vy.js"),
|
|
36
|
+
"../language/hr-HR.json": () => import("./hr-HR-2h3d5-q3.js"),
|
|
37
|
+
"../language/hu-HU.json": () => import("./hu-HU-VLUIAFMp.js"),
|
|
38
|
+
"../language/it-IT.json": () => import("./it-IT-CWIAGNlE.js"),
|
|
39
|
+
"../language/ja-JP.json": () => import("./ja-JP-C1c2UPpy.js"),
|
|
40
|
+
"../language/lt-LT.json": () => import("./lt-LT-C62dFtWW.js"),
|
|
41
|
+
"../language/lv-LV.json": () => import("./lv-LV-W0I-UUyj.js"),
|
|
42
|
+
"../language/nl-NL.json": () => import("./nl-NL-C9HoBicG.js"),
|
|
43
|
+
"../language/no-NO.json": () => import("./no-NO-Bo9rlROU.js"),
|
|
44
|
+
"../language/pl-PL.json": () => import("./pl-PL-STp7eeFE.js"),
|
|
45
|
+
"../language/pt-BR.json": () => import("./pt-BR-CFGpH3BW.js"),
|
|
46
|
+
"../language/pt-PT.json": () => import("./pt-PT-BHR4CEnv.js"),
|
|
47
|
+
"../language/ro-RO.json": () => import("./ro-RO-ni-ZNqXU.js"),
|
|
48
|
+
"../language/sk-SK.json": () => import("./sk-SK-DQAGAOJW.js"),
|
|
49
|
+
"../language/sl-SI.json": () => import("./sl-SI-B-MLX0nT.js"),
|
|
50
|
+
"../language/sv-SE.json": () => import("./sv-SE-CNQCI2nX.js")
|
|
51
|
+
}), `../language/${lang}.json`, 5)
|
|
52
|
+
}]);
|
|
53
|
+
if (isLoading || solePropId && !solePropLe) return /* @__PURE__ */ jsx(Loader, {});
|
|
54
|
+
const { rootLe, efpBusinessLines, documents } = data;
|
|
55
|
+
const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, solePropId) : void 0;
|
|
56
|
+
const country = getLegalEntityCountry(solePropLe ?? rootLe);
|
|
57
|
+
return /* @__PURE__ */ jsx(BusinessDetailsDropin, {
|
|
58
|
+
taskType: TaskTypes.SOLE_PROPRIETOR_COMPANY,
|
|
59
|
+
legalEntityResponse: rootLe,
|
|
60
|
+
efpBusinessLines,
|
|
61
|
+
documents,
|
|
62
|
+
associatedLegalArrangement: solePropLe,
|
|
63
|
+
problems: problems ?? {},
|
|
64
|
+
country,
|
|
65
|
+
onSubmit,
|
|
66
|
+
handleHomeClick
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { SoleProprietorshipPage };
|
|
@@ -1,50 +1,50 @@
|
|
|
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] = "57a09f82-9308-4042-bcc2-2d64f728052e", e._sentryDebugIdIdentifier = "sentry-dbid-57a09f82-9308-4042-bcc2-2d64f728052e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon,
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default, k as Header, x as Alert } from "./resolveEnvironment-
|
|
7
|
-
import { n as IconButton, r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-
|
|
9
|
-
import { n as useLegalEntities, r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { a as Icon, i as Typography, l as __exportAll, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, k as Header, x as Alert } from "./resolveEnvironment-BsUsq25-.js";
|
|
7
|
+
import { n as IconButton, r as Loader, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-D6AdUBhO.js";
|
|
9
|
+
import { n as useLegalEntities, r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
10
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
11
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
12
12
|
import { o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
14
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
15
|
-
import { C as EntityTypes } from "./processCapabilities-
|
|
15
|
+
import { C as EntityTypes } from "./processCapabilities-BSpmJOEd.js";
|
|
16
16
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
17
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
18
|
-
import { a as LandingLayout } from "./form-rules-
|
|
19
|
-
import { t as useBusinessLines } from "./useBusinessLines-
|
|
17
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-nylR9F4X.js";
|
|
18
|
+
import { a as LandingLayout } from "./form-rules-DV3hxYqZ.js";
|
|
19
|
+
import { t as useBusinessLines } from "./useBusinessLines-D-rc-Z6G.js";
|
|
20
20
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
21
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
22
|
-
import { c as TileGroup } from "./bafinUtils-
|
|
23
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
24
|
-
import { t as Avatar } from "./Avatar-
|
|
25
|
-
import {
|
|
26
|
-
import { n as Confirm, t as StructuredList } from "./StructuredList-
|
|
27
|
-
import { C as FormContextProvider, a as getRequiredForms, b as createFormUtils, c as useMultiForm, d as useFormComposer, i as addValidityToForms, n as CountryField, o as FormFlow, r as useFormContext } from "./CountryField-
|
|
28
|
-
import { t as Image } from "./Image-
|
|
29
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
30
|
-
import { t as Checkbox } from "./Checkbox-
|
|
31
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
32
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
33
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
34
|
-
import { a as createDocumentRequest, o as documentApiUtils } from "./validate-
|
|
21
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-CIQmPG2J.js";
|
|
22
|
+
import { c as TileGroup } from "./bafinUtils-BheS8P9F.js";
|
|
23
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-DStlTvE-.js";
|
|
24
|
+
import { t as Avatar } from "./Avatar-CeZIQS8n.js";
|
|
25
|
+
import { r as Field, t as Select } from "./Select-Chv4JUrV.js";
|
|
26
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-C0ZSbjSm.js";
|
|
27
|
+
import { C as FormContextProvider, a as getRequiredForms, b as createFormUtils, c as useMultiForm, d as useFormComposer, i as addValidityToForms, n as CountryField, o as FormFlow, r as useFormContext } from "./CountryField-COQ0jZUr.js";
|
|
28
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
29
|
+
import { t as ErrorPanel } from "./ErrorPanel-Imjryvne.js";
|
|
30
|
+
import { t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
31
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-Ctdmk3Ky.js";
|
|
32
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-C1KlPeao.js";
|
|
33
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C7fcguXK.js";
|
|
34
|
+
import { a as createDocumentRequest, o as documentApiUtils } from "./validate-BNu91k9j.js";
|
|
35
35
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
36
|
-
import { t as localizeDateString } from "./localizeDateString-
|
|
37
|
-
import { t as getValidationErrorDisplayMessages } from "./validationError-
|
|
38
|
-
import { t as TextArea } from "./TextArea-
|
|
39
|
-
import { t as Dropzone } from "./Dropzone-
|
|
40
|
-
import { t as InputText } from "./InputText-
|
|
41
|
-
import { t as InputDate } from "./InputDate-
|
|
42
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
36
|
+
import { t as localizeDateString } from "./localizeDateString-D-MlYN4V.js";
|
|
37
|
+
import { t as getValidationErrorDisplayMessages } from "./validationError-BAK8fc6r.js";
|
|
38
|
+
import { t as TextArea } from "./TextArea-CoS-i-FF.js";
|
|
39
|
+
import { t as Dropzone } from "./Dropzone-CNfh7t8n.js";
|
|
40
|
+
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
41
|
+
import { t as InputDate } from "./InputDate-DDVX2D-5.js";
|
|
42
|
+
import { t as RadioGroup } from "./RadioGroup-DVTPPMDE.js";
|
|
43
43
|
import { t as InputGroup } from "./InputGroup-B4U3QVEp.js";
|
|
44
44
|
import { t as isEmpty } from "./isEmpty-MyMko24J.js";
|
|
45
45
|
import { t as Currencies } from "./currency-DQwXq9Mc.js";
|
|
46
|
-
import { n as validateDateNotInTheFuture } from "./validate-
|
|
47
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
46
|
+
import { n as validateDateNotInTheFuture } from "./validate-Ce2vF6Gx.js";
|
|
47
|
+
import { t as useTaskStatus } from "./useTaskStatus-Be6XyW54.js";
|
|
48
48
|
import { t as formatAmountWithCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
49
49
|
import { lazy } from "preact/compat";
|
|
50
50
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
@@ -384,12 +384,15 @@ var getSourceOfFundsRequiredForms = (data) => {
|
|
|
384
384
|
return form;
|
|
385
385
|
}));
|
|
386
386
|
};
|
|
387
|
-
var getInputErrors = ({ formErrors, data, key, value }) => {
|
|
387
|
+
var getInputErrors = ({ formErrors, data, key, value, t }) => {
|
|
388
388
|
const isEmpty = value === "" || value === null || value === void 0;
|
|
389
389
|
let errors = { ...formErrors };
|
|
390
390
|
if (isEmpty) errors = {
|
|
391
391
|
...formErrors,
|
|
392
|
-
[key]:
|
|
392
|
+
[key]: {
|
|
393
|
+
key: "fieldIsRequired",
|
|
394
|
+
message: t(($) => $["fieldIsRequired"])
|
|
395
|
+
}
|
|
393
396
|
};
|
|
394
397
|
else errors = {
|
|
395
398
|
...formErrors,
|
|
@@ -402,15 +405,24 @@ var getInputErrors = ({ formErrors, data, key, value }) => {
|
|
|
402
405
|
};
|
|
403
406
|
if (!data?.amount?.currency) errors = {
|
|
404
407
|
...formErrors,
|
|
405
|
-
amount:
|
|
408
|
+
amount: {
|
|
409
|
+
key: "currencyIsRequired",
|
|
410
|
+
message: t(($) => $["currencyIsRequired"])
|
|
411
|
+
}
|
|
406
412
|
};
|
|
407
413
|
if (!data?.amount?.value) errors = {
|
|
408
414
|
...formErrors,
|
|
409
|
-
amount:
|
|
415
|
+
amount: {
|
|
416
|
+
key: "amountIsRequired",
|
|
417
|
+
message: t(($) => $["amountIsRequired"])
|
|
418
|
+
}
|
|
410
419
|
};
|
|
411
420
|
else if (isNaN(data?.amount.value)) errors = {
|
|
412
421
|
...formErrors,
|
|
413
|
-
amount:
|
|
422
|
+
amount: {
|
|
423
|
+
key: "pleaseEnterAValidAmount",
|
|
424
|
+
message: t(($) => $["pleaseEnterAValidAmount"])
|
|
425
|
+
}
|
|
414
426
|
};
|
|
415
427
|
}
|
|
416
428
|
return errors;
|
|
@@ -1457,7 +1469,8 @@ var SOFFinancierModal = (props) => {
|
|
|
1457
1469
|
formErrors,
|
|
1458
1470
|
data,
|
|
1459
1471
|
key,
|
|
1460
|
-
value
|
|
1472
|
+
value,
|
|
1473
|
+
t: commonT
|
|
1461
1474
|
}));
|
|
1462
1475
|
};
|
|
1463
1476
|
const handleOnAmountBlur = () => {
|
|
@@ -1466,7 +1479,8 @@ var SOFFinancierModal = (props) => {
|
|
|
1466
1479
|
formErrors,
|
|
1467
1480
|
data: formData,
|
|
1468
1481
|
key: "amount",
|
|
1469
|
-
value: formData?.amount?.value
|
|
1482
|
+
value: formData?.amount?.value,
|
|
1483
|
+
t: commonT
|
|
1470
1484
|
}));
|
|
1471
1485
|
};
|
|
1472
1486
|
const allFieldsFilled = (data) => {
|
|
@@ -1493,7 +1507,8 @@ var SOFFinancierModal = (props) => {
|
|
|
1493
1507
|
formErrors: void 0,
|
|
1494
1508
|
data: formData,
|
|
1495
1509
|
key,
|
|
1496
|
-
value
|
|
1510
|
+
value,
|
|
1511
|
+
t: commonT
|
|
1497
1512
|
})
|
|
1498
1513
|
};
|
|
1499
1514
|
}, {}));
|
|
@@ -1639,7 +1654,6 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1639
1654
|
const [activeFinancier, setActiveFinancier] = useState$1();
|
|
1640
1655
|
const [activeIndex, setActiveIndex] = useState$1();
|
|
1641
1656
|
const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
|
|
1642
|
-
const { t: commonT } = useTranslation("common");
|
|
1643
1657
|
const { t: sofT } = useTranslation("sof");
|
|
1644
1658
|
const handleToggleFinancierModal = () => {
|
|
1645
1659
|
setActiveFinancier(void 0);
|
|
@@ -1671,7 +1685,7 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1671
1685
|
const errorMessage = formUtils.getErrorMessage("financiers", errors, fieldProblems);
|
|
1672
1686
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1673
1687
|
errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(Alert, {
|
|
1674
|
-
title:
|
|
1688
|
+
title: errorMessage?.message,
|
|
1675
1689
|
variant: "error",
|
|
1676
1690
|
className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormError,
|
|
1677
1691
|
children: sofT(($) => $["addAtLeastOneInvestor"])
|
|
@@ -1817,7 +1831,7 @@ function SourceOfFundsType(props) {
|
|
|
1817
1831
|
children: () => /* @__PURE__ */ jsx(TileGroup, {
|
|
1818
1832
|
name: "type",
|
|
1819
1833
|
tiles: categoryItems,
|
|
1820
|
-
errorMessage
|
|
1834
|
+
errorMessage,
|
|
1821
1835
|
selected: formData?.type ? formData.type : [],
|
|
1822
1836
|
onChange: (e) => handleFieldChange("type", "input")(e)
|
|
1823
1837
|
})
|
|
@@ -2,10 +2,10 @@ 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] = "592cf609-de59-417b-a45e-b0908f674358", e._sentryDebugIdIdentifier = "sentry-dbid-592cf609-de59-417b-a45e-b0908f674358");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, r as useTranslation } from "./translation-
|
|
6
|
-
import { t as Button } from "./Button-
|
|
7
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
8
|
-
import { t as useId } from "./useId-
|
|
5
|
+
import { i as Typography, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { t as Button } from "./Button-Cm7cT6BX.js";
|
|
7
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-nylR9F4X.js";
|
|
8
|
+
import { t as useId } from "./useId-CIQmPG2J.js";
|
|
9
9
|
import { useEffect, useState } from "preact/hooks";
|
|
10
10
|
import cx from "classnames";
|
|
11
11
|
import { jsx, jsxs } from "preact/jsx-runtime";
|