@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
|
@@ -0,0 +1,353 @@
|
|
|
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] = "8febd229-866e-4124-a6d1-d2f1d176960f", e._sentryDebugIdIdentifier = "sentry-dbid-8febd229-866e-4124-a6d1-d2f1d176960f");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { i as Typography, n as addResourceBundles, 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 { t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
9
|
+
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
10
|
+
import { i as getPropsFromConfigurations, t as createFormRules } from "./form-rules-DV3hxYqZ.js";
|
|
11
|
+
import { t as ListItem } from "./ListItem-Cy46BXUv.js";
|
|
12
|
+
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
13
|
+
import { c as TileGroup } from "./bafinUtils-BheS8P9F.js";
|
|
14
|
+
import { r as Field } from "./Select-Chv4JUrV.js";
|
|
15
|
+
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext } from "./CountryField-COQ0jZUr.js";
|
|
16
|
+
import { t as List } from "./List-ywoRPg-q.js";
|
|
17
|
+
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
18
|
+
import { useEffect, useMemo, useState } from "preact/compat";
|
|
19
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
20
|
+
import { signal } from "@preact/signals";
|
|
21
|
+
//#region src/components/GlobalEntry/globalEntryStore.ts
|
|
22
|
+
var showGlobalEntryModal = signal(false);
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/GlobalEntry/constants.ts
|
|
25
|
+
var globalEntryCustomRules = ({ data }) => createFormRules({
|
|
26
|
+
entitySetupRequired: () => "REQUIRED",
|
|
27
|
+
countryRequired: () => "REQUIRED",
|
|
28
|
+
filedPaperworkRequired: () => "REQUIRED",
|
|
29
|
+
unincorporatedOrganizationTypeRequired: () => data?.entityInformation?.entitySetup === "organization" && data?.registrationInformation?.filedPaperwork === "no" ? "REQUIRED" : void 0
|
|
30
|
+
});
|
|
31
|
+
var globalEntryFieldConfigurations = {
|
|
32
|
+
entitySetup: { rule: "entitySetupRequired" },
|
|
33
|
+
country: { rule: "countryRequired" },
|
|
34
|
+
filedPaperwork: { rule: "filedPaperworkRequired" },
|
|
35
|
+
unincorporatedOrganizationType: { rule: "unincorporatedOrganizationTypeRequired" }
|
|
36
|
+
};
|
|
37
|
+
var globalEntryForms = {
|
|
38
|
+
entityInformation: {
|
|
39
|
+
formId: "entityInformation",
|
|
40
|
+
formName: "entityInformationFormName",
|
|
41
|
+
fields: ["entitySetup", "country"]
|
|
42
|
+
},
|
|
43
|
+
registrationInformation: {
|
|
44
|
+
formId: "registrationInformation",
|
|
45
|
+
formName: "registrationInformationFormName",
|
|
46
|
+
fields: ["filedPaperwork", "unincorporatedOrganizationType"]
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/GlobalEntry/utils.ts
|
|
51
|
+
var mapLegalEntityToGlobalEntrySchema = (legalEntity) => {
|
|
52
|
+
return {
|
|
53
|
+
entityInformation: {
|
|
54
|
+
entitySetup: legalEntity.type === "individual" || legalEntity.type === "soleProprietorship" ? "individual" : "organization",
|
|
55
|
+
country: getLegalEntityCountry(legalEntity)
|
|
56
|
+
},
|
|
57
|
+
registrationInformation: {
|
|
58
|
+
filedPaperwork: null,
|
|
59
|
+
unincorporatedOrganizationType: null
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/GlobalEntry/validate.ts
|
|
65
|
+
var globalEntryValidationRules = {
|
|
66
|
+
entityInformation: {},
|
|
67
|
+
registrationInformation: { unincorporatedOrganizationType: {
|
|
68
|
+
validate: (value) => value !== "unincorporatedAssociation",
|
|
69
|
+
modes: ["blur", "input"]
|
|
70
|
+
} }
|
|
71
|
+
};
|
|
72
|
+
var EntitySetupField_module_default = {
|
|
73
|
+
"entity-setup-option": "_entity-setup-option_1ykiv_1",
|
|
74
|
+
entitySetupOption: "_entity-setup-option_1ykiv_1"
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.tsx
|
|
78
|
+
var EntitySetupField = ({ data, valid, errors, handleChangeFor }) => {
|
|
79
|
+
const { t: globalT } = useTranslation("globalEntry");
|
|
80
|
+
const entityOptions = [{
|
|
81
|
+
value: "individual",
|
|
82
|
+
label: globalT(($) => $["itsJustMe"]),
|
|
83
|
+
iconName: "user"
|
|
84
|
+
}, {
|
|
85
|
+
value: "organization",
|
|
86
|
+
label: globalT(($) => $["imPartOfABusinessOrOrganization"]),
|
|
87
|
+
iconName: "company"
|
|
88
|
+
}];
|
|
89
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
90
|
+
el: "fieldset",
|
|
91
|
+
name: "entitySetup",
|
|
92
|
+
errorMessage: errors.entitySetup,
|
|
93
|
+
isValid: valid?.entitySetup,
|
|
94
|
+
label: globalT(($) => $["howIsYourBusinessSetup"]),
|
|
95
|
+
children: () => /* @__PURE__ */ jsx(List, {
|
|
96
|
+
dividers: false,
|
|
97
|
+
padding: "large",
|
|
98
|
+
children: entityOptions.map((option) => /* @__PURE__ */ jsx("div", {
|
|
99
|
+
className: EntitySetupField_module_default.entitySetupOption,
|
|
100
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
101
|
+
selected: data?.entitySetup === option.value,
|
|
102
|
+
onClick: () => handleChangeFor("entitySetup")(option.value),
|
|
103
|
+
children: /* @__PURE__ */ jsx(ListItem, {
|
|
104
|
+
title: option.label,
|
|
105
|
+
avatar: {
|
|
106
|
+
iconName: option.iconName,
|
|
107
|
+
circle: true
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
}, option.value))
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/GlobalEntry/forms/EntityInformation/EntityInformation.tsx
|
|
117
|
+
var EntityInformation = ({ id, fieldValidationErrors: fieldProblems }) => {
|
|
118
|
+
const { form } = useFormContext();
|
|
119
|
+
const { t: commonT } = useTranslation("common");
|
|
120
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
121
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, handleChange: handleChangeFor } = getFormSlice(form, "entityInformation");
|
|
122
|
+
const formUtils = createFormUtils({
|
|
123
|
+
requiredFields,
|
|
124
|
+
optionalFields,
|
|
125
|
+
trustedFields
|
|
126
|
+
}, commonT);
|
|
127
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
128
|
+
id,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ jsx(Header, {
|
|
131
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
132
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ jsx(CountryField, {
|
|
135
|
+
data: { country: data?.country },
|
|
136
|
+
valid: { country: valid?.country },
|
|
137
|
+
errors: { country: formUtils.getErrorMessage("country", errors, fieldProblems) },
|
|
138
|
+
labels: { country: globalEntryT(($) => $["whereIsYourBusinessLocated"]) },
|
|
139
|
+
readonly: false,
|
|
140
|
+
handleChangeFor
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ jsx(EntitySetupField, {
|
|
143
|
+
data: { entitySetup: data?.entitySetup },
|
|
144
|
+
valid: { entitySetup: valid?.entitySetup },
|
|
145
|
+
errors: { entitySetup: formUtils.getErrorMessage("entitySetup", errors, fieldProblems) },
|
|
146
|
+
handleChangeFor
|
|
147
|
+
})
|
|
148
|
+
]
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.tsx
|
|
153
|
+
function PaperworkQuestionnaire({ data, valid, handleChangeFor, errors, label }) {
|
|
154
|
+
const { t } = useTranslation(["globalEntry", "common"]);
|
|
155
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
156
|
+
el: "fieldset",
|
|
157
|
+
name: "PaperworkQuestionnaire",
|
|
158
|
+
label,
|
|
159
|
+
isValid: valid.filedPaperwork,
|
|
160
|
+
errorMessage: errors.filedPaperwork,
|
|
161
|
+
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
162
|
+
variant: "link",
|
|
163
|
+
onClick: () => {},
|
|
164
|
+
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
165
|
+
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
166
|
+
name: "filedPaperwork",
|
|
167
|
+
selected: data.filedPaperwork ?? "",
|
|
168
|
+
isHorizontal: true,
|
|
169
|
+
onChange: (value) => handleChangeFor("filedPaperwork")(value),
|
|
170
|
+
tiles: [{
|
|
171
|
+
label: t(($) => $["yes"], { ns: "common" }),
|
|
172
|
+
value: "yes"
|
|
173
|
+
}, {
|
|
174
|
+
label: t(($) => $["no"], { ns: "common" }),
|
|
175
|
+
value: "no"
|
|
176
|
+
}]
|
|
177
|
+
})] })
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.tsx
|
|
182
|
+
var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFor }) => {
|
|
183
|
+
const { t } = useTranslation("globalEntry");
|
|
184
|
+
const tiles = [{
|
|
185
|
+
label: t(($) => $["unincorporatedPartnership"]),
|
|
186
|
+
value: "unincorporatedPartnership",
|
|
187
|
+
icon: "trust"
|
|
188
|
+
}, {
|
|
189
|
+
label: t(($) => $["unincorporatedAssociation"]),
|
|
190
|
+
value: "unincorporatedAssociation",
|
|
191
|
+
icon: "trust"
|
|
192
|
+
}];
|
|
193
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
|
|
194
|
+
el: "fieldset",
|
|
195
|
+
name: "unincorporatedOrganizationType",
|
|
196
|
+
label: t(($) => $["whichBestDescribesYourOrganization"]),
|
|
197
|
+
errorMessage: errors.unincorporatedOrganizationType,
|
|
198
|
+
isValid: valid?.unincorporatedOrganizationType,
|
|
199
|
+
children: () => /* @__PURE__ */ jsxs(StackLayout, { children: [/* @__PURE__ */ jsx(Button, {
|
|
200
|
+
variant: "link",
|
|
201
|
+
onClick: () => {},
|
|
202
|
+
children: /* @__PURE__ */ jsx(Typography, { children: t(($) => $["whatDoesThisMean"], { ns: "common" }) })
|
|
203
|
+
}), /* @__PURE__ */ jsx(TileGroup, {
|
|
204
|
+
name: "unincorporatedOrganizationType",
|
|
205
|
+
selected: data?.unincorporatedOrganizationType ?? "",
|
|
206
|
+
onChange: (value) => handleChangeFor("unincorporatedOrganizationType")(value),
|
|
207
|
+
tiles,
|
|
208
|
+
isHorizontal: true
|
|
209
|
+
})] })
|
|
210
|
+
}), data?.unincorporatedOrganizationType === "unincorporatedAssociation" && /* @__PURE__ */ jsx(Alert, {
|
|
211
|
+
variant: "error",
|
|
212
|
+
title: t(($) => $["unincorporatedAssociationsArentSupported"]),
|
|
213
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
214
|
+
variant: "body",
|
|
215
|
+
children: t(($) => $["contactYourPlatformsSupportForHelp"])
|
|
216
|
+
})
|
|
217
|
+
})] });
|
|
218
|
+
};
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
221
|
+
var RegistrationInformation = ({ id }) => {
|
|
222
|
+
const { form } = useFormContext();
|
|
223
|
+
const { t: commonT } = useTranslation("common");
|
|
224
|
+
const { t: globalEntryT } = useTranslation("globalEntry");
|
|
225
|
+
const entitySetup = form.data.entityInformation.entitySetup;
|
|
226
|
+
const { fieldProblems } = form;
|
|
227
|
+
const { data, errors, valid, requiredFields, optionalFields, trustedFields, handleChange: handleChangeFor } = getFormSlice(form, "registrationInformation");
|
|
228
|
+
const formUtils = createFormUtils({
|
|
229
|
+
requiredFields,
|
|
230
|
+
optionalFields,
|
|
231
|
+
trustedFields
|
|
232
|
+
}, commonT);
|
|
233
|
+
const shouldShowUnincorporatedOrganizationType = entitySetup === "organization" && data.filedPaperwork === "no";
|
|
234
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
235
|
+
id,
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ jsx(Header, {
|
|
238
|
+
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
239
|
+
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ jsx(PaperworkQuestionnaire, {
|
|
242
|
+
data: { filedPaperwork: data.filedPaperwork },
|
|
243
|
+
valid: { filedPaperwork: valid.filedPaperwork },
|
|
244
|
+
errors: { filedPaperwork: formUtils.getErrorMessage("filedPaperwork", errors, fieldProblems.registrationInformation) },
|
|
245
|
+
label: entitySetup === "organization" ? globalEntryT(($) => $["hasPaperworkBeenFiled"]) : globalEntryT(($) => $["areYourBusinessActivitiesRegisteredWithAGovernmentAuthority"]),
|
|
246
|
+
handleChangeFor
|
|
247
|
+
}),
|
|
248
|
+
shouldShowUnincorporatedOrganizationType && /* @__PURE__ */ jsx(UnincorporatedOrganizationTypeField, {
|
|
249
|
+
data: { unincorporatedOrganizationType: data.unincorporatedOrganizationType },
|
|
250
|
+
valid: { unincorporatedOrganizationType: valid.unincorporatedOrganizationType },
|
|
251
|
+
errors: { unincorporatedOrganizationType: formUtils.getErrorMessage("unincorporatedOrganizationType", errors, fieldProblems.registrationInformation) },
|
|
252
|
+
handleChangeFor
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
|
|
259
|
+
var GlobalEntry = ({ activeForm }) => {
|
|
260
|
+
switch (activeForm.formId) {
|
|
261
|
+
case "entityInformation": return /* @__PURE__ */ jsx(EntityInformation, { id: activeForm.formId });
|
|
262
|
+
case "registrationInformation": return /* @__PURE__ */ jsx(RegistrationInformation, { id: activeForm.formId });
|
|
263
|
+
default: return null;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
268
|
+
var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
269
|
+
const { i18n } = useTranslation("globalEntry");
|
|
270
|
+
const [derivedProps, setDerivedProps] = useState();
|
|
271
|
+
addResourceBundles(i18n, [{
|
|
272
|
+
ns: "globalEntry",
|
|
273
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
274
|
+
"../language/bg-BG.json": () => import("./bg-BG-Smu9r9Kp.js"),
|
|
275
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-BQ5B0-Kt.js"),
|
|
276
|
+
"../language/da-DK.json": () => import("./da-DK-CXAIXO3c.js"),
|
|
277
|
+
"../language/de-DE.json": () => import("./de-DE-DFQGGPCj.js"),
|
|
278
|
+
"../language/el-GR.json": () => import("./el-GR-DEBvBgI-.js"),
|
|
279
|
+
"../language/en-US.json": () => import("./en-US-Del1h5SS.js"),
|
|
280
|
+
"../language/es-ES.json": () => import("./es-ES-_qbfha1o.js"),
|
|
281
|
+
"../language/es-LA.json": () => import("./es-LA-DF0v3VMe.js"),
|
|
282
|
+
"../language/et-EE.json": () => import("./et-EE-evCiUrFW.js"),
|
|
283
|
+
"../language/fi-FI.json": () => import("./fi-FI-BTG87BwH.js"),
|
|
284
|
+
"../language/fr-FR.json": () => import("./fr-FR-DIiBHkhs.js"),
|
|
285
|
+
"../language/hr-HR.json": () => import("./hr-HR-DofgeWWO.js"),
|
|
286
|
+
"../language/hu-HU.json": () => import("./hu-HU-FdLZGnBz.js"),
|
|
287
|
+
"../language/it-IT.json": () => import("./it-IT-CXgZZgyU.js"),
|
|
288
|
+
"../language/ja-JP.json": () => import("./ja-JP-Yi2wExJE.js"),
|
|
289
|
+
"../language/lt-LT.json": () => import("./lt-LT-BZ6seLuB.js"),
|
|
290
|
+
"../language/lv-LV.json": () => import("./lv-LV-CMYrAWqu.js"),
|
|
291
|
+
"../language/nl-NL.json": () => import("./nl-NL-CiH1raQa.js"),
|
|
292
|
+
"../language/no-NO.json": () => import("./no-NO-Ce2vzrp7.js"),
|
|
293
|
+
"../language/pl-PL.json": () => import("./pl-PL-aErZF5Xz.js"),
|
|
294
|
+
"../language/pt-BR.json": () => import("./pt-BR-hRRebYjo.js"),
|
|
295
|
+
"../language/pt-PT.json": () => import("./pt-PT-UAIvemf-.js"),
|
|
296
|
+
"../language/ro-RO.json": () => import("./ro-RO-BJeKitCz.js"),
|
|
297
|
+
"../language/sk-SK.json": () => import("./sk-SK-ztSYyXUE.js"),
|
|
298
|
+
"../language/sl-SI.json": () => import("./sl-SI-BY4TzP-F.js"),
|
|
299
|
+
"../language/sv-SE.json": () => import("./sv-SE-CrUbxniG.js")
|
|
300
|
+
}), `../language/${lang}.json`, 3)
|
|
301
|
+
}]);
|
|
302
|
+
const handleClose = () => {
|
|
303
|
+
showGlobalEntryModal.value = false;
|
|
304
|
+
};
|
|
305
|
+
const multiForm = useMultiForm({
|
|
306
|
+
defaultData: mapLegalEntityToGlobalEntrySchema(rootLegalEntity),
|
|
307
|
+
requiredFields: derivedProps?.requiredFields,
|
|
308
|
+
optionalFields: derivedProps?.optionalFields,
|
|
309
|
+
allFields: derivedProps?.allFields,
|
|
310
|
+
rules: globalEntryValidationRules
|
|
311
|
+
});
|
|
312
|
+
const { isValid: formValidity, data, triggerValidation } = multiForm;
|
|
313
|
+
const rules = useMemo(() => globalEntryCustomRules({ data }), [data]);
|
|
314
|
+
useEffect(() => {
|
|
315
|
+
setDerivedProps(getPropsFromConfigurations({
|
|
316
|
+
scenarioConfiguration: globalEntryFieldConfigurations,
|
|
317
|
+
forms: globalEntryForms,
|
|
318
|
+
remediationActions: [],
|
|
319
|
+
dataMissingErrors: [],
|
|
320
|
+
fieldsWithExistingData: [],
|
|
321
|
+
customRules: rules,
|
|
322
|
+
legalEntityType: rootLegalEntity?.type
|
|
323
|
+
}));
|
|
324
|
+
}, [rootLegalEntity?.type, rules]);
|
|
325
|
+
const forms = useMemo(() => addValidityToForms([...Object.values(globalEntryForms), summaryStep], formValidity, void 0), [formValidity]);
|
|
326
|
+
const { activeForm, handleNextClick, handleBackClick, steps, gotoFormByFormId, gotoFormByFormIndex } = useFormComposer({
|
|
327
|
+
onSubmit: () => {
|
|
328
|
+
console.log("data: ", data);
|
|
329
|
+
showGlobalEntryModal.value = false;
|
|
330
|
+
},
|
|
331
|
+
forms,
|
|
332
|
+
triggerValidation
|
|
333
|
+
});
|
|
334
|
+
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
335
|
+
form: multiForm,
|
|
336
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
337
|
+
asModal: true,
|
|
338
|
+
activeForm,
|
|
339
|
+
handleNextClick,
|
|
340
|
+
handleBackClick,
|
|
341
|
+
handleCancelClick: handleClose,
|
|
342
|
+
forms,
|
|
343
|
+
gotoFormByFormIndex,
|
|
344
|
+
gotoFormByFormId,
|
|
345
|
+
loadingStatus: "success",
|
|
346
|
+
currentStep: steps.current,
|
|
347
|
+
totalSteps: steps.total,
|
|
348
|
+
children: /* @__PURE__ */ jsx(GlobalEntry, { activeForm })
|
|
349
|
+
})
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
//#endregion
|
|
353
|
+
export { showGlobalEntryModal as n, GlobalEntryModal as t };
|
|
@@ -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] = "28a80075-8bad-4089-b00f-23d42ee5d176", e._sentryDebugIdIdentifier = "sentry-dbid-28a80075-8bad-4089-b00f-23d42ee5d176");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
9
|
-
import { a as LandingLayout } from "./form-rules-
|
|
10
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
11
|
-
import { t as Image } from "./Image-
|
|
12
|
-
import { t as Link } from "./Link-
|
|
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, t as Button } from "./Button-Cm7cT6BX.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-DR51Q4mE.js";
|
|
9
|
+
import { a as LandingLayout } from "./form-rules-DV3hxYqZ.js";
|
|
10
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-B3g2PO3M.js";
|
|
11
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
12
|
+
import { t as Link } from "./Link-B7RA2gSt.js";
|
|
13
13
|
import { lazy } from "preact/compat";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
15
15
|
import { Show } from "@preact/signals/utils";
|
|
@@ -26,7 +26,7 @@ var GlobalEntryPage = () => {
|
|
|
26
26
|
"../language/da-DK.json": () => import("./da-DK-CXAIXO3c.js"),
|
|
27
27
|
"../language/de-DE.json": () => import("./de-DE-DFQGGPCj.js"),
|
|
28
28
|
"../language/el-GR.json": () => import("./el-GR-DEBvBgI-.js"),
|
|
29
|
-
"../language/en-US.json": () => import("./en-US-
|
|
29
|
+
"../language/en-US.json": () => import("./en-US-Del1h5SS.js"),
|
|
30
30
|
"../language/es-ES.json": () => import("./es-ES-_qbfha1o.js"),
|
|
31
31
|
"../language/es-LA.json": () => import("./es-LA-DF0v3VMe.js"),
|
|
32
32
|
"../language/et-EE.json": () => import("./et-EE-evCiUrFW.js"),
|
|
@@ -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] = "0f96309b-c723-4819-9537-d67b30cd0ae9", e._sentryDebugIdIdentifier = "sentry-dbid-0f96309b-c723-4819-9537-d67b30cd0ae9");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as Loader } from "./Button-
|
|
5
|
+
import { r as Loader } from "./Button-Cm7cT6BX.js";
|
|
6
6
|
import { Suspense } from "preact/compat";
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
8
|
//#region src/components/ui/atoms/Image/Image.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
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] = "68be5a1d-4a2b-47cb-a690-46494b98c236", e._sentryDebugIdIdentifier = "sentry-dbid-68be5a1d-4a2b-47cb-a690-46494b98c236");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
@@ -9,16 +9,12 @@ import { t as allowedCountriesForNominee } from "./entityAssociationUtil-DLXInib
|
|
|
9
9
|
import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
|
|
10
10
|
import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
|
|
11
11
|
import { t as getAvailableDecisionMakerRoleTypes } from "./decisionMaker-Dt53wKqO.js";
|
|
12
|
-
import { i as isLowRiskCountry } from "./country-
|
|
13
|
-
import { t as createFormRules } from "./form-rules-
|
|
14
|
-
import { n as isBafinSignatoryFlow } from "./bafinUtils-
|
|
15
|
-
import { c as COUNTRIES_WITH_STATES_DATASET, t as getAddressSchemaForCountry } from "./utils-
|
|
12
|
+
import { i as isLowRiskCountry } from "./country-IYuKDSdC.js";
|
|
13
|
+
import { t as createFormRules } from "./form-rules-DV3hxYqZ.js";
|
|
14
|
+
import { n as isBafinSignatoryFlow } from "./bafinUtils-BheS8P9F.js";
|
|
15
|
+
import { c as COUNTRIES_WITH_STATES_DATASET, t as getAddressSchemaForCountry } from "./utils-CEpJoi7o.js";
|
|
16
16
|
import { t as getLocalizedIdDocumentTypeOptions } from "./utils-DwujAUJC.js";
|
|
17
|
-
|
|
18
|
-
var isJapanLocalizationEnabled = (isFeatureEnabled = () => false, country) => {
|
|
19
|
-
return country === CountryCodes.Japan && isFeatureEnabled("EnableJapanLocalization");
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
17
|
+
import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.js";
|
|
22
18
|
//#region src/components/Individual/forms/Individual.rules.ts
|
|
23
19
|
var REQUIRED = "REQUIRED";
|
|
24
20
|
var OPTIONAL = "OPTIONAL";
|
|
@@ -295,4 +291,4 @@ var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEna
|
|
|
295
291
|
}
|
|
296
292
|
});
|
|
297
293
|
//#endregion
|
|
298
|
-
export {
|
|
294
|
+
export { individualRules as i, DECISION_MAKER_TYPES_WITH_JOBTITLE as n, SOLE_PROP_COUNTRIES as r, COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES as t };
|