@adyen/kyc-components 4.22.0-beta.0 → 4.22.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-BOf_52TF.js} +4 -4
- package/dist/{Accordion-DEivLTcw.js → Accordion-Sjyj7C_t.js} +1 -1
- package/dist/{AccountSetupRejected-pcQcFAhQ.js → AccountSetupRejected-DoYH7MuS.js} +1 -1
- package/dist/{AdaptiveWorkflow-C0EsaW8F.js → AdaptiveWorkflow-ychw-YVL.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-DFnkomSo.js} +3 -3
- package/dist/{AddressFields-3kqeRdC_.js → AddressFields-CFf-ECTn.js} +10 -10
- package/dist/{Avatar-DHyXCNwV.js → Avatar-Zp1T9qAL.js} +1 -1
- package/dist/{BusinessFinancingDropin-BOECqGNd.js → BusinessFinancingDropin-Dr9GOZI2.js} +31 -31
- package/dist/{BusinessFinancingPage-DSy5an97.js → BusinessFinancingPage-DIHz906_.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-DHccXqsX.js → BusinessRegistrationNumberField-BGZrKxCP.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-2e9GKH-i.js → BusinessRegistrationNumberFieldGroup-D4289xzf.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-BraXRUrg.js → BusinessTypeSelectionPage-D7mTXytS.js} +85 -67
- package/dist/{Button-nDbNtBn3.js → Button-DfRmINzF.js} +1 -1
- package/dist/{Checkbox-BiKnP2fS.js → Checkbox-DTQ5Y6L-.js} +2 -2
- package/dist/{ComponentGroup-Due-N8Yz.js → ComponentGroup-DysWDI71.js} +3 -3
- package/dist/{ConstitutionalDocument-CtRHXMb9.js → ConstitutionalDocument-o1_xv4zy.js} +15 -15
- package/dist/{ContactDetails-Syyy5BfB.js → ContactDetails-BUZAvP2T.js} +5 -5
- package/dist/{ContextGuidance-D8leB0D6.js → ContextGuidance-fy9mkvE5.js} +3 -3
- package/dist/{Currency-CFsMnSP0.js → Currency-CfDw1FVZ.js} +5 -5
- package/dist/{CustomerSupport-DqayB3BM.js → CustomerSupport-BRTzBxJt.js} +25 -15
- package/dist/{DataConflictsModal-Bz2SYyi5.js → DataConflictsModal-s-Ss3HdC.js} +7 -7
- package/dist/{DebugModal-fH0uKl1E.js → DebugModal-CbilZSFv.js} +10 -10
- package/dist/{DecisionMakerDetails-7IPREpy1.js → DecisionMakerDetails-CWZUSV8G.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-Bs9q7sxc.js → DecisionMakerDetailsPage-Rtsv9ICS.js} +7 -7
- package/dist/{DecisionMakers-Dw66GRhZ.js → DecisionMakers-BmUjP2RH.js} +13 -13
- package/dist/{Dropzone-CjLSK2UN.js → Dropzone-dnfMEv2T.js} +7 -7
- package/dist/{EmbeddedStatus-BIVFBjzu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
- package/dist/{EndStateLayout-D2CSEwEn.js → EndStateLayout-BK1Hh02g.js} +2 -2
- package/dist/{EntityAssociation-LF_5ihhI.js → EntityAssociation-CH9G3mlZ.js} +6 -6
- package/dist/{ErrorPanel-tLtZnFnX.js → ErrorPanel-B5suXapM.js} +2 -2
- package/dist/{GlobalEntryModal-CY-t1fGQ.js → GlobalEntryModal-DwhX1CJz.js} +237 -51
- package/dist/{GlobalEntryPage-xX4ruKnx.js → GlobalEntryPage-DPYM9_FS.js} +11 -8
- package/dist/{Icon-BcaP-f1D.js → Icon-C3S5_kkS.js} +1 -1
- package/dist/{IdentityNumber-4ky6SOcb.js → IdentityNumber-BJymypwh.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-BKKmSfLG.js → IdentityNumberFieldGroup-DPfXsI_n.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-ZVSOyRqF.js} +12 -12
- package/dist/{IndividualDropin-DrQiG_Vy.js → IndividualDropin-B3UfxIu8.js} +269 -45
- package/dist/{IndustryCodeFieldGroup-jm8KFccr.js → IndustryCodeFieldGroup-D5U1t1F-.js} +4 -4
- package/dist/{InputDate-C14J5Af2.js → InputDate-CncTgJYS.js} +3 -3
- package/dist/{InputText-Dr-Wg0uc.js → InputText-Bniyaz3w.js} +3 -3
- package/dist/{Introduction-DXAxkrDG.js → Introduction-BOz_2500.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CPMIUjiE.js → InvitedDecisionMakerComponent-DgIv6IG9.js} +9 -9
- package/dist/{JpAddressFields-olKUlhpt.js → JpAddressFields-nEKx7nU_.js} +8 -8
- package/dist/{LegalCompanyNameField-BrdI-awc.js → LegalCompanyNameField-BFm2LIw2.js} +5 -5
- package/dist/{LegalName-CWoSqy0V.js → LegalName-DBvf_laS.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-Ca3FLoSd.js → LegalRepresentativeDetailsPage-BVr_AhP6.js} +3 -3
- package/dist/{Link-opuU6bLF.js → Link-c2jAgGgc.js} +1 -1
- package/dist/{ListItem-CbjOa0L_.js → ListItem-C35r8558.js} +3 -3
- package/dist/{Modal-BDNS-0rS.js → Modal-5uXk2vE6.js} +2 -2
- package/dist/{Name-CxlxPgUR.js → Name-CbdY9G9k.js} +4 -4
- package/dist/{NewSummary-mLsovGX8.js → NewSummary-lUp_hg6V.js} +6 -6
- package/dist/{PatriotActDisclosure-kOnDnF8P.js → PatriotActDisclosure-i6txl8sg.js} +9 -9
- package/dist/{PayoutDetailsDropin-CZ77wefd.js → PayoutDetailsDropin-BnDericg.js} +25 -25
- package/dist/{PayoutDetailsPage-Cyy-fDbK.js → PayoutDetailsPage-zLj-XA7a.js} +4 -4
- package/dist/{RadioGroup-C0mNADXE.js → RadioGroup-BcRkK03K.js} +11 -11
- package/dist/{Review-CDtJh9j3.js → Review--lh7xBZJ.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CnVWFx0H.js → RootBusinessDetailsPage-CsOt68pH.js} +3 -3
- package/dist/{RootBusinessLinesPage-Dtx9X-mD.js → RootBusinessLinesPage-CsPTRJHI.js} +20 -20
- package/dist/{RootIndividualDetailsPage-q8PZ0Khk.js → RootIndividualDetailsPage-CROUaWsK.js} +4 -4
- package/dist/{Select-UO37dd_q.js → Select-CAYO1vj-.js} +6 -6
- package/dist/{SignPCIComponent-D21OqVWo.js → SignPCIComponent-iFFWNqDL.js} +13 -13
- package/dist/{SingpassSelection-CRYphIRT.js → SingpassSelection-BKRSs-Xf.js} +4 -4
- package/dist/{SoleProprietorshipPage-BKB0sRiP.js → SoleProprietorshipPage-UvZsbICO.js} +3 -3
- package/dist/{SourceOfFundsPage-C2ZEp0lT.js → SourceOfFundsPage-B5E9w3tI.js} +25 -28
- package/dist/{SourceOfFundsWorkflow-Cy12c7ou.js → SourceOfFundsWorkflow-DgUkjcYh.js} +4 -4
- package/dist/{StateField-CWS8eXex.js → StateField-DB4_kWP5.js} +46 -5
- package/dist/{Step-CYG94mSp.js → Step-CoGy1zas.js} +4 -4
- package/dist/{Task-D6xuGucd.js → Task-DdRNdhJY.js} +7 -7
- package/dist/{TaskGroup-C4ND30dB.js → TaskGroup-yVbg_WHM.js} +3 -3
- package/dist/{TaskListItem-Dc6n6llv.js → TaskListItem-BritELso.js} +10 -10
- package/dist/{TaskStepperContextProvider-CvChF1W5.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
- package/dist/{TaskVerificationStatus-pjPK5vVN.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
- package/dist/{TaxInformationFieldGroup-BACQgHQ7.js → TaxInformationFieldGroup-CYcqRgQt.js} +9 -9
- package/dist/{TaxReportingDropin-DmOclyYQ.js → TaxReportingDropin-Dxt-K1Td.js} +14 -14
- package/dist/{TaxReportingWorkflow-CBEB7oAn.js → TaxReportingWorkflow-xeJVSZxl.js} +4 -4
- package/dist/{TermsOfServiceManagement-No_9QGjv.js → TermsOfServiceManagement-BiqqRcsM.js} +12 -12
- package/dist/{TextArea-BzY5efza.js → TextArea-mN6mmyt0.js} +4 -4
- package/dist/{TrustDetailsPage-BHjbebZX.js → TrustDetailsPage-OuITcLjL.js} +23 -25
- package/dist/{TrustMemberCompanyPage-BSe-Pn1O.js → TrustMemberCompanyPage-BSr2h39m.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DxlZQF6W.js → TrustMemberIndividualPage-D1oTjw8X.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-AtlXyfKk.js → TrustMemberRoleAndTypePage-qnLRC07p.js} +15 -16
- package/dist/{TrustMembersOverview-DpmUv4Vj.js → TrustMembersOverview-BhtPLg82.js} +11 -11
- package/dist/{UboTaskItem-ESC2Ze3o.js → UboTaskItem-dmz_L8pF.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-BVpz27KZ.js → UnincorporatedPartnershipIndividualPage-BGuseNDd.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js → UnincorporatedPartnershipMemberCompanyPage-DfWEeKVA.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js → UnincorporatedPartnershipMemberRoleAndTypePage-CNrub8wj.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js → UnincorporatedPartnershipMembersOverview-BISsH8Wm.js} +6 -6
- package/dist/{VerificationErrorAlert-BCEhkhpr.js → VerificationErrorAlert-DAg5VgBd.js} +3 -3
- package/dist/{Workflow-CzSGihyD.js → Workflow-CVwXYQQE.js} +6 -6
- package/dist/{accountHolderUtils-3WiED1-j.js → accountHolderUtils-Dt7JmWab.js} +1 -1
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +43 -34
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +10 -10
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-h8n1IbJ9.js → bafinUtils-B8teCz7U.js} +160 -1053
- package/dist/businessRegistrationNumberPatterns-DwjKFSlu.js +981 -0
- package/dist/{constants-B9iXz9xK.js → constants-CSVEfRuk.js} +4 -4
- package/dist/{country-DkgapJ4w.js → country-zZC2TAQB.js} +1 -1
- package/dist/{decisionMaker-M0Tm92JR.js → decisionMakerRoles-APTR-Ah_.js} +41 -2
- package/dist/{error-CHFF8jLc.js → error-DhPmKdY4.js} +3 -3
- package/dist/{form-rules-CKwx5XtT.js → form-rules-yTwukXew.js} +6 -6
- package/dist/{formatValidationError-DZ1CxHdw.js → formatValidationError-ChBRk626.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-6m6DEmW8.js → getDefaultRegistrationNumberType-DPidx6iz.js} +59 -59
- package/dist/{getTrustedDecisionMakers-qs2frwk2.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
- package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
- package/dist/mapAddressLocalizationToJpAddressSchema-DEOqm_oJ.js +26 -0
- package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js → mapJpAddressSchemaToAddressLocalizations-BcW9wSjn.js} +3 -4
- package/dist/{mapLegalEntityToIndividualSchema-ChE9qTUB.js → mapLegalEntityToIndividualSchema-Ksy4YlcJ.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js → mapTransferInstrumentToPayoutAccount-BoZaPCSn.js} +2 -2
- package/dist/{processValidationErrors-CRWq2tu-.js → processValidationErrors-BJNiG_SS.js} +3 -3
- package/dist/{resolveEnvironment-D2iMH7UD.js → resolveEnvironment-6rOnOa58.js} +11 -11
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -3
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +3 -3
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +9 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +7 -7
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +2 -2
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +2 -2
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +4 -4
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +2 -2
- package/dist/types/components/Business/utils/utils.d.ts +3 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +96 -102
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +5 -6
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -2
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +27 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -4
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -4
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -4
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +4 -4
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +2 -3
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -7
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +13 -0
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +3 -3
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapCustomerSupportSchemaToCustomerSupportType.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapDtoToCustomerSupportSchema.d.ts +3 -0
- package/dist/types/core/models/api/individual.d.ts +5 -6
- package/dist/types/core/models/api/legal-arrangement.d.ts +6 -6
- package/dist/types/core/models/api/legal-entity.d.ts +2 -2
- package/dist/types/core/user-events.d.ts +2 -2
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +3 -3
- package/dist/types/hooks/useDataConflicts.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +7 -0
- package/dist/types/utils/addressToString.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +18 -7
- package/dist/types/utils/customerSupportUtils.d.ts +2 -2
- package/dist/types/utils/legalArrangementUtils.d.ts +1 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/{types-Bdfu7HN6.js → types-wRlt8bxb.js} +1 -1
- package/dist/{useBusinessDetailsData-DZQuIMNw.js → useBusinessDetailsData-D5WMRXf8.js} +88 -111
- package/dist/{useCanSeeIntroduction-BGYdkMIE.js → useCanSeeIntroduction-47a29qGT.js} +3 -3
- package/dist/{useForm-BJq32Ve1.js → useForm-C8X8Nh_A.js} +3 -3
- package/dist/{useHideTaskStepper-CcCmW80A.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
- package/dist/{useId-BMocIuPK.js → useId-CcjYxxnm.js} +1 -1
- package/dist/{useNavigate-D4ypqPBN.js → useNavigate-ZoEeUtrK.js} +33 -33
- package/dist/{useSalesChannels-BCzs8Xya.js → useSalesChannels-K1tuVs25.js} +3 -3
- package/dist/{useTaskLandedEvent-Cf1fN_gV.js → useTaskLandedEvent-DcX3urqZ.js} +2 -2
- package/dist/{useTrustMembers-DqpnYNNj.js → useTrustMembers-DoRWdimd.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-w3dG_nyc.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
- package/dist/{StructuredList-CqZM_5X9.js → utils-CXLiV88a.js} +94 -5
- package/dist/{utils-BMhvbUV1.js → utils-Dm0eoyQ6.js} +8 -17
- package/dist/{validate-BqIbVY0E.js → validate-09Jy2SgA.js} +8 -8
- package/dist/{validate-DiEa5w30.js → validate-BcUs5K_M.js} +46 -6
- package/dist/{validate-RLWN-I5L.js → validate-DnnWVNv6.js} +2 -2
- package/dist/{validate-Dfw99Sal.js → validate-tS-cwVuY.js} +3 -3
- package/dist/{validateExtractionResult-DueyX5oY.js → validateExtractionResult-dH4TewHf.js} +2 -2
- package/dist/{validationError-BhICjGiF.js → validationError-D4d622D3.js} +2 -2
- package/package.json +1 -1
- package/dist/Individual.rules-PKwY3D-0.js +0 -293
- package/dist/decisionMakerRoles-DbKnutwk.js +0 -46
- package/dist/isEmpty-DD8Insy0.js +0 -14
- package/dist/mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js +0 -66
- package/dist/types/core/models/api/address.d.ts +0 -14
- package/dist/types/core/models/api/branchAllocation.d.ts +0 -5
- package/dist/types/core/models/api/company-types-value.d.ts +0 -15
- package/dist/types/core/models/api/customerSupport.d.ts +0 -12
- package/dist/types/core/models/api/financialReport.d.ts +0 -15
- package/dist/types/core/models/api/organization.d.ts +0 -60
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useUpdateLegalEntity-CvACAgDP.js +0 -29
- package/dist/utils-Br7Ah3uy.js +0 -46
- package/dist/utils-DdHbAadK.js +0 -80
|
@@ -1,32 +1,37 @@
|
|
|
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] = "779b8f55-0b82-4ff0-b3f2-e6962d1c0ea5", e._sentryDebugIdIdentifier = "sentry-dbid-779b8f55-0b82-4ff0-b3f2-e6962d1c0ea5");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default, E as useAllowedCountries, j as useToggleContext, k as Header, pt as useAccountHolder, v as isPartOfUnincorporatedPartnership, x as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default, E as useAllowedCountries, j as useToggleContext, k as Header, pt as useAccountHolder, v as isPartOfUnincorporatedPartnership, x as Alert } from "./resolveEnvironment-6rOnOa58.js";
|
|
7
|
+
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-DfRmINzF.js";
|
|
9
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
11
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
11
12
|
import { s as keysOf } from "./genUtils-Ce61IJs8.js";
|
|
12
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
13
14
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
15
|
+
import { y as reverseMapping } from "./processCapabilities-BfskhjUw.js";
|
|
14
16
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
15
|
-
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
|
|
16
|
-
import { t as InputText } from "./InputText-
|
|
17
|
-
import { _ as getPropsFromConfigurations, m as resolveFieldMetadata, t as createFormRules } from "./form-rules-
|
|
18
|
-
import { t as ListItem } from "./ListItem-
|
|
19
|
-
import { t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
|
|
17
|
+
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
|
|
18
|
+
import { t as InputText } from "./InputText-Bniyaz3w.js";
|
|
19
|
+
import { _ as getPropsFromConfigurations, m as resolveFieldMetadata, t as createFormRules } from "./form-rules-yTwukXew.js";
|
|
20
|
+
import { t as ListItem } from "./ListItem-C35r8558.js";
|
|
21
|
+
import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
|
|
20
22
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
21
|
-
import {
|
|
22
|
-
import { r as Field } from "./Select-
|
|
23
|
-
import {
|
|
23
|
+
import { r as useToastContext } from "./useId-CcjYxxnm.js";
|
|
24
|
+
import { r as Field } from "./Select-CAYO1vj-.js";
|
|
25
|
+
import { r as formatObject } from "./utils-CXLiV88a.js";
|
|
26
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, m as useCreateLegalEntity, n as StateField, p as useUpdateLegalEntity, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-DB4_kWP5.js";
|
|
27
|
+
import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, l as COUNTRY_FIELD, m as FormFlow, p as getRequiredForms, u as CountryField, y as useFormComposer } from "./RadioGroup-BcRkK03K.js";
|
|
24
28
|
import { t as List } from "./List-ywoRPg-q.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { c as
|
|
28
|
-
import { l as registrationNumberDefaultFieldConfig, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
29
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
29
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BFm2LIw2.js";
|
|
30
|
+
import { c as CountryOfGoverningLawField, i as isRegistrationExemptionAllowed, l as useLegalCompanyNameField, o as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, s as COUNTRY_OF_GOVERNING_LAW_FIELD, t as CountryOfGoverningLawFieldValidation } from "./validate-09Jy2SgA.js";
|
|
31
|
+
import { A as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, B as taxInformationDefaultFieldConfig, C as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, E as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, M as mapJapaneseLegalNamesToLocalization, N as mapLocalizationToJapaneseLegalNames, O as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, S as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, T as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, U as isJapanLocalizationEnabled, V as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, c as TileGroup, j as isUsingCompanySearch, k as REGISTRATION_NUMBER_EXEMPTION_RULES, l as TAX_INFORMATION_FIELD, u as TaxInformationField, w as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, x as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, y as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, z as getTaxInformationPlaceholderText } from "./bafinUtils-B8teCz7U.js";
|
|
32
|
+
import { l as registrationNumberDefaultFieldConfig, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-DPidx6iz.js";
|
|
33
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-BGZrKxCP.js";
|
|
34
|
+
import { r as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-xvCxpgzJ.js";
|
|
30
35
|
import { useCallback, useEffect, useMemo, useState } from "preact/compat";
|
|
31
36
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
32
37
|
import { signal } from "@preact/signals";
|
|
@@ -208,6 +213,11 @@ var PrimaryPartner = ({ id }) => {
|
|
|
208
213
|
//#endregion
|
|
209
214
|
//#region src/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.tsx
|
|
210
215
|
var PAPERWORK_QUESTIONNAIRE_FIELD = ["filedPaperwork"];
|
|
216
|
+
/**
|
|
217
|
+
* The paperwork answer dictates whether the entity is:
|
|
218
|
+
* A) a pure individual or a sole prop, or
|
|
219
|
+
* B) a registered business or an unincorporated partnership.
|
|
220
|
+
*/
|
|
211
221
|
function PaperworkQuestionnaire({ data, valid, handleChangeFor, errors, label }) {
|
|
212
222
|
const { t } = useTranslation(["globalEntry", "common"]);
|
|
213
223
|
return /* @__PURE__ */ jsx(Field, {
|
|
@@ -276,36 +286,186 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
|
|
|
276
286
|
})] });
|
|
277
287
|
};
|
|
278
288
|
//#endregion
|
|
289
|
+
//#region src/components/GlobalEntry/globalEntryKeyMapping.ts
|
|
290
|
+
/**
|
|
291
|
+
* Schema-keyed mapping, for reading a legal entity into the form schema.
|
|
292
|
+
*/
|
|
293
|
+
var globalEntryKeyMappingForOrgs = {
|
|
294
|
+
"entityInformation.country": "organization.registeredAddress.country",
|
|
295
|
+
"entityInformation.stateOrProvince": "organization.registeredAddress.stateOrProvince",
|
|
296
|
+
"registrationInformation.legalCompanyName": "organization.legalName",
|
|
297
|
+
"registrationInformation.registrationNumber": "organization.registrationNumber",
|
|
298
|
+
"registrationInformation.exemptedFromRegistrationNumber": "organization.registrationNumberAbsent",
|
|
299
|
+
"registrationInformation.taxInformation": "organization.taxInformation",
|
|
300
|
+
"registrationInformation.countryOfGoverningLaw": "organization.countryOfGoverningLaw"
|
|
301
|
+
};
|
|
302
|
+
var globalEntryKeyMappingForIndividuals = {
|
|
303
|
+
"entityInformation.country": "individual.residentialAddress.country",
|
|
304
|
+
"entityInformation.stateOrProvince": "individual.residentialAddress.stateOrProvince"
|
|
305
|
+
};
|
|
306
|
+
var globalEntryKeyMappingForSoleProps = {
|
|
307
|
+
"entityInformation.country": "soleProprietorship.registeredAddress.country",
|
|
308
|
+
"entityInformation.stateOrProvince": "soleProprietorship.registeredAddress.stateOrProvince",
|
|
309
|
+
"registrationInformation.legalCompanyName": "soleProprietorship.name",
|
|
310
|
+
"registrationInformation.registrationNumber": "soleProprietorship.registrationNumber",
|
|
311
|
+
"registrationInformation.taxInformation": "soleProprietorship.taxInformation",
|
|
312
|
+
"registrationInformation.exemptedFromTax": "soleProprietorship.taxAbsent",
|
|
313
|
+
"registrationInformation.countryOfGoverningLaw": "soleProprietorship.countryOfGoverningLaw"
|
|
314
|
+
};
|
|
315
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
316
|
+
var globalEntryApiKeyMappingForOrgs = reverseMapping(globalEntryKeyMappingForOrgs);
|
|
317
|
+
/** Api-keyed mapping, for building the sole proprietorship request from the form schema */
|
|
318
|
+
var globalEntryApiKeyMappingForSoleProps = reverseMapping(globalEntryKeyMappingForSoleProps);
|
|
319
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
320
|
+
var globalEntryApiKeyMappingForIndividuals = reverseMapping(globalEntryKeyMappingForIndividuals);
|
|
321
|
+
//#endregion
|
|
279
322
|
//#region src/components/GlobalEntry/utils.ts
|
|
280
323
|
var getGlobalEntryCompanyType = (legalEntity, data) => {
|
|
281
324
|
if (data.entityInformation.entitySetup === "partOfABusiness") {
|
|
282
325
|
if (legalEntity?.organization?.type) return legalEntity?.organization?.type || void 0;
|
|
283
326
|
}
|
|
284
|
-
if (data.entityInformation.entitySetup === "justMe")
|
|
327
|
+
if (data.entityInformation.entitySetup === "justMe") {
|
|
328
|
+
const hasSoleProprietorshipAssociation = legalEntity && hasSolePropInLegalEntity(legalEntity);
|
|
329
|
+
return data.registrationInformation?.filedPaperwork === "yes" || hasSoleProprietorshipAssociation ? "soleProprietorship" : LegalEntityTypes.INDIVIDUAL;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
var determineEntitySetup = (legalEntity) => {
|
|
333
|
+
if (isPartOfUnincorporatedPartnership(legalEntity) && legalEntity.type === "individual") return "partOfABusiness";
|
|
334
|
+
if (legalEntity.type === "individual") return "justMe";
|
|
335
|
+
return "partOfABusiness";
|
|
285
336
|
};
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
337
|
+
/**
|
|
338
|
+
* @param legalEntity the root entity
|
|
339
|
+
* @param associatedSoleProp the proprietorship associated to the root, when there is one. It holds
|
|
340
|
+
* the registration details the root does not, so editing an existing proprietorship prefills.
|
|
341
|
+
*/
|
|
342
|
+
var mapLegalEntityToGlobalEntrySchema = (legalEntity, associatedSoleProp) => {
|
|
343
|
+
const soleProprietorship = associatedSoleProp?.soleProprietorship ?? (legalEntity.type === LegalEntityTypes.SOLE_PROPRIETORSHIP ? legalEntity.soleProprietorship : void 0);
|
|
344
|
+
const isSoleProprietorship = !!soleProprietorship;
|
|
345
|
+
const taxInformation = isSoleProprietorship ? soleProprietorship.taxInformation : legalEntity.organization?.taxInformation;
|
|
346
|
+
const registrationNumber = isSoleProprietorship ? soleProprietorship.registrationNumber : legalEntity.organization?.registrationNumber;
|
|
290
347
|
const currentCountryTaxInformation = taxInformation?.find((taxInformationItem) => taxInformationItem.country === getLegalEntityCountry(legalEntity));
|
|
291
348
|
const isUen = currentCountryTaxInformation?.type === "UEN";
|
|
292
349
|
return {
|
|
293
350
|
entityInformation: {
|
|
294
|
-
entitySetup: legalEntity
|
|
351
|
+
entitySetup: determineEntitySetup(legalEntity),
|
|
295
352
|
country: getLegalEntityCountry(legalEntity)
|
|
296
353
|
},
|
|
297
354
|
registrationInformation: {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
355
|
+
...mapLocalizationToJapaneseLegalNames(legalEntity.organization?.localization),
|
|
356
|
+
filedPaperwork: taxInformation ? "yes" : isPartOfUnincorporatedPartnership(legalEntity) ? "no" : void 0,
|
|
357
|
+
unincorporatedOrganizationType: isPartOfUnincorporatedPartnership(legalEntity) ? "unincorporatedPartnership" : void 0,
|
|
358
|
+
legalCompanyName: isSoleProprietorship ? soleProprietorship.name : legalEntity.organization?.legalName,
|
|
301
359
|
registrationNumber: isUen ? currentCountryTaxInformation?.number : registrationNumber,
|
|
302
|
-
exemptedFromRegistrationNumber: isSoleProprietorship ?
|
|
360
|
+
exemptedFromRegistrationNumber: isSoleProprietorship ? soleProprietorship.taxAbsent : legalEntity.organization?.registrationNumberAbsent,
|
|
361
|
+
countryOfGoverningLaw: isSoleProprietorship ? soleProprietorship.countryOfGoverningLaw : legalEntity.organization?.countryOfGoverningLaw,
|
|
303
362
|
taxInformation,
|
|
304
363
|
isUen
|
|
305
364
|
},
|
|
306
365
|
primaryPartner: { primaryPartnerType: isPartOfUnincorporatedPartnership(legalEntity) ? legalEntity.type === "individual" ? "individual" : "organization" : void 0 }
|
|
307
366
|
};
|
|
308
367
|
};
|
|
368
|
+
var isPaperworkQuestionAsked = (data) => {
|
|
369
|
+
const { country, entitySetup } = data.entityInformation ?? {};
|
|
370
|
+
if (!country) return false;
|
|
371
|
+
if (entitySetup === "partOfABusiness") return ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES.includes(country);
|
|
372
|
+
return entitySetup === "justMe" && SOLE_PROP_COUNTRIES.includes(country);
|
|
373
|
+
};
|
|
374
|
+
var getFiledPaperwork = (data) => {
|
|
375
|
+
if (isPaperworkQuestionAsked(data)) return data.registrationInformation?.filedPaperwork ?? null;
|
|
376
|
+
return data.entityInformation?.entitySetup === "partOfABusiness" ? "yes" : "no";
|
|
377
|
+
};
|
|
378
|
+
var isSoleProprietorship = (data) => data.entityInformation?.entitySetup === "justMe" && getFiledPaperwork(data) === "yes";
|
|
379
|
+
var isUnincorporatedPartnership = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && getFiledPaperwork(data) === "no" && data.registrationInformation?.unincorporatedOrganizationType === "unincorporatedPartnership";
|
|
380
|
+
/**
|
|
381
|
+
* If switching to a non-SoleProp or a non-UnincorporatedPartnership, the associations
|
|
382
|
+
* should be dropped.
|
|
383
|
+
*/
|
|
384
|
+
var shouldClearEntityAssociations = (data, legalEntity) => getOwnEntityAssociations(legalEntity).length > 0 && !isSoleProprietorship(data) && !isUnincorporatedPartnership(data);
|
|
385
|
+
/**
|
|
386
|
+
* `justMe` is always a natural person. Being part of a business only makes the entity an
|
|
387
|
+
* `organization` when the primary partner is not an individual, because an individual partner in an
|
|
388
|
+
* unincorporated partnership stays an individual legal entity.
|
|
389
|
+
*/
|
|
390
|
+
var determineLegalEntityType = (data) => data.entityInformation?.entitySetup === "partOfABusiness" && data.primaryPartner?.primaryPartnerType !== "individual" ? LegalEntityTypes.ORGANIZATION : LegalEntityTypes.INDIVIDUAL;
|
|
391
|
+
var determineEntityAssociations = (data, legalEntity, newSoleProp) => {
|
|
392
|
+
/** Sole props are the only association we create and associate in Global Entry */
|
|
393
|
+
if (newSoleProp) return [{
|
|
394
|
+
type: LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
395
|
+
legalEntityId: newSoleProp.id
|
|
396
|
+
}];
|
|
397
|
+
return shouldClearEntityAssociations(data, legalEntity) ? [] : void 0;
|
|
398
|
+
};
|
|
399
|
+
var mapGlobalEntrySchemaToLegalEntity = (data, legalEntity, newSoleProp) => {
|
|
400
|
+
const isOrg = determineLegalEntityType(data) === LegalEntityTypes.ORGANIZATION;
|
|
401
|
+
const mapping = isOrg ? globalEntryApiKeyMappingForOrgs : globalEntryApiKeyMappingForIndividuals;
|
|
402
|
+
const entityAssociations = determineEntityAssociations(data, legalEntity, newSoleProp);
|
|
403
|
+
const entity = {
|
|
404
|
+
...formatObject(data, mapping),
|
|
405
|
+
id: legalEntity.id,
|
|
406
|
+
type: determineLegalEntityType(data),
|
|
407
|
+
...entityAssociations && { entityAssociations }
|
|
408
|
+
};
|
|
409
|
+
/** Only an organization holds these, the api has nowhere to put them on the other entity types */
|
|
410
|
+
const localization = isOrg ? mapJapaneseLegalNamesToLocalization(data.registrationInformation ?? {}) : void 0;
|
|
411
|
+
if (entity.organization && localization?.length) entity.organization.localization = localization;
|
|
412
|
+
return entity;
|
|
413
|
+
};
|
|
414
|
+
var mapGlobalEntrySchemaToSoleProp = (data) => {
|
|
415
|
+
const { soleProprietorship } = formatObject(data, globalEntryApiKeyMappingForSoleProps);
|
|
416
|
+
return {
|
|
417
|
+
type: LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
418
|
+
soleProprietorship: {
|
|
419
|
+
...soleProprietorship,
|
|
420
|
+
/**
|
|
421
|
+
* A proprietorship always has a governing law, but the field is only put to the user in the
|
|
422
|
+
* countries that can differ from where they registered, so the rest fall back to that.
|
|
423
|
+
*/
|
|
424
|
+
countryOfGoverningLaw: data.registrationInformation?.countryOfGoverningLaw ?? data.entityInformation?.country
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* The account holder is derived from the form data, not sent to the API and is kept client-side.
|
|
430
|
+
*/
|
|
431
|
+
var determineAccountHolder = (data) => {
|
|
432
|
+
const entitySetup = data.entityInformation?.entitySetup;
|
|
433
|
+
/** Derived, because the question is not put to the user in every country */
|
|
434
|
+
const filedPaperwork = getFiledPaperwork(data);
|
|
435
|
+
if (entitySetup === "justMe") return filedPaperwork === "yes" ? "mySoleProprietorName" : "myName";
|
|
436
|
+
if (entitySetup === "partOfABusiness") {
|
|
437
|
+
if (isUnincorporatedPartnership(data)) return "anUnincorporatedPartnership";
|
|
438
|
+
if (filedPaperwork === "yes") return "theCompanyIWorkFor";
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
var submitGlobalEntry = async ({ legalEntity, associatedSoleProp, data, updateLegalEntity, createLegalEntity }) => {
|
|
442
|
+
let newSoleProp;
|
|
443
|
+
if (isSoleProprietorship(data)) {
|
|
444
|
+
const mappedSolePropData = mapGlobalEntrySchemaToSoleProp(data);
|
|
445
|
+
if (associatedSoleProp?.id) {
|
|
446
|
+
const { type: _type, ...soleProprietorshipDetails } = mappedSolePropData;
|
|
447
|
+
await updateLegalEntity({
|
|
448
|
+
...soleProprietorshipDetails,
|
|
449
|
+
id: associatedSoleProp.id
|
|
450
|
+
});
|
|
451
|
+
} else
|
|
452
|
+
/**
|
|
453
|
+
* Created first so the entity can be associated to it below, which keeps this to a single
|
|
454
|
+
* write against the entity itself.
|
|
455
|
+
*/
|
|
456
|
+
newSoleProp = await createLegalEntity(mappedSolePropData);
|
|
457
|
+
}
|
|
458
|
+
const { type: targetType, ...legalEntityData } = mapGlobalEntrySchemaToLegalEntity(data, legalEntity, newSoleProp ? newSoleProp : void 0);
|
|
459
|
+
/**
|
|
460
|
+
* LEM rejects a change of type in the same request as the data
|
|
461
|
+
*/
|
|
462
|
+
if (targetType !== legalEntity.type) await updateLegalEntity({
|
|
463
|
+
id: legalEntity.id,
|
|
464
|
+
type: targetType
|
|
465
|
+
});
|
|
466
|
+
await updateLegalEntity(legalEntityData);
|
|
467
|
+
return determineAccountHolder(data);
|
|
468
|
+
};
|
|
309
469
|
//#endregion
|
|
310
470
|
//#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
|
|
311
471
|
var REGISTRATION_INFORMATION_FIELDS = [
|
|
@@ -350,7 +510,7 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
|
|
|
350
510
|
title: commonT(($) => $["tellUsAboutYourBusiness"]),
|
|
351
511
|
description: globalEntryT(($) => $["toHelpYouGetSetUp"])
|
|
352
512
|
}),
|
|
353
|
-
/* @__PURE__ */ jsx(PaperworkQuestionnaire, {
|
|
513
|
+
showField(PAPERWORK_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(PaperworkQuestionnaire, {
|
|
354
514
|
data: { filedPaperwork: data.filedPaperwork },
|
|
355
515
|
valid: { filedPaperwork: valid.filedPaperwork },
|
|
356
516
|
errors: { filedPaperwork: formUtils.getErrorMessage("filedPaperwork", errors, fieldProblems) },
|
|
@@ -479,13 +639,14 @@ var globalEntryFieldRuleConfigurations = {
|
|
|
479
639
|
exemptedFromTax: { rule: "countryHasTaxExemptions" }
|
|
480
640
|
};
|
|
481
641
|
var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => false, country, taskType, rootLegalEntity }) => {
|
|
482
|
-
const filedPaperwork = data
|
|
483
|
-
const
|
|
642
|
+
const filedPaperwork = getFiledPaperwork(data);
|
|
643
|
+
const hasFiledPaperwork = filedPaperwork === "yes";
|
|
644
|
+
const hasAnsweredPaperworkQuestion = !!filedPaperwork;
|
|
484
645
|
const isPartOfABusiness = data.entityInformation?.entitySetup === "partOfABusiness";
|
|
485
|
-
const isSoleProp = data
|
|
646
|
+
const isSoleProp = isSoleProprietorship(data);
|
|
486
647
|
const isExemptFromRegistrationNumber = Boolean(data.registrationInformation?.exemptedFromRegistrationNumber);
|
|
487
648
|
const existingRegistrationNumber = rootLegalEntity?.type === "soleProprietorship" ? rootLegalEntity.soleProprietorship?.registrationNumber : rootLegalEntity?.organization?.registrationNumber;
|
|
488
|
-
const isUnincorporatedOrganization = isPartOfABusiness &&
|
|
649
|
+
const isUnincorporatedOrganization = isPartOfABusiness && filedPaperwork === "no";
|
|
489
650
|
return createFormRules({
|
|
490
651
|
entitySetupRequired: () => "REQUIRED",
|
|
491
652
|
countryRequired: () => "REQUIRED",
|
|
@@ -495,17 +656,17 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
495
656
|
countryOfGoverningLawRequired: () => {
|
|
496
657
|
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && (isPartOfABusiness || isSoleProp) && hasAnsweredPaperworkQuestion) return "REQUIRED";
|
|
497
658
|
},
|
|
498
|
-
filedPaperworkRequired: () => "REQUIRED",
|
|
659
|
+
filedPaperworkRequired: () => isPaperworkQuestionAsked(data) ? "REQUIRED" : void 0,
|
|
499
660
|
unincorporatedOrganizationTypeRequired: () => isUnincorporatedOrganization ? "REQUIRED" : void 0,
|
|
500
|
-
legalCompanyNameRequired: () =>
|
|
661
|
+
legalCompanyNameRequired: () => hasFiledPaperwork ? "REQUIRED" : void 0,
|
|
501
662
|
jaHaniLegalCompanyName: () => {
|
|
502
|
-
if (
|
|
663
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
503
664
|
},
|
|
504
665
|
jaKanaLegalCompanyName: () => {
|
|
505
|
-
if (
|
|
666
|
+
if (hasFiledPaperwork && isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
506
667
|
},
|
|
507
668
|
countryRequiresRegistrationNumber: () => {
|
|
508
|
-
if (!
|
|
669
|
+
if (!hasFiledPaperwork) return;
|
|
509
670
|
if (isSoleProp) {
|
|
510
671
|
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
511
672
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) return "OPTIONAL";
|
|
@@ -521,7 +682,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
521
682
|
}
|
|
522
683
|
},
|
|
523
684
|
registrationNumberType: () => {
|
|
524
|
-
if (!
|
|
685
|
+
if (!hasFiledPaperwork) return;
|
|
525
686
|
if (isSoleProp) return COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country) ? void 0 : "OPTIONAL";
|
|
526
687
|
if (isPartOfABusiness) {
|
|
527
688
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
@@ -530,7 +691,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
530
691
|
}
|
|
531
692
|
},
|
|
532
693
|
companyRegistrationNumberExemptionAllowed: () => {
|
|
533
|
-
if (!
|
|
694
|
+
if (!hasFiledPaperwork) return;
|
|
534
695
|
if (isSoleProp) {
|
|
535
696
|
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
|
|
536
697
|
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
@@ -561,7 +722,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
561
722
|
taxInformationRequired: () => {
|
|
562
723
|
const requiredUnlessExempt = Boolean(data.registrationInformation?.exemptedFromTax) ? "OPTIONAL" : "REQUIRED";
|
|
563
724
|
const usesTaxIdInsteadOfVat = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country);
|
|
564
|
-
if (!
|
|
725
|
+
if (!hasFiledPaperwork) return;
|
|
565
726
|
if (isPartOfABusiness) {
|
|
566
727
|
if (rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount")) {
|
|
567
728
|
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country)) return requiredUnlessExempt;
|
|
@@ -575,7 +736,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
|
|
|
575
736
|
}
|
|
576
737
|
},
|
|
577
738
|
countryHasTaxExemptions: () => {
|
|
578
|
-
if (!
|
|
739
|
+
if (!hasFiledPaperwork) return;
|
|
579
740
|
const isExemptFromTax = Boolean(data.registrationInformation?.exemptedFromTax);
|
|
580
741
|
if (isSoleProp) {
|
|
581
742
|
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
@@ -627,25 +788,27 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
|
|
|
627
788
|
//#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
|
|
628
789
|
var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
|
|
629
790
|
switch (activeForm.formId) {
|
|
630
|
-
case
|
|
791
|
+
case globalEntryForms.entityInformation.formId: return /* @__PURE__ */ jsx(EntityInformation, {
|
|
631
792
|
id: activeForm.formId,
|
|
632
793
|
country
|
|
633
794
|
});
|
|
634
|
-
case
|
|
795
|
+
case globalEntryForms.registrationInformation.formId: return /* @__PURE__ */ jsx(RegistrationInformation, {
|
|
635
796
|
id: activeForm.formId,
|
|
636
797
|
legalEntity,
|
|
637
798
|
shouldValidate,
|
|
638
799
|
country
|
|
639
800
|
});
|
|
640
|
-
case
|
|
801
|
+
case globalEntryForms.primaryPartner.formId: return /* @__PURE__ */ jsx(PrimaryPartner, { id: activeForm.formId });
|
|
641
802
|
default: return null;
|
|
642
803
|
}
|
|
643
804
|
};
|
|
644
805
|
//#endregion
|
|
645
806
|
//#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
|
|
646
|
-
var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
647
|
-
const { i18n } = useTranslation("globalEntry");
|
|
807
|
+
var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
|
|
808
|
+
const { i18n, t } = useTranslation(["common", "globalEntry"]);
|
|
648
809
|
const { isFeatureEnabled } = useToggleContext();
|
|
810
|
+
const logger = createLogger();
|
|
811
|
+
const { showToast } = useToastContext();
|
|
649
812
|
const { accountHolder } = useAccountHolder();
|
|
650
813
|
const [derivedProps, setDerivedProps] = useState();
|
|
651
814
|
addResourceBundles(i18n, [{
|
|
@@ -718,8 +881,10 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
718
881
|
legalEntity: rootLegalEntity,
|
|
719
882
|
isFeatureEnabled
|
|
720
883
|
}), [isFeatureEnabled, rootLegalEntity]);
|
|
884
|
+
/** Holds the registration details when the user already trades as a sole proprietor */
|
|
885
|
+
const { data: associatedSoleProp } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.SOLE_PROPRIETORSHIP);
|
|
721
886
|
const multiForm = useMultiForm({
|
|
722
|
-
defaultData: useMemo(() => mapLegalEntityToGlobalEntrySchema(rootLegalEntity), [rootLegalEntity]),
|
|
887
|
+
defaultData: useMemo(() => mapLegalEntityToGlobalEntrySchema(rootLegalEntity, associatedSoleProp), [rootLegalEntity, associatedSoleProp]),
|
|
723
888
|
requiredFields: derivedProps?.requiredFields,
|
|
724
889
|
optionalFields: derivedProps?.optionalFields,
|
|
725
890
|
allFields: derivedProps?.allFields,
|
|
@@ -753,12 +918,32 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
753
918
|
}));
|
|
754
919
|
}, [rootLegalEntity?.type, rules]);
|
|
755
920
|
const forms = useMemo(() => {
|
|
756
|
-
return addValidityToForms(getRequiredForms(globalEntryForms, derivedProps?.requiredFields, derivedProps?.optionalFields), formValidity, void 0);
|
|
921
|
+
return addValidityToForms(getRequiredForms(globalEntryForms, derivedProps?.requiredFields, derivedProps?.optionalFields, true), formValidity, void 0);
|
|
757
922
|
}, [derivedProps, formValidity]);
|
|
758
|
-
const {
|
|
759
|
-
|
|
923
|
+
const { mutateAsync: updateLegalEntity, isPending: isUpdatingLegalEntity } = useUpdateLegalEntity();
|
|
924
|
+
const { mutateAsync: createLegalEntity, isPending: isCreatingLegalEntity } = useCreateLegalEntity();
|
|
925
|
+
const isSubmitting = isUpdatingLegalEntity || isCreatingLegalEntity;
|
|
926
|
+
const handleSubmit = async () => {
|
|
927
|
+
try {
|
|
928
|
+
const newAccountHolder = await submitGlobalEntry({
|
|
929
|
+
legalEntity: rootLegalEntity,
|
|
930
|
+
associatedSoleProp,
|
|
931
|
+
data,
|
|
932
|
+
updateLegalEntity,
|
|
933
|
+
createLegalEntity
|
|
934
|
+
});
|
|
935
|
+
if (newAccountHolder) onComplete(newAccountHolder);
|
|
760
936
|
showGlobalEntryModal.value = false;
|
|
761
|
-
}
|
|
937
|
+
} catch (err) {
|
|
938
|
+
logger.error(err);
|
|
939
|
+
showToast({
|
|
940
|
+
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
941
|
+
variant: "error"
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
const { activeForm, handleNextClick, handleBackClick, steps, gotoFormByFormId, gotoFormByFormIndex, shouldValidate } = useFormComposer({
|
|
946
|
+
onSubmit: handleSubmit,
|
|
762
947
|
forms,
|
|
763
948
|
triggerValidation
|
|
764
949
|
});
|
|
@@ -773,9 +958,10 @@ var GlobalEntryModal = ({ rootLegalEntity }) => {
|
|
|
773
958
|
forms,
|
|
774
959
|
gotoFormByFormIndex,
|
|
775
960
|
gotoFormByFormId,
|
|
776
|
-
loadingStatus: "success",
|
|
961
|
+
loadingStatus: isSubmitting ? "loading" : "success",
|
|
777
962
|
currentStep: steps.current,
|
|
778
963
|
totalSteps: steps.total,
|
|
964
|
+
isGlobalEntry: true,
|
|
779
965
|
children: /* @__PURE__ */ jsx(GlobalEntry, {
|
|
780
966
|
activeForm,
|
|
781
967
|
shouldValidate,
|
|
@@ -1,22 +1,22 @@
|
|
|
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] = "aef1f3cb-54dc-4f85-9ce7-8698a638b0b9", e._sentryDebugIdIdentifier = "sentry-dbid-aef1f3cb-54dc-4f85-9ce7-8698a638b0b9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-6rOnOa58.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Button } from "./Button-DfRmINzF.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
10
|
-
import { v as LandingLayout } from "./form-rules-
|
|
11
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
10
|
+
import { v as LandingLayout } from "./form-rules-yTwukXew.js";
|
|
11
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-DwhX1CJz.js";
|
|
12
12
|
import { t as Image } from "./Image-D82terx4.js";
|
|
13
|
-
import { t as Link } from "./Link-
|
|
13
|
+
import { t as Link } from "./Link-c2jAgGgc.js";
|
|
14
14
|
import { lazy } from "preact/compat";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
16
16
|
import { Show } from "@preact/signals/utils";
|
|
17
17
|
//#region src/components/GlobalEntry/tasks/GlobalEntryPage.tsx
|
|
18
18
|
var globalEntryIllustration = lazy(() => import("./global-entry-illustration-By_EjQFM.js"));
|
|
19
|
-
var GlobalEntryPage = () => {
|
|
19
|
+
var GlobalEntryPage = ({ onComplete }) => {
|
|
20
20
|
const { t, i18n } = useTranslation(["common", "globalEntry"]);
|
|
21
21
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
22
22
|
addResourceBundles(i18n, [{
|
|
@@ -68,7 +68,10 @@ var GlobalEntryPage = () => {
|
|
|
68
68
|
})
|
|
69
69
|
}), /* @__PURE__ */ jsx(Show, {
|
|
70
70
|
when: showGlobalEntryModal,
|
|
71
|
-
children: /* @__PURE__ */ jsx(GlobalEntryModal, {
|
|
71
|
+
children: /* @__PURE__ */ jsx(GlobalEntryModal, {
|
|
72
|
+
rootLegalEntity: rootLe,
|
|
73
|
+
onComplete
|
|
74
|
+
})
|
|
72
75
|
})] });
|
|
73
76
|
};
|
|
74
77
|
//#endregion
|
|
@@ -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] = "89a7bed3-c200-4ad0-95d5-fbd99f7b1e91", e._sentryDebugIdIdentifier = "sentry-dbid-89a7bed3-c200-4ad0-95d5-fbd99f7b1e91");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
6
6
|
import { Suspense, lazy } from "preact/compat";
|
|
@@ -1,13 +1,13 @@
|
|
|
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] = "39966688-715a-4764-8faf-9db17cfdd7b4", e._sentryDebugIdIdentifier = "sentry-dbid-39966688-715a-4764-8faf-9db17cfdd7b4");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { a as customInputs, c as numericInputs, i as alphanumericInputs, l as spacer, m as resolveFieldMetadata, n as uppercase, o as makeMask, r as alphaInputs, s as nonInputs, u as MaskedInput } from "./form-rules-
|
|
8
|
-
import { f as translateTranslatable, r as Field } from "./Select-
|
|
9
|
-
import { A as mergeFieldMetadataIntoProps, c as validatePatternOnBlur, k as createFormUtils } from "./RadioGroup-
|
|
10
|
-
import { t as Checkbox } from "./Checkbox-
|
|
7
|
+
import { a as customInputs, c as numericInputs, i as alphanumericInputs, l as spacer, m as resolveFieldMetadata, n as uppercase, o as makeMask, r as alphaInputs, s as nonInputs, u as MaskedInput } from "./form-rules-yTwukXew.js";
|
|
8
|
+
import { f as translateTranslatable, r as Field } from "./Select-CAYO1vj-.js";
|
|
9
|
+
import { A as mergeFieldMetadataIntoProps, c as validatePatternOnBlur, k as createFormUtils } from "./RadioGroup-BcRkK03K.js";
|
|
10
|
+
import { t as Checkbox } from "./Checkbox-DTQ5Y6L-.js";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/utils/regex/countryIdNumberPatterns.ts
|
|
13
13
|
var CountryIdNumberPatterns = {
|
|
@@ -1,8 +1,8 @@
|
|
|
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] = "e0f81b7a-54a9-48af-b78e-34ed33c79dcc", e._sentryDebugIdIdentifier = "sentry-dbid-e0f81b7a-54a9-48af-b78e-34ed33c79dcc");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as IdentityNumber } from "./IdentityNumber-
|
|
5
|
+
import { t as IdentityNumber } from "./IdentityNumber-BJymypwh.js";
|
|
6
6
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
7
7
|
import { useCallback } from "preact/hooks";
|
|
8
8
|
import { jsx } from "preact/jsx-runtime";
|
package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-ZVSOyRqF.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
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] = "25379d54-3ba6-4e7b-a55d-85a72cf7a818", e._sentryDebugIdIdentifier = "sentry-dbid-25379d54-3ba6-4e7b-a55d-85a72cf7a818");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation, t as Trans } from "./translation-BOm4lmPx.js";
|
|
6
|
-
import { x as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { x as Alert } from "./resolveEnvironment-6rOnOa58.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
9
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-DfRmINzF.js";
|
|
10
10
|
import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
|
|
11
|
-
import { t as Modal } from "./Modal-
|
|
12
|
-
import { v as LandingLayout } from "./form-rules-
|
|
13
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
14
|
-
import { p as LoaderWrapper } from "./Select-
|
|
15
|
-
import { h as FormFlow_module_default } from "./RadioGroup-
|
|
11
|
+
import { t as Modal } from "./Modal-5uXk2vE6.js";
|
|
12
|
+
import { v as LandingLayout } from "./form-rules-yTwukXew.js";
|
|
13
|
+
import { t as EndStateLayout } from "./EndStateLayout-BK1Hh02g.js";
|
|
14
|
+
import { p as LoaderWrapper } from "./Select-CAYO1vj-.js";
|
|
15
|
+
import { h as FormFlow_module_default } from "./RadioGroup-BcRkK03K.js";
|
|
16
16
|
import { t as Image } from "./Image-D82terx4.js";
|
|
17
|
-
import { t as Link } from "./Link-
|
|
18
|
-
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-
|
|
19
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-
|
|
17
|
+
import { t as Link } from "./Link-c2jAgGgc.js";
|
|
18
|
+
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-dH4TewHf.js";
|
|
19
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-s-Ss3HdC.js";
|
|
20
20
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
21
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
21
|
+
import { t as useHideTaskStepper } from "./useHideTaskStepper-CbMcV9mk.js";
|
|
22
22
|
import { lazy } from "preact/compat";
|
|
23
23
|
import { useEffect as useEffect$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
24
24
|
import { jsx, jsxs } from "preact/jsx-runtime";
|