@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,72 +2,73 @@
|
|
|
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] = "310aa9d9-ea6f-447b-9818-6329e1115aad", e._sentryDebugIdIdentifier = "sentry-dbid-310aa9d9-ea6f-447b-9818-6329e1115aad");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { jsxs,
|
|
10
|
+
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { Show } from "@preact/signals/utils";
|
|
12
12
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
13
13
|
import { useState, useRef, useCallback, useEffect, useMemo } from "preact/hooks";
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { b as useApiContext,
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-
|
|
19
|
-
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, P as PhoneField, u as useValidatePhoneNumberImperatively,
|
|
20
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
21
|
-
import { u as useToastContext } from "./useToastContext-
|
|
22
|
-
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-
|
|
23
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
24
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
25
|
-
import { u as uppercase,
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-BvV1t76w.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CO7qV3Sc.js";
|
|
16
|
+
import { b as useApiContext, j as httpPost, a9 as CountryCodes, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aF as hasRepeatedCharacters, aG as isInvalidName, aH as INDIVIDUAL_VALID_CHAR_REGEX, ax as isEmpty, w as TaskTypes, L as LegalEntityTypes, aI as getAgeToday, aJ as euCountries, aK as hasText, aL as standardKatakanaValidator, aM as standardKanjiValidator, k as httpGet, u as useTranslation, V as Button, C as Alert, U as Loader, as as DecisionMakerTypes, at as Scenarios, N as Typography, ab as translateTranslatable, ap as useDataset, aq as datasetIdentifier, aN as useAllowedCountries, m as useSettingsContext, H as useToggleContext, aB as Header, aO as getAgeRangeForLegalRepresentative, aP as isLegalRepresentativeNeeded, aQ as Trans, aR as valuesOf, aS as keysOf, ah as objectsDeepEqual, aT as listToRecord, aU as pick, ae as createLogger, B as IconButton, x as useAnalyticsContext, am as datasetUtilities, aV as useCapabilities, aW as individualApiKeyMapping, aX as drop, t as useAccountHolder, a8 as getLegalEntityCountry, aY as getAllowedDecisionMakerRoles, aZ as filterOutUnwantedAssociationsIfRootLE, an as cloneObject, a_ as individualDocumentMapping, a$ as individualObscuredFields, ac as getOwnEntityAssociations, b0 as hasNomineesChanged, b1 as attachNomineeToRole, b2 as doArraysMatch } from "./StoreProvider-lJLpl6iE.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dr3e1mG2.js";
|
|
18
|
+
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-BkeFTMl-.js";
|
|
19
|
+
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, d as defaultFieldMetadata$1, f as fieldConfig, P as PhoneField, g as getPhonePlaceholder, u as useValidatePhoneNumberImperatively, b as getAsyncPhoneValidationRules } from "./ContactDetails-ByrH32Jo.js";
|
|
20
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-EeYo1zte.js";
|
|
21
|
+
import { u as useToastContext } from "./useToastContext-Dl59lP3Q.js";
|
|
22
|
+
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-DcWH0t4d.js";
|
|
23
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-B-qE8vvG.js";
|
|
24
|
+
import { u as useMultiForm } from "./useMultiForm-CR9pqYjq.js";
|
|
25
|
+
import { u as uppercase, A as AdyenKycSdkError, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-BcvOzQNH.js";
|
|
26
26
|
import { J as JP_ADDRESS_REQUIRED_FIELDS } from "./jpAddressSchema-DEOyz9Yo.js";
|
|
27
|
-
import {
|
|
28
|
-
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-
|
|
29
|
-
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-
|
|
30
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
31
|
-
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-
|
|
32
|
-
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig,
|
|
33
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
34
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
35
|
-
import {
|
|
36
|
-
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput, I as InputEmail } from "./MaskedInput-
|
|
37
|
-
import { v as validatePatternOnBlur } from "./patternValidators-
|
|
27
|
+
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
28
|
+
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-CWrDCmo5.js";
|
|
29
|
+
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-_HlywUjg.js";
|
|
30
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DmyvOY60.js";
|
|
31
|
+
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-DdW_lr56.js";
|
|
32
|
+
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, D as DocumentGuidance, M as MemoizedDocumentUpload, b as taxIdNumberOptions, g as getFieldsWithExistingData } from "./TaxInformationField-5nazrzc4.js";
|
|
33
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-BK4rTASp.js";
|
|
34
|
+
import { l as localizeDateString } from "./localizeDateString-BSZiJcEb.js";
|
|
35
|
+
import { o as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-tsdNkCyN.js";
|
|
36
|
+
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput, I as InputEmail } from "./MaskedInput-DPSvsK95.js";
|
|
37
|
+
import { v as validatePatternOnBlur } from "./patternValidators-DuOaKe_S.js";
|
|
38
38
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
39
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
39
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-2-VlpJvY.js";
|
|
40
40
|
import { lazy, Suspense, memo } from "preact/compat";
|
|
41
|
-
import { I as Image } from "./unincorporated-partnership-
|
|
42
|
-
import { M as Modal } from "./Modal-
|
|
43
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
44
|
-
import { C as Confirm } from "./Confirm-
|
|
45
|
-
import { a as getIndividualLegalEntityName } from "./getName-
|
|
46
|
-
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-
|
|
41
|
+
import { I as Image } from "./unincorporated-partnership-DCtqSVs0.js";
|
|
42
|
+
import { M as Modal } from "./Modal-CAVcW_pH.js";
|
|
43
|
+
import { L as LandingLayout } from "./LandingLayout-y-X0NrR1.js";
|
|
44
|
+
import { C as Confirm } from "./Confirm-DOjzHnlC.js";
|
|
45
|
+
import { a as getIndividualLegalEntityName } from "./getName-CzAV6RHp.js";
|
|
46
|
+
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-m56sOqio.js";
|
|
47
47
|
import { signal } from "@preact/signals";
|
|
48
|
-
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-
|
|
48
|
+
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-4HIDH4sr.js";
|
|
49
49
|
import { g as getFieldProps, a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
50
|
-
import { F as Field } from "./Field-
|
|
51
|
-
import { L as Link } from "./Link-
|
|
52
|
-
import { S as SettingNames } from "./types-
|
|
53
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
54
|
-
import { I as InputText } from "./InputText-
|
|
55
|
-
import { C as CountryField } from "./CountryField-
|
|
56
|
-
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-
|
|
57
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
58
|
-
import { C as Checkbox } from "./Checkbox-
|
|
59
|
-
import { S as Select } from "./Select-
|
|
60
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
61
|
-
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-
|
|
62
|
-
import { i as isTruthyValidator } from "./commonValidators-
|
|
50
|
+
import { F as Field } from "./Field-CWq5XOh3.js";
|
|
51
|
+
import { L as Link } from "./Link-DeFoaStC.js";
|
|
52
|
+
import { S as SettingNames } from "./types-Dv0COrvY.js";
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-C2NEOpK4.js";
|
|
54
|
+
import { I as InputText } from "./InputText-20pWI3ja.js";
|
|
55
|
+
import { C as CountryField } from "./CountryField-C9nbUmpe.js";
|
|
56
|
+
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-BZ-EfNXM.js";
|
|
57
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DjInEErz.js";
|
|
58
|
+
import { C as Checkbox } from "./Checkbox-Dwf4zXgj.js";
|
|
59
|
+
import { S as Select } from "./Select-DSLn5CCG.js";
|
|
60
|
+
import { C as ContextGuidance } from "./ContextGuidance-BUczCMV3.js";
|
|
61
|
+
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-BhSXCdTl.js";
|
|
62
|
+
import { i as isTruthyValidator } from "./commonValidators-cEWuPs2I.js";
|
|
63
63
|
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
64
|
-
import { n as nameFields, N as Name } from "./Name-
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
64
|
+
import { n as nameFields, N as Name } from "./Name-eQhc9Vta.js";
|
|
65
|
+
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-BgHjkrJG.js";
|
|
66
|
+
import { D as Dropzone } from "./Dropzone-Bf8v-4iJ.js";
|
|
67
|
+
import { i as isEmpty$1 } from "./isEmpty-CRqBruDc.js";
|
|
67
68
|
import { Onfido } from "onfido-sdk-ui";
|
|
68
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
69
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-Bh1b67kY.js";
|
|
69
70
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
70
|
-
import { T as TextArea } from "./TextArea-
|
|
71
|
+
import { T as TextArea } from "./TextArea-D0eJRv8v.js";
|
|
71
72
|
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
72
73
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
73
74
|
import { m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
@@ -135,6 +136,37 @@ const useCreateInvitation = (options) => {
|
|
|
135
136
|
...options
|
|
136
137
|
});
|
|
137
138
|
};
|
|
139
|
+
const mapJpAddressSummary = (data, datasetUtils) => {
|
|
140
|
+
if (!data) return {};
|
|
141
|
+
return {
|
|
142
|
+
country: datasetUtils.getCountryName("JP") ?? "JP",
|
|
143
|
+
postalCode: summaryItem("postalCode", data.postalCode),
|
|
144
|
+
stateOrProvince: summaryItem(
|
|
145
|
+
"prefecture",
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
147
|
+
/* @__PURE__ */ jsx("p", { children: data.jaHaniStateOrProvince }),
|
|
148
|
+
/* @__PURE__ */ jsx("p", { children: data.jaKanaStateOrProvince }),
|
|
149
|
+
/* @__PURE__ */ jsx("p", { children: data.stateOrProvince })
|
|
150
|
+
] })
|
|
151
|
+
),
|
|
152
|
+
city: summaryItem(
|
|
153
|
+
"districtTownAreaCityWard",
|
|
154
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
155
|
+
/* @__PURE__ */ jsx("p", { children: data.jaHaniCity }),
|
|
156
|
+
/* @__PURE__ */ jsx("p", { children: data.jaKanaCity }),
|
|
157
|
+
/* @__PURE__ */ jsx("p", { children: data.city })
|
|
158
|
+
] })
|
|
159
|
+
),
|
|
160
|
+
otherAddressInformation: summaryItem("chomeAndBanchi", data.otherAddressInformation),
|
|
161
|
+
address: summaryItem(
|
|
162
|
+
"buildingNameFloorRoomNumberEtc",
|
|
163
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
164
|
+
/* @__PURE__ */ jsx("p", { children: data.jaHaniAddress }),
|
|
165
|
+
/* @__PURE__ */ jsx("p", { children: data.address })
|
|
166
|
+
] })
|
|
167
|
+
)
|
|
168
|
+
};
|
|
169
|
+
};
|
|
138
170
|
const customerSupportPresubmitProcess = (legalEntityResponse, legalEntityToSubmit) => {
|
|
139
171
|
if (legalEntityResponse.type === "individual") {
|
|
140
172
|
return processCustomerSupportForIndividual(legalEntityResponse, legalEntityToSubmit);
|
|
@@ -805,7 +837,7 @@ const getCountrySpecificMinimumAgeValidationRule = (country) => {
|
|
|
805
837
|
};
|
|
806
838
|
const additionalPersonalDetailsValidators = ({
|
|
807
839
|
country,
|
|
808
|
-
|
|
840
|
+
isFeatureEnabled = () => false,
|
|
809
841
|
isSettingEnabled = () => false,
|
|
810
842
|
taskType,
|
|
811
843
|
idNumberType,
|
|
@@ -829,7 +861,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
829
861
|
if (isSettingEnabled("enforceLegalAge")) {
|
|
830
862
|
return [...baseValidators, buildMinimumAgeValidationRule(18)];
|
|
831
863
|
}
|
|
832
|
-
if (
|
|
864
|
+
if (isFeatureEnabled("EnableAgeVerification")) {
|
|
833
865
|
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) {
|
|
834
866
|
return [...baseValidators, buildMinimumAgeValidationRule(18)];
|
|
835
867
|
}
|
|
@@ -837,7 +869,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
837
869
|
}
|
|
838
870
|
return baseValidators;
|
|
839
871
|
})(),
|
|
840
|
-
...
|
|
872
|
+
...isFeatureEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4 : void 0,
|
|
841
873
|
...contactDetailsValidationRules,
|
|
842
874
|
idNumber: (() => {
|
|
843
875
|
const derivedIdNumberType = country === CountryCodes.UnitedStates || country === CountryCodes.PuertoRico ? getSSNType(formVerificationErrors, existingIdNumber) : idNumberType;
|
|
@@ -853,13 +885,13 @@ const additionalPersonalDetailsValidators = ({
|
|
|
853
885
|
)?.validators;
|
|
854
886
|
})(),
|
|
855
887
|
...addressValidators({
|
|
856
|
-
|
|
888
|
+
isFeatureEnabled,
|
|
857
889
|
country,
|
|
858
890
|
t
|
|
859
891
|
})
|
|
860
892
|
});
|
|
861
|
-
const localizedNameValidationRulesV4 = (
|
|
862
|
-
if (isJapanLocalizationEnabled(
|
|
893
|
+
const localizedNameValidationRulesV4 = (isFeatureEnabled = () => false, country) => {
|
|
894
|
+
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) {
|
|
863
895
|
return {
|
|
864
896
|
jaHaniFirstName: [
|
|
865
897
|
{
|
|
@@ -914,12 +946,12 @@ const localizedNameValidationRulesV4 = (isExperimentEnabled = () => false, count
|
|
|
914
946
|
return {};
|
|
915
947
|
};
|
|
916
948
|
const basicDetailsValidators = ({
|
|
917
|
-
|
|
949
|
+
isFeatureEnabled = () => false,
|
|
918
950
|
country
|
|
919
951
|
}) => ({
|
|
920
952
|
...contactDetailsValidationRules,
|
|
921
|
-
...
|
|
922
|
-
...localizedNameValidationRulesV4(
|
|
953
|
+
...isFeatureEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4 : void 0,
|
|
954
|
+
...localizedNameValidationRulesV4(isFeatureEnabled, country)
|
|
923
955
|
});
|
|
924
956
|
const onfidoDocumentTypeMapping = [
|
|
925
957
|
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
@@ -974,6 +1006,70 @@ const styles$4 = {
|
|
|
974
1006
|
idnowVerificationHeaderIframe,
|
|
975
1007
|
idnowVerificationHeaderImage
|
|
976
1008
|
};
|
|
1009
|
+
const MOUNT_TIMEOUT = 10 * 1e3;
|
|
1010
|
+
let activeWidget;
|
|
1011
|
+
class IFrameWidget {
|
|
1012
|
+
iframeUrl;
|
|
1013
|
+
iframeElement;
|
|
1014
|
+
mountInProgress = false;
|
|
1015
|
+
constructor(iframeElement, url, _vendor, _sdkToken) {
|
|
1016
|
+
try {
|
|
1017
|
+
this.iframeUrl = new URL(url);
|
|
1018
|
+
} catch (err) {
|
|
1019
|
+
throw new AdyenKycSdkError("WIDGET_URL_MALFORMED", err);
|
|
1020
|
+
}
|
|
1021
|
+
this.iframeElement = iframeElement;
|
|
1022
|
+
}
|
|
1023
|
+
unmount() {
|
|
1024
|
+
if (this.mountInProgress) {
|
|
1025
|
+
throw new AdyenKycSdkError("Cannot unmount widget, mounting is still in progress");
|
|
1026
|
+
}
|
|
1027
|
+
this.iframeElement.remove();
|
|
1028
|
+
activeWidget = null;
|
|
1029
|
+
}
|
|
1030
|
+
async mount() {
|
|
1031
|
+
if (activeWidget) {
|
|
1032
|
+
throw new AdyenKycSdkError(
|
|
1033
|
+
`You can only have one ${this.constructor.name} mounted at a time`
|
|
1034
|
+
);
|
|
1035
|
+
}
|
|
1036
|
+
activeWidget = this;
|
|
1037
|
+
if (this.mountInProgress) {
|
|
1038
|
+
throw new AdyenKycSdkError("Cannot mount widget, mounting is already in progress");
|
|
1039
|
+
}
|
|
1040
|
+
this.mountInProgress = true;
|
|
1041
|
+
try {
|
|
1042
|
+
await new Promise((resolve, reject) => {
|
|
1043
|
+
const timeoutId = setTimeout(() => {
|
|
1044
|
+
this.mountInProgress = false;
|
|
1045
|
+
reject(new AdyenKycSdkError("WIDGET_TIMEOUT"));
|
|
1046
|
+
}, MOUNT_TIMEOUT);
|
|
1047
|
+
const cancelTimeout = () => {
|
|
1048
|
+
if (timeoutId) clearTimeout(timeoutId);
|
|
1049
|
+
};
|
|
1050
|
+
this.iframeElement.addEventListener("load", () => {
|
|
1051
|
+
cancelTimeout();
|
|
1052
|
+
this.mountInProgress = false;
|
|
1053
|
+
resolve();
|
|
1054
|
+
});
|
|
1055
|
+
requestAnimationFrame(() => {
|
|
1056
|
+
try {
|
|
1057
|
+
this.iframeElement.setAttribute("src", this.iframeUrl.href);
|
|
1058
|
+
} catch (ex) {
|
|
1059
|
+
cancelTimeout();
|
|
1060
|
+
this.mountInProgress = false;
|
|
1061
|
+
reject(ex);
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
});
|
|
1065
|
+
} catch (err) {
|
|
1066
|
+
throw new AdyenKycSdkError("WIDGET_LAUNCH_FAILED", err);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
async mountAndWaitForResponse() {
|
|
1070
|
+
await this.mount();
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
977
1073
|
const passportFrontGreenImage$1 = lazy(
|
|
978
1074
|
() => import("./passport-front-green-CZVkCa1n.js")
|
|
979
1075
|
);
|
|
@@ -1228,6 +1324,54 @@ const shouldShowMotionCapture = ({
|
|
|
1228
1324
|
const hasRequiredCapability = capabilities?.issueBankAccount?.requested ?? false;
|
|
1229
1325
|
return (isIndividual || hasRequiredRole) && hasRequiredCapability;
|
|
1230
1326
|
};
|
|
1327
|
+
const individualIdNumberOptions = {
|
|
1328
|
+
[CountryCodes.Spain]: [
|
|
1329
|
+
{
|
|
1330
|
+
id: "dni",
|
|
1331
|
+
name: "dni"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
id: "nie",
|
|
1335
|
+
name: "nie"
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
};
|
|
1339
|
+
const additionallIdNumberOptions = {
|
|
1340
|
+
[CountryCodes.NewZealand]: [
|
|
1341
|
+
{
|
|
1342
|
+
id: "driversLicense",
|
|
1343
|
+
name: "driversLicense"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
id: "passport",
|
|
1347
|
+
name: "passportNumber"
|
|
1348
|
+
}
|
|
1349
|
+
],
|
|
1350
|
+
[CountryCodes.HongKong]: [
|
|
1351
|
+
{
|
|
1352
|
+
id: "proofOfIdentityCard",
|
|
1353
|
+
name: "stateIssuedProofOfIdentityCard"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
id: "driversLicense",
|
|
1357
|
+
name: "driversLicense"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
id: "passport",
|
|
1361
|
+
name: "passportNumber"
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
1364
|
+
[CountryCodes.Australia]: [
|
|
1365
|
+
{
|
|
1366
|
+
id: "driversLicense",
|
|
1367
|
+
name: "driversLicense"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
id: "passport",
|
|
1371
|
+
name: "passportNumber"
|
|
1372
|
+
}
|
|
1373
|
+
]
|
|
1374
|
+
};
|
|
1231
1375
|
function IndividualIdNumberTypeSelector({
|
|
1232
1376
|
country,
|
|
1233
1377
|
selected,
|
|
@@ -1287,9 +1431,9 @@ function IdentityNumber(props) {
|
|
|
1287
1431
|
if (!handleFieldChange) {
|
|
1288
1432
|
return;
|
|
1289
1433
|
}
|
|
1290
|
-
const
|
|
1434
|
+
const fieldConfig2 = propFieldConfig ?? defaultFieldConfig;
|
|
1291
1435
|
const metadata = resolveFieldMetadata(
|
|
1292
|
-
|
|
1436
|
+
fieldConfig2[country],
|
|
1293
1437
|
{ idNumberType },
|
|
1294
1438
|
defaultFieldMetadata
|
|
1295
1439
|
);
|
|
@@ -1717,7 +1861,7 @@ const additionalIdentityInfoFields = [
|
|
|
1717
1861
|
"expiryDate"
|
|
1718
1862
|
];
|
|
1719
1863
|
const LazyJpAddress = lazy(
|
|
1720
|
-
async () => (await import("./JpAddress-
|
|
1864
|
+
async () => (await import("./JpAddress-CX4IfNRB.js")).JpAddress
|
|
1721
1865
|
);
|
|
1722
1866
|
const additionalPersonalDetailsFields = [
|
|
1723
1867
|
"birthDate",
|
|
@@ -1735,9 +1879,9 @@ function AdditionalPersonalDetails(props) {
|
|
|
1735
1879
|
const allowedCountries = useAllowedCountries();
|
|
1736
1880
|
const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
|
|
1737
1881
|
const { isSettingEnabled } = useSettingsContext();
|
|
1738
|
-
const {
|
|
1882
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1739
1883
|
const { form } = useFormContext();
|
|
1740
|
-
const
|
|
1884
|
+
const isAgeVerificationFeatureEnabled = isFeatureEnabled("EnableAgeVerification");
|
|
1741
1885
|
const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
|
|
1742
1886
|
const {
|
|
1743
1887
|
country: defaultCountry,
|
|
@@ -1781,7 +1925,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
1781
1925
|
}
|
|
1782
1926
|
const handleBirthDateChange = (event) => {
|
|
1783
1927
|
handleFieldChange("birthDate", "blur")(event);
|
|
1784
|
-
if (
|
|
1928
|
+
if (isAgeVerificationFeatureEnabled && !isSettingsEnforceLegalAgeEnabled && isLegalRepresentativeNeeded(event.currentTarget.value, country, taskType)) {
|
|
1785
1929
|
setShowLegalRepresentativePrompt(true);
|
|
1786
1930
|
}
|
|
1787
1931
|
};
|
|
@@ -1816,7 +1960,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
1816
1960
|
handleChangeFor: handleFieldChange
|
|
1817
1961
|
}
|
|
1818
1962
|
),
|
|
1819
|
-
isJapanLocalizationEnabled(
|
|
1963
|
+
isJapanLocalizationEnabled(isFeatureEnabled, country) ? /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
1820
1964
|
LazyJpAddress,
|
|
1821
1965
|
{
|
|
1822
1966
|
...jpAddressProps,
|
|
@@ -3008,7 +3152,7 @@ function IdVerificationMethod(props) {
|
|
|
3008
3152
|
const { t: individualT, i18n } = useTranslation("individual");
|
|
3009
3153
|
const { t: commonT } = useTranslation("common");
|
|
3010
3154
|
const userEvents = useAnalyticsContext();
|
|
3011
|
-
const {
|
|
3155
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
3012
3156
|
const extractDocumentInformation2 = useExtractDocumentInformation();
|
|
3013
3157
|
const {
|
|
3014
3158
|
form: { data, handleChangeFor, setFormData, setValid, valid }
|
|
@@ -3073,7 +3217,8 @@ function IdVerificationMethod(props) {
|
|
|
3073
3217
|
lastName: data.basicDetails?.lastName,
|
|
3074
3218
|
residencyCountry: data.additionalPersonalDetails?.country
|
|
3075
3219
|
};
|
|
3076
|
-
const
|
|
3220
|
+
const { registerFieldAction, unregisterFieldAction } = useFormRouterContext();
|
|
3221
|
+
const launchOnfido = useCallback(() => {
|
|
3077
3222
|
clearError();
|
|
3078
3223
|
userEvents.addPageEvent("Clicked button", {
|
|
3079
3224
|
actionType: "add",
|
|
@@ -3082,7 +3227,13 @@ function IdVerificationMethod(props) {
|
|
|
3082
3227
|
});
|
|
3083
3228
|
setStatus("onfidoModal");
|
|
3084
3229
|
handleFieldChange("idVerificationMethod")("instantVerification");
|
|
3085
|
-
};
|
|
3230
|
+
}, [userEvents, handleFieldChange]);
|
|
3231
|
+
useEffect(() => {
|
|
3232
|
+
if (hasLiveSelfieErrorCode) {
|
|
3233
|
+
registerFieldAction("idDocument", launchOnfido);
|
|
3234
|
+
return () => unregisterFieldAction("idDocument");
|
|
3235
|
+
}
|
|
3236
|
+
}, [registerFieldAction, unregisterFieldAction, launchOnfido, hasLiveSelfieErrorCode]);
|
|
3086
3237
|
const handleOnfidoComplete = async (onfidoResult) => {
|
|
3087
3238
|
clearError();
|
|
3088
3239
|
setShowLoadingSpinner(true);
|
|
@@ -3250,7 +3401,7 @@ function IdVerificationMethod(props) {
|
|
|
3250
3401
|
children: commonT(($) => $["startVerification"])
|
|
3251
3402
|
}
|
|
3252
3403
|
),
|
|
3253
|
-
|
|
3404
|
+
isFeatureEnabled("EnableVerifyByInvite") && isDecisionMakerTask(taskType) && /* @__PURE__ */ jsx(Button, { onClick: handleVerifyByInvite, variant: "secondary", fullWidth: true, children: individualT(($) => $["verifyByInvite"]) }),
|
|
3254
3405
|
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3255
3406
|
Button,
|
|
3256
3407
|
{
|
|
@@ -3393,7 +3544,17 @@ function InviteDetails(props) {
|
|
|
3393
3544
|
recipientFirstName,
|
|
3394
3545
|
valid = {}
|
|
3395
3546
|
} = props;
|
|
3396
|
-
const
|
|
3547
|
+
const phoneMetadata = resolveFieldMetadata(
|
|
3548
|
+
fieldConfig[data?.phoneNumber?.phoneCountryCode ?? country],
|
|
3549
|
+
{},
|
|
3550
|
+
defaultFieldMetadata$1
|
|
3551
|
+
);
|
|
3552
|
+
const mergedProps = mergeFieldMetadataIntoProps(
|
|
3553
|
+
"phoneNumber",
|
|
3554
|
+
{ label: phoneMetadata.label, mask: phoneMetadata.mask },
|
|
3555
|
+
props
|
|
3556
|
+
);
|
|
3557
|
+
const formUtils = createFormUtils(mergedProps, commonT);
|
|
3397
3558
|
const basicDetails = formData.basicDetails ?? {};
|
|
3398
3559
|
const handleEmailChange = useCallback(
|
|
3399
3560
|
(mode) => (e) => {
|
|
@@ -3456,9 +3617,13 @@ function InviteDetails(props) {
|
|
|
3456
3617
|
valid: { phoneNumber: valid.phoneNumber ?? true },
|
|
3457
3618
|
errors: { phoneNumber: errors.phoneNumber?.errorMessage },
|
|
3458
3619
|
labels: { phoneNumber: t(($) => $["mobileNumber"]) },
|
|
3620
|
+
placeholder: getPhonePlaceholder(country),
|
|
3459
3621
|
optional: false,
|
|
3460
3622
|
readonly: false,
|
|
3461
|
-
handleChangeFor: handlePhoneChange
|
|
3623
|
+
handleChangeFor: handlePhoneChange,
|
|
3624
|
+
mask: formUtils.getMask("phoneNumber"),
|
|
3625
|
+
helper: t(($) => $["mobileNumberHelperText"]),
|
|
3626
|
+
helperPosition: "below"
|
|
3462
3627
|
}
|
|
3463
3628
|
),
|
|
3464
3629
|
/* @__PURE__ */ jsx(
|
|
@@ -4046,12 +4211,11 @@ function Individual(props) {
|
|
|
4046
4211
|
const {
|
|
4047
4212
|
form: { errors, valid, fieldProblems: fieldValidationErrors, handleChangeFor, setFormData }
|
|
4048
4213
|
} = useFormContext();
|
|
4049
|
-
const {
|
|
4214
|
+
const { goToFormByFormId } = useFormRouterContext();
|
|
4050
4215
|
const [isDecisionMakerNotRequiredModalOpen, setIsDecisionMakerNotRequiredModalOpen] = useState(false);
|
|
4051
4216
|
const [isDuplicateNameModalOpen, setIsDuplicateNameModalOpen] = useState(false);
|
|
4052
4217
|
const {
|
|
4053
4218
|
activeForm: propActiveForm,
|
|
4054
|
-
forms,
|
|
4055
4219
|
defaultCountry,
|
|
4056
4220
|
data,
|
|
4057
4221
|
taskType,
|
|
@@ -4159,16 +4323,11 @@ function Individual(props) {
|
|
|
4159
4323
|
setIsDuplicateNameModalOpen(false);
|
|
4160
4324
|
onNext?.();
|
|
4161
4325
|
};
|
|
4162
|
-
const gotoFormByFormId = (formId) => {
|
|
4163
|
-
const targetFormIndex = forms.findIndex((form) => form.formId === formId);
|
|
4164
|
-
if (!targetFormIndex) throw new Error(`${formId} not found`);
|
|
4165
|
-
setFormIndex(targetFormIndex);
|
|
4166
|
-
};
|
|
4167
4326
|
const handleContinueToAdditionalDetails = () => {
|
|
4168
|
-
|
|
4327
|
+
goToFormByFormId(additionalPersonalDetailsFormID);
|
|
4169
4328
|
};
|
|
4170
4329
|
const handleContinueToInviteDetails = () => {
|
|
4171
|
-
|
|
4330
|
+
goToFormByFormId(inviteDetailsFormID);
|
|
4172
4331
|
};
|
|
4173
4332
|
const handleDeleteDocument = () => {
|
|
4174
4333
|
logger$1.info("handle delete document");
|
|
@@ -4506,7 +4665,7 @@ const adjustOnfidoIdentificationData = (data, apiData) => {
|
|
|
4506
4665
|
};
|
|
4507
4666
|
}
|
|
4508
4667
|
};
|
|
4509
|
-
const mapIndividualSchemaToLegalEntity = (individual,
|
|
4668
|
+
const mapIndividualSchemaToLegalEntity = (individual, isFeatureEnabled, matchingScenario) => {
|
|
4510
4669
|
const legalEntity = {
|
|
4511
4670
|
...formatObject(individual, individualApiKeyMapping),
|
|
4512
4671
|
type: LegalEntityTypes.INDIVIDUAL
|
|
@@ -4793,7 +4952,7 @@ function IndividualDropin({
|
|
|
4793
4952
|
const { t, i18n } = useTranslation(["common", "individual"]);
|
|
4794
4953
|
const userEvents = useAnalyticsContext();
|
|
4795
4954
|
const { showToast, clearToasts } = useToastContext();
|
|
4796
|
-
const {
|
|
4955
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
4797
4956
|
const { isSettingEnabled } = useSettingsContext();
|
|
4798
4957
|
const queryClient = useQueryClient();
|
|
4799
4958
|
const defaultCountry = "NL";
|
|
@@ -4858,21 +5017,15 @@ function IndividualDropin({
|
|
|
4858
5017
|
[propProblems, validationErrors]
|
|
4859
5018
|
);
|
|
4860
5019
|
const hasVerificationErrors = propProblems?.verificationErrors && Object.keys(propProblems.verificationErrors).length > 0;
|
|
4861
|
-
useEffect(() => {
|
|
4862
|
-
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
4863
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
4864
|
-
actionType: "start"
|
|
4865
|
-
});
|
|
4866
|
-
}, []);
|
|
4867
5020
|
const individualFieldValidations = useCallback(
|
|
4868
5021
|
(data2) => ({
|
|
4869
5022
|
basicDetails: basicDetailsValidators({
|
|
4870
|
-
|
|
5023
|
+
isFeatureEnabled,
|
|
4871
5024
|
country
|
|
4872
5025
|
}),
|
|
4873
5026
|
additionalPersonalDetails: additionalPersonalDetailsValidators({
|
|
4874
5027
|
country: data2?.additionalPersonalDetails?.country ?? country,
|
|
4875
|
-
|
|
5028
|
+
isFeatureEnabled,
|
|
4876
5029
|
isSettingEnabled,
|
|
4877
5030
|
taskType,
|
|
4878
5031
|
idNumberType: data2?.additionalPersonalDetails?.typeOfIdentity,
|
|
@@ -4889,7 +5042,7 @@ function IndividualDropin({
|
|
|
4889
5042
|
country,
|
|
4890
5043
|
dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
4891
5044
|
t,
|
|
4892
|
-
|
|
5045
|
+
isFeatureEnabled,
|
|
4893
5046
|
isSettingEnabled,
|
|
4894
5047
|
problems?.verificationErrors?.additionalPersonalDetails,
|
|
4895
5048
|
taskType
|
|
@@ -4964,11 +5117,11 @@ function IndividualDropin({
|
|
|
4964
5117
|
data,
|
|
4965
5118
|
country: data?.additionalPersonalDetails?.country ?? country,
|
|
4966
5119
|
taskType,
|
|
4967
|
-
|
|
5120
|
+
isFeatureEnabled,
|
|
4968
5121
|
rootLegalEntity: parentLegalEntity,
|
|
4969
5122
|
problems
|
|
4970
5123
|
}),
|
|
4971
|
-
[country, matchingScenario, data,
|
|
5124
|
+
[country, matchingScenario, data, isFeatureEnabled, parentLegalEntity, taskType, problems]
|
|
4972
5125
|
);
|
|
4973
5126
|
useEffect(() => {
|
|
4974
5127
|
const derivedProps2 = getPropsFromConfigurations({
|
|
@@ -5244,7 +5397,7 @@ function IndividualDropin({
|
|
|
5244
5397
|
try {
|
|
5245
5398
|
const legalEntity = mapIndividualSchemaToLegalEntity(
|
|
5246
5399
|
dataSubmitted,
|
|
5247
|
-
|
|
5400
|
+
isFeatureEnabled,
|
|
5248
5401
|
matchingScenario
|
|
5249
5402
|
);
|
|
5250
5403
|
const idDocumentType = idDocumentTypeOptions.find(
|
|
@@ -5383,7 +5536,7 @@ function IndividualDropin({
|
|
|
5383
5536
|
);
|
|
5384
5537
|
}
|
|
5385
5538
|
if (data.additionalPersonalDetails) {
|
|
5386
|
-
if (isJapanLocalizationEnabled(
|
|
5539
|
+
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) {
|
|
5387
5540
|
summaryData.additionalPersonalDetails = {
|
|
5388
5541
|
...drop(...JP_ADDRESS_REQUIRED_FIELDS).from(summaryData.additionalPersonalDetails),
|
|
5389
5542
|
...mapJpAddressSummary(data.additionalPersonalDetails, datasetUtils)
|
|
@@ -5469,6 +5622,7 @@ function IndividualDropin({
|
|
|
5469
5622
|
activeForm,
|
|
5470
5623
|
shouldValidate,
|
|
5471
5624
|
gotoFormByFormIndex,
|
|
5625
|
+
gotoFormByFormId,
|
|
5472
5626
|
steps
|
|
5473
5627
|
} = useFormComposer({
|
|
5474
5628
|
problems,
|
|
@@ -5500,6 +5654,7 @@ function IndividualDropin({
|
|
|
5500
5654
|
forms,
|
|
5501
5655
|
activeForm,
|
|
5502
5656
|
gotoFormByFormIndex,
|
|
5657
|
+
gotoFormByFormId,
|
|
5503
5658
|
handleBackClick,
|
|
5504
5659
|
handleCancelClick: handleHomeClick,
|
|
5505
5660
|
handleNextClick: nextHandler || handleNextClick,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { a as InputBase } from "./InputText-
|
|
12
|
+
import { a as InputBase } from "./InputText-20pWI3ja.js";
|
|
13
13
|
const checkDateInputSupport = () => {
|
|
14
14
|
const input = document.createElement("input");
|
|
15
15
|
input.setAttribute("type", "date");
|
|
@@ -2,7 +2,7 @@
|
|
|
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] = "f4bb32e8-fd4a-4bb3-bc1d-bb8c2cbc41fd", e._sentryDebugIdIdentifier = "sentry-dbid-f4bb32e8-fd4a-4bb3-bc1d-bb8c2cbc41fd");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -11,7 +11,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
import { forwardRef } from "preact/compat";
|
|
12
12
|
import { useRef, useState, useCallback, useLayoutEffect } from "preact/hooks";
|
|
13
13
|
import cx from "classnames";
|
|
14
|
-
import {
|
|
14
|
+
import { x as useAnalyticsContext } from "./StoreProvider-lJLpl6iE.js";
|
|
15
15
|
import { d as debouncedInputEvent } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
16
16
|
const InputBase = forwardRef((props, ref) => {
|
|
17
17
|
const userEvents = useAnalyticsContext();
|