@adyen/kyc-components 4.19.0 → 4.20.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-BnhH5-eC.js → Accordion-BWdAGMRb.js} +1 -1
- package/dist/{AccountSetupRejected-VkyroW_s.js → AccountSetupRejected-N5q1VKpW.js} +2 -2
- package/dist/AdaptiveWorkflow-C8N4ayEt.js +5112 -0
- package/dist/{AdaptiveWorkflowComponent-BhHqJMaU.js → AdaptiveWorkflowComponent-CEMgH36B.js} +36 -36
- package/dist/{Address-qf5qFwua.js → Address-DQlehM6f.js} +8 -7
- package/dist/{AddressField-eulmJMt_.js → AddressField-BnboPpBe.js} +12 -253
- package/dist/{Avatar-Y_RdG_YY.js → Avatar-CeZIQS8n.js} +1 -1
- package/dist/{BusinessFinancingDropin-xtcAFZEN.js → BusinessFinancingDropin-CFKrcdPb.js} +33 -32
- package/dist/{BusinessFinancingPage-Dt2Va-qf.js → BusinessFinancingPage-DIrEOTbn.js} +33 -33
- package/dist/{utils-BFaY6wGW.js → BusinessRegistrationNumberField-DGBqMCwU.js} +301 -53
- package/dist/{BusinessTypeSelectionPage-CKrWo9e-.js → BusinessTypeSelectionPage-CyMTri8M.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-DDWIMP-t.js → CompanyRegistrationNumberTypeSelector-KkPiHDQk.js} +8 -8
- package/dist/{ContactDetails-Co7J7Hjc.js → ContactDetails-CQZ7kMSU.js} +7 -7
- package/dist/{ContextGuidance-RV1m2efV.js → ContextGuidance-CpLYhcU8.js} +2 -2
- package/dist/{CountryField-BTVLTRup.js → CountryField-DQnWXgAu.js} +26 -21
- package/dist/{Currency-DfCp7hwP.js → Currency-DJTE2WJJ.js} +8 -59
- package/dist/{CustomerSupport-fg0-Upw5.js → CustomerSupport-BkE-Ej6L.js} +14 -14
- package/dist/{DataConflictsModal-CVgcvjm6.js → DataConflictsModal-BhZpZhFP.js} +7 -7
- package/dist/{DebugModal-CaI-iWEa.js → DebugModal-C_O14NUN.js} +10 -10
- package/dist/{DecisionMakerDetails-JYY15piY.js → DecisionMakerDetails-BZEv2fPu.js} +17 -17
- package/dist/{DecisionMakerDetailsPage-UMAQo28h.js → DecisionMakerDetailsPage-DhCtiSzf.js} +12 -12
- package/dist/{DecisionMakers-DeQLYGwW.js → DecisionMakers-BPLn2iHA.js} +18 -18
- package/dist/{Dropzone-Dmtomtl2.js → Dropzone-DAvxNuAu.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-vg8k3YiH.js → EntityAssociation-CBbcX-5M.js} +7 -7
- package/dist/{ErrorPanel-DysmW3Hz.js → ErrorPanel-C2hG0lLe.js} +4 -4
- package/dist/GlobalEntryModal-cQF6Bfim.js +353 -0
- package/dist/{GlobalEntryPage-CrjiJG7v.js → GlobalEntryPage-C6OnSwBj.js} +10 -10
- package/dist/{Image-Dc5Xg1_Y.js → Image-8SOcICah.js} +1 -1
- package/dist/{Individual.rules-Fg_j4_io.js → Individual.rules-D1Mmr7tv.js} +7 -11
- package/dist/{IndividualDropin-D5qyhkH7.js → IndividualDropin-KG_mOjri.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-Dd72HuvK.js → Introduction-Dsy_e4OL.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-BR14VLnP.js → InvitedDecisionMakerComponent-Bzj7Szw8.js} +41 -41
- package/dist/{JpAddress-C7eDuCDV.js → JpAddress-CMYhw2Zl.js} +19 -17
- package/dist/{JpAddress.module-DNwEnPzj.js → JpAddress.module-CiY5uzmL.js} +4 -4
- package/dist/{JpAddressFields-CB889sWX.js → JpAddressFields-DqJ7Am2I.js} +15 -14
- package/dist/{LegalCompanyNameField-BVyQCVUE.js → LegalCompanyNameField-DGdSduXu.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BNFIn6Qh.js → LegalRepresentativeDetailsPage-DODrlxF0.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-DwP4ZWTk.js → MaskedInput-BZLm8L47.js} +11 -11
- package/dist/{Modal-BYdlsXkf.js → Modal-nylR9F4X.js} +1 -1
- package/dist/{Name-DfZeGh8m.js → Name-C0ti1xY6.js} +5 -5
- package/dist/{NewSummary-DebON3Ge.js → NewSummary-DDwQJV7w.js} +6 -6
- package/dist/{PatriotActDisclosure-V0iYQAp7.js → PatriotActDisclosure-CB0N3iIz.js} +15 -15
- package/dist/{PayoutDetailsDropin-DtLitjwp.js → PayoutDetailsDropin-9LoGCmko.js} +187 -135
- package/dist/{PayoutDetailsPage-Bul0UWe-.js → PayoutDetailsPage-DV8fIktn.js} +10 -10
- package/dist/{RadioGroup-BcojlKCO.js → RadioGroup-BUwhfue7.js} +3 -3
- package/dist/{Review-EaL1BttB.js → Review-C2JLh6M0.js} +8 -8
- package/dist/{RootBusinessDetailsPage-Cwc8cZOY.js → RootBusinessDetailsPage-D-T5SbYt.js} +10 -10
- package/dist/{RootBusinessLinesPage-CLsMhxkV.js → RootBusinessLinesPage-BZNLFGSY.js} +30 -30
- package/dist/{RootIndividualDetailsPage-Nfm0kzJq.js → RootIndividualDetailsPage-wO9DNKWn.js} +10 -10
- package/dist/{Select-C5sy6Wux.js → Select-B5Mo0Bpw.js} +12 -13
- package/dist/{SignPCIComponent-CaTaPQHb.js → SignPCIComponent-CZmCa0AY.js} +56 -54
- package/dist/{SingpassSelection-COig4k8W.js → SingpassSelection-BTZe82Q8.js} +6 -6
- package/dist/SoleProprietorshipPage-Dfzyn6Br.js +70 -0
- package/dist/{SourceOfFundsPage-DEABiUWz.js → SourceOfFundsPage-l899LDLv.js} +58 -44
- package/dist/{StructuredList-D54Bpjf4.js → StructuredList-DR8Fb1tc.js} +4 -4
- package/dist/{TaskListItem-CB0kZVlT.js → TaskListItem-1n3vYDAz.js} +11 -11
- package/dist/{TaskVerificationStatus-ITLSeoau.js → TaskVerificationStatus-DMj8rsZ_.js} +1 -1
- package/dist/{TaxReportingDropin-9lSgx-Sv.js → TaxReportingDropin-BYOpjW8V.js} +18 -18
- package/dist/{TermsOfServiceManagement-CbgkpeNu.js → TermsOfServiceManagement-BUvv59rD.js} +68 -66
- package/dist/{TextArea-BzCbFjRp.js → TextArea-CoS-i-FF.js} +3 -3
- package/dist/{TrustDetailsPage-pJ_aGyVV.js → TrustDetailsPage-BQjA8lmD.js} +341 -318
- package/dist/TrustMemberCompanyPage-3189PHUn.js +109 -0
- package/dist/TrustMemberIndividualPage-DOFGzN7Z.js +110 -0
- package/dist/{TrustMemberRoleAndTypePage-DjE53lNn.js → TrustMemberRoleAndTypePage-nDSoM_rw.js} +19 -19
- package/dist/{TrustMembersOverview-z8U7UWHS.js → TrustMembersOverview-CxiKjCLV.js} +14 -14
- package/dist/UnincorporatedPartnershipIndividualPage-D-46tLiw.js +79 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DOBh4lR1.js → UnincorporatedPartnershipMemberCompanyPage-CCnm-ShL.js} +37 -37
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-9i54lBKZ.js → UnincorporatedPartnershipMemberRoleAndTypePage-CsECHFgr.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-DFeXZDC8.js → UnincorporatedPartnershipMembersOverview-C8fwIn45.js} +9 -9
- package/dist/{VerificationErrorAlert-B3dqg4d3.js → VerificationErrorAlert-7hKN39sx.js} +4 -4
- package/dist/{accountHolderUtils-CV8i1K0q.js → accountHolderUtils-Cw7X31mH.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 +60 -60
- 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-qakcO27e.js → bafinUtils-vdTD2Ec5.js} +19 -19
- package/dist/bg-BG-Bmveyt6S.js +7 -0
- package/dist/{constants-L0qE2dbE.js → constants-Bs5FgdWg.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-BhxAICdT.js → error-BatJzHF5.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/{filterProblemsByTaskForms-CQby20PN.js → filterProblemsByTaskForms-DaJ3LZ2L.js} +11 -11
- package/dist/{form-rules-wh_oE1AN.js → form-rules-DV3hxYqZ.js} +2 -2
- package/dist/formatValidationError-CZ5MeYBS.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-D9928vV-.js → mapJpAddressSchemaToAddressLocalizations-6nfrRniy.js} +3 -51
- package/dist/{mapLegalEntityToIndividualSchema-C6zpRY2L.js → mapLegalEntityToIndividualSchema-1JDK92Nc.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-Crk2JcIC.js → patternValidators-tRq-KPvW.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-N1ZuAvVY.js → processValidationErrors-PJV6CPG2.js} +2 -2
- package/dist/pt-BR-D08Fo1qY.js +7 -0
- package/dist/pt-PT-BAQWYDe6.js +7 -0
- package/dist/{resolveEnvironment-BHPgG5Ko.js → resolveEnvironment-df20S4SQ.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/businessDetailsStore.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -5
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +6 -2
- 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-_7t1A_p2.js → useBusinessDetailsData-CRLRQh0U.js} +197 -356
- package/dist/{useBusinessLines-CfQYLNkw.js → useBusinessLines-D-rc-Z6G.js} +1 -1
- package/dist/{useCanSeeIntroduction-Jkw8uz5N.js → useCanSeeIntroduction-BeooAHcX.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-26r9IKF_.js → useForm-BLP36oqX.js} +3 -3
- package/dist/{useId-BwLQ-75v.js → useId-po-YSdTw.js} +3 -3
- package/dist/{useLegalEntity-BqO7Fmt0.js → useLegalEntity-DR51Q4mE.js} +1 -1
- package/dist/{useNavigate-DvOGhK-A.js → useNavigate-CcVYYcg1.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-DAFo_ibm.js → useTrustMembers-HJpKc0qR.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-B4x3gely.js → useUpdateLegalEntity-CH4xp654.js} +2 -2
- package/dist/{utils-DbIq3tru.js → utils-BbBPfcNK.js} +7 -7
- package/dist/{utils-D8hL_fNA.js → utils-C8WDAzsL.js} +1 -1
- package/dist/{utils-DbQT0YgG.js → utils-Di84CxrF.js} +5 -5
- package/dist/{validate-K01plHbc.js → validate-BNu91k9j.js} +4 -4
- package/dist/validate-CkuU4MvS.js +250 -0
- package/dist/{validate-N3t8r03y.js → validate-CsYDNrPB.js} +1 -1
- package/dist/{validateExtractionResult-YhFC9maw.js → validateExtractionResult-mtXTjYfE.js} +10 -10
- package/dist/{validationError-q9Js1v0m.js → validationError-1dpZJlAz.js} +1 -1
- package/package.json +3 -4
- package/dist/AdaptiveWorkflow-DV_JyPw8.js +0 -1896
- package/dist/GlobalEntryModal-BHlZmq4-.js +0 -188
- package/dist/SoleProprietorshipPage-Ctcz1qNr.js +0 -70
- package/dist/TrustMemberCompanyPage-vqkIF_0s.js +0 -109
- package/dist/TrustMemberIndividualPage-CS_tABNQ.js +0 -109
- package/dist/UnincorporatedPartnershipIndividualPage-9uHIQImj.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
|
@@ -1,85 +1,88 @@
|
|
|
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] = "8c7fe225-17a2-46db-8958-bad68ca0052d", e._sentryDebugIdIdentifier = "sentry-dbid-8c7fe225-17a2-46db-8958-bad68ca0052d");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { E as useAllowedCountries, T as datasetUtilities,
|
|
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 { i as Typography, o as createLogger, r as useTranslation } from "./translation-DH4IlMCP.js";
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-df20S4SQ.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 useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
12
|
import { c as keysOf, o as objectsDeepEqual, r as doArraysMatch, s as entriesOf } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
14
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-DMj8rsZ_.js";
|
|
15
15
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
16
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
|
-
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-
|
|
17
|
+
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-BSpmJOEd.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-DLXInibJ.js";
|
|
20
20
|
import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
|
|
21
|
-
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
21
|
+
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-nylR9F4X.js";
|
|
22
22
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
23
23
|
import { n as SettingNames } from "./debugStore-DpSgCNGn.js";
|
|
24
|
-
import { a as LandingLayout, i as getPropsFromConfigurations, r as composePerScenarioFormConfigurations, t as createFormRules } from "./form-rules-
|
|
25
|
-
import { t as
|
|
24
|
+
import { a as LandingLayout, i as getPropsFromConfigurations, r as composePerScenarioFormConfigurations, t as createFormRules } from "./form-rules-DV3hxYqZ.js";
|
|
25
|
+
import { t as ListItem } from "./ListItem-Cy46BXUv.js";
|
|
26
|
+
import { t as useBusinessLines } from "./useBusinessLines-D-rc-Z6G.js";
|
|
26
27
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
27
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
28
|
-
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-
|
|
29
|
-
import {
|
|
30
|
-
import { n as Confirm, t as StructuredList } from "./StructuredList-
|
|
31
|
-
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-
|
|
32
|
-
import { t as Image } from "./Image-
|
|
33
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
34
|
-
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-
|
|
28
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-po-YSdTw.js";
|
|
29
|
+
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-vdTD2Ec5.js";
|
|
30
|
+
import { p as LoaderWrapper, r as Field } from "./Select-B5Mo0Bpw.js";
|
|
31
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-DR8Fb1tc.js";
|
|
32
|
+
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-DQnWXgAu.js";
|
|
33
|
+
import { t as Image } from "./Image-8SOcICah.js";
|
|
34
|
+
import { t as ErrorPanel } from "./ErrorPanel-C2hG0lLe.js";
|
|
35
|
+
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-faFUul66.js";
|
|
35
36
|
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
36
|
-
import { t as useScenarios } from "./useScenarios-
|
|
37
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
38
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
39
|
-
import { a as defaultFieldMetadata, c as
|
|
40
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
41
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
42
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
43
|
-
import {
|
|
44
|
-
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET,
|
|
45
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
46
|
-
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-
|
|
37
|
+
import { t as useScenarios } from "./useScenarios-Bne3C0PV.js";
|
|
38
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-Ctdmk3Ky.js";
|
|
39
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CH4xp654.js";
|
|
40
|
+
import { a as defaultFieldMetadata, c as formatAddressForCleanse, i as defaultFieldConfig, n as STATE_FIELD, r as StateField, u as useAddressCleanseImperatively } from "./AddressField-BnboPpBe.js";
|
|
41
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-LvvzPjnk.js";
|
|
42
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C7fcguXK.js";
|
|
43
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-BZLm8L47.js";
|
|
44
|
+
import { i as JP_ADDRESS_REQUIRED_FIELDS, r as mapJpAddressSummaryNewSummary, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-6nfrRniy.js";
|
|
45
|
+
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-C8WDAzsL.js";
|
|
46
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-PJV6CPG2.js";
|
|
47
|
+
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-BNu91k9j.js";
|
|
47
48
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
48
|
-
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
49
|
-
import {
|
|
50
|
-
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-
|
|
49
|
+
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-CB0N3iIz.js";
|
|
50
|
+
import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.js";
|
|
51
|
+
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-1dpZJlAz.js";
|
|
51
52
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
52
|
-
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
53
|
-
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-
|
|
53
|
+
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-tRq-KPvW.js";
|
|
54
|
+
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, T as taxIdNumberOptions, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, f as COUNTRIES_USING_COMPANY_SEARCH, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-BbBPfcNK.js";
|
|
55
|
+
import { r as addressValidators } from "./validate-CkuU4MvS.js";
|
|
54
56
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
|
-
import { n as convertFullToHalf } from "./TextArea-
|
|
56
|
-
import {
|
|
57
|
-
import { t as Link } from "./Link-
|
|
58
|
-
import { t as InputText } from "./InputText-
|
|
59
|
-
import { n as formatDateObj, t as InputDate } from "./InputDate-
|
|
60
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
57
|
+
import { n as convertFullToHalf } from "./TextArea-CoS-i-FF.js";
|
|
58
|
+
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
59
|
+
import { t as Link } from "./Link-B7RA2gSt.js";
|
|
60
|
+
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
61
|
+
import { n as formatDateObj, t as InputDate } from "./InputDate-DDVX2D-5.js";
|
|
62
|
+
import { t as RadioGroup } from "./RadioGroup-BUwhfue7.js";
|
|
63
|
+
import { t as toFullWidth } from "./toFullWidth-Dgy4X4i8.js";
|
|
64
|
+
import { t as formatValidationError } from "./formatValidationError-CZ5MeYBS.js";
|
|
61
65
|
import { t as isEmpty$1 } from "./isEmpty-MyMko24J.js";
|
|
62
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-
|
|
66
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-BhZpZhFP.js";
|
|
63
67
|
import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiScriptLocalization, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
|
|
64
|
-
import { t as currencyByCountry } from "./types-
|
|
68
|
+
import { t as currencyByCountry } from "./types-BLWT7WnU.js";
|
|
65
69
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
66
70
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
67
|
-
import { a as LegalFormField, c as
|
|
68
|
-
import { n as SummarySection, t as NewSummary } from "./NewSummary-
|
|
69
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-C2xW-32U.js";
|
|
71
|
+
import { a as LegalFormField, c as isDateOlderThanAYear, i as InputCurrency, l as mapAddressData, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-DJTE2WJJ.js";
|
|
72
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-DDwQJV7w.js";
|
|
73
|
+
import { t as useTaskStatus } from "./useTaskStatus-Be6XyW54.js";
|
|
74
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-KkPiHDQk.js";
|
|
75
|
+
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-D6D9DAn1.js";
|
|
73
76
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
74
|
-
import { _ as
|
|
75
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
76
|
-
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
77
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
78
|
-
import {
|
|
77
|
+
import { _ as DBA_NAME_FIELD, a as VatNumberField, c as defaultFieldMetadata$1, d as RegistrationAndOperationalAddressFields, f as flattenAddressSchema, g as DBANameField, h as doingBusinessAsFieldMetadata, i as VAT_NUMBER_FIELD, l as vatAbsenceReasonMetadata, m as doingBusinessAsAbsentFieldMetadata, n as BusinessRegistrationNumberField, o as getDefaultVatNumberType, p as nestAddressSchema, r as MemoizedConstitutionalDocument, s as defaultFieldConfig$1, t as BUSINESS_REGISTRATION_NUMBER_FIELD, u as REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS } from "./BusinessRegistrationNumberField-DGBqMCwU.js";
|
|
78
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-Bs5FgdWg.js";
|
|
79
|
+
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-DGdSduXu.js";
|
|
80
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-Di84CxrF.js";
|
|
81
|
+
import { lazy } from "preact/compat";
|
|
79
82
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
80
83
|
import cx from "classnames";
|
|
81
84
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
82
|
-
import { createModel, signal,
|
|
85
|
+
import { createModel, signal, useModel, useSignal } from "@preact/signals";
|
|
83
86
|
import { queryOptions, skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
84
87
|
import { createContext as createContext$1 } from "preact";
|
|
85
88
|
import { Show } from "@preact/signals/utils";
|
|
@@ -345,70 +348,6 @@ function StockTickerSymbolField({ data, valid, errors, readonly, mask, shouldVal
|
|
|
345
348
|
});
|
|
346
349
|
}
|
|
347
350
|
//#endregion
|
|
348
|
-
//#region src/components/Shared/forms/Address/AddressFields.tsx
|
|
349
|
-
function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, condensed }) {
|
|
350
|
-
const { t } = useTranslation("common");
|
|
351
|
-
const formUtils = createFormUtils({
|
|
352
|
-
data,
|
|
353
|
-
labels: getAddressSchemaLabelsByCountry(data.country),
|
|
354
|
-
readOnly,
|
|
355
|
-
requiredFields,
|
|
356
|
-
optionalFields,
|
|
357
|
-
readOnlyFields,
|
|
358
|
-
trustedFields
|
|
359
|
-
}, t);
|
|
360
|
-
const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
|
|
361
|
-
const createField = (fieldName) => {
|
|
362
|
-
const hideField = hideCountry && fieldName === "country";
|
|
363
|
-
return /* @__PURE__ */ jsx(AddressField, {
|
|
364
|
-
schema: addressFields,
|
|
365
|
-
data,
|
|
366
|
-
valid: valid ?? {},
|
|
367
|
-
errors: errors ?? {},
|
|
368
|
-
fieldProblems: fieldValidationErrors,
|
|
369
|
-
fieldName,
|
|
370
|
-
maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, data.country, true),
|
|
371
|
-
hideField,
|
|
372
|
-
readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
|
|
373
|
-
optional: formUtils.isOptionalField(fieldName),
|
|
374
|
-
trimOnBlur: true,
|
|
375
|
-
handleChangeFor: handleFieldChange
|
|
376
|
-
}, fieldName);
|
|
377
|
-
};
|
|
378
|
-
if (condensed && data.country) {
|
|
379
|
-
const condensedFields = CONDENSED_ADDRESS_FIELDS[data.country] ?? [];
|
|
380
|
-
switch (data.country) {
|
|
381
|
-
case "US": return /* @__PURE__ */ jsxs("fieldset", {
|
|
382
|
-
"aria-label": t(($) => $[addressType]),
|
|
383
|
-
children: [addressFields.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
384
|
-
className: "adyen-kyc-address__condensed-fields",
|
|
385
|
-
children: condensedFields.map((field) => createField(field))
|
|
386
|
-
})]
|
|
387
|
-
});
|
|
388
|
-
default: return /* @__PURE__ */ jsx("fieldset", {
|
|
389
|
-
"aria-label": t(($) => $[addressType]),
|
|
390
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
395
|
-
"aria-label": t(($) => $[addressType]),
|
|
396
|
-
children: addressFields.map((fieldName) => createField(fieldName))
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/utils/useDebouncedState.ts
|
|
401
|
-
/**
|
|
402
|
-
* Like {@link useState}, but waits for the given amount of time before applying *only* the most recent update.
|
|
403
|
-
*
|
|
404
|
-
* @param wait the time to wait, in milliseconds
|
|
405
|
-
* @param initialState (optional) the default value
|
|
406
|
-
*/
|
|
407
|
-
function useDebouncedState(wait, initialState) {
|
|
408
|
-
const [state, _setState] = useState$1(initialState);
|
|
409
|
-
return [state, useDebouncedCallback(_setState, wait)];
|
|
410
|
-
}
|
|
411
|
-
//#endregion
|
|
412
351
|
//#region src/components/EFP/fields/LegalFormField/types.ts
|
|
413
352
|
var LEGAL_FORM_FIELDS = ["legalForm", "legalFormLabel"];
|
|
414
353
|
var legalFormFieldMetadata = {
|
|
@@ -523,6 +462,34 @@ var localizedLegalCompanyNameFieldConfig = {
|
|
|
523
462
|
metadata: { label: "jaKanaLegalCompanyName" }
|
|
524
463
|
}
|
|
525
464
|
};
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/components/Business/utils/utils.ts
|
|
467
|
+
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, rootLegalEntityType) => {
|
|
468
|
+
const isOrganization = rootLegalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
469
|
+
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
470
|
+
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
471
|
+
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
472
|
+
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
476
|
+
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
477
|
+
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Checks if a country allows registration number exemption for business details.
|
|
481
|
+
*
|
|
482
|
+
* @param country The country code to check.
|
|
483
|
+
* @returns True if the country allows registration number exemption, false otherwise.
|
|
484
|
+
*/
|
|
485
|
+
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
486
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
487
|
+
return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
|
|
488
|
+
};
|
|
489
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
490
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
491
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
492
|
+
};
|
|
526
493
|
var BasicInformation_module_default = {
|
|
527
494
|
"basic-information": "_basic-information_1rbd4_1",
|
|
528
495
|
basicInformation: "_basic-information_1rbd4_1"
|
|
@@ -2528,6 +2495,11 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2528
2495
|
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
2529
2496
|
const { mutate: clearCompanyData } = useClearCompanyData();
|
|
2530
2497
|
const logger = createLogger();
|
|
2498
|
+
const getInferredRegistrationNumberType = () => {
|
|
2499
|
+
const selectedCompany = companySearchStateModel.selectedCompany.peek();
|
|
2500
|
+
if (country === CountryCodes.UnitedStates || !selectedCompany?.registrationNumber) return;
|
|
2501
|
+
return inferCompanyRegistrationNumberType(selectedCompany.registrationNumber, country, selectedCompany.companyType);
|
|
2502
|
+
};
|
|
2531
2503
|
const isVerificationFailed = () => country === CountryCodes.UnitedStates ? !companySearchStateModel.verificationMatched.value : companySearchStateModel.verificationMatched.value === false;
|
|
2532
2504
|
/**
|
|
2533
2505
|
* Returns `null` for non-navs, such as showing the TIN mismatch model for 0 or 1 results
|
|
@@ -2604,7 +2576,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2604
2576
|
skipBusinessSelection.value = true;
|
|
2605
2577
|
return getRequiredForms({
|
|
2606
2578
|
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2607
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2579
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType()
|
|
2608
2580
|
});
|
|
2609
2581
|
}
|
|
2610
2582
|
} catch (e) {
|
|
@@ -2651,7 +2623,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2651
2623
|
break;
|
|
2652
2624
|
}
|
|
2653
2625
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2654
|
-
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm });
|
|
2626
|
+
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType() });
|
|
2655
2627
|
}
|
|
2656
2628
|
};
|
|
2657
2629
|
return {
|
|
@@ -2878,17 +2850,21 @@ var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
2878
2850
|
])).filter(Boolean);
|
|
2879
2851
|
};
|
|
2880
2852
|
var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabled, taskType, matchingScenario, rootLegalEntity) => {
|
|
2881
|
-
const
|
|
2853
|
+
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
2854
|
+
const requestObj = { ...formatObject(data, isSoleProp ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping) };
|
|
2882
2855
|
delete requestObj.organization?.legalFormDescription;
|
|
2883
2856
|
const canSaveRegNumberAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.basicInformation?.country, data.companyStructure?.entityType);
|
|
2884
|
-
const [taxData, registrationNumber] = [
|
|
2885
|
-
|
|
2857
|
+
const [taxData, registrationNumber, registrationNumberType] = [
|
|
2858
|
+
data.basicInformation?.taxInformation,
|
|
2859
|
+
data.basicInformation?.registrationNumber,
|
|
2860
|
+
data.basicInformation?.registrationNumberType
|
|
2861
|
+
];
|
|
2886
2862
|
const localization = [mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields)).map(({ script, fields }) => ({
|
|
2887
2863
|
script,
|
|
2888
2864
|
fields: { legalName: fields.legalCompanyName }
|
|
2889
2865
|
}));
|
|
2890
2866
|
const doingBusinessAs = data.additionalInformation?.doingBusinessAs ?? "";
|
|
2891
|
-
const entityObject =
|
|
2867
|
+
const entityObject = isSoleProp ? requestObj.soleProprietorship : requestObj.organization;
|
|
2892
2868
|
if (entityObject) {
|
|
2893
2869
|
if (taxData) entityObject.taxInformation = taxData;
|
|
2894
2870
|
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country && shouldReuseRegistrationNumberAsTaxId(data.basicInformation?.country, registrationNumberType)) {
|
|
@@ -2900,15 +2876,14 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2900
2876
|
type: privateCompanyTaxOptions && privateCompanyTaxOptions.length > 0 ? privateCompanyTaxOptions[0]["id"] : ""
|
|
2901
2877
|
}];
|
|
2902
2878
|
}
|
|
2903
|
-
if (
|
|
2904
|
-
if (
|
|
2905
|
-
if ((taskType === TaskTypes.TRUST_MEMBER_COMPANY || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY) && requestObj.organization?.vatAbsenceReason === "") requestObj.organization.vatAbsenceReason = null;
|
|
2879
|
+
if (isSoleProp && !!data.basicInformation?.country) entityObject.countryOfGoverningLaw = data.basicInformation.country;
|
|
2880
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS && entityObject.vatAbsenceReason === "") entityObject.vatAbsenceReason = null;
|
|
2906
2881
|
if (registrationNumber) {
|
|
2907
2882
|
entityObject.registrationNumber = registrationNumber;
|
|
2908
|
-
if (canSaveRegNumberAbsentState &&
|
|
2883
|
+
if (canSaveRegNumberAbsentState && !isSoleProp) entityObject.registrationNumberAbsent = false;
|
|
2909
2884
|
}
|
|
2910
|
-
if (
|
|
2911
|
-
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState &&
|
|
2885
|
+
if (!isSoleProp && localization.length > 0) entityObject.localization = localization;
|
|
2886
|
+
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && !isSoleProp) entityObject.registrationNumberAbsent = data.basicInformation.exemptedFromRegistrationNumber;
|
|
2912
2887
|
if (data.additionalInformation?.vatAbsenceReason) entityObject.vatNumber = "";
|
|
2913
2888
|
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
2914
2889
|
if (typeof data.additionalInformation?.hasDoingBusinessAs !== "undefined") entityObject.doingBusinessAsAbsent = !data.additionalInformation.hasDoingBusinessAs;
|
|
@@ -2923,9 +2898,9 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2923
2898
|
if (entityObject.registeredAddress?.country && entityObject.registeredAddress?.stateOrProvince && !COUNTRIES_WITH_STATES_DATASET.includes(entityObject.registeredAddress?.country)) entityObject.registeredAddress.stateOrProvince = "";
|
|
2924
2899
|
if (!isEmpty$1(data.companyFinancialInformation)) entityObject.financialReports = [mapFinancialInformationToFinancialReport(data.companyFinancialInformation, data.additionalInformation?.dateOfIncorporation)];
|
|
2925
2900
|
}
|
|
2926
|
-
requestObj.type =
|
|
2901
|
+
requestObj.type = isSoleProp ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
|
|
2927
2902
|
if (entityObject?.registeredAddress.country === "US") delete entityObject.registrationNumber;
|
|
2928
|
-
if (!canSaveRegNumberAbsentState) delete requestObj.organization?.registrationNumberAbsent;
|
|
2903
|
+
if (!canSaveRegNumberAbsentState && !isSoleProp) delete requestObj.organization?.registrationNumberAbsent;
|
|
2929
2904
|
return requestObj;
|
|
2930
2905
|
};
|
|
2931
2906
|
//#endregion
|
|
@@ -3247,7 +3222,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3247
3222
|
variant: "success"
|
|
3248
3223
|
});
|
|
3249
3224
|
await invalidateRootLegalEntity();
|
|
3250
|
-
onExternalSubmit
|
|
3225
|
+
onExternalSubmit(data);
|
|
3251
3226
|
} catch (err) {
|
|
3252
3227
|
if (isValidationError(err)) {
|
|
3253
3228
|
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
@@ -3429,14 +3404,10 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, registration
|
|
|
3429
3404
|
registrationNumber: data?.registrationNumber,
|
|
3430
3405
|
registrationNumberType: data?.registrationNumberType
|
|
3431
3406
|
};
|
|
3432
|
-
const detectedData =
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
registrationNumber: detectedRegistrationNumber,
|
|
3437
|
-
registrationNumberType: detectedRegistrationNumber ? inferCompanyRegistrationNumberType(detectedRegistrationNumber, country, selectedCompany?.companyType) : void 0
|
|
3438
|
-
};
|
|
3439
|
-
});
|
|
3407
|
+
const detectedData = {
|
|
3408
|
+
registrationNumber: companySearchStateModel.selectedCompany.value?.registrationNumber,
|
|
3409
|
+
registrationNumberType: void 0
|
|
3410
|
+
};
|
|
3440
3411
|
const registrationNumberType = data?.exemptedFromRegistrationNumber ? "exempted" : data?.registrationNumberType;
|
|
3441
3412
|
const { label: registrationNumberLabel } = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
3442
3413
|
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
@@ -3444,17 +3415,14 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, registration
|
|
|
3444
3415
|
}, registrationNumberDefaultFieldMetadata);
|
|
3445
3416
|
return /* @__PURE__ */ jsx(DataConflictsModal, {
|
|
3446
3417
|
providedData,
|
|
3447
|
-
detectedData
|
|
3418
|
+
detectedData,
|
|
3448
3419
|
conflictingProperties: ["registrationNumber"],
|
|
3449
3420
|
formatters: {},
|
|
3450
|
-
labels: { registrationNumber: providedData.registrationNumberType === detectedData.
|
|
3421
|
+
labels: { registrationNumber: providedData.registrationNumberType === detectedData.registrationNumberType ? registrationNumberLabel : "registrationNumber" },
|
|
3451
3422
|
title: t(($) => $["verifyYourBusinesssDetails"], { ns: "business" }),
|
|
3452
3423
|
explanation: t(($) => $["selectTheOptionWithTheMostCorrectDetailsToContinue"], { ns: "business" }),
|
|
3453
3424
|
onCancel: () => registrationNumberMismatchModalOpen.value = false,
|
|
3454
|
-
onContinue:
|
|
3455
|
-
...resolved,
|
|
3456
|
-
registrationNumberType: resolved.registrationNumber === detectedData.peek().registrationNumber ? detectedData.peek().registrationNumberType : providedData.registrationNumberType
|
|
3457
|
-
}),
|
|
3425
|
+
onContinue: confirmDataSelection,
|
|
3458
3426
|
listOnly: true
|
|
3459
3427
|
});
|
|
3460
3428
|
}
|
|
@@ -3508,26 +3476,24 @@ function createStructuredListItem(term, details, t) {
|
|
|
3508
3476
|
details
|
|
3509
3477
|
};
|
|
3510
3478
|
}
|
|
3511
|
-
|
|
3512
|
-
|
|
3479
|
+
var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGoverningLawEnabled) => {
|
|
3480
|
+
const country = data.country;
|
|
3481
|
+
const taxInfoForCountry = data.taxInformation?.find((taxInfo) => taxInfo.country === country);
|
|
3482
|
+
let taxIdLabel = "taxInformationNumber";
|
|
3483
|
+
if (country in taxIdNumberOptions) {
|
|
3484
|
+
const numberOption = taxIdNumberOptions[country]?.find((taxOption) => taxOption.id === taxInfoForCountry?.type);
|
|
3485
|
+
if (numberOption) taxIdLabel = numberOption.name;
|
|
3486
|
+
}
|
|
3487
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
3513
3488
|
companyType,
|
|
3514
3489
|
registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data.registrationNumber, country, companyType) : getCompanyRegistrationNumberOptions(country, companyType)?.[0]?.id
|
|
3515
3490
|
}, registrationNumberDefaultFieldMetadata).label ?? "";
|
|
3516
|
-
}
|
|
3517
|
-
function getTaxIdLabel(country) {
|
|
3518
|
-
return resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
3519
|
-
taxIdNumberType: countryToTaxInfoTypeMap[country] ?? void 0,
|
|
3520
|
-
companyType: void 0
|
|
3521
|
-
}, taxInformationDefaultFieldMetadata).label ?? "";
|
|
3522
|
-
}
|
|
3523
|
-
var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGoverningLawEnabled) => {
|
|
3524
|
-
const country = data.country;
|
|
3525
3491
|
return {
|
|
3526
3492
|
legalCompanyName: data.legalCompanyName,
|
|
3527
3493
|
country: datasetUtils.getCountryName(data.country),
|
|
3528
3494
|
[getKeyForField("stateOrProvince", data.country)]: datasetUtils.getStateName(data.stateOrProvince, data.country),
|
|
3529
|
-
[
|
|
3530
|
-
[
|
|
3495
|
+
[taxIdLabel]: taxInfoForCountry?.number,
|
|
3496
|
+
[registrationNumberLabel]: data.registrationNumber,
|
|
3531
3497
|
countryOfGoverningLaw: datasetUtils.getCountryName(getCountryOfGoverningLaw(isCountryOfGoverningLawEnabled, data))
|
|
3532
3498
|
};
|
|
3533
3499
|
};
|
|
@@ -3803,15 +3769,17 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3803
3769
|
}
|
|
3804
3770
|
}
|
|
3805
3771
|
};
|
|
3806
|
-
var applyVerifiedBusinessData = (form, country, verifiedData,
|
|
3772
|
+
var applyVerifiedBusinessData = (form, country, verifiedData, options) => {
|
|
3807
3773
|
if (!verifiedData) return;
|
|
3808
3774
|
form.handleChangeFor("basicInformation", "legalCompanyName")(verifiedData.name);
|
|
3809
|
-
if (country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) {
|
|
3775
|
+
if (!options?.preserveRegistrationNumber && country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) {
|
|
3810
3776
|
form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3811
|
-
|
|
3777
|
+
const inferredRegistrationNumberType = inferCompanyRegistrationNumberType(verifiedData.registrationNumber, country, verifiedData.companyType);
|
|
3778
|
+
form.handleChangeFor("basicInformation", "registrationNumberType")(inferredRegistrationNumberType);
|
|
3812
3779
|
}
|
|
3813
3780
|
if (form.defaultData?.additionalInformation?.registrationAddressStreet || form.defaultData?.additionalInformation?.operationalAddressStreet) return;
|
|
3814
|
-
|
|
3781
|
+
const companyType = options?.companyTypeOverride ?? verifiedData.companyType;
|
|
3782
|
+
form.handleChangeFor("companyStructure", "entityType")(companyType);
|
|
3815
3783
|
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("additionalInformation", "operationalAddressIsSame", "input")(false);
|
|
3816
3784
|
const applyVerifiedAddress = (prefix, address) => {
|
|
3817
3785
|
const flatAddress = flattenAddressSchema(prefix, {
|
|
@@ -3870,9 +3838,9 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3870
3838
|
selectBusinessAnalytics(userEvents, idx);
|
|
3871
3839
|
}
|
|
3872
3840
|
},
|
|
3873
|
-
confirmCompany: (multiform, country,
|
|
3841
|
+
confirmCompany: (multiform, country, options) => {
|
|
3874
3842
|
verifiedBusiness.value = selectedCompany.value;
|
|
3875
|
-
applyVerifiedBusinessData(multiform, country, selectedCompany.value,
|
|
3843
|
+
applyVerifiedBusinessData(multiform, country, selectedCompany.value, options);
|
|
3876
3844
|
if (selectedCompanyIdx.value > -1) confirmBusinessAnalytics(userEvents, selectedCompanyIdx.value);
|
|
3877
3845
|
}
|
|
3878
3846
|
};
|
|
@@ -3989,7 +3957,7 @@ var preventPoBoxValidation = (cleanseAddress, formData) => ({ operationalAddress
|
|
|
3989
3957
|
//#endregion
|
|
3990
3958
|
//#region src/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.tsx
|
|
3991
3959
|
var CompanySearchStateContext = createContext$1({});
|
|
3992
|
-
function BusinessDetailsDropin({ taskType, country: propCountry, problems: propProblems, legalEntityResponse, efpBusinessLines, documents, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, onSubmit: onExternalSubmit, handleHomeClick
|
|
3960
|
+
function BusinessDetailsDropin({ taskType, country: propCountry, problems: propProblems, legalEntityResponse, efpBusinessLines, documents, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, onSubmit: onExternalSubmit, handleHomeClick }) {
|
|
3993
3961
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
3994
3962
|
const userEvents = useAnalyticsContext();
|
|
3995
3963
|
const { isFeatureEnabled } = useToggleContext();
|
|
@@ -4168,6 +4136,27 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4168
4136
|
multiForm.handleChangeFor("companyStructure", "entityType")(void 0);
|
|
4169
4137
|
}
|
|
4170
4138
|
/**
|
|
4139
|
+
* The company structures that are still valid given the registration number type and tax ID
|
|
4140
|
+
* number type currently in the form.
|
|
4141
|
+
*/
|
|
4142
|
+
const availableCompanyStructures = useMemo$1(() => getAvailableCompanyStructures({
|
|
4143
|
+
country,
|
|
4144
|
+
registrationNumberType: multiForm.data.basicInformation?.registrationNumberType,
|
|
4145
|
+
registrationNumberExempt: multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4146
|
+
taxIdNumberType: multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type,
|
|
4147
|
+
legalEntity: legalEntityResponse,
|
|
4148
|
+
accountHolder,
|
|
4149
|
+
isSettingEnabled
|
|
4150
|
+
}), [
|
|
4151
|
+
accountHolder,
|
|
4152
|
+
country,
|
|
4153
|
+
isSettingEnabled,
|
|
4154
|
+
legalEntityResponse,
|
|
4155
|
+
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4156
|
+
multiForm.data.basicInformation?.registrationNumberType,
|
|
4157
|
+
multiForm.data.basicInformation?.taxInformation
|
|
4158
|
+
]);
|
|
4159
|
+
/**
|
|
4171
4160
|
* Infer the company structure based on the registration number type and tax ID number type
|
|
4172
4161
|
* This is used to automatically select the company structure when the user has already provided
|
|
4173
4162
|
* the necessary information to uniquely identify the company structure
|
|
@@ -4175,27 +4164,9 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4175
4164
|
const inferredCompanyStructure = useMemo$1(() => {
|
|
4176
4165
|
if (taskType !== "BUSINESS_DETAILS") return void 0;
|
|
4177
4166
|
if (multiForm.data.companyStructure?.entityType && multiForm.data.companyStructure?.entityType === "associationIncorporated" || multiForm.data.companyStructure?.entityType === "partnershipIncorporated") return;
|
|
4178
|
-
const registrationNumberType = multiForm.data.basicInformation?.registrationNumberType;
|
|
4179
|
-
const taxIdNumberType = multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
4180
|
-
const registrationNumberExempt = multiForm.data.basicInformation?.exemptedFromRegistrationNumber;
|
|
4181
|
-
const availableCompanyStructures = getAvailableCompanyStructures({
|
|
4182
|
-
country,
|
|
4183
|
-
registrationNumberType,
|
|
4184
|
-
registrationNumberExempt,
|
|
4185
|
-
taxIdNumberType,
|
|
4186
|
-
legalEntity: legalEntityResponse,
|
|
4187
|
-
accountHolder,
|
|
4188
|
-
isSettingEnabled
|
|
4189
|
-
});
|
|
4190
4167
|
return availableCompanyStructures.length === 1 ? availableCompanyStructures[0] : void 0;
|
|
4191
4168
|
}, [
|
|
4192
|
-
|
|
4193
|
-
country,
|
|
4194
|
-
isSettingEnabled,
|
|
4195
|
-
legalEntityResponse,
|
|
4196
|
-
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4197
|
-
multiForm.data.basicInformation?.registrationNumberType,
|
|
4198
|
-
multiForm.data.basicInformation?.taxInformation,
|
|
4169
|
+
availableCompanyStructures,
|
|
4199
4170
|
multiForm.data.companyStructure?.entityType,
|
|
4200
4171
|
taskType
|
|
4201
4172
|
]);
|
|
@@ -4378,14 +4349,33 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4378
4349
|
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
4379
4350
|
if (userProvided) {
|
|
4380
4351
|
registrationNumberMismatchModalOpen.value = false;
|
|
4381
|
-
|
|
4352
|
+
/**
|
|
4353
|
+
* The user keeps their own registration number, but the rest of the provider's data
|
|
4354
|
+
* (legal name, addresses, financial information) is still worth applying.
|
|
4355
|
+
*
|
|
4356
|
+
* The provider's company type can only be applied if it's compatible with the user's
|
|
4357
|
+
* registration number — a GB charity number, for example, cannot belong to a
|
|
4358
|
+
* `privateCompany`. When it isn't compatible we discard it and fall back to the company
|
|
4359
|
+
* types the registration number allows: exactly one means we can infer it, otherwise the
|
|
4360
|
+
* user picks it on the company structure step.
|
|
4361
|
+
*/
|
|
4362
|
+
const providerCompanyType = companySearchStateModel.selectedCompany.value?.companyType;
|
|
4363
|
+
const resolvedCompanyType = !!providerCompanyType && availableCompanyStructures.includes(providerCompanyType) ? providerCompanyType : inferredCompanyStructure;
|
|
4364
|
+
companySearchStateModel.confirmCompany(multiForm, country, {
|
|
4365
|
+
preserveRegistrationNumber: true,
|
|
4366
|
+
companyTypeOverride: resolvedCompanyType
|
|
4367
|
+
});
|
|
4382
4368
|
clearCompanyData();
|
|
4383
|
-
handleNextClick(
|
|
4369
|
+
handleNextClick(getRequiredForms({
|
|
4370
|
+
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
4371
|
+
skipCompanyStructure: !!resolvedCompanyType
|
|
4372
|
+
}));
|
|
4384
4373
|
} else {
|
|
4385
|
-
companySearchStateModel.confirmCompany(multiForm, country
|
|
4374
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
4386
4375
|
registrationNumberMismatchModalOpen.value = false;
|
|
4376
|
+
const inferredRegistrationNumberType = resolvedData.registrationNumber ? inferCompanyRegistrationNumberType(resolvedData.registrationNumber, country, companySearchStateModel.verifiedBusiness.value?.companyType) : void 0;
|
|
4387
4377
|
handleNextClick(getRequiredForms({
|
|
4388
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm,
|
|
4378
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!inferredRegistrationNumberType,
|
|
4389
4379
|
skipBusinessSelection: skipBusinessSelection.peek()
|
|
4390
4380
|
}));
|
|
4391
4381
|
}
|
|
@@ -4416,7 +4406,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4416
4406
|
children: t(($) => $["summaryLegalCaption"])
|
|
4417
4407
|
})]
|
|
4418
4408
|
}),
|
|
4419
|
-
asModal: isBusinessDetailsModalEnabled
|
|
4409
|
+
asModal: isBusinessDetailsModalEnabled,
|
|
4420
4410
|
currentStep: steps.current,
|
|
4421
4411
|
totalSteps: steps.total,
|
|
4422
4412
|
forms,
|
|
@@ -4546,7 +4536,6 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4546
4536
|
}
|
|
4547
4537
|
//#endregion
|
|
4548
4538
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4549
|
-
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-CB889sWX.js")).JpAddressFields);
|
|
4550
4539
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4551
4540
|
...DBA_NAME_FIELD,
|
|
4552
4541
|
...VAT_NUMBER_FIELD,
|
|
@@ -4560,41 +4549,20 @@ var ADDITIONAL_INFORMATION_FIELDS = [
|
|
|
4560
4549
|
"legalFormDescription",
|
|
4561
4550
|
"residentialAddressIndicator",
|
|
4562
4551
|
...LEGAL_FORM_FIELDS,
|
|
4563
|
-
|
|
4564
|
-
...getPrefixedAddressFieldNames("registrationAddress"),
|
|
4565
|
-
...getPrefixedAddressFieldNames("operationalAddress")
|
|
4552
|
+
...REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS
|
|
4566
4553
|
];
|
|
4567
4554
|
var EMPTY_OBJ = {};
|
|
4568
4555
|
function AdditionalInformation({ id, country, companyType, shouldValidate, fieldValidationErrors = EMPTY_OBJ, formVerificationErrors = EMPTY_OBJ }) {
|
|
4569
4556
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
4570
4557
|
const { form } = useFormContext();
|
|
4571
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
4572
4558
|
const verifiedBusiness = useContext$1(CompanySearchStateContext).verifiedBusiness.value;
|
|
4573
4559
|
const showVerified = !!verifiedBusiness;
|
|
4574
4560
|
const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
|
|
4575
4561
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4576
|
-
const showJapanLocalization = isJapanLocalizationEnabled(isFeatureEnabled, country);
|
|
4577
4562
|
const businessLineTypes = [];
|
|
4578
4563
|
if (matchingScenario?.includes("L_BANKING")) businessLineTypes.push("banking");
|
|
4579
4564
|
if (matchingScenario?.includes("L_ISSUING")) businessLineTypes.push("issuing");
|
|
4580
|
-
const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
|
|
4581
|
-
const { data: cleansedRegistrationAddress } = useAddressCleanse({
|
|
4582
|
-
text: addressToCheck,
|
|
4583
|
-
country
|
|
4584
|
-
}, { enabled: Boolean(addressToCheck) });
|
|
4585
|
-
const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
|
|
4586
4565
|
const { data, defaultData, valid, errors, allFields, requiredFields, optionalFields, obscuredFields, trustedFields, handleChange: handleChangeFor } = getFormSlice(form, "additionalInformation");
|
|
4587
|
-
const currentRegistrationAddress = nestAddressSchema("registrationAddress", data);
|
|
4588
|
-
useEffect$1(() => setAddressToCheck(formatAddressForCleanse(currentRegistrationAddress)), [currentRegistrationAddress, setAddressToCheck]);
|
|
4589
|
-
useEffect$1(() => {
|
|
4590
|
-
if (data?.registrationAddressCountry !== country) handleChangeFor("registrationAddressCountry")(country);
|
|
4591
|
-
if (data?.operationalAddressCountry !== country) handleChangeFor("operationalAddressCountry")(country);
|
|
4592
|
-
}, [
|
|
4593
|
-
data?.registrationAddressCountry,
|
|
4594
|
-
data?.operationalAddressCountry,
|
|
4595
|
-
country,
|
|
4596
|
-
handleChangeFor
|
|
4597
|
-
]);
|
|
4598
4566
|
/**
|
|
4599
4567
|
* Map the existing verified address data returned from the business data provider to our local address schema.
|
|
4600
4568
|
* This must be done differently than the other verified data as the address
|
|
@@ -4612,18 +4580,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4612
4580
|
defaultData?.registrationAddressStreet,
|
|
4613
4581
|
defaultData?.operationalAddressStreet
|
|
4614
4582
|
]);
|
|
4615
|
-
const handleOperationalAddressIsSameChange = useCallback$1((isChecked) => {
|
|
4616
|
-
handleChangeFor("operationalAddressIsSame")(isChecked);
|
|
4617
|
-
}, [handleChangeFor]);
|
|
4618
|
-
const handleResidentialAddressIndicatorChange = useCallback$1((isChecked) => handleChangeFor("residentialAddressIndicator")(isChecked), [handleChangeFor]);
|
|
4619
|
-
if (data?.operationalAddressIsSame === null) handleOperationalAddressIsSameChange(true);
|
|
4620
|
-
useEffect$1(() => {
|
|
4621
|
-
if (mustProvideOperationalAddress && data?.operationalAddressIsSame) handleOperationalAddressIsSameChange(false);
|
|
4622
|
-
}, [
|
|
4623
|
-
handleOperationalAddressIsSameChange,
|
|
4624
|
-
mustProvideOperationalAddress,
|
|
4625
|
-
data?.operationalAddressIsSame
|
|
4626
|
-
]);
|
|
4627
4583
|
const formUtils = useMemo$1(() => {
|
|
4628
4584
|
const initialProps = {
|
|
4629
4585
|
data: data ?? {},
|
|
@@ -4672,44 +4628,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4672
4628
|
]);
|
|
4673
4629
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
4674
4630
|
const { data: industryCodes } = useIndustryCodes(businessLineTypes, i18n.language, { enabled: showField(INDUSTRY_CODE_FIELD) });
|
|
4675
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
4676
|
-
const registrationAddressDescription = useMemo$1(() => {
|
|
4677
|
-
return [
|
|
4678
|
-
"US",
|
|
4679
|
-
"NL",
|
|
4680
|
-
"CZ"
|
|
4681
|
-
].includes(country) ? t(($) => $["youBusinessOfficalAddressInTheCounty"], {
|
|
4682
|
-
ns: "business",
|
|
4683
|
-
country: datasetUtils.getCountryName(country)
|
|
4684
|
-
}) : t(($) => $["youBusinessOfficalAddressInCounty"], {
|
|
4685
|
-
ns: "business",
|
|
4686
|
-
country: datasetUtils.getCountryName(country)
|
|
4687
|
-
});
|
|
4688
|
-
}, [
|
|
4689
|
-
country,
|
|
4690
|
-
datasetUtils,
|
|
4691
|
-
t
|
|
4692
|
-
]);
|
|
4693
|
-
let readOnlyAddressFields = [];
|
|
4694
|
-
if (verifiedBusiness?.registeredAddress?.state && verifiedBusiness.registeredAddress.state === form.data.basicInformation?.stateOrProvince) readOnlyAddressFields = ["stateOrProvince"];
|
|
4695
|
-
const additionalInformationFormProps = {
|
|
4696
|
-
data,
|
|
4697
|
-
valid,
|
|
4698
|
-
errors,
|
|
4699
|
-
requiredFields,
|
|
4700
|
-
optionalFields,
|
|
4701
|
-
fieldValidationErrors,
|
|
4702
|
-
handleFieldChange: handleChangeFor
|
|
4703
|
-
};
|
|
4704
|
-
const addressFieldProps = showJapanLocalization ? {
|
|
4705
|
-
showJapanLocalization: true,
|
|
4706
|
-
registrationAddress: getPrefixedFieldProps(additionalInformationFormProps, "registrationAddress", ALL_ADDRESS_FIELDS),
|
|
4707
|
-
operationalAddress: getPrefixedFieldProps(additionalInformationFormProps, "operationalAddress", ALL_ADDRESS_FIELDS)
|
|
4708
|
-
} : {
|
|
4709
|
-
showJapanLocalization: false,
|
|
4710
|
-
registrationAddress: getPrefixedFieldProps(additionalInformationFormProps, "registrationAddress", addressFields),
|
|
4711
|
-
operationalAddress: getPrefixedFieldProps(additionalInformationFormProps, "operationalAddress", addressFields)
|
|
4712
|
-
};
|
|
4713
4631
|
return /* @__PURE__ */ jsxs("form", {
|
|
4714
4632
|
id,
|
|
4715
4633
|
children: [
|
|
@@ -4747,7 +4665,7 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4747
4665
|
countryCode: country,
|
|
4748
4666
|
data: { legalForm: formUtils.getFieldData(data ?? {}, LEGAL_FORM_FIELDS).legalForm },
|
|
4749
4667
|
valid: formUtils.getFieldValid(valid ?? {}, LEGAL_FORM_FIELDS),
|
|
4750
|
-
errorMessage: errors?.legalForm?.errorMessage,
|
|
4668
|
+
errorMessage: formatValidationError(errors?.legalForm?.errorMessage, t),
|
|
4751
4669
|
handleChangeFor,
|
|
4752
4670
|
readonly: false,
|
|
4753
4671
|
label: formUtils.getLabel("legalForm", "businessStructure")
|
|
@@ -4843,96 +4761,19 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4843
4761
|
handleChangeFor
|
|
4844
4762
|
})
|
|
4845
4763
|
] })] }),
|
|
4846
|
-
/* @__PURE__ */
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
})]
|
|
4860
|
-
}),
|
|
4861
|
-
addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4862
|
-
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4863
|
-
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
4864
|
-
...addressFieldProps.registrationAddress,
|
|
4865
|
-
addressType: "registrationAddress"
|
|
4866
|
-
})
|
|
4867
|
-
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
4868
|
-
...addressFieldProps.registrationAddress,
|
|
4869
|
-
addressType: "registrationAddress",
|
|
4870
|
-
readOnlyFields: readOnlyAddressFields,
|
|
4871
|
-
trustedFields: getNestedTrustedFields("registrationAddress", trustedFields),
|
|
4872
|
-
hideCountry: true,
|
|
4873
|
-
condensed: true
|
|
4874
|
-
}),
|
|
4875
|
-
showField(["residentialAddressIndicator"]) && /* @__PURE__ */ jsx(Field, {
|
|
4876
|
-
el: "fieldset",
|
|
4877
|
-
name: "residentialAddressIndicator",
|
|
4878
|
-
errorMessage: form.errors.additionalInformation?.residentialAddressIndicator?.errorMessage,
|
|
4879
|
-
isValid: form.valid.additionalInformation?.residentialAddressIndicator,
|
|
4880
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
4881
|
-
...childProps,
|
|
4882
|
-
name: "residentialAddressIndicator",
|
|
4883
|
-
label: t(($) => $["thisIsAPersonalAddress"], { ns: "business" }),
|
|
4884
|
-
helper: t(($) => $["businessAddressesCanShowOwnReceipts"], { ns: "business" }),
|
|
4885
|
-
checked: !!form.data.additionalInformation?.residentialAddressIndicator,
|
|
4886
|
-
readonly: formUtils.isReadOnly("residentialAddressIndicator"),
|
|
4887
|
-
onChange: handleResidentialAddressIndicatorChange
|
|
4888
|
-
})
|
|
4889
|
-
})
|
|
4890
|
-
]
|
|
4891
|
-
}),
|
|
4892
|
-
/* @__PURE__ */ jsxs("section", {
|
|
4893
|
-
"data-testid": "principalPlaceOfBusiness",
|
|
4894
|
-
children: [
|
|
4895
|
-
/* @__PURE__ */ jsxs("div", {
|
|
4896
|
-
className: AdditionalInformation_module_default.additionalInformationSectionHeading,
|
|
4897
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
4898
|
-
el: "h3",
|
|
4899
|
-
variant: "title",
|
|
4900
|
-
children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" })
|
|
4901
|
-
}), /* @__PURE__ */ jsx(Typography, {
|
|
4902
|
-
el: "p",
|
|
4903
|
-
variant: "body",
|
|
4904
|
-
children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" })
|
|
4905
|
-
})]
|
|
4906
|
-
}),
|
|
4907
|
-
!mustProvideOperationalAddress && /* @__PURE__ */ jsx(Field, {
|
|
4908
|
-
el: "fieldset",
|
|
4909
|
-
name: "operationalAddressIsSame",
|
|
4910
|
-
errorMessage: errors?.operationalAddressIsSame?.errorMessage,
|
|
4911
|
-
isValid: valid?.operationalAddressIsSame,
|
|
4912
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
4913
|
-
...childProps,
|
|
4914
|
-
"aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
|
|
4915
|
-
"aria-invalid": !valid?.operationalAddressIsSame,
|
|
4916
|
-
name: "operationalAddressIsSame",
|
|
4917
|
-
label: formUtils.getLabel("sameAsRegisteredAddress"),
|
|
4918
|
-
checked: !!data?.operationalAddressIsSame,
|
|
4919
|
-
onChange: handleOperationalAddressIsSameChange
|
|
4920
|
-
})
|
|
4921
|
-
}),
|
|
4922
|
-
!data?.operationalAddressIsSame && (addressFieldProps.showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4923
|
-
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4924
|
-
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
4925
|
-
...addressFieldProps.operationalAddress,
|
|
4926
|
-
addressType: "operationalAddress"
|
|
4927
|
-
})
|
|
4928
|
-
}) : /* @__PURE__ */ jsx(AddressFields, {
|
|
4929
|
-
...addressFieldProps.operationalAddress,
|
|
4930
|
-
addressType: "operationalAddress",
|
|
4931
|
-
trustedFields: getNestedTrustedFields("operationalAddress", trustedFields),
|
|
4932
|
-
hideCountry: true,
|
|
4933
|
-
condensed: true
|
|
4934
|
-
}))
|
|
4935
|
-
]
|
|
4764
|
+
/* @__PURE__ */ jsx(RegistrationAndOperationalAddressFields, {
|
|
4765
|
+
country,
|
|
4766
|
+
readOnlyAddressFields: verifiedBusiness?.registeredAddress?.state && verifiedBusiness.registeredAddress.state === form.data.basicInformation?.stateOrProvince ? ["stateOrProvince"] : [],
|
|
4767
|
+
entityType: "business",
|
|
4768
|
+
data,
|
|
4769
|
+
valid,
|
|
4770
|
+
errors,
|
|
4771
|
+
requiredFields,
|
|
4772
|
+
optionalFields,
|
|
4773
|
+
trustedFields,
|
|
4774
|
+
fieldValidationErrors,
|
|
4775
|
+
handleChangeFor,
|
|
4776
|
+
formUtils
|
|
4936
4777
|
})
|
|
4937
4778
|
]
|
|
4938
4779
|
})
|