@adyen/kyc-components 4.5.0 → 4.6.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/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-Bo8nB0Eb.js → AcceptTermsOfServiceComponent-DTURkN9O.js} +17 -20
- package/dist/{AccountSetupRejected-DQcFbIXL.js → AccountSetupRejected-D7yqqcm_.js} +2 -2
- package/dist/{ActionBar-Bj1Km-LP.js → ActionBar-CdFYb-7S.js} +2 -2
- package/dist/{Address-C0rbmhQL.js → Address-BkeFTMl-.js} +16 -16
- package/dist/{Avatar-Cl1-jo6c.js → Avatar-BpQFX0rJ.js} +2 -2
- package/dist/{BusinessFinancingComponent-Bk0PbC9m.js → BusinessFinancingComponent-CshEgNjO.js} +5 -5
- package/dist/{BusinessFinancingDropin-BAYyFYt9.js → BusinessFinancingDropin-B2kKDCNB.js} +31 -34
- package/dist/{BusinessFinancingPage-Cc--qt48.js → BusinessFinancingPage-96zTF7BJ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-C63ujxOo.js → BusinessTypeSelectionPage-BVucjw8H.js} +9 -14
- package/dist/{Checkbox-DnP0i74G.js → Checkbox-Dwf4zXgj.js} +2 -2
- package/dist/{Confirm-Bf4Pjkty.js → Confirm-DOjzHnlC.js} +3 -3
- package/dist/{ConstitutionalDocument-CddO3OSY.js → ConstitutionalDocument-C4HWFtJ-.js} +336 -92
- package/dist/{ContactDetails-BZ7dqNuH.js → ContactDetails-ByrH32Jo.js} +12 -7
- package/dist/{ContextGuidance-0XKaQ9Ba.js → ContextGuidance-BUczCMV3.js} +2 -2
- package/dist/{CountryField-BTwq-LdM.js → CountryField-C9nbUmpe.js} +3 -3
- package/dist/{CreateIndividualComponent-B0RfIm2Q.js → CreateIndividualComponent-AOb8RP8N.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-XiVVyTGX.js → CreateTransferInstrumentComponent-BBytn3E3.js} +5 -5
- package/dist/{Currency-COs4cPiC.js → Currency-B1ApVUnP.js} +7 -7
- package/dist/{CustomerSupport-WsGepkci.js → CustomerSupport-DDtZA5jI.js} +11 -16
- package/dist/{DebugModal-BG-xZugG.js → DebugModal-wXFq4cg1.js} +127 -98
- package/dist/DecisionMakerDetails-Up9HU_qy.js +275 -0
- package/dist/{DecisionMakerDetailsPage-BNDJ4G9u.js → DecisionMakerDetailsPage-OeI7y1aX.js} +10 -10
- package/dist/{DecisionMakers-BkgGDV_d.js → DecisionMakers-5bUJ4S4V.js} +22 -259
- package/dist/{Dropzone-1307mgIt.js → Dropzone-Bf8v-4iJ.js} +4 -4
- package/dist/{EmbeddedStatus-C9Scvouz.js → EmbeddedStatus-DQmqyOzv.js} +3 -3
- package/dist/{EndStateLayout-D8bTvH_H.js → EndStateLayout-DZgYKmw6.js} +2 -2
- package/dist/{EntityAssociation-CFtBLGS6.js → EntityAssociation-Dc8O6xJv.js} +5 -5
- package/dist/{EntityGuidanceStatus-5wNdPvGh.js → EntityGuidanceStatus-DhCqUWGF.js} +4 -4
- package/dist/{ErrorPanel-DNuuMh-W.js → ErrorPanel-4HIDH4sr.js} +11 -12
- package/dist/{Field-DhgxtDHi.js → Field-CWq5XOh3.js} +2 -2
- package/dist/{FormNavigation-CNUCAuSA.js → FormNavigation-CDlQZRNb.js} +3 -3
- package/dist/{Individual.rules-BMayKVCw.js → Individual.rules-BhSXCdTl.js} +12 -12
- package/dist/{IndividualDropin-CNYG1UJb.js → IndividualDropin-DS8kUrXB.js} +252 -97
- package/dist/{InputDate-UU6golKr.js → InputDate-C2NEOpK4.js} +1 -1
- package/dist/{InputText-B_Dy6ooB.js → InputText-20pWI3ja.js} +2 -2
- package/dist/{Introduction-Dal7p5Mk.js → Introduction-D6x5z2oe.js} +4 -9
- package/dist/InvitedDecisionMakerComponent-Bg-DMehe.js +211 -0
- package/dist/{JpAddress-DEzR_98l.js → JpAddress-CX4IfNRB.js} +11 -11
- package/dist/{LandingLayout-CHRI270t.js → LandingLayout-y-X0NrR1.js} +2 -2
- package/dist/{LegalCompanyNameField-BtcoTH2A.js → LegalCompanyNameField-lEerISaT.js} +16 -16
- package/dist/{LegalRepresentativeDetailsPage-DkeUe4ta.js → LegalRepresentativeDetailsPage-C6dOsu1g.js} +5 -5
- package/dist/{Link-Bl_GjNYw.js → Link-DeFoaStC.js} +2 -2
- package/dist/{ListItem-DvSwwjUU.js → ListItem-BFxtRiVb.js} +3 -3
- package/dist/{LoaderWrapper-Coambg3s.js → LoaderWrapper-Bh1b67kY.js} +2 -2
- package/dist/{ManageIndividualComponent-Cg7imjd5.js → ManageIndividualComponent-DHYNg_KN.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DIblbnOJ.js → ManageTermsOfServiceComponent-BNzELB7A.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-COucevgP.js → ManageTransferInstrumentComponent-9r84TFsu.js} +11 -11
- package/dist/{MaskedInput-CFPRK30D.js → MaskedInput-DPSvsK95.js} +5 -5
- package/dist/{MaybeModal-BBBJD1jn.js → MaybeModal-BbrppFfg.js} +3 -3
- package/dist/{Modal-DJLTbW4Y.js → Modal-CAVcW_pH.js} +2 -2
- package/dist/{Name-Bu38kdOA.js → Name-eQhc9Vta.js} +4 -4
- package/dist/{NewSummary-oIcQyhuq.js → NewSummary-B_xfd8vG.js} +5 -5
- package/dist/{OnboardingDropinComponent-DqQmqcO8.js → OnboardingDropinComponent-BRZuLCE8.js} +145 -218
- package/dist/{PayoutDetailsDropin-D7AR5BSQ.js → PayoutDetailsDropin-B6ZMIVid.js} +183 -1065
- package/dist/{PayoutDetailsPage-BCBGGB28.js → PayoutDetailsPage-BSzf6sev.js} +6 -6
- package/dist/{RadioGroup-DCmqcl_S.js → RadioGroup-BZ-EfNXM.js} +2 -2
- package/dist/{Review-DQA1vIzH.js → Review-BVeMAC7t.js} +6 -6
- package/dist/{RootBusinessDetailsPage--bsR-yKt.js → RootBusinessDetailsPage-OlgTozou.js} +6 -6
- package/dist/{RootBusinessLinesPage-DIYKqsLt.js → RootBusinessLinesPage-CUwKkzZU.js} +93 -91
- package/dist/{RootIndividualDetailsPage-CXKr1vhL.js → RootIndividualDetailsPage-CqP8gdvk.js} +7 -6
- package/dist/{Select-CyK-d8L8.js → Select-DSLn5CCG.js} +4 -4
- package/dist/{SignPCIComponent-BvAt735T.js → SignPCIComponent-CT6GL442.js} +12 -19
- package/dist/{SingpassSelection-Cidszm4a.js → SingpassSelection-BORgM-de.js} +144 -7
- package/dist/{SoleProprietorshipPage-CgAHjrJh.js → SoleProprietorshipPage-BylQa2F1.js} +5 -5
- package/dist/{SourceOfFundsPage-Rh40Ip6D.js → SourceOfFundsPage-Br-FaeUd.js} +270 -98
- package/dist/{StepProgressIndicator-C38x_hKs.js → StepProgressIndicator-ZZsrHrtb.js} +2 -2
- package/dist/{StoreProvider-o79GZkUo.js → StoreProvider-lJLpl6iE.js} +155 -148
- package/dist/{Summary-DbPdEnQi.js → Summary-DdFh8LL0.js} +25 -22
- package/dist/{TaxInformationField-C6DdzDTL.js → TaxInformationField-5nazrzc4.js} +568 -795
- package/dist/{TaxReportingDropin-Dc75TUYl.js → TaxReportingDropin-DAeAPOI5.js} +26 -26
- package/dist/{TextArea-XLgx9WmG.js → TextArea-D0eJRv8v.js} +2 -2
- package/dist/{TileGroup-DsYUn_bt.js → TileGroup-C8YY0Xwv.js} +3 -3
- package/dist/{TrustDetailsPage-B_QUEYM5.js → TrustDetailsPage-BHo4SFbD.js} +64 -65
- package/dist/{TrustMemberCompanyPage-aBW14Thb.js → TrustMemberCompanyPage-CZMF952c.js} +7 -7
- package/dist/{TrustMemberIndividualPage-DNgZI75l.js → TrustMemberIndividualPage-RSIXbPaf.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-CbOyf3oB.js → TrustMemberRoleAndTypePage-BehlWyo7.js} +27 -27
- package/dist/{TrustMembersOverview-7waB6Dud.js → TrustMembersOverview-KI0J7peC.js} +16 -18
- package/dist/{UnincorporatedPartnershipIndividualPage-DFvESJUR.js → UnincorporatedPartnershipIndividualPage-CNf-sPP4.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-j2xmgM94.js → UnincorporatedPartnershipMemberCompanyPage-OyKeY30-.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BlJsglW1.js → UnincorporatedPartnershipMemberRoleAndTypePage-Bt21JX-F.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-1-yK01Ox.js → UnincorporatedPartnershipMembersOverview-DdTGn8QH.js} +7 -7
- package/dist/{VerificationErrorAlert-BsJqccUV.js → VerificationErrorAlert-ChGZqC_p.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-Bx3tJek7.js → ViewVerificationStatusComponent-9RUetbsi.js} +3 -3
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +4 -4
- package/dist/adyen-individual-status.js +4 -4
- package/dist/adyen-invited-decision-maker.js +4 -117
- package/dist/adyen-kyc-components.js +17 -17
- package/dist/adyen-onboarding.js +4 -4
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +4 -4
- package/dist/adyen-transfer-instrument-configuration.js +4 -4
- package/dist/adyen-transfer-instrument-management.js +4 -4
- package/dist/adyen-verification-status.js +4 -4
- package/dist/{bafinUtils-sfpUKqEq.js → bafinUtils-m56sOqio.js} +2 -2
- package/dist/{commonValidators-h59h4U6_.js → commonValidators-cEWuPs2I.js} +1 -1
- package/dist/{dropinUtils-C78qUFNH.js → dropinUtils-B-qE8vvG.js} +53 -9
- package/dist/en-US-CJDkXFZ6.js +13 -0
- package/dist/en-US-CTbVLoNF.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-G607HIyo.js → en-US-DPoDE0uz.js} +7 -7
- package/dist/en-US-DrUYyPhF.js +13 -0
- package/dist/{formUtils-D9HJXrvu.js → formUtils-DjInEErz.js} +3 -3
- package/dist/{getName-C1Pp12yX.js → getName-CzAV6RHp.js} +2 -2
- package/dist/{getProblemsForEntity-CyQdh7Lw.js → getProblemsForEntity-CVzYoCCC.js} +2 -2
- package/dist/getTrustedFields-BeaCYGD7.js +104 -0
- package/dist/{isEmpty-Dxhg5YWQ.js → isEmpty-CRqBruDc.js} +1 -1
- package/dist/japanSupportUtils-BK4rTASp.js +16 -0
- package/dist/{localizeDateString-ltj3KR-p.js → localizeDateString-BSZiJcEb.js} +2 -2
- package/dist/{mapExistingFile-J5xtIyOp.js → mapExistingFile-BcvOzQNH.js} +3 -76
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BCTFanCP.js → mapJpAddressSchemaToAddressLocalizations-BgHjkrJG.js} +2 -36
- package/dist/{mapLegalEntityToIndividualSchema-fUEX0pyE.js → mapLegalEntityToIndividualSchema-_HlywUjg.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-BxS7kMUd.js → mapTransferInstrumentToPayoutAccount-69DkBhXm.js} +2 -2
- package/dist/omitObscuredFieldsIfUnchanged-tsdNkCyN.js +29 -0
- package/dist/{patternValidators-DmtoCjEe.js → patternValidators-DuOaKe_S.js} +2 -2
- package/dist/{process-field-configurations-Bo_HZH3p.js → process-field-configurations-DcWH0t4d.js} +2 -2
- package/dist/{resolveEnvironment-9pYwfLRr.js → resolveEnvironment-Bs-ygpN1.js} +17 -24
- package/dist/{roleMetadata-ZbDuZjur.js → roleMetadata-B-2OBUCV.js} +3 -3
- package/dist/style.css +230 -275
- package/dist/styles-CLV89_hH.js +230 -275
- package/dist/types/api/toggles/useToggles.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -29
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/verification/{widget → overlay}/types.d.ts +4 -14
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +4 -5
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsGettingStarted.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +7 -5
- package/dist/types/components/Business/utils/companyUtil.d.ts +2 -2
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +3 -2
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +5 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +9 -9
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/IFrameWidget.d.ts +9 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +15 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +14 -0
- 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/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugTogglesAndSettings.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +12 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/getDefaultRegistrationNumberType.d.ts +4 -4
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → BusinessRegistrationNumberField/RegistrationNumberTypeSelector}/inferCompanyRegistrationNumberType.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +92 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +8 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +0 -483
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/TaxIdNumberTypeSelector.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +8 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +14 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → VatNumberField/VatNumberTypeSelector}/getDefaultVatNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/inferVatNumberType.d.ts +3 -0
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +10 -1
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +149 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +3 -3
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +5 -0
- package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +4 -0
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContext.d.ts +2 -0
- package/dist/types/context/ToggleContext/ToggleContextProvider.d.ts +9 -0
- package/dist/types/context/{ExperimentContext → ToggleContext}/types.d.ts +42 -32
- package/dist/types/context/ToggleContext/useToggleContext.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -3
- package/dist/types/core/UIElement/UIElement.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/embeds/baseEmbedProps.d.ts +3 -3
- package/dist/types/hooks/useFormComposer.d.ts +1 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
- package/dist/types/hooks/useTaskLandedEvent.d.ts +7 -0
- package/dist/types/language/types.d.ts +2 -9
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/{types-Bbb9XYx7.js → types-C4u-zy-W.js} +2 -2
- package/dist/{types-_ugkpUNx.js → types-CTwBMnPB.js} +46 -37
- package/dist/{types-Dz6L62GR.js → types-Cop44iUw.js} +2 -2
- package/dist/{types-CQ2p58-6.js → types-Dv0COrvY.js} +3 -2
- package/dist/{types-C4ieOutZ.js → types-QKgg5_IB.js} +2 -2
- package/dist/{unincorporated-partnership-BC2PWEgm.js → unincorporated-partnership-DCtqSVs0.js} +2 -2
- package/dist/{useAssociatedLegalEntity-BSvkLl8Y.js → useAssociatedLegalEntity-COa3bZhe.js} +2 -2
- package/dist/{useBusinessDetailsData-BMzgGX4d.js → useBusinessDetailsData-DslnLoRz.js} +443 -397
- package/dist/{useCreateLegalEntity-i6pKh0i4.js → useCreateLegalEntity-CO7qV3Sc.js} +2 -2
- package/dist/{useForm-CdWcC_Oh.js → useForm-F0hPmSqd.js} +3 -3
- package/dist/{useFormContext-DGfVqoR2.js → useFormContext-EeYo1zte.js} +17 -8
- package/dist/{useGlobalData-B6jCg1Ek.js → useGlobalData-DKxTj6bo.js} +24 -15
- package/dist/{useMultiForm-Cmp2wrss.js → useMultiForm-CR9pqYjq.js} +4 -4
- package/dist/{useOnboardingStatus-Dm_xuWC2.js → useOnboardingStatus-D2I19RDh.js} +2 -2
- package/dist/{useScenarios-ho-q4vGs.js → useScenarios-BvV1t76w.js} +2 -2
- package/dist/{useTermsOfServiceStatus-Dof1-HII.js → useTermsOfServiceStatus-C0uqYCFG.js} +2 -2
- package/dist/{useToastContext-CflZZ_Su.js → useToastContext-Dl59lP3Q.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-rfHqZZWF.js → useUnincorporatedPartnershipMembers-BRQxcrvc.js} +5 -5
- package/dist/{useUpdateBusinessLines-vNF2Y_nP.js → useUpdateBusinessLines-FG7FE2l9.js} +6 -6
- package/dist/{useUpdateLegalEntity-CtdSLVIW.js → useUpdateLegalEntity-Dr3e1mG2.js} +3 -3
- package/dist/{utils-CPWcV5kL.js → utils-2-VlpJvY.js} +2 -2
- package/dist/{utils-DHB6YxqA.js → utils-Bmx7w6cI.js} +6 -6
- package/dist/{utils-CXn7BO_7.js → utils-CCjjhUUz.js} +53 -6
- package/dist/{utils-CF18b8u8.js → utils-CWrDCmo5.js} +22 -2
- package/dist/{utils-DXCw1aJK.js → utils-DCXRR-sY.js} +1 -1
- package/dist/{validate-DPhS2sGf.js → validate-B--uGfCw.js} +1 -1
- package/dist/{validate-BH9M6gvx.js → validate-DdW_lr56.js} +3 -3
- package/dist/{validationError-BDDYiyYy.js → validationError-DmyvOY60.js} +2 -2
- package/package.json +1 -5
- package/dist/RadioGroupCard-nQz2Uhca.js +0 -152
- package/dist/en-US--1W760fR.js +0 -13
- package/dist/en-US-CKLQU2sJ.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-DLY20x1O.js +0 -13
- package/dist/iframeWidget-D-vHGFmR.js +0 -234
- package/dist/instant-verification-UrnuHTYn.js +0 -40
- package/dist/japanSupportUtils-C5HeKRQ7.js +0 -16
- package/dist/manual-verification-BO8zgAYT.js +0 -41
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -5
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +0 -9
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +0 -6
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/BankVerificationWidget.d.ts +0 -3
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -32
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -5
- package/dist/types/components/Shared/devex/DebugListener/DebugExperimentsAndSettings.d.ts +0 -7
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +0 -20
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +0 -21
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +0 -3
- package/dist/types/context/ExperimentContext/ExperimentsContext.d.ts +0 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +0 -8
- package/dist/types/context/ExperimentContext/useExperimentsContext.d.ts +0 -1
- package/dist/types/utils/bankVerification/dom.d.ts +0 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d94b4506-d97f-4212-8ea7-c07752641683", e._sentryDebugIdIdentifier = "sentry-dbid-d94b4506-d97f-4212-8ea7-c07752641683");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import {
|
|
12
|
+
import { x as useAnalyticsContext } from "./StoreProvider-lJLpl6iE.js";
|
|
13
13
|
function Checkbox({
|
|
14
14
|
id,
|
|
15
15
|
name,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "79b23c4c-e83a-4ad8-a424-61a6f10671a1", e._sentryDebugIdIdentifier = "sentry-dbid-79b23c4c-e83a-4ad8-a424-61a6f10671a1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { u as useTranslation,
|
|
13
|
-
import { M as Modal } from "./Modal-
|
|
12
|
+
import { u as useTranslation, x as useAnalyticsContext, N as Typography, V as Button } from "./StoreProvider-lJLpl6iE.js";
|
|
13
|
+
import { M as Modal } from "./Modal-CAVcW_pH.js";
|
|
14
14
|
const confirm = "adyen-kyc-confirm";
|
|
15
15
|
const confirmMessage = "adyen-kyc-confirm-message";
|
|
16
16
|
const confirmActions = "adyen-kyc-confirm-actions";
|
|
@@ -2,92 +2,34 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "80c41b7b-5d06-4ce0-8d97-1eb7ebaddb49", e._sentryDebugIdIdentifier = "sentry-dbid-80c41b7b-5d06-4ce0-8d97-1eb7ebaddb49");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { C as Checkbox } from "./Checkbox-
|
|
12
|
-
import { F as Field } from "./Field-
|
|
13
|
-
import {
|
|
14
|
-
import { m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, a as nonInputs, b as alphaInputs, d as alphanumericInputs } from "./MaskedInput-
|
|
11
|
+
import { C as Checkbox } from "./Checkbox-Dwf4zXgj.js";
|
|
12
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
13
|
+
import { a9 as CountryCodes, u as useTranslation, ab as translateTranslatable, H as useToggleContext, aB as Header, ah as objectsDeepEqual, L as LegalEntityTypes } from "./StoreProvider-lJLpl6iE.js";
|
|
14
|
+
import { m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, a as nonInputs, b as alphaInputs, d as alphanumericInputs } from "./MaskedInput-DPSvsK95.js";
|
|
15
15
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
16
|
+
import { C as CompanyTypesValues } from "./bafinUtils-m56sOqio.js";
|
|
17
|
+
import { s as stateFormatGuidanceText, m as businessRegistrationNumberMasks, n as businessRegistrationNumberPatterns, M as MemoizedDocumentUpload } from "./TaxInformationField-5nazrzc4.js";
|
|
18
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur } from "./patternValidators-DuOaKe_S.js";
|
|
16
19
|
import { useMemo, useCallback, useEffect, useRef } from "preact/hooks";
|
|
17
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur } from "./patternValidators-DmtoCjEe.js";
|
|
21
|
-
import { I as InputText } from "./InputText-B_Dy6ooB.js";
|
|
22
|
-
import { u as uppercase } from "./mapExistingFile-J5xtIyOp.js";
|
|
20
|
+
import { R as RadioGroup } from "./RadioGroup-BZ-EfNXM.js";
|
|
21
|
+
import { I as InputText } from "./InputText-20pWI3ja.js";
|
|
22
|
+
import { u as uppercase } from "./mapExistingFile-BcvOzQNH.js";
|
|
23
23
|
import { createElement } from "preact";
|
|
24
|
-
import { S as StateContextSetter } from "./validate-
|
|
25
|
-
import { u as useForm } from "./useForm-
|
|
26
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
27
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
28
|
-
import { c as createFormUtils } from "./formUtils-
|
|
24
|
+
import { S as StateContextSetter } from "./validate-DdW_lr56.js";
|
|
25
|
+
import { u as useForm } from "./useForm-F0hPmSqd.js";
|
|
26
|
+
import { C as ContextGuidance } from "./ContextGuidance-BUczCMV3.js";
|
|
27
|
+
import { E as ErrorPanel } from "./ErrorPanel-4HIDH4sr.js";
|
|
28
|
+
import { c as createFormUtils } from "./formUtils-DjInEErz.js";
|
|
29
29
|
import { a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
30
|
-
import { A as Address } from "./Address-
|
|
30
|
+
import { A as Address } from "./Address-BkeFTMl-.js";
|
|
31
31
|
import { memo } from "preact/compat";
|
|
32
|
-
import { u as usePageLandedEvent } from "./Summary-
|
|
33
|
-
function CompanyRegistrationNumberTypeSelector({
|
|
34
|
-
country,
|
|
35
|
-
companyType,
|
|
36
|
-
selected,
|
|
37
|
-
setSelected,
|
|
38
|
-
exemptedOption
|
|
39
|
-
}) {
|
|
40
|
-
const { t } = useTranslation("common");
|
|
41
|
-
const options = useMemo(() => {
|
|
42
|
-
const availableOptions = getCompanyRegistrationNumberOptions(country, companyType) ?? [];
|
|
43
|
-
if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
|
|
44
|
-
return [
|
|
45
|
-
...availableOptions,
|
|
46
|
-
{
|
|
47
|
-
id: "exempted",
|
|
48
|
-
name: exemptedOption
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
}, [companyType, country, exemptedOption]);
|
|
52
|
-
const handleSelect = useCallback(
|
|
53
|
-
(selectedStr) => {
|
|
54
|
-
const newSelected = selectedStr;
|
|
55
|
-
if (newSelected === "exempted") {
|
|
56
|
-
if (exemptedOption) {
|
|
57
|
-
setSelected(newSelected);
|
|
58
|
-
}
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
setSelected(newSelected);
|
|
62
|
-
},
|
|
63
|
-
[exemptedOption, setSelected]
|
|
64
|
-
);
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
if (options.length > 0 && (!selected || !options.some((option) => option.id === selected))) {
|
|
67
|
-
if (selected === "exempted") return;
|
|
68
|
-
setSelected(options[0].id);
|
|
69
|
-
}
|
|
70
|
-
}, [options, selected, setSelected]);
|
|
71
|
-
if (options.length <= 1) return null;
|
|
72
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
-
Field,
|
|
74
|
-
{
|
|
75
|
-
el: "fieldset",
|
|
76
|
-
name: "companyRegistrationNumberType",
|
|
77
|
-
label: t(($) => $["whichTypeOfRegistrationNumberDoYouHave"]),
|
|
78
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
79
|
-
RadioGroup,
|
|
80
|
-
{
|
|
81
|
-
...childProps,
|
|
82
|
-
name: "companyRegistrationNumberType",
|
|
83
|
-
items: options,
|
|
84
|
-
value: selected,
|
|
85
|
-
onChange: handleSelect
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
32
|
+
import { u as usePageLandedEvent } from "./Summary-DdFh8LL0.js";
|
|
91
33
|
const registrationNumberDefaultFieldMetadata = {
|
|
92
34
|
label: "registrationNumber"
|
|
93
35
|
};
|
|
@@ -772,9 +714,7 @@ const registrationNumberDefaultFieldConfig = {
|
|
|
772
714
|
validators: validatePatternOnBlur(
|
|
773
715
|
businessRegistrationNumberPatterns[CountryCodes.Romania].roRegNumberOldFormat
|
|
774
716
|
),
|
|
775
|
-
guidanceText:
|
|
776
|
-
key: "roRegNumberOldFormat_maskGuidance"
|
|
777
|
-
}
|
|
717
|
+
guidanceText: "roRegNumberOldFormat_maskGuidance"
|
|
778
718
|
} : {
|
|
779
719
|
label: "roRegNumberNewFormat_label",
|
|
780
720
|
mask: businessRegistrationNumberMasks[CountryCodes.Romania].roRegNumberNewFormat,
|
|
@@ -969,6 +909,228 @@ const getRegistrationNumberHelperText = (t, { country, companyType }) => {
|
|
|
969
909
|
}
|
|
970
910
|
return void 0;
|
|
971
911
|
};
|
|
912
|
+
const companyRegistrationNumberOptions = {
|
|
913
|
+
[CountryCodes.Australia]: [
|
|
914
|
+
{
|
|
915
|
+
id: "incorporatedAssociationRegistrationNumber",
|
|
916
|
+
name: "incorporatedAssociationRegistrationNumber",
|
|
917
|
+
applicableOnlyFor: [CompanyTypesValues.INCORPORATED_ASSOCIATION]
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
id: "australianBusinessNumberAcn",
|
|
921
|
+
name: "australianBusinessNumberAcn",
|
|
922
|
+
applicableOnlyFor: [
|
|
923
|
+
CompanyTypesValues.PRIVATE_COMPANY,
|
|
924
|
+
CompanyTypesValues.PUBLIC_COMPANY,
|
|
925
|
+
CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
|
|
926
|
+
CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
|
|
927
|
+
CompanyTypesValues.INCORPORATED_PARTNERSHIP,
|
|
928
|
+
CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
|
|
929
|
+
CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
|
|
930
|
+
CompanyTypesValues.SOLE_PROPRIETORSHIP
|
|
931
|
+
]
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
[CountryCodes.Austria]: [
|
|
935
|
+
{
|
|
936
|
+
id: "firmenbuchnummer",
|
|
937
|
+
name: "firmenbuchnummer"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
id: "ZVR",
|
|
941
|
+
name: "zentralesVereinsregisterId",
|
|
942
|
+
applicableOnlyFor: [
|
|
943
|
+
CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
|
|
944
|
+
CompanyTypesValues.INCORPORATED_ASSOCIATION
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
[CountryCodes.Croatia]: [
|
|
949
|
+
{ id: "MBO", name: "MBO", applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP] },
|
|
950
|
+
{
|
|
951
|
+
id: "MBS",
|
|
952
|
+
name: "MBS",
|
|
953
|
+
applicableOnlyFor: [
|
|
954
|
+
CompanyTypesValues.PRIVATE_COMPANY,
|
|
955
|
+
CompanyTypesValues.PUBLIC_COMPANY,
|
|
956
|
+
CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
|
|
957
|
+
CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
|
|
958
|
+
CompanyTypesValues.INCORPORATED_PARTNERSHIP,
|
|
959
|
+
CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
|
|
960
|
+
CompanyTypesValues.NON_PROFIT_OR_CHARITABLE
|
|
961
|
+
]
|
|
962
|
+
}
|
|
963
|
+
],
|
|
964
|
+
[CountryCodes.France]: [
|
|
965
|
+
{
|
|
966
|
+
id: "SIRET",
|
|
967
|
+
name: "siret"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
id: "RNA",
|
|
971
|
+
name: "rnaNumber",
|
|
972
|
+
applicableOnlyFor: [CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
[CountryCodes.Hungary]: [
|
|
976
|
+
{
|
|
977
|
+
id: "nyilvantartasiSzam",
|
|
978
|
+
name: "huRegistrationNumberForSoleProp",
|
|
979
|
+
applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
[CountryCodes.Italy]: [
|
|
983
|
+
{
|
|
984
|
+
id: "partitaIVA",
|
|
985
|
+
name: "codiceFiscalePartitaIVA"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
id: "CCIAA",
|
|
989
|
+
name: "CCIAA"
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
[CountryCodes.Monaco]: [
|
|
993
|
+
{
|
|
994
|
+
id: "mcRegistrationNumberSoleProp",
|
|
995
|
+
name: "mcRegistrationNumberSoleProp",
|
|
996
|
+
applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
id: "mcRegistrationNumber",
|
|
1000
|
+
name: "mcRegistrationNumber",
|
|
1001
|
+
applicableOnlyFor: [
|
|
1002
|
+
CompanyTypesValues.PRIVATE_COMPANY,
|
|
1003
|
+
CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
|
|
1004
|
+
CompanyTypesValues.INCORPORATED_ASSOCIATION,
|
|
1005
|
+
CompanyTypesValues.INCORPORATED_PARTNERSHIP,
|
|
1006
|
+
CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
|
|
1007
|
+
CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
|
|
1008
|
+
CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
[CountryCodes.NewZealand]: [
|
|
1013
|
+
{
|
|
1014
|
+
id: "NZBN",
|
|
1015
|
+
name: "NZBN"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
id: "companyNumberNZ",
|
|
1019
|
+
name: "companyNumberNZ",
|
|
1020
|
+
applicableOnlyFor: [
|
|
1021
|
+
CompanyTypesValues.PRIVATE_COMPANY,
|
|
1022
|
+
CompanyTypesValues.PUBLIC_COMPANY,
|
|
1023
|
+
CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
[CountryCodes.Romania]: [
|
|
1028
|
+
{
|
|
1029
|
+
id: "roRegNumberNewFormat",
|
|
1030
|
+
name: "roRegNumberNewFormat_label"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
id: "roRegNumberOldFormat",
|
|
1034
|
+
name: "roRegNumberOldFormat_label"
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
[CountryCodes.Poland]: [
|
|
1038
|
+
{
|
|
1039
|
+
id: "regon",
|
|
1040
|
+
name: "regon"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
id: "krsNumber",
|
|
1044
|
+
name: "krsNumber"
|
|
1045
|
+
}
|
|
1046
|
+
],
|
|
1047
|
+
[CountryCodes.UnitedKingdom]: [
|
|
1048
|
+
{
|
|
1049
|
+
id: "charity",
|
|
1050
|
+
name: "charityNumber",
|
|
1051
|
+
applicableOnlyFor: [CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
id: "companyNumber",
|
|
1055
|
+
name: "companyNumber",
|
|
1056
|
+
applicableOnlyFor: [
|
|
1057
|
+
CompanyTypesValues.PRIVATE_COMPANY,
|
|
1058
|
+
CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
|
|
1059
|
+
CompanyTypesValues.INCORPORATED_ASSOCIATION,
|
|
1060
|
+
CompanyTypesValues.INCORPORATED_PARTNERSHIP,
|
|
1061
|
+
CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
|
|
1062
|
+
CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
|
|
1063
|
+
CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
|
|
1064
|
+
CompanyTypesValues.PUBLIC_COMPANY
|
|
1065
|
+
]
|
|
1066
|
+
}
|
|
1067
|
+
]
|
|
1068
|
+
};
|
|
1069
|
+
const getCompanyRegistrationNumberOptions = (country, companyType) => {
|
|
1070
|
+
const optionsForCountry = companyRegistrationNumberOptions[country];
|
|
1071
|
+
if (!companyType || !optionsForCountry) return optionsForCountry;
|
|
1072
|
+
return optionsForCountry.filter(
|
|
1073
|
+
(option) => option.applicableOnlyFor?.includes(companyType) ?? true
|
|
1074
|
+
);
|
|
1075
|
+
};
|
|
1076
|
+
function CompanyRegistrationNumberTypeSelector({
|
|
1077
|
+
country,
|
|
1078
|
+
companyType,
|
|
1079
|
+
selected,
|
|
1080
|
+
setSelected,
|
|
1081
|
+
exemptedOptionLabel
|
|
1082
|
+
}) {
|
|
1083
|
+
const { t } = useTranslation("common");
|
|
1084
|
+
const options = useMemo(() => {
|
|
1085
|
+
const availableOptions = getCompanyRegistrationNumberOptions(country, companyType) ?? [];
|
|
1086
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
1087
|
+
return [
|
|
1088
|
+
...availableOptions,
|
|
1089
|
+
{
|
|
1090
|
+
id: "exempted",
|
|
1091
|
+
name: exemptedOptionLabel
|
|
1092
|
+
}
|
|
1093
|
+
];
|
|
1094
|
+
}, [companyType, country, exemptedOptionLabel]);
|
|
1095
|
+
const handleSelect = useCallback(
|
|
1096
|
+
(selectedStr) => {
|
|
1097
|
+
const newSelected = selectedStr;
|
|
1098
|
+
if (newSelected === "exempted") {
|
|
1099
|
+
if (exemptedOptionLabel) {
|
|
1100
|
+
setSelected(newSelected);
|
|
1101
|
+
}
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
setSelected(newSelected);
|
|
1105
|
+
},
|
|
1106
|
+
[exemptedOptionLabel, setSelected]
|
|
1107
|
+
);
|
|
1108
|
+
useEffect(() => {
|
|
1109
|
+
if (options.length > 0 && (!selected || !options.some((option) => option.id === selected))) {
|
|
1110
|
+
if (selected === "exempted") return;
|
|
1111
|
+
setSelected(options[0].id);
|
|
1112
|
+
}
|
|
1113
|
+
}, [options, selected, setSelected]);
|
|
1114
|
+
if (options.length <= 1) return null;
|
|
1115
|
+
return /* @__PURE__ */ jsx(
|
|
1116
|
+
Field,
|
|
1117
|
+
{
|
|
1118
|
+
el: "fieldset",
|
|
1119
|
+
name: "companyRegistrationNumberType",
|
|
1120
|
+
label: t(($) => $["whichTypeOfRegistrationNumberDoYouHave"]),
|
|
1121
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1122
|
+
RadioGroup,
|
|
1123
|
+
{
|
|
1124
|
+
...childProps,
|
|
1125
|
+
name: "companyRegistrationNumberType",
|
|
1126
|
+
items: options,
|
|
1127
|
+
value: selected,
|
|
1128
|
+
onChange: handleSelect
|
|
1129
|
+
}
|
|
1130
|
+
)
|
|
1131
|
+
}
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
972
1134
|
const inferCompanyRegistrationNumberType = (registrationNumber, country, companyType) => {
|
|
973
1135
|
const optionsForCountry = getCompanyRegistrationNumberOptions(country, companyType);
|
|
974
1136
|
const metadataFn = registrationNumberDefaultFieldConfig[country];
|
|
@@ -1077,7 +1239,7 @@ function BusinessRegistrationNumberField({
|
|
|
1077
1239
|
country,
|
|
1078
1240
|
setSelected: handleCompanyRegistrationNumberTypeChange,
|
|
1079
1241
|
selected: registrationNumberType,
|
|
1080
|
-
|
|
1242
|
+
exemptedOptionLabel: showExemptedOption ? labels.exemptedFromRegistrationNumber : void 0
|
|
1081
1243
|
}
|
|
1082
1244
|
),
|
|
1083
1245
|
/* @__PURE__ */ jsx(
|
|
@@ -1841,6 +2003,87 @@ const defaultFieldConfig = {
|
|
|
1841
2003
|
validators: validatePatternOnBlur(/^[JGVE]-\d{8}-?\d$/)
|
|
1842
2004
|
}
|
|
1843
2005
|
};
|
|
2006
|
+
const vatNumberOptions = {
|
|
2007
|
+
[CountryCodes.Austria]: [{ id: "UST-ID", name: "UST-ID" }],
|
|
2008
|
+
[CountryCodes.Belgium]: [{ id: "euVatNumber", name: "euVatNumber" }],
|
|
2009
|
+
[CountryCodes.Bulgaria]: [{ id: "identifikacionenNomerDDS", name: "identifikacionenNomerDDS" }],
|
|
2010
|
+
[CountryCodes.Croatia]: [{ id: "PDVIdBrojOIB", name: "PDVIdBrojOIB" }],
|
|
2011
|
+
[CountryCodes.Cyprus]: [{ id: "arithmosEngraphes", name: "arithmosEngraphes" }],
|
|
2012
|
+
[CountryCodes.CzechRepublic]: [{ id: "DIC", name: "DIC" }],
|
|
2013
|
+
[CountryCodes.Denmark]: [
|
|
2014
|
+
{
|
|
2015
|
+
id: "momsregistreringsnummerCVR",
|
|
2016
|
+
name: "momsregistreringsnummerCVR"
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
id: "stamregister",
|
|
2020
|
+
name: "stamregister"
|
|
2021
|
+
}
|
|
2022
|
+
],
|
|
2023
|
+
[CountryCodes.Estonia]: [
|
|
2024
|
+
{ id: "kaibemaksukohustuslaseNumber", name: "kaibemaksukohustuslaseNumber" }
|
|
2025
|
+
],
|
|
2026
|
+
[CountryCodes.Finland]: [
|
|
2027
|
+
{
|
|
2028
|
+
id: "arvonlisaveronumeroMervardesskattenummer",
|
|
2029
|
+
name: "arvonlisaveronumeroMervardesskattenummer"
|
|
2030
|
+
}
|
|
2031
|
+
],
|
|
2032
|
+
[CountryCodes.France]: [
|
|
2033
|
+
{
|
|
2034
|
+
id: "numeroDIdentificationALATaxe",
|
|
2035
|
+
name: "numeroDIdentificationALATaxe"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
id: "NumeroDeTVA",
|
|
2039
|
+
name: "NumeroDeTVA"
|
|
2040
|
+
}
|
|
2041
|
+
],
|
|
2042
|
+
[CountryCodes.Germany]: [{ id: "USt-IdNr", name: "USt-IdNr" }],
|
|
2043
|
+
[CountryCodes.Greece]: [{ id: "grTaxId", name: "grTaxId" }],
|
|
2044
|
+
[CountryCodes.Hungary]: [{ id: "huTaxId", name: "huTaxId" }],
|
|
2045
|
+
[CountryCodes.Ireland]: [{ id: "vatNumber", name: "vatNumber" }],
|
|
2046
|
+
[CountryCodes.Italy]: [{ id: "partitaIVA", name: "partitaIVA" }],
|
|
2047
|
+
[CountryCodes.Latvia]: [{ id: "lvTaxId", name: "lvTaxId" }],
|
|
2048
|
+
[CountryCodes.Liechtenstein]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }],
|
|
2049
|
+
[CountryCodes.Lithuania]: [{ id: "PVMmoketojoKodas", name: "PVMmoketojoKodas" }],
|
|
2050
|
+
[CountryCodes.Luxembourg]: [
|
|
2051
|
+
{ id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
|
|
2052
|
+
],
|
|
2053
|
+
[CountryCodes.Malaysia]: [{ id: "SST", name: "SST" }],
|
|
2054
|
+
[CountryCodes.Malta]: [{ id: "vatNumber", name: "vatNumber" }],
|
|
2055
|
+
[CountryCodes.Monaco]: [
|
|
2056
|
+
{ id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
|
|
2057
|
+
],
|
|
2058
|
+
[CountryCodes.Netherlands]: [{ id: "btwNummer", name: "btwNummer" }],
|
|
2059
|
+
[CountryCodes.Norway]: [{ id: "mvanummer", name: "mvanummer" }],
|
|
2060
|
+
[CountryCodes.Poland]: [{ id: "NIP", name: "NIP" }],
|
|
2061
|
+
[CountryCodes.Portugal]: [{ id: "numerodeIVA", name: "numerodeIVA" }],
|
|
2062
|
+
[CountryCodes.Romania]: [
|
|
2063
|
+
{ id: "codulDeIdentificareFiscala", name: "codulDeIdentificareFiscala" }
|
|
2064
|
+
],
|
|
2065
|
+
[CountryCodes.Slovakia]: [{ id: "skTaxId", name: "skTaxId" }],
|
|
2066
|
+
[CountryCodes.Slovenia]: [{ id: "siTaxId", name: "siTaxId" }],
|
|
2067
|
+
[CountryCodes.Spain]: [{ id: "NIFdeIVA", name: "NIFdeIVA" }],
|
|
2068
|
+
[CountryCodes.Sweden]: [
|
|
2069
|
+
{
|
|
2070
|
+
id: "vatNummerMomsregistreringsnummerOrMomsnummer",
|
|
2071
|
+
name: "vatNummerMomsregistreringsnummerOrMomsnummer"
|
|
2072
|
+
}
|
|
2073
|
+
],
|
|
2074
|
+
[CountryCodes.Switzerland]: [{ id: "Mehrwertsteuernummer", name: "Mehrwertsteuernummer" }],
|
|
2075
|
+
[CountryCodes.UnitedArabEmirates]: [
|
|
2076
|
+
{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }
|
|
2077
|
+
],
|
|
2078
|
+
[CountryCodes.UnitedKingdom]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }]
|
|
2079
|
+
};
|
|
2080
|
+
const getVatNumberOptions = (country, companyType) => {
|
|
2081
|
+
const optionsForCountry = vatNumberOptions[country];
|
|
2082
|
+
if (!companyType || !optionsForCountry) return optionsForCountry;
|
|
2083
|
+
return optionsForCountry.filter(
|
|
2084
|
+
(option) => option.applicableOnlyFor?.includes(companyType) ?? true
|
|
2085
|
+
);
|
|
2086
|
+
};
|
|
1844
2087
|
const inferVatNumberType = (vatNumber, country) => {
|
|
1845
2088
|
const optionsForCountry = vatNumberOptions[country];
|
|
1846
2089
|
const metadataFn = defaultFieldConfig[country];
|
|
@@ -1864,33 +2107,33 @@ function VatNumberTypeSelector({
|
|
|
1864
2107
|
companyType,
|
|
1865
2108
|
selected,
|
|
1866
2109
|
setSelected,
|
|
1867
|
-
|
|
2110
|
+
exemptedOptionLabel
|
|
1868
2111
|
}) {
|
|
1869
2112
|
const { t } = useTranslation("common");
|
|
1870
2113
|
const handleSelect = useCallback(
|
|
1871
2114
|
(selectedStr) => {
|
|
1872
2115
|
const newSelected = selectedStr;
|
|
1873
2116
|
if (newSelected === "exempted") {
|
|
1874
|
-
if (
|
|
2117
|
+
if (exemptedOptionLabel) {
|
|
1875
2118
|
setSelected(newSelected, true);
|
|
1876
2119
|
}
|
|
1877
2120
|
return;
|
|
1878
2121
|
}
|
|
1879
2122
|
setSelected(newSelected, false);
|
|
1880
2123
|
},
|
|
1881
|
-
[
|
|
2124
|
+
[exemptedOptionLabel, setSelected]
|
|
1882
2125
|
);
|
|
1883
2126
|
const options = useMemo(() => {
|
|
1884
2127
|
const availableOptions = getVatNumberOptions(country, companyType) ?? [];
|
|
1885
|
-
if (availableOptions.length === 0 || !
|
|
2128
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
1886
2129
|
return [
|
|
1887
2130
|
...availableOptions,
|
|
1888
2131
|
{
|
|
1889
2132
|
id: "exempted",
|
|
1890
|
-
name:
|
|
2133
|
+
name: exemptedOptionLabel
|
|
1891
2134
|
}
|
|
1892
2135
|
];
|
|
1893
|
-
}, [country, companyType,
|
|
2136
|
+
}, [country, companyType, exemptedOptionLabel]);
|
|
1894
2137
|
useEffect(() => {
|
|
1895
2138
|
if (!selected && options.length > 0) {
|
|
1896
2139
|
handleSelect(options[0].id);
|
|
@@ -1936,10 +2179,10 @@ function VatNumberField({
|
|
|
1936
2179
|
country
|
|
1937
2180
|
}) {
|
|
1938
2181
|
const { t } = useTranslation("common");
|
|
1939
|
-
const {
|
|
2182
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1940
2183
|
const options = vatNumberOptions[country];
|
|
1941
2184
|
const defaultType = getDefaultVatNumberType(data.vatNumber, country);
|
|
1942
|
-
const vatAbsenceReasons =
|
|
2185
|
+
const vatAbsenceReasons = isFeatureEnabled("ShowExtraTaxExemptionReasons") ? ["belowTaxThreshold", "industryExemption", "countryWithoutVatOrGstSystem"] : ["belowTaxThreshold", "industryExemption"];
|
|
1943
2186
|
const showVatExemptedOptions = canExempt && options?.length > 1;
|
|
1944
2187
|
const vatNumberType = data.exemptedFromVat ? "exempted" : data.vatNumberType ? data.vatNumberType : defaultType;
|
|
1945
2188
|
const fieldMetadata = resolveFieldMetadata(
|
|
@@ -1985,7 +2228,7 @@ function VatNumberField({
|
|
|
1985
2228
|
country,
|
|
1986
2229
|
setSelected: handleVatNumberTypeChange,
|
|
1987
2230
|
selected: vatNumberType,
|
|
1988
|
-
|
|
2231
|
+
exemptedOptionLabel: showVatExemptedOptions ? labels.exemptedFromVat : void 0
|
|
1989
2232
|
}
|
|
1990
2233
|
),
|
|
1991
2234
|
/* @__PURE__ */ jsx(
|
|
@@ -2367,10 +2610,11 @@ export {
|
|
|
2367
2610
|
getDefaultRegistrationNumberType as k,
|
|
2368
2611
|
getDefaultVatNumberType as l,
|
|
2369
2612
|
inferCompanyRegistrationNumberType as m,
|
|
2370
|
-
|
|
2613
|
+
getCompanyRegistrationNumberOptions as n,
|
|
2371
2614
|
operationalAddressIsSameIds as o,
|
|
2372
|
-
|
|
2373
|
-
|
|
2615
|
+
exemptFromRegistrationNumberDefaultFieldMetadata as p,
|
|
2616
|
+
exemptFromRegistrationNumberDefaultFieldConfig as q,
|
|
2374
2617
|
registrationAddressFields as r,
|
|
2618
|
+
operationalAddressIsSameItems as s,
|
|
2375
2619
|
vatAbsenceReasonMetadata as v
|
|
2376
2620
|
};
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84624a9b-a2ab-4317-b0c4-0826791735bb", e._sentryDebugIdIdentifier = "sentry-dbid-84624a9b-a2ab-4317-b0c4-0826791735bb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import "@tanstack/preact-query";
|
|
11
11
|
import { useCallback, useState, useMemo, useEffect } from "preact/hooks";
|
|
12
|
-
import { b as useApiContext,
|
|
12
|
+
import { b as useApiContext, j as httpPost, a9 as CountryCodes, ax as isEmpty, ae as createLogger, u as useTranslation, ap as useDataset, ao as entriesOf, aq as datasetIdentifier, aB as Header } from "./StoreProvider-lJLpl6iE.js";
|
|
13
13
|
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
14
14
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
|
-
import { F as Field } from "./Field-
|
|
16
|
-
import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-
|
|
15
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
16
|
+
import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-DPSvsK95.js";
|
|
17
17
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
18
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
19
|
-
import { S as Select } from "./Select-
|
|
18
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DjInEErz.js";
|
|
19
|
+
import { S as Select } from "./Select-DSLn5CCG.js";
|
|
20
20
|
import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
|
|
21
21
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
22
22
|
return httpPost(
|
|
@@ -164,6 +164,8 @@ function PhoneField({
|
|
|
164
164
|
readonly,
|
|
165
165
|
optional,
|
|
166
166
|
placeholder,
|
|
167
|
+
helper,
|
|
168
|
+
helperPosition,
|
|
167
169
|
handleChangeFor
|
|
168
170
|
}) {
|
|
169
171
|
const { t } = useTranslation("common");
|
|
@@ -259,6 +261,8 @@ function PhoneField({
|
|
|
259
261
|
isValid: Boolean(valid.phoneNumber),
|
|
260
262
|
optional: Boolean(optional),
|
|
261
263
|
disabled: Boolean(readonly),
|
|
264
|
+
helper,
|
|
265
|
+
helperPosition,
|
|
262
266
|
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
263
267
|
InputGroup,
|
|
264
268
|
{
|
|
@@ -386,9 +390,10 @@ export {
|
|
|
386
390
|
ContactDetails as C,
|
|
387
391
|
PhoneField as P,
|
|
388
392
|
contactDetailFields as a,
|
|
393
|
+
getAsyncPhoneValidationRules as b,
|
|
389
394
|
contactDetailsValidationRules as c,
|
|
390
395
|
defaultFieldMetadata as d,
|
|
391
396
|
fieldConfig as f,
|
|
392
|
-
|
|
397
|
+
getPhonePlaceholder as g,
|
|
393
398
|
useValidatePhoneNumberImperatively as u
|
|
394
399
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8a71ea69-3396-4cdc-a3b0-bbdb3d1d3beb", e._sentryDebugIdIdentifier = "sentry-dbid-8a71ea69-3396-4cdc-a3b0-bbdb3d1d3beb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { x as useAnalyticsContext, C as Alert } from "./StoreProvider-lJLpl6iE.js";
|
|
12
12
|
function ContextGuidance({
|
|
13
13
|
title,
|
|
14
14
|
content,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { F as Field } from "./Field-
|
|
13
|
-
import { S as Select } from "./Select-
|
|
14
|
-
import { u as useTranslation, ap as useDataset, aq as datasetIdentifier } from "./StoreProvider-
|
|
12
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
13
|
+
import { S as Select } from "./Select-DSLn5CCG.js";
|
|
14
|
+
import { u as useTranslation, ap as useDataset, aq as datasetIdentifier } from "./StoreProvider-lJLpl6iE.js";
|
|
15
15
|
const COUNTRY_FIELD = ["country"];
|
|
16
16
|
function CountryField({
|
|
17
17
|
name = "country",
|